:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-alt: #eef2ec;
  --text: #1f2933;
  --muted: #52606d;
  --primary: #2f6b3d;
  --primary-strong: #24512f;
  --border: #d9e2d2;
  --shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.checkout-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 500;
}
.checkout-banner[hidden] {
  display: none;
}
.checkout-banner--success {
  background: #d1fae5;
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}
.checkout-banner--cancelled {
  background: #f3f4f6;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.checkout-banner__message {
  margin: 0;
}
.checkout-banner__dismiss {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.checkout-banner__dismiss:hover {
  opacity: 1;
}
.checkout-banner--success .checkout-banner__dismiss {
  color: #065f46;
}
.checkout-banner--cancelled .checkout-banner__dismiss {
  color: #374151;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.cart-btn {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  color: #fff;
  background:
    linear-gradient(rgba(20, 34, 24, 0.65), rgba(20, 34, 24, 0.65)),
    url("https://images.unsplash.com/photo-1616401784845-180882ba9ba8?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  padding: 7rem 0 6rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-content {
  flex: 0 1 520px;
  max-width: 100%;
}

.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: min(768px, 60vw);
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

h3 {
  margin: 0 0 0.4rem;
}

.hero p {
  margin: 0 0 1.2rem;
  color: #f2f5f3;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-outline {
  border-color: #f2f5f3;
  color: #f2f5f3;
}

.btn-outline:hover {
  background: #f2f5f3;
  color: #0f1720;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

#products {
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    url("../images/smallerpalletstack.png") center / cover no-repeat;
  background-color: var(--surface-alt);
}

#products .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}

.products-intro {
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.products-intro .section-head {
  margin-bottom: 0.25rem;
}

.products-intro .checkout-btn {
  margin-top: 0.75rem;
}

#products .section-subtext {
  margin: 0;
  padding: 0;
}

#products .order-box {
  width: 100%;
  max-width: 760px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.12);
  border-radius: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head .checkout-btn {
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
}

.section-subtext {
  color: var(--muted);
  margin: 0.8rem 0 1.5rem;
}

.order-box {
  background: var(--surface);
  border: 1px solid var(--border);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.order-grid label {
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
}

.order-grid select,
.order-grid input {
  width: 100%;
  border: 1px solid #c8d3c1;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.order-summary {
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  padding: 0;
}

.order-summary strong {
  color: var(--primary-strong);
}

#products .order-box .btn-primary {
  margin-top: 0.25rem;
}

.grade-chart-wrap {
  margin: 2rem 0 0;
  text-align: center;
}

.grade-chart-img {
  max-width: 100%;
  width: min(900px, 92%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.grade-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.grade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.grade-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.grade-card--a {
  border-left: 4px solid var(--primary);
}

.grade-card--b {
  border-left: 4px solid var(--muted);
}

.grade-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.grade-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.grade-card li {
  margin-bottom: 0.35rem;
}

.feature-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.feature-card,
.delivery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-card h3,
.product-card p,
.product-card .btn {
  margin-left: 1rem;
  margin-right: 1rem;
}

.product-card .btn {
  margin-bottom: 1rem;
}

.price {
  font-weight: 700;
  color: var(--primary-strong);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 500;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d3c1;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.contact-form button {
  grid-column: 1 / -1;
  width: fit-content;
}

.contact-details {
  margin-top: 1.2rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f0f3ee;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.footer-wrap nav {
  display: flex;
  gap: 0.9rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 107, 61, 0.35);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .product-grid,
  .feature-grid,
  .delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .cart-btn {
    width: 100%;
  }

  .product-grid,
  .feature-grid,
  .delivery-grid,
  .contact-form,
  .order-grid,
  .grade-comparison {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.8rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    flex: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo {
    width: min(624px, 68vw);
  }
}
