:root {
  --ink: #223125;
  --muted: #617061;
  --cream: #fff8ec;
  --paper: #fffdf7;
  --sand: #f3dfbf;
  --sage: #5c7a53;
  --sage-dark: #36563a;
  --pine: #1f3c2a;
  --sun: #f5b94d;
  --clay: #c46c3c;
  --mist: #edf4e5;
  --line: rgba(34, 49, 37, 0.14);
  --shadow: 0 20px 55px rgba(31, 60, 42, 0.14);
  --radius: 24px;
  --radius-small: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #f7efe0 45%, #f9fbf2);
  line-height: 1.5;
}

body.drawer-open,
body.modal-open { overflow: hidden; }

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

a { color: inherit; }

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

button { cursor: pointer; }

button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid rgba(245, 185, 77, 0.95);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--pine);
  color: white;
  border-radius: 999px;
}

.skip-link:focus { left: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 72px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.68);
  backdrop-filter: blur(18px) saturate(1.08);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  max-width: min(48vw, 220px);
  line-height: 1.02;
  font-size: 0.96rem;
}

.footer-logo-link {
  display: inline-block;
  max-width: 360px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #000;
}

.footer-brand {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-brand p {
  margin: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.nav-cart-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 750;
}

.nav-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pine);
  color: white;
}

.nav-cart-button span {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sun);
  color: var(--pine);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.menu-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: var(--pine);
  border-radius: 999px;
}

.site-nav.is-open {
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  display: grid;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: end;
  padding: clamp(44px, 7vw, 88px) 0 clamp(22px, 4vw, 34px);
  background: #1d241a;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 14, 0.22) 0%, rgba(18, 21, 17, 0.44) 34%, rgba(16, 19, 15, 0.68) 100%),
    linear-gradient(90deg, rgba(17, 22, 16, 0.58) 0%, rgba(17, 22, 16, 0.26) 42%, rgba(17, 22, 16, 0.12) 100%),
    url('../img/hero/hero-family-camping-bg-mobile.webp') center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-grid {
  display: grid;
  gap: 18px;
  align-items: end;
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - clamp(40px, 10vw, 180px)));
  margin-inline: auto;
}

.hero-copy {
  max-width: 820px;
}

.hero .eyebrow,
.hero .card-kicker {
  color: rgba(255, 236, 194, 0.96);
}

.hero h1 {
  color: white;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.hero .hero-lede {
  max-width: 720px;
  color: rgba(255, 249, 238, 0.92);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(19, 28, 21, 0.52);
  backdrop-filter: blur(8px);
  padding: 9px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 760;
  font-size: 0.9rem;
}

.hero-date-card {
  width: 100%;
  max-width: 420px;
  justify-self: start;
  background: rgba(255, 252, 246, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 60px rgba(9, 15, 10, 0.28);
}

.hero-date-card .card-kicker {
  color: var(--sage-dark);
  text-shadow: none;
}
.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

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

h1 {
  font-size: clamp(2.45rem, 11vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  max-width: 920px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-lede {
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--muted);
}

.meta-pill,
.available-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 60, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--pine);
  font-weight: 750;
  font-size: 0.88rem;
}

.date-card,
.step-card,
.product-card,
.contact-card,
.pickup-note-card,
.cta-card,
.admin-card,
.modal-card {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.date-card {
  padding: 22px;
}

.date-fields {
  display: grid;
  gap: 8px;
}

.date-fields {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.date-fields input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.date-actions {
  margin-top: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 49, 37, 0.18);
  background: #fffefb;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
}

label {
  font-weight: 800;
  color: var(--pine);
}

.form-note,
.cart-message {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.business-rule-note {
  margin: 6px 0 0;
  color: var(--pine);
  font-size: 0.88rem;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 13px 20px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--clay), #e79a40);
  color: white;
  box-shadow: 0 16px 32px rgba(196, 108, 60, 0.28);
}

.button.secondary {
  background: var(--mist);
  color: var(--pine);
}

.button.full { width: 100%; }

.section-heading {
  margin-bottom: 28px;
}

.section-heading.centered {
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
}

.section-heading.split {
  display: grid;
  gap: 14px;
}

.section-heading.split > p {
  color: var(--muted);
  max-width: 560px;
}

.steps-grid,
.product-grid,
.pickup-grid,
.footer-grid,
.admin-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.step-card { padding: 20px; }

.step-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--pine);
  font-weight: 900;
  margin-bottom: 14px;
}

.step-card p,
.product-card p,
.pickup-section p,
.final-cta p,
.site-footer p,
.admin-muted { color: var(--muted); }


.availability-banner {
  margin-bottom: 18px;
  padding: 13px 16px;
  background: var(--mist);
  border: 1px solid rgba(92, 122, 83, 0.18);
  border-radius: 18px;
  color: var(--pine);
  font-weight: 750;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 14px;
}

.product-card.unavailable {
  filter: grayscale(0.85);
  opacity: 0.62;
}

.product-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--mist);
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff0cf;
  color: #864718;
  font-weight: 950;
}

.includes-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-actions {
  display: grid;
  gap: 8px;
}

.safety-note,
.inline-warning {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff4df;
  color: #704112;
  font-weight: 750;
  font-size: 0.88rem;
}

