:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #F97316;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-card: 0 30px 60px -30px rgba(30, 27, 75, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(30, 27, 75, 0.25);
  --max-w: 1180px;
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #ffffff;
  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 { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-neutral-dark); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #ea6a11; color: #fff; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { text-decoration: none; border-bottom-color: var(--color-accent); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-neutral-dark);
  border-radius: 2px;
}

/* === Hero (hero-card) === */
.hero.hero-card {
  padding: 3rem 1.25rem 2rem;
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(129, 140, 248, 0.20), transparent 60%),
    radial-gradient(45% 60% at 85% 80%, rgba(249, 115, 22, 0.12), transparent 60%),
    var(--color-neutral-light);
}
.hero-card__card {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.hero-card__card h1 { max-width: 22ch; }
.hero__sub {
  font-size: 1.125rem;
  color: rgba(30, 27, 75, 0.75);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero__cta { margin-bottom: 2rem; }
.hero-card__figure {
  margin: 2rem 0 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.hero-card__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Sections === */
.section {
  padding: 4rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--narrow {
  max-width: 760px;
}
.section--narrow p { font-size: 1.075rem; }
.section--muted {
  max-width: none;
  background: var(--color-neutral-light);
}
.section--muted > .section__head,
.section--muted > .grid,
.section--muted > .faq,
.section--muted > form {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.section--muted.section--narrow {
  max-width: none;
}
.section--muted.section--narrow > h2,
.section--muted.section--narrow > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section__head { margin-bottom: 2.5rem; max-width: 60ch; }
.section__sub {
  font-size: 1.05rem;
  color: rgba(30, 27, 75, 0.7);
  margin: 0;
}

/* === Grid & Cards === */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(30, 27, 75, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: rgba(30, 27, 75, 0.78); margin: 0; }

/* === Quote === */
.section--quote {
  padding: 4rem 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section--quote blockquote {
  margin: 0;
  position: relative;
}
.section--quote blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-neutral-dark);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.section--quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(30, 27, 75, 0.65);
  letter-spacing: 0.02em;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
.cta-band__inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.075rem; }
.cta-band .btn--accent { margin-top: 0.75rem; }

/* === FAQ === */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid rgba(30, 27, 75, 0.1);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  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: "+";
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 1rem 0 0; color: rgba(30, 27, 75, 0.78); }

/* === Contact form === */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-row label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(30, 27, 75, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: rgba(30, 27, 75, 0.8);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.45;
}
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 2rem;
}
.site-footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.site-footer .logo img {
  height: 64px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.site-footer .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32ch;
}
.footer__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer nav ul,
.site-footer .legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer nav li,
.site-footer .legal-links li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1.25rem !important; padding-top: 1rem !important; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.copyright {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  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-md);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner button {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 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;
  font-weight: 500;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.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);
}

/* === Responsive === */
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card__card { padding: 3.5rem 3rem; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 3rem; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-footer .logo img { height: 80px; }
  .hero.hero-card { padding: 5rem 2rem 3rem; }
  .hero-card__card { padding: 4rem; }
  .section { padding: 6rem 2rem; }
  .section--muted { padding: 6rem 2rem; }
  .section--quote { padding: 6rem 2rem; }
  .cta-band { padding: 6rem 2rem; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(30, 27, 75, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 400px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  }
}
