/* === Tokens === */
:root {
  --color-primary: #A04A2E;
  --color-secondary: #F0E0C0;
  --color-accent: #3D5A47;
  --color-neutral-dark: #2A1F18;
  --color-neutral-light: #FBF5E8;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-w: 240px;
  --measure: 65ch;
}

/* === Base === */
* { 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%; display: block; height: auto; }
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); font-weight: 600; color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* === Layout: sidebar + main === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-secondary);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky; top: 0; z-index: 40;
}
.sidebar .logo { display: inline-block; }
.sidebar .logo img { height: 56px; width: auto; }
.sidebar__nav { display: none; flex: 1; }
.sidebar__nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.sidebar__nav a { color: var(--color-secondary); text-decoration: none; padding: .5rem .25rem; display: block; border-left: 2px solid transparent; padding-left: .75rem; }
.sidebar__nav a:hover, .sidebar__nav a[aria-current="page"] { color: var(--color-neutral-light); border-left-color: var(--color-primary); }
.sidebar__foot { display: none; font-size: .8rem; color: rgba(240, 224, 192, 0.7); margin: 0; }
.nav-toggle {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(240,224,192,0.4);
  border-radius: 4px;
  padding: .5rem .9rem;
  font-family: var(--font-body);
  font-size: .9rem;
  cursor: pointer;
}
.sidebar.is-open .sidebar__nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-dark); padding: 1rem 1.5rem; }
.main { padding: 1.5rem 1.25rem 3rem; }
.page-header { display: none; }
.logo--mobile { display: none; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .sidebar .logo img { height: 72px; }
  .sidebar__nav { display: block; width: 100%; }
  .sidebar__foot { display: block; margin-top: auto; }
  .nav-toggle { display: none; }
  .main { padding: 3rem 3.5rem 4rem; }
}

/* === Hero === */
.hero { max-width: 900px; margin: 0 auto 3rem; }
.eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero__sub { font-size: 1.15rem; color: rgba(42, 31, 24, 0.78); max-width: 55ch; margin-bottom: 1.75rem; }
.hero__cta { margin: 0 0 2rem; }
.hero__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; margin-top: 1.5rem; }

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

/* === Sections === */
.section { max-width: 1100px; margin: 0 auto 4rem; }
.section--narrow { max-width: 720px; }
.section__head { max-width: 700px; margin-bottom: 2rem; }
.section__sub { color: rgba(42,31,24,0.72); font-size: 1.05rem; margin: 0; }
.section--split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .section--split { grid-template-columns: 3fr 2fr; gap: 3.5rem; }
}
.split__img img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* === Cards === */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-neutral-light);
  border: 1px solid rgba(42, 31, 24, 0.12);
  border-radius: 6px;
  padding: 1.75rem;
  display: block;
  color: var(--color-neutral-dark);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card__icon { color: var(--color-primary); margin-bottom: 1rem; }
.card p { margin: 0; color: rgba(42,31,24,0.8); font-size: .96rem; }
a.card-link { text-decoration: none; }
a.card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(42, 31, 24, 0.35); border-color: var(--color-primary); }

/* === Testimonial === */
.testimonial { max-width: 780px; margin: 0 auto 4rem; text-align: center; padding: 2rem 1rem; }
.testimonial blockquote { margin: 0; }
.testimonial p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: .9rem;
  color: var(--color-primary);
  letter-spacing: .04em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-secondary);
  color: var(--color-neutral-dark);
  padding: 3rem 1.5rem;
  border-radius: 6px;
  margin: 0 auto 4rem;
  text-align: center;
  max-width: 1100px;
}
.cta-band h2 { margin-bottom: .75rem; }
.cta-band p { max-width: 55ch; margin-inline: auto; }

/* === Article detail === */
.article { max-width: var(--measure); margin: 0 auto; padding-inline: .25rem; }
.article header { margin-bottom: 1.5rem; }
.article__lede { font-size: 1.2rem; color: rgba(42,31,24,0.75); font-family: var(--font-heading); font-style: italic; }
.article__hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; margin-block: 2rem; }
.article h2 { margin-top: 2.5rem; }
.article p { font-size: 1.08rem; line-height: 1.75; margin-block: 1.25rem; }
.back-link { margin-top: 3rem; }
.back-link a { text-decoration: none; font-weight: 600; }
.back-link a:hover { text-decoration: underline; }

/* === Contact === */
.contact-block { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto 4rem; }
@media (min-width: 900px) { .contact-block { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: var(--color-neutral-light); border: 1px solid rgba(42, 31, 24, 0.12); padding: 2rem; border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(42, 31, 24, 0.25);
  border-radius: 4px;
  background: #fff;
  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: .6rem; font-size: .85rem; color: rgba(42,31,24,0.8); }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  border-top: 1px solid rgba(42, 31, 24, 0.15);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer__cols { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-primary); margin-bottom: .75rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--color-neutral-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-brand { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin: 0 0 .35rem; }
.footer-legal { margin-top: 1rem; font-size: .85rem; }
.copyright { max-width: 1100px; margin: 2rem auto 0; font-size: .8rem; color: rgba(42, 31, 24, 0.6); text-align: center; }

/* === 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: 6px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; }
.cookie-banner a { color: var(--color-secondary); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(240, 224, 192, 0.4);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner__actions button:hover { background: rgba(240, 224, 192, 0.15); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 224, 192, 0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: .5rem;
  font-family: var(--font-body);
  padding: .5rem 1rem;
  background: var(--color-accent);
  color: var(--color-neutral-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
