/* === Tokens === */
:root {
  --color-primary: #A04A2E;
  --color-secondary: #F0E0C0;
  --color-accent: #3D5A47;
  --color-neutral-dark: #2A1F18;
  --color-neutral-light: #FBF5E8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --sidebar-w: 240px;
  --radius: 10px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  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: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout: sidebar + content === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sidebar .logo { display: inline-flex; }
.sidebar .logo img { height: 72px; width: auto; display: block; }
.sidebar__nav { display: none; margin-left: auto; }
.sidebar__nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-neutral-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sidebar__nav a.is-active { color: var(--color-secondary); }
.sidebar__nav a:hover { color: var(--color-secondary); text-decoration: none; }
.sidebar__foot { display: none; font-size: 0.75rem; opacity: 0.7; margin: 0; }
.sidebar__toggle {
  margin-left: auto;
  background: transparent;
  color: var(--color-neutral-light);
  border: 1px solid rgba(251,245,232,0.3);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
}
.sidebar__nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-neutral-dark);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(251,245,232,0.1);
}

.content { padding: 2rem 1.25rem 3rem; max-width: 1100px; margin: 0 auto; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; align-items: start; }
  .sidebar {
    position: sticky; top: 0;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.75rem;
    gap: 2rem;
  }
  .sidebar .logo img { height: 96px; }
  .sidebar__nav { display: flex; flex-direction: column; margin-left: 0; width: 100%; gap: 0.25rem; }
  .sidebar__nav a { padding: 0.4rem 0; font-size: 1rem; }
  .sidebar__toggle { display: none; }
  .sidebar__foot { display: block; margin-top: auto; }
  .content { padding: 3.5rem 3rem 4rem; }
}

/* === Hero === */
.hero { padding-block: 1rem 3rem; }
.hero .eyebrow, .article__head .eyebrow, .section__head .eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.hero h1 { max-width: 22ch; margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.15rem; color: rgba(42,31,24,0.75); max-width: 55ch; margin-bottom: 1.5rem; }
.hero__figure { margin: 2rem 0 0; }
.hero__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; }
.hero--compact .hero__sub { margin-bottom: 0; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.3); }
.btn--primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-light); }

/* === Sections === */
.section { padding-block: 3rem; border-top: 1px solid rgba(42,31,24,0.08); }
.section--narrow { max-width: 70ch; }
.section--narrow p { font-size: 1.05rem; }
.section__head { margin-bottom: 1.75rem; }
.section__sub { color: rgba(42,31,24,0.7); margin: 0; }

/* === Grids and cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.card__icon { color: var(--color-primary); margin-bottom: 0.25rem; }
.card h3 { margin: 0; }
.card p { margin: 0; color: rgba(42,31,24,0.8); font-size: 0.95rem; }
a.card-link { color: inherit; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(42,31,24,0.35); }

/* === Testimonial === */
.testimonial blockquote {
  margin: 0;
  max-width: 55ch;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(42,31,24,0.7);
}

/* === CTA band === */
.cta-band {
  margin-top: 3rem;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-neutral-light);
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(251,245,232,0.9); max-width: 55ch; margin: 0 auto 1.5rem; }
.cta-band--soft { background: var(--color-secondary); color: var(--color-neutral-dark); }
.cta-band--soft h2 { color: var(--color-neutral-dark); }
.cta-band--soft p { color: rgba(42,31,24,0.8); }
.cta-band__meta { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(42,31,24,0.2);
  border-radius: 8px;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(42,31,24,0.8);
  line-height: 1.4;
}
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }

/* === Article layout === */
.article { max-width: 65ch; margin: 0 auto; }
.article__head { margin-bottom: 2rem; }
.article__head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article__sub { font-size: 1.2rem; color: rgba(42,31,24,0.75); }
.article__figure { margin: 0 0 2rem; }
.article__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.article p { font-size: 1.1rem; line-height: 1.75; margin-block: 1.25rem; }
.article__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(42,31,24,0.1); }
.back-link { font-weight: 500; }

/* === Footer === */
.site-footer { margin-top: 4rem; padding: 3rem 0 1.5rem; border-top: 1px solid rgba(42,31,24,0.1); font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer__brand { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.35rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer nav a { color: var(--color-neutral-dark); }
.site-footer p { margin: 0 0 0.35rem; color: rgba(42,31,24,0.8); }
.site-footer__legal { margin-top: 0.75rem; font-size: 0.85rem; }
.site-footer__legal a { color: var(--color-primary); }
.site-footer__copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(42,31,24,0.08); font-size: 0.8rem; color: rgba(42,31,24,0.6); }

/* === 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);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(251,245,232,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: 0.85rem;
}
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); }
