/* tokens.css is linked separately (versioned) in base.html.twig — no @import here. */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-text); font-size: var(--text-base); line-height: 1.65; color: var(--color-body); background: var(--color-white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-ink); line-height: 1.2; margin: 0 0 var(--space-3); }
h1 { font-size: var(--text-hero); } h2 { font-size: var(--text-2xl); } h3 { font-size: var(--text-xl); } h4 { font-size: var(--text-lg); }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-3); z-index: 100; }
.skip-link:focus { left: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-6); }
.section--alt { background: var(--color-surface); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-target); padding: 0.7rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; font-family: var(--font-display); text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: var(--text-base);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 16px -6px rgb(var(--primary-rgb) / 0.6); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 20px -6px rgb(var(--accent-rgb) / 0.7); }
.btn--accent:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.15); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-white); border-bottom: 1px solid var(--color-line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-2); }
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { height: 44px; width: 147px; object-fit: contain; }
.site-nav { display: none; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; min-height: var(--tap-target); display: inline-flex; align-items: center; }
.nav-toggle { background: none; border: 0; min-width: var(--tap-target); min-height: var(--tap-target); cursor: pointer; }
.label-compact { display: none; }
@media (max-width: 599px) {
  .site-header__inner { gap: var(--space-2); }
  .site-header__logo img { height: 36px; width: 120px; }
  .site-header__actions { gap: var(--space-1); }
  .site-header__actions .btn { padding: 0.4rem 0.55rem; font-size: var(--text-xs); white-space: nowrap; }
  .site-header__phone { display: none; }
  .label-full { display: none; }
  .label-compact { display: inline; }
}
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--color-ink); margin: 5px auto; transition: transform 0.2s; }
@media (min-width: 960px) {
  .site-nav { display: flex; gap: var(--space-4); }
  .site-nav a { text-decoration: none; color: var(--color-ink); font-weight: 500; min-height: var(--tap-target); display: inline-flex; align-items: center; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary); }
  .nav-toggle { display: none; }
}
.site-nav--open { display: flex; flex-direction: column; position: absolute; inset: 100% 0 auto 0; background: #fff; padding: var(--space-3); border-bottom: 1px solid var(--color-line); }
.site-nav--open a { padding: var(--space-2) 0; text-decoration: none; color: var(--color-ink); font-weight: 500; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(100deg, #0b0659 0%, rgba(11,6,89,0.97) 30%, rgba(11,6,89,0.68) 54%, rgba(16,9,127,0.40) 100%),
    url("/assets/img/hero-home.jpg");
  background-size: cover; background-position: right center; background-repeat: no-repeat; }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero { background:
    linear-gradient(100deg, #0b0659 0%, rgba(11,6,89,0.97) 30%, rgba(11,6,89,0.68) 54%, rgba(16,9,127,0.40) 100%),
    image-set(url("/assets/img/hero-home.webp") type("image/webp"), url("/assets/img/hero-home.jpg") type("image/jpeg"));
    background-size: cover; background-position: right center; background-repeat: no-repeat; }
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.5; pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -40%; left: -8%; width: 520px; height: 520px; background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.40), transparent 65%); pointer-events: none; }
.hero h1, .hero p { color: #fff; }
.hero h1 { max-width: 15ch; }
.hero__inner { position: relative; z-index: 1; max-width: 640px; min-height: clamp(500px, 64vh, 680px); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-6); }
.hero__lede { font-size: var(--text-lg); opacity: 0.94; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero__trust { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.92; }
.hero__trust .icon { color: #fff; width: 18px; height: 18px; }
@media (max-width: 700px) {
  .hero { background:
    linear-gradient(165deg, rgba(11,6,89,0.92) 0%, rgba(11,6,89,0.80) 55%, rgba(16,9,127,0.72) 100%),
    url("/assets/img/hero-home.jpg");
    background-size: cover; background-position: center; background-repeat: no-repeat; }
  .hero__inner { min-height: clamp(440px, 72vh, 560px); }
}

/* --- Cards --- */
.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--space-3); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(var(--primary-rgb) / 0.35); }
.card--link:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--text-lg); margin: 0; }
.card p { margin: 0; color: var(--color-body); }
.card a { text-decoration: none; }
.card__cta { font-weight: 600; margin-top: auto; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.35rem; }
.card--link:hover .card__cta .icon { transform: translateX(3px); }
.card__cta .icon { transition: transform 0.2s ease; }

/* Icon system */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--color-primary); background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.10), rgb(var(--accent-rgb) / 0.12)); border: 1px solid rgb(var(--primary-rgb) / 0.10); }
.icon-tile .icon { width: 26px; height: 26px; }

