:root {
  --green: #1e4a32;
  --green-dark: #143526;
  --ink: #1c1917;
  --muted: #5c564f;
  --cream: #f6f1eb;
  --blush: #fbf7f3;
  --line: #e7e0d8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
  --header: 84px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
}

.center { text-align: center; }
.muted { color: var(--muted); }
.cream { background: var(--cream); }
.blush { background: var(--blush); }

.section {
  padding: 4.25rem 0;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--sans);
  cursor: pointer;
  text-decoration: none;
}

.btn {
  background: var(--green);
  color: white;
}

.btn:hover { background: var(--green-dark); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-ghost:hover { background: var(--green); color: white; }

.btn-small { min-height: 40px; padding: 0.45rem 0.8rem; font-size: 0.92rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1200px, calc(100% - 1.25rem));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--cream);
  color: var(--green);
}

.nav-toggle,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle { display: none; }
.icon-btn { position: relative; }
.nav-toggle:hover,
.icon-btn:hover { background: var(--cream); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.cart-count[data-count="0"] { display: none; }

.hero {
  padding: 2.5rem 0 1rem;
}

.hero-photo {
  width: min(760px, 100%);
  margin: 0 auto 2rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hero-photo img,
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lede { max-width: 42rem; margin-inline: auto; }

.page-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  color: white;
  background: #2a241e center/cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.15), rgba(20, 16, 12, 0.72));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1,
.page-hero p { color: white; }
.page-hero p { max-width: 40rem; margin-bottom: 0; }

.split {
  display: grid;
  gap: 1.5rem;
}

.photo-row,
.card-grid,
.team-grid,
.stat-grid,
.feature-grid,
.product-grid,
.quote-grid,
.gallery,
.footer-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.photo-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #efe8e0;
  aspect-ratio: 4 / 5;
}

.photo-frame.wide { aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.card,
.product,
.quote,
.team-card,
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card,
.stat,
.quote { padding: 1.25rem 1.3rem 1.35rem; }
.card h3, .stat h3 { margin-bottom: 0.35rem; }

.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
}

.product-body { padding: 1rem 1rem 1.15rem; }
.price {
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.product.is-out { opacity: 0.72; }
.stock-badge {
  display: inline-block;
  margin: 0;
  background: #8d2b1f;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.stock-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}
.stock-toggle input { width: 1.15rem; height: 1.15rem; }

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card div { padding: 1rem 1.1rem 1.25rem; text-align: center; }
.role {
  color: var(--green);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.socials { display: flex; gap: 0.4rem; justify-content: center; }
.socials a, .footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.feature {
  padding: 0.4rem 0;
}

.feature h3 { font-size: 1.25rem; }

.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.quote footer { color: var(--muted); font-size: 0.95rem; }

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  background: var(--cream);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.1rem 0.2rem;
  font: 750 1.08rem/1.4 var(--sans);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item button span[aria-hidden] {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--green);
}

.faq-item .answer {
  display: none;
  padding: 0 0.2rem 1.1rem;
  color: var(--muted);
}

.faq-item.open .answer { display: block; }

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 1.3rem;
  border: 1px solid var(--line);
}

.contact-card a { font-weight: 800; }

form {
  display: grid;
  gap: 0.85rem;
}

label { font-weight: 800; font-size: 0.92rem; display: grid; gap: 0.35rem; }

input, textarea, select {
  width: 100%;
  border: 1px solid #d9d1c7;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: 1rem/1.4 var(--sans);
  color: var(--ink);
  background: white;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #c4d7c8;
  outline-offset: 2px;
}

.map {
  border: 0;
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  background: var(--cream);
}

.site-footer {
  background: #17261d;
  color: #efe8df;
  padding: 3rem 0 1.4rem;
}

.site-footer a { color: white; }
.site-footer .muted { color: #d9d0c6; }
.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.footer-brand img { width: 64px; height: 64px; background: white; border-radius: 50%; }
.footer-brand strong { font-family: var(--serif); font-size: 1.3rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.8rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #d9d0c6;
}

.cart-backdrop,
.cart-drawer {
  position: fixed;
  inset: 0;
}

.cart-backdrop {
  background: rgba(20, 16, 12, 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer {
  left: auto;
  width: min(420px, 100%);
  background: white;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-open .cart-backdrop { opacity: 1; pointer-events: auto; }
.cart-open .cart-drawer { transform: none; }
.cart-open { overflow: hidden; }

.cart-head, .cart-foot { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.cart-foot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-items { overflow: auto; padding: 0.4rem 1.1rem 1rem; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  font-size: 1.1rem;
}
.qty span { min-width: 1.6rem; text-align: center; font-weight: 800; }
.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 80;
  transition: transform 0.25s ease;
}

.toast.show { transform: translateX(-50%) translateY(0); }

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, 94vw);
}

dialog.lightbox::backdrop { background: rgba(0,0,0,0.78); }
dialog.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; }
dialog.lightbox button {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 0;
  background: white;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-weight: 800;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

@media (min-width: 700px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .card-grid, .product-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; max-width: 760px; margin-inline: auto; }
  .stat-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid, .contact-grid, .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .contact-grid { align-items: start; }
}

@media (min-width: 980px) {
  .product-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .card-grid.three, .quote-grid.wide { grid-template-columns: 1fr 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .brand small { display: none; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0.8rem 0.9rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.7rem; }
  .header-inner { position: static; }
  .site-header { position: sticky; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer, .cart-backdrop, .toast { transition: none; }
}

.admin-body { background: var(--blush); }
.admin-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.admin-bar .brand img { width: 48px; height: 48px; }
.admin-main { padding: 2rem 0 3rem; }
.admin-main h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-fields, .admin-list { display: grid; gap: 1rem; }
.admin-product {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream);
}
.admin-status { font-weight: 800; }
.admin-status.is-error { color: #8d2b1f; }
#password-form { margin-top: 2rem; }

@media (min-width: 800px) {
  .admin-fields { grid-template-columns: 1fr 1fr; }
  .admin-wide { grid-column: 1 / -1; }
  .admin-product { grid-template-columns: 180px 1fr; align-items: start; }
}
