/* === Tokens === */
:root {
  --color-primary: #15803D;
  --color-secondary: #22C55E;
  --color-accent: #0369A1;
  --color-neutral-dark: #14532D;
  --color-neutral-light: #F0FDF4;
  --color-page: #FFFFFF;
  --color-text: #1F2937;
  --color-muted: #4B5563;
  --color-border: rgba(20, 83, 45, 0.14);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 83, 45, 0.06);
  --shadow-md: 0 20px 40px -24px rgba(20, 83, 45, 0.25);
  --sidebar-width: 260px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

/* === Layout === */
.layout {
  display: block;
}
.main {
  min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 72px;
  width: auto;
  display: block;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.75rem;
}
.nav-toggle__label { font-weight: 700; letter-spacing: 0.02em; }
.sidebar__nav { display: none; margin-top: 1rem; }
.sidebar__nav.is-open { display: block; }
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar__nav li { border-top: 1px solid var(--color-border); }
.sidebar__nav li:last-child { border-bottom: 1px solid var(--color-border); }
.sidebar__nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--color-neutral-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sidebar__nav a:hover { color: var(--color-primary); text-decoration: none; }
.sidebar__nav a[aria-current="page"] { color: var(--color-primary); }
.sidebar__footer { display: none; }
.sidebar__footer p { font-size: 0.8rem; color: var(--color-muted); margin: 0; }

/* === Hero === */
.hero {
  padding: 3rem 1.25rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 55ch;
  margin-top: 1.25rem;
}
.hero__cta { margin-top: 1.5rem; }
.hero__figure {
  margin: 2.5rem 0 0;
}
.hero__figure img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-neutral-dark); text-decoration: none; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #024f7a; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-neutral-light); border-color: rgba(240,253,244,0.4); }
.btn--ghost:hover { background: rgba(240,253,244,0.1); text-decoration: none; }

/* === Sections === */
.section {
  padding: 3.5rem 1.25rem;
}
.section--tinted {
  background: var(--color-neutral-light);
}
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section__inner--narrow {
  max-width: 720px;
}
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section__head p { color: var(--color-muted); }

/* === Grids === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }

/* === Quote === */
.quote {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
}
.quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--color-neutral-dark);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}

/* === CTA Band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin-left: auto; margin-right: auto; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* === Gallery === */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* === Split section === */
.section--split .split__figure img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.split__body address { color: var(--color-muted); margin: 1rem 0 1.5rem; }

/* === Contact grid === */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
.contact-grid h3 { font-size: 1.05rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 400; color: var(--color-text); }
.hours td { color: var(--color-muted); text-align: right; }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 700; font-size: 0.9rem; color: var(--color-neutral-dark); }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 3rem 1.25rem 1.5rem;
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: #fff; }
.site-footer address { color: rgba(240,253,244,0.85); font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer__legal { margin-top: 1rem; }
.site-footer__legal a { font-size: 0.9rem; text-decoration: underline; }
.site-footer__copy {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240,253,244,0.15);
  font-size: 0.85rem;
  color: rgba(240,253,244,0.75);
  text-align: center;
}
.logo--footer img { height: 60px; }

/* === 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: var(--shadow-md);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240,253,244,0.2);
}
.cookie-banner__prefs label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}
.cookie-banner__prefs .btn { justify-self: start; margin-top: 0.5rem; }

/* === Responsive === */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .sidebar__nav { display: block; margin-top: 2rem; flex: 1; }
  .sidebar__nav li { border: none; }
  .sidebar__nav li:last-child { border: none; }
  .sidebar__nav a { padding: 0.5rem 0; font-size: 1.05rem; }
  .sidebar__footer { display: block; margin-top: auto; }
  .hero { padding: 5rem 3rem 3rem; max-width: none; }
  .hero__figure img { aspect-ratio: 21 / 9; }
  .section { padding: 5rem 3rem; }
  .cta-band { padding: 4.5rem 3rem; }
  .site-footer { padding: 4rem 3rem 2rem; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section--split .section__inner { align-items: center; }
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; }
}

@media (min-width: 1200px) {
  .hero { padding: 6rem 4rem 4rem; }
  .section { padding: 6rem 4rem; }
}