/* Section heading + eyebrow */
.section-head { max-width: 660px; margin: 0 auto var(--space-5); text-align: center; }
.section-head__lede { color: var(--color-muted); font-size: var(--text-lg); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: var(--text-xs); color: var(--color-primary); margin: 0 0 var(--space-2); }
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow--light { color: #fff; opacity: 0.9; }
.section-actions { text-align: center; margin-top: var(--space-5); }

/* --- Stat band --- */
.stat-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light)); color: #fff; }
.stat-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.stat-band__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); padding-block: var(--space-5); text-align: center; }
.stat-band__item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stat-band__item + .stat-band__item { position: relative; }
.stat-band__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 0.12); margin-bottom: 0.25rem; }
.stat-band__icon .icon { width: 22px; height: 22px; color: #fff; }
.stat-band__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; display: block; line-height: 1; }
.stat-band__label { font-size: var(--text-sm); opacity: 0.88; max-width: 22ch; }

/* --- FAQ accordion (progressive: <details> works without JS) --- */
/* FAQ sits in the same centered column as .prose so sections stay on one grid */
.faq-col { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { font-weight: 600; color: var(--color-ink); padding: var(--space-3) 0; cursor: pointer; min-height: var(--tap-target); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); }
.faq details[open] summary::after { content: "–"; }
.faq .faq__answer { padding-bottom: var(--space-3); }

/* --- CTA band --- */
.cta-band { background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band__inner { padding-block: var(--space-6); display: grid; gap: var(--space-3); justify-items: center; }

/* --- Forms --- */
.form { display: grid; gap: var(--space-3); max-width: 560px; }
.form label { font-weight: 600; color: var(--color-ink); display: block; margin-bottom: var(--space-1); }
.form input, .form select, .form textarea { width: 100%; min-height: var(--tap-target); padding: 0.6rem 0.8rem; border: 1px solid var(--color-muted); border-radius: 4px; font: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.form .field--error input, .form .field--error textarea { border-color: var(--color-error); }
.form .error-msg { color: var(--color-error); font-size: var(--text-sm); }
.form .privacy-note { font-size: var(--text-xs); color: var(--color-muted); }
.hp-field { position: absolute; left: -9999px; }   /* honeypot */

/* --- Article / prose --- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--space-5); }
.prose table { border-collapse: collapse; width: 100%; margin-block: var(--space-4); }
.prose th, .prose td { border: 1px solid var(--color-line); padding: var(--space-2) var(--space-3); text-align: left; }
.prose th { background: var(--color-surface); }
.article-meta { color: var(--color-muted); font-size: var(--text-sm); display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: var(--text-sm); padding-block: var(--space-3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-muted); }

/* --- Footer --- */
.site-footer { background: var(--color-ink); color: #cfcfe0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--space-5); padding-block: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: #fff; font-size: var(--text-base); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer .nap address { font-style: normal; line-height: 1.5; margin-bottom: var(--space-3); }
.site-footer__legal { border-top: 1px solid rgb(255 255 255 / 0.15); padding-block: var(--space-3); font-size: var(--text-xs); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }

/* --- Industry chips --- */
.chip-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--color-ink); font-weight: 600; box-shadow: var(--shadow); transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease; }
.chip .icon { color: var(--color-primary); width: 18px; height: 18px; }
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

/* --- Coverage band --- */
.coverage__inner { display: grid; gap: var(--space-5); align-items: center; }
.coverage__cities { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.coverage__cities a { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); text-decoration: none; color: var(--color-ink); font-weight: 500; transition: border-color 0.18s ease, background 0.18s ease; }
.coverage__cities a:hover { border-color: var(--color-primary); background: #fff; }
.coverage__cities .icon { color: var(--color-primary); width: 18px; height: 18px; }
@media (min-width: 860px) { .coverage__inner { grid-template-columns: 0.9fr 1.1fr; } }

/* --- CTA band depth --- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta-band__inner { position: relative; }

/* --- Numbered steps (styles markdown ordered lists in prose) --- */
.prose ol { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--space-3); }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }

/* Prose links get a clearer affordance */
.prose a { text-underline-offset: 2px; }

/* Founder / team photo figure */
.founder { margin: 0 0 var(--space-4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.founder img { width: 200px; height: 200px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-lg); border: 3px solid #fff; }
.founder figcaption { font-size: var(--text-sm); line-height: 1.35; }
.founder figcaption strong { display: block; font-family: var(--font-display); color: var(--color-ink); font-size: var(--text-base); }
.founder figcaption span { color: var(--color-muted); }
@media (min-width: 620px) {
  .founder { float: right; width: 220px; margin: 0.25rem 0 var(--space-3) var(--space-5); align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
