:root {
  --bg: #0f0d0a;
  --bg-2: #1b1510;
  --surface: #17120e;
  --surface-2: #221810;
  --surface-3: #261b13;
  --ink: #fff7ea;
  --muted: #c8b8a3;
  --text: #fff7ea;
  --text-muted: #ddcdb8;
  --accent: #c79a55;
  --accent-2: #e4c27e;
  --accent-dark: #835523;
  --brown: #35251b;
  --brown-dark: #17100b;
  --line: rgba(255, 247, 234, 0.12);
  --line-strong: rgba(255, 247, 234, 0.22);
  --line-light: rgba(255, 247, 234, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.97), rgba(10, 8, 6, 0.94) 440px, rgba(13, 10, 7, 0.98) 760px),
    linear-gradient(110deg, rgba(199, 154, 85, 0.12), transparent 36%),
    url("./assets/wood-yard.jpg") center top / cover fixed,
    var(--surface);
}

body,
button,
input,
select,
textarea {
  font: 16px/1.45 Arial, system-ui, sans-serif;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header,
.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 247, 234, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(10, 8, 6, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero__actions,
.quick-facts,
.quick-menu,
.final-cta__actions,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #17100b;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.nav {
  justify-content: center;
  gap: 8px;
}

.nav a,
.quick-menu a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 700;
}

.nav a:hover,
.quick-menu a:hover {
  background: rgba(199, 154, 85, 0.16);
  color: var(--text);
}

.page {
  padding: 22px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 16px;
  min-height: calc(100vh - 108px);
}

.hero__copy,
.hero__catalog,
.final-cta,
.modal__panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__copy {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.97), rgba(5, 4, 3, 0.74) 58%, rgba(5, 4, 3, 0.42)),
    linear-gradient(0deg, rgba(5, 4, 3, 0.88), transparent 45%),
    url("./assets/truck-unloading.jpg") center / cover;
  border: 1px solid rgba(255, 247, 234, 0.16);
}

.hero__catalog {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 234, 0.16);
  background: #090705;
}

.hero-photo {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(10, 7, 5, 0.62)),
    url("./assets/forklift-boxes.jpg") center / cover;
}

.quick-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(255, 247, 234, 0.16);
}

.quick-menu a {
  justify-content: center;
  border-radius: 6px;
  color: var(--text);
  background: rgba(22, 15, 10, 0.96);
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 19px;
}

.hero__actions,
.final-cta__actions,
.form-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(30, 15, 6, 0.2);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #17100b;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f0cf8f, var(--accent));
}

.btn--secondary {
  color: inherit;
  border-color: rgba(255, 248, 237, 0.38);
  background: rgba(255, 248, 237, 0.1);
  box-shadow: none;
}

.btn--small {
  min-height: 40px;
  padding: 0 15px;
}

.btn--full {
  width: 100%;
}

.quick-facts {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.quick-facts span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.quick-facts span {
  color: var(--text);
  border: 1px solid rgba(255, 248, 237, 0.18);
  background: rgba(255, 248, 237, 0.1);
}

.section,
.final-cta {
  margin-top: 18px;
  padding: 34px 0;
  color: var(--text);
  border-top: 1px solid rgba(255, 247, 234, 0.1);
  background: transparent;
}

.section--compact {
  padding: 18px 0;
}

.section--light {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 247, 234, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 15, 10, 0.97), rgba(8, 6, 4, 0.96)),
    url("./assets/boxed-firewood-4.jpg") center / cover;
  box-shadow: var(--shadow);
}

.section--split,
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.section__head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section__head p,
.section--split p,
.final-cta p,
.product-card p,
.product-card li,
.info-list span,
.flow span {
  color: var(--muted);
}

.flow,
.product-grid,
.info-list {
  display: grid;
  gap: 12px;
}

.flow {
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.flow div,
.info-list article {
  padding: 16px;
  border: 1px solid rgba(255, 247, 234, 0.1);
  border-radius: 8px;
  background: rgba(255, 247, 234, 0.045);
  box-shadow: var(--shadow-soft);
}

.flow div {
  border-color: rgba(255, 247, 234, 0.08);
  background: transparent;
  box-shadow: none;
}

.flow strong,
.flow span,
.info-list strong,
.info-list span {
  display: block;
}

.flow strong,
.info-list strong {
  margin-bottom: 6px;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 234, 0.13);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(36, 26, 18, 0.94), rgba(12, 9, 6, 0.98));
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 154, 85, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.product-card__image {
  min-height: 220px;
  background: center / cover;
  border-bottom: 1px solid rgba(255, 247, 234, 0.1);
}

.product-card__image--split {
  background-image: url("./assets/boxed-firewood-1.jpg");
}

.product-card__image--pallet {
  background-image: url("./assets/boxed-firewood-3.jpg");
}

.product-card__image--meter {
  background-image: url("./assets/firewood-truck.jpg");
}

.product-card__image--blocks {
  background-image: url("./assets/wood-yard.jpg");
}

.product-card__body {
  padding: 20px;
}

.product-card__top {
  display: flex;
  min-height: 34px;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  color: #2a1c0b;
  background: linear-gradient(135deg, #e6c989, #b88742);
  text-transform: uppercase;
}

.price {
  white-space: nowrap;
  color: var(--accent-2);
}

.product-card ul {
  min-height: 54px;
  margin: 0 0 16px;
  padding-left: 18px;
}

.price-table {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 234, 0.13);
  border-radius: 8px;
  background: rgba(255, 247, 234, 0.05);
  box-shadow: var(--shadow-soft);
}

.price-table div {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.price-table div:last-child {
  border-bottom: 0;
}

.price-table strong {
  color: var(--accent-2);
}

.price-table em {
  color: var(--muted);
  font-style: normal;
}

.info-list {
  grid-template-columns: 1fr;
}

.final-cta {
  margin-top: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 247, 234, 0.14);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(8, 6, 4, 0.98), rgba(8, 6, 4, 0.72)),
    url("./assets/boxed-firewood-truck.jpg") center / cover;
}

.final-cta p {
  max-width: 660px;
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow: auto;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 42px auto;
  padding: 26px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(35, 24, 16, 0.98), rgba(17, 12, 8, 0.98)),
    url("./assets/boxed-firewood-2.jpg") center / cover;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

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

.order-form label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.order-form option {
  color: #201914;
}

.order-form textarea {
  min-height: 112px;
  resize: vertical;
}

.order-form .full {
  grid-column: 1 / -1;
}

.form-actions span {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .hero,
  .section--split,
  .section__head--split {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 48px;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
  }

  .hero__copy {
    min-height: 500px;
    padding: 24px;
  }

  .hero-photo {
    min-height: 280px;
  }

  .flow,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .price-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .final-cta {
    display: grid;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 31px;
  }
}
