:root {
  --color-primary: #4F46E5;
  --color-secondary: #6366F1;
  --color-accent: #F97316;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-card: 18px;
  --shadow-soft: 0 2px 20px rgba(49, 46, 129, 0.08);
  --shadow-hover: 0 20px 60px -20px rgba(49, 46, 129, 0.35);
  --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-neutral-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 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; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.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; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: rgba(79,70,229,.25); }
.btn-ghost:hover { background: var(--color-neutral-light); }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(49,46,129,0.08);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 4px 20px rgba(49,46,129,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav { display: none; gap: 1.75rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; position: relative; padding: 0.25rem 0; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle {
  background: transparent; border: 1px solid rgba(49,46,129,0.15); border-radius: 10px;
  padding: 0.5rem; color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav.is-open { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 0 1.5rem; width: 100%; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; flex-direction: row; }
  .nav-toggle { display: none; }
}

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(249,115,22,0.10), transparent 60%),
              linear-gradient(180deg, var(--color-neutral-light), #ffffff 70%);
  padding-block: 3.5rem 4rem;
}
.hero-inner { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  background: var(--color-neutral-light); padding: 0.4rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 58ch; margin: 1.25rem auto 2rem; font-size: 1.15rem; color: rgba(49,46,129,0.78); }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-image { max-width: 1000px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-hover); }
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

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

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5.5rem; } }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head p { color: rgba(49,46,129,0.7); font-size: 1.05rem; }

/* === Grids === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === Cards === */
.card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius-card);
  border: 1px solid rgba(49,46,129,0.08); box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin-top: 0.75rem; }
.card p { color: rgba(49,46,129,0.78); margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}

/* === Stats === */
.stats-section { background: var(--color-neutral-light); }
.stat-card { background: #fff; text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.stat-value { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-accent); margin-bottom: 0.5rem; }

/* === Testimonials === */
.section-quote { background: linear-gradient(180deg, #fff, var(--color-neutral-light)); }
.testimonial {
  max-width: 780px; margin: 0 auto; text-align: center; padding: 2.5rem 1.25rem;
}
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.4; font-weight: 500; color: var(--color-neutral-dark); }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; color: rgba(49,46,129,0.7); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 3.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

/* === FAQ === */
.faq details {
  border: 1px solid rgba(49,46,129,0.10);
  border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
  background: #fff; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--color-primary); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.75rem; color: rgba(49,46,129,0.78); }

/* === Contact === */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius-card);
  border: 1px solid rgba(49,46,129,0.08); box-shadow: var(--shadow-soft);
}
.contact-card address { font-style: normal; margin-bottom: 0.75rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(49,46,129,0.06); font-size: 0.95rem; }
.hours li:last-child { border-bottom: none; }
.map-block {
  border-radius: var(--radius-card); overflow: hidden; background: var(--color-neutral-light);
  border: 1px solid rgba(49,46,129,0.08); aspect-ratio: 16 / 6;
}
.map-block img { width: 100%; height: 100%; object-fit: cover; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(49,46,129,0.20);
  background: #fff; color: var(--color-neutral-dark);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}
.contact-form button { margin-top: 1.25rem; align-self: flex-start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(238,242,255,0.85);
  padding-block: 3rem 1.5rem; margin-top: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(238,242,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.logo-footer img { height: 60px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-nav, .legal-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.legal-nav { margin-top: 1rem; flex-direction: row; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.copyright {
  border-top: 1px solid rgba(238,242,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: 0.85rem; color: rgba(238,242,255,0.6); text-align: center;
}

/* === 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: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.95rem; color: rgba(238,242,255,0.9); }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(238,242,255,0.25);
  background: transparent; color: var(--color-neutral-light); cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-neutral-light); color: var(--color-neutral-dark); border-color: var(--color-neutral-light); }

/* === Scroll 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; }
  html { scroll-behavior: auto; }
}
