:root {
  --ink: #25170f;
  --muted: #6b5a4e;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: #eadcc8;
  --saffron: #e09d24;
  --chilli: #c83e2f;
  --leaf: #4b7f52;
  --plum: #8a3d5a;
  --sky: #cde7e3;
  --shadow: 0 16px 36px rgba(60, 39, 20, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

body.dark {
  --ink: #fff7ea;
  --muted: #dbc8b4;
  --paper: #1d1714;
  --panel: #2b221d;
  --line: #4a382e;
  --sky: #263b3b;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

a {
  color: inherit;
}

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

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0.9rem 1rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--chilli), var(--saffron));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--panel);
  color: var(--chilli);
}

.icon-button,
.menu-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.menu-button {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(37, 23, 15, 0.82), rgba(37, 23, 15, 0.32)),
    url("https://images.unsplash.com/photo-1505253716362-afaea1d3d1af?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fffaf1;
  min-height: 78vh;
  padding: 6rem 1rem 4rem;
}

.hero-inner,
.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  color: var(--saffron);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: color-mix(in srgb, currentColor 86%, transparent);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  align-items: center;
  background: var(--chilli);
  border: 1px solid var(--chilli);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.section {
  padding: 4rem 1rem;
}

.section.alt {
  background: var(--sky);
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.media-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-tile img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.product-callout,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.card img {
  border-radius: 6px;
  height: 180px;
  margin: -0.3rem -0.3rem 1rem;
  object-fit: cover;
  width: calc(100% + 0.6rem);
}

.stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.stat {
  border-left: 4px solid var(--saffron);
  padding-left: 1rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(37, 23, 15, 0.82), rgba(37, 23, 15, 0.25)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fffaf1;
  padding: 5.5rem 1rem 4rem;
}

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.field,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 2.8rem;
  padding: 0.7rem 0.85rem;
}

.field {
  min-width: min(100%, 280px);
}

textarea {
  min-height: 130px;
  resize: vertical;
  width: 100%;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: color-mix(in srgb, var(--saffron) 22%, var(--panel));
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

tr:hover td {
  background: color-mix(in srgb, var(--saffron) 10%, transparent);
}

.tag {
  background: color-mix(in srgb, var(--leaf) 14%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--leaf) 40%, var(--line));
  border-radius: 999px;
  color: var(--leaf);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.16rem 0.55rem;
}

.gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--panel);
  border-radius: 8px;
  max-width: 920px;
  padding: 1rem;
  position: relative;
  width: min(100%, 920px);
}

.modal-content img {
  border-radius: 6px;
  max-height: 72vh;
  object-fit: contain;
  width: 100%;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.accordion button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 1rem;
  text-align: left;
  width: 100%;
}

.accordion-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  display: none;
  padding: 1rem;
}

.accordion-panel.open {
  display: block;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid .two {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.notice {
  border-left: 4px solid var(--leaf);
  color: var(--muted);
  margin-top: 1rem;
  padding-left: 0.8rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-grid a {
  color: var(--paper);
  display: block;
  margin: 0.3rem 0;
  text-decoration: none;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    left: 1rem;
    padding: 0.6rem;
    position: absolute;
    right: 1rem;
    top: 4.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .gallery,
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 72vh;
    padding-top: 4.6rem;
  }

  .grid.three,
  .grid.four,
  .gallery,
  .stat-row,
  .form-grid .two {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .field,
  select {
    width: 100%;
  }
}
