/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1F1147;
  --color-muted: #6B5B95;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(31, 17, 71, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-ink); background: var(--color-neutral-light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.02em; 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; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

/* === Header (glass nav) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }

.nav-toggle { background: none; border: 0; color: var(--color-neutral-dark); padding: .5rem; cursor: pointer; }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; }
.primary-nav a { display: block; padding: .75rem 1rem; color: var(--color-ink); 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; gap: .5rem; align-items: center; }
  .primary-nav a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .4rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .logo img { height: 96px; }
}
@media (max-width: 899px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); padding: 1rem; }
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 4rem;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.04) 60%, transparent);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin-inline: auto; font-size: 1.15rem; color: var(--color-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.hero__image { width: 100%; max-width: 1080px; margin-top: 3.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero--inner { padding-block: 3rem 2rem; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }

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

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-heading); font-weight: 500; font-size: 1rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
}
.btn--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(124, 58, 237, 0.6); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-neutral-dark); }
.btn--ghost:hover { background: var(--color-neutral-dark); color: #fff; transform: translateY(-2px); }
.btn--link { background: none; color: var(--color-neutral-dark); padding: .5rem .75rem; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

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

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

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

/* === Cards === */
.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s 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(124, 58, 237, 0.12), rgba(34, 197, 94, 0.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .95rem; margin: 0; }

/* === Intro split === */
.intro-split__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.intro-split__image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 639px) { .intro-split__image { aspect-ratio: auto; } .intro-split__image img { aspect-ratio: 16/10; } }

/* === Testimonial === */
.testimonial { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.08)); }
.testimonial blockquote { margin: 0; text-align: center; position: relative; padding: 2rem 1rem; }
.testimonial .quote-mark { color: var(--color-secondary); opacity: .5; margin-bottom: 1rem; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--color-neutral-dark); line-height: 1.45; max-width: 42ch; margin: 0 auto 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band__inner { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding: 3rem 2rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band__inner h2 { color: #fff; }
.cta-band__inner p { color: rgba(255,255,255,0.85); max-width: 48ch; margin: 0 auto 1.5rem; }
.cta-band__inner .btn--primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35); }
.cta-band__inner .btn--primary:hover { background: var(--color-accent); color: #fff; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); 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.5rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--color-muted); margin-top: .75rem; margin-bottom: 0; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; background: #fff; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: .8rem 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }

/* === 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.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-block: 3rem 1.5rem; margin-top: 4rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.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; }
.site-footer__grid { gap: 2.5rem; }
.site-footer__tagline { color: rgba(255,255,255,0.75); max-width: 28ch; }
.site-footer__legal { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.site-footer__legal a { font-size: .9rem; }
.site-footer__copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; margin-top: 2rem; font-size: .85rem; color: rgba(255,255,255,0.65); }
.logo--footer img { height: 64px; filter: brightness(0) invert(1); }
.site-footer ul li { margin-bottom: .35rem; }

/* === 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-md);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn--primary { background: var(--color-accent); color: #fff; }
.cookie-banner__actions .btn--primary:hover { background: #16a34a; color: #fff; }
.cookie-banner__actions .btn--ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.4); }
.cookie-banner__actions .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cookie-banner__actions .btn--link { color: var(--color-neutral-light); }
.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; }

/* === Reveal (scroll-in) === */
.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; }
}
