:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: rgba(9,9,11,0.10);
  --color-tint: #F4F4F7;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(9,9,11,0.06);
  --shadow-md: 0 10px 30px -10px rgba(9,9,11,0.15);
  --shadow-lg: 0 30px 60px -25px rgba(9,9,11,0.30);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-neutral-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s var(--ease-hover); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }
.text-center { text-align: center; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-accent); font-weight: 600; margin: 0 0 1rem; }
.lead { color: var(--color-secondary); font-size: 1.1rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-hover), box-shadow .3s var(--ease-hover), border-color .3s var(--ease-hover);
}
.site-header.scrolled { background: rgba(250,250,250,0.92); border-bottom-color: var(--color-border); box-shadow: 0 4px 20px -12px rgba(9,9,11,0.15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 72px; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 80px; }
}

.primary-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; color: var(--color-primary); font-weight: 500; font-size: 0.95rem; padding: .25rem 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-hover); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: transform .25s var(--ease-hover), opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-neutral-light);
    border-bottom: 1px solid var(--color-border);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.25rem; }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: .9rem 0; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .95rem 1.6rem;
  border-radius: 999px; font-family: var(--font-heading);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform .2s var(--ease-hover), box-shadow .25s var(--ease-hover), background .2s;
  cursor: pointer; border: 0;
}
.btn--primary, .btn--accent {
  background: linear-gradient(135deg, var(--color-accent), #1E3A8A);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(37,99,235,0.55);
}
.btn--primary:hover, .btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37,99,235,0.6); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); border: 1px solid var(--color-border); }

/* === Hero (centered) === */
.hero {
  position: relative; overflow: hidden;
  padding-block: 4rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37,99,235,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.08), transparent 60%),
    var(--color-neutral-light);
}
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }
.hero .eyebrow { margin-inline: auto; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin-inline: auto; color: var(--color-secondary); font-size: 1.15rem; margin-block: 1.25rem 1.75rem; }
.hero__cta { margin-bottom: 3rem; }
.hero__figure { margin: 3rem auto 0; max-width: 1100px; }
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* === Sections === */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 5.5rem; } }
.section--tint { background: var(--color-tint); }
.section__head { margin-bottom: 2.5rem; }
.section__head .lead { max-width: 56ch; margin-inline: auto; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(37,99,235,0.10); color: var(--color-accent);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-secondary); margin-bottom: 0; }
.card--portrait img { aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }

/* === Split (image + text) === */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split__figure img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* === Quote === */
.quote { margin: 0; padding: 2rem 1rem; position: relative; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--color-primary); line-height: 1.5; font-weight: 500; }
.quote cite { display: block; font-style: normal; color: var(--color-secondary); font-size: 0.95rem; margin-top: 1rem; }

/* === CTA band === */
.cta-band {
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-primary), #27272A);
  color: var(--color-neutral-light);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(250,250,250,0.82); max-width: 56ch; margin-inline: auto; }
.cta-band .btn--accent { margin-top: .75rem; }

/* === FAQ === */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .25s var(--ease-hover);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--color-accent); transition: transform .25s var(--ease-hover); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: .75rem; color: var(--color-secondary); }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; background: var(--color-surface); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--color-primary); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-neutral-light);
  color: var(--color-primary);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: 0.9rem; color: var(--color-secondary); }
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250,250,250,0.75); padding-block: 3.5rem 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: rgba(250,250,250,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-tag { color: rgba(250,250,250,0.65); margin-top: 0.75rem; max-width: 32ch; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(250,250,250,0.10); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgba(250,250,250,0.55); }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .site-header { transition: none; } html { scroll-behavior: auto; } }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-heading); font-weight: 500; font-size: 0.88rem;
  padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(250,250,250,0.10); color: var(--color-neutral-light);
  transition: background .2s;
}
.cookie-banner button:hover { background: rgba(250,250,250,0.20); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #1D4ED8; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { background: var(--color-accent); color: #fff; margin-top: .5rem; justify-self: start; }
