:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #F59E0B;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #F8FAFC;
  --color-text: #0F172A;
  --color-muted: #475569;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px -18px rgba(30, 58, 138, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(30, 58, 138, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 780px; margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Buttons === */
.btn { display: inline-block; padding: 0.9rem 1.6rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 30px -12px rgba(30, 64, 175, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(30, 64, 175, 0.7); color: #fff; }
.btn-accent { background: var(--color-accent); color: #1a1300; box-shadow: 0 10px 30px -12px rgba(245, 158, 11, 0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(245, 158, 11, 0.7); color: #1a1300; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(30, 58, 138, 0.25); }
.btn-ghost:hover { background: rgba(30, 58, 138, 0.06); color: var(--color-neutral-dark); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Header (glass nav) === */
.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 rgba(30, 58, 138, 0.08);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { background: rgba(248, 250, 252, 0.92); box-shadow: 0 8px 30px -20px rgba(30, 58, 138, 0.3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: 0; color: var(--color-neutral-dark); padding: 0.5rem; cursor: pointer; }
.primary-nav { display: none; flex-direction: column; gap: 0.25rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem; border-bottom: 1px solid rgba(30, 58, 138, 0.08); box-shadow: 0 12px 30px -18px rgba(30, 58, 138, 0.35); }
.primary-nav a { padding: 0.6rem 0.25rem; color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 500; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; gap: 1.75rem; position: static; padding: 0; background: none; box-shadow: none; border: 0; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .logo img { height: 96px; }
}

/* === Hero centered === */
.hero { position: relative; padding-block: 4rem 3rem; text-align: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -20% 0 auto 0; height: 80%;
  background: radial-gradient(60% 70% at 50% 20%, rgba(245, 158, 11, 0.12), transparent 60%),
              radial-gradient(80% 80% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%);
  z-index: -1;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin: 0 auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero__visual { max-width: 1080px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

.intro { text-align: center; }
.intro h2 { max-width: 28ch; margin-inline: auto; }
.intro p { color: var(--color-muted); font-size: 1.05rem; }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .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); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.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: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.98rem; }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05)); }
.testimonial { text-align: center; margin: 0; padding: 2rem 0; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--color-neutral-dark); line-height: 1.5; margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; letter-spacing: 0.02em; }
.testimonial-with-portrait { display: grid; gap: 2rem; align-items: center; }
.testimonial__portrait { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-inline: auto; box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .testimonial-with-portrait { grid-template-columns: 180px 1fr; } .testimonial-with-portrait .testimonial { text-align: left; } .testimonial__portrait { margin-inline: 0; } }

/* === CTA band === */
.cta-band {
  text-align: center;
  padding: 4rem 1.25rem;
  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(50% 60% at 80% 20%, rgba(245, 158, 11, 0.25), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin-inline: auto; }

/* === FAQ === */
.faq-list details { border: 1px solid rgba(30, 58, 138, 0.1); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; transition: box-shadow .2s var(--ease); }
.faq-list details[open] { box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--color-primary); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(30, 58, 138, 0.08); }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 0.9rem; border: 1px solid rgba(30, 58, 138, 0.2); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--color-primary); 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); }
.form-consent input { margin-top: 0.25rem; }
.contact-form button[type="submit"] { justify-self: start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.82); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.logo--footer img { height: 64px; width: auto; filter: brightness(0) invert(1); }
.footer__tag { color: rgba(255, 255, 255, 0.7); margin-top: 1rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact address { font-style: normal; margin-bottom: 0.75rem; }
.footer-legal { font-size: 0.88rem; margin-top: 1rem; }
.copyright { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* === 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; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.cookie-banner__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.3); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-neutral-light); }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs button { margin-top: 0.5rem; justify-self: start; }

/* === Reveal === */
.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; } }
