:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.10);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

/* === Base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; left: -9999px; }

/* === Layout — sidebar-nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: .5rem;
  color: var(--color-primary);
  cursor: pointer;
}
.primary-nav { width: 100%; display: none; }
.primary-nav.is-open { display: block; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.primary-nav a {
  display: block;
  padding: .65rem .25rem;
  text-decoration: none;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.sidebar-foot { display: none; }

.content { padding: 1.5rem 1.25rem 0; max-width: 100%; }

/* === Hero === */
.hero.hero-sidebar {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: .75rem;
}
.hero h1 { max-width: 22ch; }
.lede {
  font-size: 1.125rem;
  color: var(--color-secondary);
  max-width: 55ch;
  margin-bottom: 1.75rem;
}
.hero-cta { margin-bottom: 2rem; }
.hero-img {
  margin: 2rem 0 0;
  overflow: hidden;
  border-radius: 4px;
}
.hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
}
.btn-primary:hover { background: var(--color-secondary); color: var(--color-neutral-light); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-light);
}
.btn-accent:hover { background: #a06f03; color: var(--color-neutral-light); }

/* === Sections === */
.section { padding: 2.5rem 0; }
.narrow { max-width: 65ch; }
.narrow-p { max-width: 65ch; color: var(--color-secondary); }

/* === Grids === */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  border-radius: 4px;
}
.card h3 { margin-top: .5rem; }
.card p { color: var(--color-secondary); margin-bottom: 0; }
.icon { color: var(--color-accent); display: block; margin-bottom: .5rem; }

/* === Testimonial === */
.testimonial-section { text-align: center; padding: 3rem 0; }
.testimonial {
  margin: 0 auto;
  max-width: 60ch;
  padding: 1rem;
  font-family: var(--font-heading);
}
.testimonial p {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-primary);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 4px;
  margin: 2.5rem 0;
}
.cta-band h2 { color: var(--color-neutral-light); max-width: 30ch; margin-inline: auto; }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 55ch; margin-inline: auto; }
.cta-band .btn { margin-top: .5rem; }

/* === FAQ === */
.faq { margin-top: 1.5rem; max-width: 65ch; }
.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.faq summary {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
  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-accent);
  font-family: var(--font-body);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-secondary); }

/* === Contact form === */
.contact-form { max-width: 60ch; margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.field label {
  font-weight: 700;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--color-primary);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #fff;
  color: var(--color-primary);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-consent {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--color-secondary);
  margin: 1rem 0 1.5rem;
  line-height: 1.4;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.site-footer nav ul, .legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.site-footer nav a, .legal-links a {
  text-decoration: none;
  color: var(--color-secondary);
}
.site-footer nav a:hover, .legal-links a:hover { color: var(--color-accent); }
.legal-links { margin-top: 1rem; font-size: .875rem; }
.copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--color-secondary);
}

/* === 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: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 640px;
  margin-inline: auto;
  font-size: .9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .75rem; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-body);
  font-size: .85rem;
  padding: .55rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-light);
  border-color: var(--color-accent);
  font-weight: 700;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cookie-banner__prefs label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-neutral-light);
}
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; }

/* === Desktop (>= 900px) === */
@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--color-border);
    border-bottom: none;
    gap: 1.5rem;
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: 100%; }
  .primary-nav ul { padding: 0; }
  .primary-nav a { border-bottom: none; padding: .4rem 0; }
  .primary-nav a:hover { color: var(--color-primary); }
  .sidebar-foot {
    display: block;
    margin-top: auto;
    font-size: .75rem;
    color: var(--color-secondary);
  }
  .content { padding: 3rem 3.5rem 0; max-width: 1100px; }
  .hero.hero-sidebar { padding: 3rem 0 4rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 2fr 1fr 2fr; }
  .section { padding: 3rem 0; }
  .cta-band { padding: 4rem 2rem; }
}

@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
