: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, sans-serif;
  --radius: 12px;
  --shadow-lg: 0 30px 60px -30px rgba(30, 27, 75, 0.35);
  --shadow-sm: 0 4px 20px -8px rgba(30, 27, 75, 0.18);
  --max: 1200px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.125rem; color: #4b4972; }

/* === Layout helpers === */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header .lede { max-width: 55ch; margin-inline: auto; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.primary-nav { display: none; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.primary-nav a:hover { background: var(--color-neutral-light); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px; border-radius: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(30,27,75,0.08); gap: .25rem; }

/* === Hero (fullscreen archetype) === */
.hero--fullscreen {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--color-neutral-light);
  text-align: center;
  padding: 5rem 1.25rem;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(rgba(30,27,75,0.55), rgba(30,27,75,0.75)); z-index: 1; }
.hero__overlay--solid { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); }
.hero--plain { background: var(--color-neutral-dark); }
.hero__content { position: relative; z-index: 2; max-width: 780px; }
.hero__content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero__sub { color: rgba(238, 242, 255, 0.92); font-size: 1.15rem; max-width: 55ch; margin-inline: auto; margin-bottom: 2rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #3f37c7; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #e5651a; }
.btn--ghost { background: transparent; color: var(--color-neutral-light); border-color: rgba(238,242,255,0.5); }

/* === Intro sections === */
.section--intro { text-align: left; }
.section--intro h2 { text-align: left; }
.section--intro .lede { margin-bottom: 1.5rem; }
.section--intro.alt { background: var(--color-neutral-light); }

/* === Grid + cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid rgba(30,27,75,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: #4b4972; margin: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.section--testimonial { background: var(--color-neutral-light); }
.testimonial { margin: 0; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--color-neutral-dark); margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-primary); font-weight: 500; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; max-width: 55ch; margin-inline: auto; }

/* === Contact band === */
.contact-band { background: var(--color-neutral-light); }
.contact-details { display: grid; gap: 1rem; margin: 1.5rem 0; }
.contact-details > div { border-left: 3px solid var(--color-accent); padding-left: 1rem; }
.contact-details dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); font-weight: 600; margin-bottom: 0.25rem; }
.contact-details dd { margin: 0; font-size: 1.05rem; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(30,27,75,0.2);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-secondary); border-color: var(--color-primary); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: #4b4972; }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: rgba(238,242,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; color: rgba(238,242,255,0.85); line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(238,242,255,0.75); font-style: italic; margin-top: 0.5rem; }
.legal-links { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.copyright { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: rgba(238,242,255,0.65); border-top: 1px solid rgba(238,242,255,0.1); padding-top: 1.5rem; }

/* === 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: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button {
  font: inherit; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(238,242,255,0.3); background: transparent; color: var(--color-neutral-light);
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #e5651a; }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(238,242,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* === Responsive === */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .contact-details { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .site-header { padding: 1rem 2rem; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 0.25rem; align-items: center; }
  .section { padding-block: 6rem; }
  .hero--fullscreen { padding: 7rem 2rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; }
  .container { padding-inline: 2rem; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
