:root {
  --cream: #f4efe6;
  --paper: #fbf8f2;
  --bark: #2a221d;
  --bark-soft: #5a4d44;
  --forest: #3b643f;
  --forest-dark: #2c4b2f;
  --rust: #b8582a;
  --line: #ddd3c3;
  --radius: 6px;
  --max: 1180px;
  --head: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--bark);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: var(--rust); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--forest); }
h3 { font-size: 1.35rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--paper); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.6em;
}
.lead { font-size: 1.15rem; color: var(--bark-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: 2px solid var(--forest);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff; }
.btn.light { background: transparent; border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--bark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bark); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { font-family: var(--head); font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--bark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--forest); }
.nav a[aria-current="page"] { border-bottom-color: var(--rust); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--bark);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .brand span { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--line); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #1c1a18 url("../images/site/home-5.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.35), rgba(20, 18, 15, 0.6));
  z-index: -1;
}
.hero-inner { padding: 60px 20px; max-width: 760px; }
.hero-logo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.hero p { font-size: 1.2rem; margin: 0 auto 30px; max-width: 52ch; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  padding: 70px 0 40px;
  text-align: center;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .section { padding: 56px 0; }
}

/* Category tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7)); }
.tile span { position: relative; z-index: 1; padding: 18px; font-family: var(--head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: #fff; }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile span { font-size: 1.2rem; padding: 14px; } }

/* Values strip */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 30px;
}
.values div { border-top: 3px solid var(--rust); padding-top: 18px; }
.values p { margin: 0; color: var(--bark-soft); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; gap: 24px; } }

/* Products */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 40px;
}
.filters button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--bark);
  cursor: pointer;
}
.filters button:hover { border-color: var(--forest); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(42, 34, 29, 0.12); }
.card:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.card-img { aspect-ratio: 1; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); }
.card-title { font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin-top: 4px; }

/* Product dialog */
dialog.product {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--bark);
  overflow: hidden;
}
dialog.product::backdrop { background: rgba(20, 16, 13, 0.75); }
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  max-height: calc(100vh - 32px);
}
.pd-media { background: #1d1a17; display: flex; flex-direction: column; min-height: 0; }
.pd-main { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; }
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bark);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pd-arrow.prev { left: 12px; }
.pd-arrow.next { right: 12px; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; opacity: 0.6; }
.pd-thumbs button[aria-current="true"] { border-color: var(--rust); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 36px 32px 32px; overflow-y: auto; }
.pd-info h2 { font-size: 1.9rem; color: var(--bark); }
.pd-desc p { margin: 0 0 0.9em; color: var(--bark-soft); }
.pd-desc ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--bark-soft); }
.pd-desc li { margin-bottom: 0.5em; }
.pd-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-cta p { font-size: 0.92rem; color: var(--bark-soft); margin: 0 0 14px; }
.pd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--bark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 820px) {
  dialog.product { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; overflow-y: auto; overflow-x: hidden; }
  .pd { grid-template-columns: minmax(0, 1fr); max-height: none; }
  .pd-close { position: fixed; }
  .pd-main img { max-height: 60vh; }
  .pd-info { padding: 24px 20px 40px; overflow: visible; }
}

/* Gallery */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; }
.masonry img { width: 100%; border-radius: var(--radius); }
.masonry figcaption { font-size: 0.9rem; color: var(--bark-soft); padding: 8px 2px 0; }

/* FAQ */
.faq-group { max-width: 800px; margin: 0 auto 44px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 14px; }
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--rust);
  font-weight: 400;
}
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 20px 18px; color: var(--bark-soft); }
details > div p { margin: 0 0 0.6em; }

/* Contact */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
}
.contact-line { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; font-size: 1.05rem; word-break: break-word; }
.contact-line svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--rust); }
@media (max-width: 820px) { .contact-card { padding: 24px; } }

/* CTA band */
.band {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.band h2 { color: #fff; }
.band p { max-width: 56ch; margin: 0 auto 28px; opacity: 0.9; }

/* Footer */
.site-footer {
  background: var(--bark);
  color: #e9e1d4;
  padding: 50px 0 30px;
  font-size: 0.95rem;
}
.site-footer a { color: #e9e1d4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand strong { font-family: var(--head); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; display: block; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 34px; padding-top: 20px; font-size: 0.85rem; opacity: 0.7; }

.grid.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid.four { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .card-title { font-size: 0.9rem; }
  .card-cat { font-size: 0.65rem; }
}
