/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4B4A6A;
  --color-line: rgba(30, 27, 75, 0.12);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 50px -30px rgba(30, 27, 75, 0.35);
  --container: 1180px;
}

/* === Base === */
*, *::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-text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -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); line-height: 1.2; margin: 0 0 .75rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 10px 24px -12px rgba(99, 102, 241, .7); }
.btn-primary:hover { background: #4F46E5; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(16, 185, 129, .7); }
.btn-accent:hover { background: #0EA372; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; flex-direction: column; gap: .25rem; }
.primary-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 20px 40px -30px rgba(30,27,75,.3);
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: .6rem 0;
  border-bottom: 1px solid var(--color-line);
}
.primary-nav a:hover { color: var(--color-primary); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; gap: 2rem; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .primary-nav a { border: 0; padding: 0; }
  .logo img { height: 96px; }
}

/* === Hero (split) === */
.hero { padding-block: 3rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-copy .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy .lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin-bottom: 1.75rem; }
.hero-copy.full { max-width: 60ch; margin-inline: auto; text-align: center; }
.hero-image img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }
.hero.thanks { padding-block: 5rem 2rem; text-align: center; }
@media (min-width: 768px) {
  .hero { padding-block: 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section.narrow .container { max-width: 780px; }
.band-soft { background: var(--color-neutral-light); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head.left { text-align: left; margin-bottom: 1.5rem; }
.section-head .sub { color: var(--color-muted); font-size: 1.05rem; margin: 0 auto; max-width: 55ch; }
.section-head.left .sub { margin: 0; }
.prose { font-size: 1.05rem; color: var(--color-text); line-height: 1.75; }
.section.narrow .prose { max-width: 65ch; margin-inline: auto; }

/* === Split block === */
.split-block { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.split-image img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }
@media (min-width: 900px) {
  .split-block { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

/* === Grid & Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(99,102,241,.35); }
.card .icon { color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--color-muted); font-size: .97rem; margin: 0; }

/* === Testimonial === */
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0; padding: 0; }
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
  font-style: italic;
}
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: .95rem; color: var(--color-muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* === CTA band === */
.cta-band { background: var(--color-neutral-dark); color: #fff; padding-block: 3.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band .muted { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .5rem; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) {
  .cta-inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}

/* === Form === */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  font: inherit;
  padding: .8rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-light); padding-block: 3rem 1.5rem; border-top: 1px solid var(--color-line); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--color-neutral-dark); }
.site-footer .tagline { color: var(--color-muted); font-size: .95rem; margin-top: .5rem; }
.site-footer address { font-style: normal; color: var(--color-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line); font-size: .85rem; color: var(--color-muted); }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  max-width: 560px;
  margin-inline: auto;
  font-size: .92rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button {
  font: inherit;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--color-neutral-light);
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,.08); }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #0EA372; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .6rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: .25rem; }
