/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --color-ink: #1E1B4B;
  --color-muted: #4B4A7A;
  --color-line: rgba(30, 27, 75, 0.12);
  --font-heading: 'Plus Jakarta Sans', 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(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(30, 27, 75, 0.35);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* === Base === */
*, *::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-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-neutral-dark); color: #fff;
  padding: .75rem 1rem; border-radius: 0 0 8px 0; z-index: 10000;
}
.skip-link:focus { left: 0; }

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

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 243, 255, 0.92);
  border-bottom-color: var(--color-line);
  box-shadow: 0 8px 24px -20px rgba(30, 27, 75, 0.35);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 0; padding: .5rem; cursor: pointer;
  color: var(--color-neutral-dark); border-radius: 8px;
}
.nav-toggle:hover { background: rgba(99, 102, 241, 0.1); }
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  gap: .25rem; border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
}
.primary-nav a {
  padding: .75rem .5rem; color: var(--color-neutral-dark);
  font-weight: 500; border-radius: 8px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(99, 102, 241, 0.1); color: var(--color-primary); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: #fff; text-align: center;
  margin-top: .5rem;
}
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: .25rem; padding: 0; background: transparent; box-shadow: none; border: 0;
  }
  .primary-nav a { padding: .6rem .9rem; font-size: .95rem; }
  .primary-nav .nav-cta { margin-top: 0; margin-left: .5rem; padding: .7rem 1.2rem; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer;
  border: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(99, 102, 241, 0.7); color: #fff; }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(16, 185, 129, 0.55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(16, 185, 129, 0.7); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border: 1px solid var(--color-line);
}
.btn-ghost:hover { background: rgba(99, 102, 241, 0.08); border-color: var(--color-primary); color: var(--color-primary); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (hero-card archetype) === */
.hero {
  position: relative; padding-block: 3rem 2rem;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(129, 140, 248, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(180deg, #ECEAFE 0%, var(--color-neutral-light) 100%);
}
.hero-card__panel {
  max-width: 880px; margin-inline: auto;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: left;
}
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-primary);
  margin: 0 0 .75rem;
}
.hero__sub {
  font-size: 1.1rem; color: var(--color-muted); max-width: 60ch;
  margin: 0 0 1.5rem;
}
.hero__cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.5rem; }
.hero-card__figure { margin: 1.5rem 0 0; border-radius: var(--radius-md); 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 3rem; }
  .hero-card__panel { padding: 3.5rem 3rem; }
}
@media (min-width: 1024px) {
  .hero-card__panel { padding: 4rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

.section--intro h2 { margin-bottom: 1rem; }
.section--intro p { color: var(--color-muted); font-size: 1.05rem; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Grid / cards === */
.grid { display: grid; gap: 1.25rem; 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); }
}

.card {
  background: #fff; padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column; gap: .25rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, 0.35); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.2));
  color: var(--color-primary); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .97rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--color-primary); }

/* === Testimonial === */
.section--quote { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6), transparent); }
.testimonial {
  margin: 0; padding: 2.5rem 1.5rem; text-align: center;
  border-left: 3px solid var(--color-accent);
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.testimonial p {
  font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5;
  color: var(--color-neutral-dark); margin: 0 0 1rem; font-weight: 500;
}
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: .95rem; }
@media (min-width: 768px) {
  .testimonial { padding: 3rem 2.5rem; }
  .testimonial p { font-size: 1.5rem; }
}

/* === CTA band === */
.cta-band {
  padding-block: 3rem;
}
.cta-band__inner {
  background: linear-gradient(135deg, var(--color-neutral-dark), #3730A3);
  color: #fff; text-align: center;
  padding: 3rem 1.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(16, 185, 129, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band__inner h2 { color: #fff; margin-bottom: .75rem; position: relative; }
.cta-band__inner p { color: rgba(255, 255, 255, 0.82); max-width: 55ch; margin-inline: auto; position: relative; }
.cta-band__inner .btn { margin-top: .5rem; position: relative; }
.contact-band__meta { font-size: .95rem; }

@media (min-width: 768px) {
  .cta-band__inner { padding: 4rem 3rem; }
}

/* === Split section === */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__figure img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.split__text p { color: var(--color-muted); font-size: 1.05rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* === Contact form === */
.contact-form {
  background: #fff; padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 500; font-size: .92rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--color-line); border-radius: 10px;
  background: var(--color-neutral-light); color: var(--color-neutral-dark);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: .25rem; }
.contact-form .btn { align-self: flex-start; }
@media (min-width: 640px) { .contact-form { padding: 2.25rem; } }

/* === Hours table === */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--color-line); font-size: .95rem; }
.hours-table th { font-weight: 500; color: var(--color-neutral-dark); font-family: var(--font-body); }
.hours-table td { color: var(--color-muted); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: #E5E4F5;
  padding-block: 3rem 1.5rem; margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #C7C5E8; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-tagline { color: #C7C5E8; margin-top: 1rem; font-size: .95rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { font-size: .95rem; }
.footer-contact address { font-style: normal; line-height: 1.7; font-size: .95rem; color: #C7C5E8; }
.footer-legal-links { margin-top: 1rem; font-size: .88rem; }
.logo--footer img { height: 60px; filter: brightness(0) invert(1) opacity(.95); }
.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: .85rem; color: #A5A3D4;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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; border-radius: var(--radius-md);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px; margin-inline: auto;
  font-size: .92rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .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: .5rem; font-size: .9rem; }
.cookie-banner__prefs .btn { margin-top: .5rem; align-self: flex-start; }

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