/*
Theme Name: StarCom
Theme URI: https://www.star-com.nl
Author: StarCom B.V.
Author URI: https://www.star-com.nl
Description: Modern, zakelijk en volledig responsive WordPress-thema voor StarCom B.V. - softwareontwikkeling en systeembeheer.
Version: 1.1.1
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starcom
Tags: business, technology, responsive, custom-menu, custom-logo, featured-images, threaded-comments
*/

:root {
  --sc-primary: #0b5ed7;
  --sc-primary-dark: #0a4bb0;
  --sc-accent: #16c2a3;
  --sc-dark: #0d1b2a;
  --sc-darker: #081320;
  --sc-text: #1f2933;
  --sc-muted: #5a6b7b;
  --sc-light: #f4f7fb;
  --sc-border: #e2e8f0;
  --sc-white: #ffffff;
  --sc-radius: 12px;
  --sc-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --sc-shadow-lg: 0 20px 50px rgba(13, 27, 42, 0.15);
  --sc-max: 1180px;
  --sc-transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sc-text);
  line-height: 1.65;
  background: var(--sc-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--sc-dark); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--sc-primary); text-decoration: none; transition: color var(--sc-transition); }
a:hover { color: var(--sc-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--sc-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--light { background: var(--sc-light); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-primary); margin-bottom: 12px; }
.section__lead { color: var(--sc-muted); font-size: 1.08rem; }

.btn { display: inline-block; padding: 14px 28px; border-radius: var(--sc-radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: transform var(--sc-transition), background var(--sc-transition), box-shadow var(--sc-transition); text-align: center; }
.btn--primary { background: var(--sc-primary); color: #fff; }
.btn--primary:hover { background: var(--sc-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--sc-shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--sc-dark); color: #fff; }
.btn--dark:hover { background: var(--sc-darker); color: #fff; transform: translateY(-2px); }

.site-header { position: sticky; top: 0; z-index: 999; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--sc-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 40px; width: auto; }
.site-title { font-size: 1.4rem; font-weight: 800; color: var(--sc-dark); letter-spacing: -0.02em; }
.site-title span { color: var(--sc-primary); }

.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--sc-text); font-weight: 500; font-size: 0.97rem; padding: 6px 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--sc-primary); transition: width var(--sc-transition); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.lang-switch { list-style: none; display: flex; gap: 4px; margin: 0 0 0 18px; padding: 4px; background: var(--sc-light); border-radius: 10px; }
.lang-switch li { margin: 0; }
.lang-switch a { display: block; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sc-muted); border-radius: 7px; }
.lang-switch a:hover { color: var(--sc-dark); }
.lang-switch .is-current a { background: var(--sc-primary); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sc-dark); transition: var(--sc-transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, rgba(22,194,163,0.25), transparent 60%), linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-darker) 100%); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 96px 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--sc-accent); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 2rem; color: #fff; }
.hero__stat span { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.hero__visual { background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 28px; box-shadow: var(--sc-shadow-lg); }
.code-window { font-family: "JetBrains Mono", "Courier New", monospace; font-size: 0.85rem; }
.code-window__dots { display: flex; gap: 7px; margin-bottom: 18px; }
.code-window__dots i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.code-window__dots i:nth-child(1) { background: #ff5f56; }
.code-window__dots i:nth-child(2) { background: #ffbd2e; }
.code-window__dots i:nth-child(3) { background: #27c93f; }
.code-window pre { margin: 0; color: #cbd5e1; white-space: pre-wrap; line-height: 1.7; }
.code-window .c-key { color: #16c2a3; }
.code-window .c-str { color: #ffd479; }
.code-window .c-fn { color: #64b5ff; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 32px; transition: transform var(--sc-transition), box-shadow var(--sc-transition), border-color var(--sc-transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sc-shadow); border-color: transparent; }
.service-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent)); color: #fff; margin-bottom: 18px; }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--sc-muted); margin: 0; font-size: 0.97rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text h2 { margin-bottom: 18px; }
.about__list { list-style: none; padding: 0; margin: 24px 0 0; }
.about__list li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--sc-text); }
.about__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sc-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.team-heading { margin: 0 0 20px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card { margin: 0; background: #fff; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; transition: transform var(--sc-transition), box-shadow var(--sc-transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow); }
.team-card__photo { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; display: block; }
.team-card figcaption { padding: 16px 18px; }
.team-card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.team-card span { color: var(--sc-muted); font-size: 0.88rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.case-card { border-radius: var(--sc-radius); overflow: hidden; background: #fff; border: 1px solid var(--sc-border); transition: transform var(--sc-transition), box-shadow var(--sc-transition); }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--sc-shadow); }
.case-card__media { height: 190px; position: relative; overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card__media span { position: absolute; left: 18px; top: 18px; background: rgba(13,27,42,0.55); backdrop-filter: blur(4px); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.case-card__body { padding: 24px; }
.case-card__body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.case-card__body p { color: var(--sc-muted); font-size: 0.95rem; margin: 0 0 12px; }
.case-card__result { display: inline-block; font-size: 0.85rem !important; font-weight: 600; color: var(--sc-primary) !important; background: rgba(11,94,215,0.08); padding: 8px 12px; border-radius: 8px; margin: 0 !important; }

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact__info h2 { margin-bottom: 16px; }
.contact__detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact__detail svg { width: 22px; height: 22px; color: var(--sc-primary); flex-shrink: 0; margin-top: 2px; }
.contact__detail strong { display: block; color: var(--sc-dark); }
.contact__detail span { color: var(--sc-muted); }
.contact-form { background: #fff; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 32px; box-shadow: var(--sc-shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--sc-border); border-radius: 10px; font: inherit; color: var(--sc-text); transition: border-color var(--sc-transition), box-shadow var(--sc-transition); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--sc-primary); box-shadow: 0 0 0 3px rgba(11,94,215,0.12); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--sc-muted); margin-top: 12px; }
.form-message { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.92rem; display: none; }
.form-message.is-error { display: block; background: #fde8e8; color: #b91c1c; }
.form-message.is-success { display: block; background: #e6f7f1; color: #0f7a5e; }

.site-footer { background: var(--sc-darker); color: rgba(255,255,255,0.7); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer p { font-size: 0.95rem; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: rgba(255,255,255,0.7); }
.footer-menu a:hover { color: #fff; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--sc-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }

.page-hero { background: var(--sc-light); padding: 64px 0; text-align: center; }
.content-area { padding: 64px 0; }
.entry { max-width: 760px; margin: 0 auto; }
.entry__meta { color: var(--sc-muted); font-size: 0.9rem; margin-bottom: 24px; }
.entry img { border-radius: var(--sc-radius); margin: 24px 0; }
.entry h2, .entry h3 { margin-top: 32px; }
.post-card { border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; transition: box-shadow var(--sc-transition), transform var(--sc-transition); }
.post-card:hover { box-shadow: var(--sc-shadow); transform: translateY(-4px); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { margin: 18px auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--sc-muted); text-align: center; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: 72px 0; }
  .hero__visual { order: -1; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--sc-border); box-shadow: var(--sc-shadow); transform: translateY(-150%); transition: transform 0.3s ease; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px 24px; align-items: stretch; }
  .main-nav li { border-bottom: 1px solid var(--sc-border); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { display: block; }
  .lang-switch { margin: 14px 0 0; justify-content: flex-start; width: max-content; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
