/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --radius: 12px;
  --maxw: 1120px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
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);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
p { margin: 0 0 1rem; }

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.narrow { max-width: 720px; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--color-neutral-dark); display: block;
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: .75rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1.25rem;
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

/* === Hero (hero-centered) === */
.hero {
  text-align: center;
  padding-block: 3.5rem 2rem;
}
.hero .eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 28ch;
  margin: 0 auto 1.25rem;
  font-weight: 600;
}
.hero-sub {
  max-width: 52ch;
  margin: 0 auto 1.75rem;
  color: rgba(30, 27, 75, 0.72);
  font-size: 1.125rem;
}
.hero-cta { margin-bottom: 2.5rem; }
.hero-figure { margin: 2rem 0 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(30,27,75,.4); }
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); }

/* === Sections === */
.section {
  padding-block: 3.5rem;
}
.section-alt { background: #F3EEFA; }
.section-intro h2 { text-align: center; }
.section-intro p {
  max-width: 60ch;
  margin-inline: auto;
  font-size: 1.075rem;
  color: rgba(30, 27, 75, 0.82);
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.section-sub {
  color: rgba(30, 27, 75, 0.7);
  max-width: 50ch;
  margin: 0 auto;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* === Cards === */
.card {
  background: var(--color-neutral-light);
  border: 1px solid rgba(30, 27, 75, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.section-alt .card { background: #fff; }
.card .icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: .6rem;
}
.card p { margin: 0; color: rgba(30, 27, 75, 0.78); font-size: .98rem; }

/* === Testimonial === */
.section-testimonial {
  padding-block: 4rem;
}
.section-testimonial blockquote {
  margin: 0;
  text-align: center;
  position: relative;
  padding: 1rem 0;
}
.section-testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--color-neutral-dark);
  margin-bottom: 1.25rem;
}
.section-testimonial blockquote cite {
  font-style: normal;
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-primary);
  letter-spacing: .02em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  text-align: center;
  padding-block: 3.5rem;
}
.cta-band h2 {
  color: var(--color-neutral-light);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: .75rem;
}
.cta-band p { max-width: 52ch; margin: 0 auto 1.5rem; color: rgba(250, 245, 255, 0.9); }
.cta-band .contact-line { font-size: .95rem; }
.cta-band a { color: var(--color-neutral-light); text-decoration: underline; }
.cta-band .btn { text-decoration: none; }

/* === FAQ === */
.faq details {
  border-bottom: 1px solid rgba(30, 27, 75, 0.12);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.5rem; color: var(--color-primary); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: rgba(30, 27, 75, 0.78); }

/* === Contact card === */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  font-style: normal;
  border: 1px solid rgba(30, 27, 75, 0.08);
}
.contact-card p { margin-bottom: .6rem; }
.contact-card p:last-child { margin-bottom: 0; }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  font: inherit;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 27, 75, 0.2);
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: rgba(30, 27, 75, 0.78);
  flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.tagline { font-family: var(--font-heading); font-style: italic; color: rgba(250,245,255,.7); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(250, 245, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; font-size: .95rem; color: rgba(250, 245, 255, 0.85); margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: .88rem; }
.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 245, 255, 0.12);
  color: rgba(250, 245, 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: var(--radius);
  box-shadow: 0 20px 50px -20px 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: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner button {
  font: inherit;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250,245,255,.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}
.cookie-banner button[data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .88rem;
}
.cookie-banner__prefs label {
  display: flex; gap: .5rem; align-items: center;
}
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: .5rem;
}

/* === Responsive === */
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .footer-logo img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 1.75rem;
  }
  .hero { padding-block: 6rem 3rem; }
  .section { padding-block: 5rem; }
  .cta-band { padding-block: 5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; }
}
@media (min-width: 1024px) {
  .grid-3 { gap: 2rem; }
}
