/* === Tokens === */
:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #F59E0B;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #F8FAFC;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(30, 58, 138, 0.14);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 64, 175, 0.28);
  --radius: 16px;
  --radius-lg: 24px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-neutral-light); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
blockquote { margin: 0; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 3.5rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; max-width: 720px; margin-inline: auto; }
.section-head .sub { color: var(--color-muted); font-size: 1.05rem; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); margin: 0 0 1rem; }
.sub { color: var(--color-muted); }
.center { text-align: center; }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header.scrolled { background: rgba(248, 250, 252, 0.92); box-shadow: 0 6px 24px -12px rgba(30, 58, 138, 0.18); border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo-footer img { height: 64px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-neutral-dark); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; flex-direction: column; gap: 0.25rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--color-border); }
.primary-nav a { position: relative; display: inline-block; padding: 0.6rem 0; font-weight: 500; color: var(--color-neutral-dark); }
.primary-nav a:hover { text-decoration: none; color: var(--color-primary); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { color: var(--color-primary); font-weight: 600; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; background: transparent; box-shadow: none; border-top: none; }
  .primary-nav a { padding: 0.25rem 0; }
  .primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
  .primary-nav a:not(.nav-cta):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--color-primary); color: #fff; }
  .primary-nav .nav-cta:hover { background: var(--color-neutral-dark); text-decoration: none; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 64, 175, 0.55); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(30, 64, 175, 0.65); }
.btn-accent { background: var(--color-accent); color: #1a1204; box-shadow: 0 10px 24px -12px rgba(245, 158, 11, 0.6); }
.btn-accent:hover { background: #eab308; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn-ghost:hover { background: rgba(30, 58, 138, 0.06); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* === Hero card === */
.hero { padding-block: 3rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 80%; background: radial-gradient(ellipse at 30% 30%, rgba(59, 130, 246, 0.18), transparent 60%), radial-gradient(ellipse at 70% 40%, rgba(245, 158, 11, 0.14), transparent 55%); z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero-card__inner { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.25rem 1.5rem; box-shadow: var(--shadow-lg); text-align: left; }
.hero-card__inner h1 { margin-top: 0.5rem; }
.hero-card__inner .lede { font-size: 1.1rem; color: var(--color-muted); max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-card__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 5rem 6rem; }
  .hero-card__inner { padding: 3.5rem 3rem; }
  .hero-card__inner .lede { font-size: 1.2rem; }
}

/* === Intro === */
.intro h2 { text-align: center; }
.intro .sub { text-align: center; margin-bottom: 1.5rem; font-size: 1.1rem; }
.intro p { color: var(--color-text); font-size: 1.05rem; line-height: 1.75; }

/* === Highlights grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); color: inherit; text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(30, 64, 175, 0.28); text-decoration: none; }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.18)); color: var(--color-primary); margin-bottom: 1rem; }
.card-link { position: relative; }
.card-link::after { content: "→"; position: absolute; top: 1.75rem; right: 1.75rem; font-size: 1.1rem; color: var(--color-primary); opacity: 0; transform: translateX(-4px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.card-link:hover::after { opacity: 1; transform: translateX(0); }

/* === Testimonial === */
.testimonial { background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05) 40%, transparent); }
.testimonial h2 { text-align: center; }
.testimonial blockquote { background: #fff; border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); border-left: 4px solid var(--color-accent); position: relative; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; color: var(--color-neutral-dark); line-height: 1.55; margin-bottom: 1.25rem; }
.testimonial blockquote cite { display: block; font-style: normal; font-weight: 600; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { padding-block: 4rem; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 55%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 620px; margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band .contact-line { font-size: 0.95rem; }
.cta-band .contact-line a { color: var(--color-accent); }

/* === Form === */
.form-section h2 { text-align: center; }
.form-section .sub { text-align: center; margin-bottom: 2rem; }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea, .form-row select { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.75); font-style: italic; margin-top: 0.75rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright { padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }

/* === 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.25rem 1rem; border-radius: var(--radius); box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5); max-width: 640px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn-primary { background: var(--color-accent); color: #1a1204; box-shadow: none; }
.cookie-banner__actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.35rem; }
@media (min-width: 640px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.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; } html { scroll-behavior: auto; } }
