:root {
  --bg: #f2eee8;
  --surface: #fffaf4;
  --surface-strong: #e4d5c3;
  --ink: #1d1b19;
  --muted: #5f5952;
  --brand: #b5542f;
  --brand-dark: #7f371b;
  --line: #d2c1ae;
  --shadow: 0 18px 40px rgba(47, 33, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(181, 84, 47, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

.hero,
.section,
.footer,
.subpage {
  padding: 32px 20px;
}

.topbar,
.hero-content,
.section-heading,
.grid,
.calculator,
.footer-grid,
.subpage-shell,
.stats-grid,
.feature-split,
.map-layout,
.result {
  max-width: 1160px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand,
h1,
h2,
h3,
.stat-card strong {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  width: 320px;
  height: auto;
  display: block;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-content {
  padding: 84px 0 64px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  max-width: 10ch;
  margin: 12px 0 16px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 8px 0 0;
}

.hero-copy,
.card p,
.subpage p,
.map-note,
.footer p,
.section-note,
li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 700px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions.compact {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 33, 20, 0.12);
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 244, 0.7);
}

.grid,
.stats-grid,
.feature-split,
.map-layout,
.product-grid,
.inventory-summary {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

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

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

.feature-split,
.map-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card,
.calculator,
.result,
.map-frame {
  background: var(--surface);
  border: 1px solid rgba(95, 89, 82, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card,
.feature-card {
  padding: 24px;
}

.stat-card {
  padding: 28px 24px;
}

.compact-stat {
  min-height: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.price-row strong {
  font-size: 1.5rem;
  color: var(--brand-dark);
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.stat-card strong {
  display: block;
  font-size: 3rem;
  color: var(--brand-dark);
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.accent {
  background: linear-gradient(180deg, rgba(228, 213, 195, 0.35), rgba(228, 213, 195, 0.08));
}

.calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  margin-top: 28px;
}

.calculator label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.calculator input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.calculator select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.result {
  padding: 18px 24px;
  margin-top: 18px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result strong {
  font-size: 1.05rem;
}

.result span {
  color: var(--muted);
  font-weight: 500;
}

.inventory-table-wrap {
  max-width: 1160px;
  margin: 24px auto 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid rgba(95, 89, 82, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.inventory-table th,
.inventory-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(95, 89, 82, 0.12);
}

.inventory-table th {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.inventory-table tbody tr:last-child td {
  border-bottom: 0;
}

.inventory-table input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.inventory-name strong {
  display: block;
  margin-bottom: 4px;
}

.inventory-name span,
.inventory-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.inventory-number {
  font-weight: 800;
  color: var(--brand-dark);
}

.map-card {
  height: 100%;
}

.map-frame {
  display: block;
  overflow: hidden;
  min-height: 420px;
}

.map-frame iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.subpage-shell {
  padding-top: 32px;
  padding-bottom: 48px;
}

.subpage-hero {
  max-width: 820px;
  margin-bottom: 32px;
}

.subpage-block {
  margin-top: 24px;
}

.doc-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid rgba(95, 89, 82, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.doc-meta strong {
  display: block;
  font-size: 1.05rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid,
  .calculator,
  .stats-grid,
  .feature-split,
  .map-layout,
  .product-grid,
  .inventory-summary,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-actions,
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    align-items: stretch;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .topbar-links {
    display: none;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(95, 89, 82, 0.12);
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.96);
    box-shadow: var(--shadow);
    gap: 12px;
  }

  .topbar-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .brand img {
    width: 180px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(1.55rem, 10vw, 2.7rem);
    line-height: 1.05;
    max-width: 9ch;
    margin: 10px 0 14px;
  }

  .hero-copy,
  .section-note,
  .card p,
  .footer p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section,
  .footer,
  .subpage {
    padding: 24px 16px;
  }

  .hero {
    padding: 20px 16px 24px;
  }

  .topbar-links {
    gap: 10px;
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
  }

  .result {
    padding: 16px 18px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 320px;
  }
}