.sold-out-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(34, 49, 37, 0.88);
  color: white;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  margin-top: 18px;
}

.contact-card a,
.footer-contact a { color: var(--sage-dark); font-weight: 850; }

.pickup-note-card { padding: 22px; }
.pickup-note-card ul { margin: 0; padding-left: 20px; color: var(--muted); }

.cta-card {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(237, 244, 229, 0.96));
}

.site-footer {
  padding: 34px 0;
  background: var(--pine);
  color: white;
}

.site-footer p,
.site-footer span { color: rgba(255,255,255,0.74); }

.footer-contact {
  display: grid;
  gap: 8px;
  font-style: normal;
  line-height: 1.4;
}

.footer-contact a,
.footer-contact span {
  display: block;
}

.site-footer a { color: white; text-decoration: none; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: rgba(17, 31, 21, 0);
  transition: background 180ms ease;
}

.cart-drawer.open {
  pointer-events: auto;
  background: rgba(17, 31, 21, 0.28);
}

.cart-panel {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateY(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open .cart-panel { transform: translateY(0); }

.cart-header,
.modal-header,
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.icon-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--pine);
  font-size: 1.65rem;
  line-height: 1;
}

.cart-date-summary {
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: var(--mist);
  border-radius: 16px;
  color: var(--pine);
  font-weight: 800;
}

.cart-items { display: grid; gap: 12px; }

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item h3 { font-size: 1rem; }

.cart-item-meta,
.cart-empty,
.cart-note { color: var(--muted); font-size: 0.9rem; }

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  color: var(--pine);
  font-weight: 900;
}

.remove-button {
  border: 0;
  background: transparent;
  color: #a64022;
  font-weight: 850;
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding: 16px 0 10px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  background: rgba(17, 31, 21, 0.46);
  padding: 16px;
}

.modal-backdrop.open { display: grid; }

.reservation-modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.reservation-summary {
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--mist);
}

.reservation-form { display: grid; gap: 9px; }

.success-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #eef9e7;
  border: 1px solid rgba(92, 122, 83, 0.24);
}

/* Admin */
.admin-body { background: #f6f2e8; }
.admin-main { padding: 36px 0 72px; }
.admin-banner {
  background: #fff4df;
  color: #704112;
  border: 1px solid #f3d29a;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 850;
  margin: 18px 0;
}

.admin-card { padding: 18px; }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-grid { margin-top: 16px; }

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

.metric {
  padding: 16px;
  border-radius: 18px;
  background: var(--mist);
}

.metric strong { display: block; font-size: 1.8rem; }
.metric span { color: var(--muted); font-weight: 800; }

.admin-list { display: grid; gap: 10px; margin-top: 14px; }

.admin-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.small-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--pine);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
}

.small-button.danger { color: #a64022; }

.admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.checkbox-row input { width: auto; min-height: auto; }

@media (max-width: 719px) {
  .hero-date-card {
    max-width: none;
    overflow: hidden;
  }

  .hero-date-card input[type="date"] {
    border-radius: 14px;
  }
}

@media (min-width: 720px) {
  .section { padding: 92px 0; }
  .brand-wordmark { max-width: none; font-size: 1rem; }
  .hero { padding: clamp(56px, 8vw, 96px) 0 40px; }
  .hero-background { background-image: linear-gradient(180deg, rgba(15, 18, 14, 0.18) 0%, rgba(18, 21, 17, 0.36) 34%, rgba(16, 19, 15, 0.68) 100%), linear-gradient(90deg, rgba(17, 22, 16, 0.64) 0%, rgba(17, 22, 16, 0.28) 44%, rgba(17, 22, 16, 0.14) 100%), url('../img/hero/hero-family-camping-bg.webp'); }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr); gap: 34px; width: min(var(--max), calc(100% - 80px)); }
  .hero-date-card { justify-self: end; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pickup-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .footer-contact { justify-items: end; text-align: right; }
  .cta-card { grid-template-columns: 1fr auto; padding: 36px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; }
  .section-heading.split { grid-template-columns: 1fr auto; align-items: end; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .premium-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cart-panel {
    inset: 0 0 0 auto;
    width: min(440px, 92vw);
    max-height: 100vh;
    border-radius: 28px 0 0 28px;
    transform: translateX(105%);
  }
  .cart-drawer.open .cart-panel { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Pass 2: decomposed package cart + admin image controls */
.savings-note,
.package-source {
  color: var(--pine);
  font-weight: 800;
}

.savings-note {
  padding: 9px 10px;
  border-radius: 14px;
  background: #eef9e7;
  border: 1px solid rgba(92, 122, 83, 0.22);
  font-size: 0.88rem;
}

.summary-breakdown {
  display: grid !important;
  gap: 7px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-breakdown:empty {
  display: none !important;
  padding: 0;
  border: 0;
}

.cart-summary .summary-breakdown div {
  font-size: 0.95rem;
}

.savings-line,
.savings-total {
  color: #2e6b38;
}

.savings-line small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.estimated-total {
  padding-top: 2px;
  font-weight: 950;
}

.admin-row-media {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.admin-thumb,
.admin-image-preview {
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--mist);
}

.admin-thumb {
  width: 76px;
  height: 58px;
}

.admin-image-preview {
  width: 100%;
  max-width: 240px;
  height: 150px;
}

.image-upload-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}
