:root {
  --ink: #17221b;
  --muted: #657267;
  --line: #d9ded5;
  --paper: #f7f5ef;
  --white: #ffffff;
  --leaf: #386b45;
  --leaf-dark: #23472d;
  --gold: #b88a45;
  --tea: #8f4f34;
  --mist: #e9eee6;
  --shadow: 0 18px 48px rgba(23, 34, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(23, 34, 27, 0.12);
  background: rgba(247, 245, 239, 0.96);
  backdrop-filter: blur(16px);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 5vw, 64px);
  color: #f3efe2;
  background: var(--leaf-dark);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(16px, 5vw, 64px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-mark strong {
  color: var(--leaf-dark);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-mark small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--leaf-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 106px));
  overflow: hidden;
  color: #fffaf0;
  background: #162017;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 18, 12, 0.88), rgba(10, 18, 12, 0.5), rgba(10, 18, 12, 0.12)),
    linear-gradient(0deg, rgba(10, 18, 12, 0.48), rgba(10, 18, 12, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, calc(100% - 32px));
  margin-left: clamp(16px, 6vw, 80px);
  padding: 92px 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(40px, 6vw, 72px);
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.1);
}

.hero-price span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
}

.hero-price strong {
  color: #fff;
  font-size: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 6vw, 80px);
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 4px;
  border: 0;
  background: rgba(255, 250, 240, 0.38);
  cursor: pointer;
}

.hero-controls button.is-active {
  background: #fffaf0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.primary-action {
  color: #fff;
  background: var(--leaf);
}

.secondary-action {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-strip div {
  min-height: 116px;
  padding: 26px;
  background: var(--white);
}

.quick-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--leaf-dark);
  font-size: 19px;
}

.quick-strip span,
.section-heading > p,
.product-card p,
.trade-grid p,
.inquiry-copy p,
.modal-summary p,
.spec-list dd,
.admin-row p,
.admin-row span {
  color: var(--muted);
}

.section {
  padding: 78px clamp(16px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.category-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.category-tabs button.is-active {
  color: #fff;
  border-color: var(--leaf);
  background: var(--leaf);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 34, 27, 0.08);
}

.product-card figure {
  margin: 0;
  background: var(--mist);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--tea);
  background: #f3e7dd;
}

.product-card h3 {
  min-height: 54px;
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.product-card p {
  min-height: 68px;
  margin: 0;
  font-size: 14px;
}

.card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.card-price span {
  color: var(--muted);
  font-size: 12px;
}

.card-price strong {
  color: var(--tea);
  font-size: 20px;
}

.mini-specs {
  display: grid;
  gap: 6px;
  min-height: 84px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.mini-specs strong {
  color: var(--ink);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.card-actions button,
.card-actions a {
  min-height: 38px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.detail-btn {
  border: 1px solid var(--leaf);
  color: #fff;
  background: var(--leaf);
  cursor: pointer;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.trade-section {
  background: #fffaf2;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trade-grid article {
  min-height: 210px;
  padding: 28px;
  background: #fffaf2;
}

.trade-grid span {
  color: var(--gold);
  font-weight: 900;
}

.trade-grid h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.trade-grid p {
  margin: 0;
}

.inquiry-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.inquiry-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.inquiry-copy p:not(.eyebrow) {
  margin: 16px 0 0;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf8;
}

.inquiry-form label:nth-child(5),
.inquiry-form label:nth-child(6),
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.admin-section {
  display: none;
  background: #f0eee6;
}

.admin-section.is-visible {
  display: block;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-row strong,
.admin-row span {
  display: block;
}

.product-modal {
  width: min(1120px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: rgba(10, 18, 12, 0.62);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 0;
}

.modal-gallery {
  padding: 22px;
  background: var(--paper);
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--mist);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.modal-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.modal-thumbs button.is-active {
  border-color: var(--leaf);
}

.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-summary {
  padding: 34px 28px 28px;
  overflow: auto;
}

.modal-summary h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.modal-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--tea);
  background: #f5ebe4;
}

.modal-price span {
  color: var(--muted);
  font-size: 13px;
}

.modal-price strong {
  font-size: 24px;
}

.spec-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  margin: 22px 0;
}

.spec-list dt {
  color: var(--leaf-dark);
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1180px) {
  .quick-strip,
  .trade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topline {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle {
    display: block;
  }

  .brand-mark {
    gap: 9px;
  }

  .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .brand-mark strong {
    font-size: 20px;
  }

  .brand-mark small {
    font-size: 11px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

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

  .nav-links a {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 70px 0 110px;
  }

  .quick-strip,
  .product-grid,
  .trade-grid,
  .inquiry-section,
  .inquiry-form,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .product-card h3,
  .product-card p,
  .mini-specs {
    min-height: 0;
  }

  .modal-summary {
    padding-top: 24px;
  }
}
