/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px -18px rgba(30, 27, 75, 0.35);
  --shadow-card: 0 24px 48px -32px rgba(30, 27, 75, 0.28);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1.25rem; }

/* === Layout === */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 720px; }
.section { padding-block: 4rem; }
.section-title { text-align: center; margin-bottom: 2.5rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: 1px solid rgba(30, 27, 75, 0.15);
  border-radius: 8px; padding: 0.4rem; color: var(--color-neutral-dark);
  display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column; gap: 0.25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #ffffff; border-bottom: 1px solid rgba(30, 27, 75, 0.08);
  padding: 0.75rem 1.25rem 1rem;
}
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(30, 27, 75, 0.06);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

/* === Hero (centered) === */
.hero { text-align: center; padding-block: 4rem 3rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 0 auto 1.75rem; font-size: 1.125rem; color: rgba(30, 27, 75, 0.75); }
.hero-cta { margin-bottom: 2.5rem; }
.hero-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  border-radius: 999px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--color-primary); color: #ffffff; }
.btn-primary:hover { background: #4F46E5; }
.btn-accent { background: var(--color-accent); color: #ffffff; }
.btn-accent:hover { background: #0e9f70; }

/* === Intro sections === */
.section-intro { padding-block: 3.5rem; }
.section-intro h2 { text-align: center; }
.section-intro p { font-size: 1.05rem; }
.section-intro.alt { background: var(--color-neutral-light); }

/* === Highlights grid === */
.section-highlights { padding-block: 4rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: #ffffff;
  border: 1px solid rgba(30, 27, 75, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: rgba(30, 27, 75, 0.78); font-size: 0.98rem; margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--color-neutral-light); color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.section-testimonial { padding-block: 3.5rem; background: var(--color-neutral-light); }
.section-testimonial blockquote { margin: 0; text-align: center; }
.section-testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--color-neutral-dark);
  margin-bottom: 1.25rem;
}
.section-testimonial cite { display: block; font-style: normal; color: rgba(30, 27, 75, 0.7); font-weight: 500; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff; padding-block: 3.5rem; text-align: center;
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 0.5rem; }

/* === FAQ === */
.section-faq { padding-block: 4rem; }
.faq details {
  border: 1px solid rgba(30, 27, 75, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #ffffff;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  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.4rem; color: var(--color-primary); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 0.75rem; color: rgba(30, 27, 75, 0.78); }

/* === Form === */
.section-form { padding-block: 3.5rem; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; color: var(--color-neutral-dark);
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30, 27, 75, 0.18);
  border-radius: 8px; background: #ffffff;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-consent {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.9rem; color: rgba(30, 27, 75, 0.78);
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(245, 243, 255, 0.85);
  padding-block: 3rem 1.5rem; margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h3 { color: #ffffff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a { color: rgba(245, 243, 255, 0.85); }
.site-footer a:hover { color: #ffffff; }
.tagline { font-family: var(--font-heading); font-style: italic; color: rgba(245, 243, 255, 0.75); margin-top: 0.5rem; }
.logo-footer img { height: 64px; }
.footer-contact address { font-style: normal; margin-bottom: 0.5rem; line-height: 1.6; }
.legal-links { margin-top: 0.75rem; font-size: 0.9rem; }
.copyright { border-top: 1px solid rgba(245, 243, 255, 0.12); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: rgba(245, 243, 255, 0.6); }

/* === 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.1rem 1.25rem; border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.45);
  max-width: 560px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(245, 243, 255, 0.25);
  background: transparent; color: var(--color-neutral-light);
  font-weight: 500; font-size: 0.9rem;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent); color: #ffffff;
}
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(245, 243, 255, 0.12); font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--color-accent); background: var(--color-accent); color: #ffffff;
  font-weight: 500;
}

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