/*
 * Not Your Grandma's Cellar, LLC — style.css
 * Author: GitHub/1800downed
 *
 * Index:
 *   0.  Design tokens
 *   1.  Reset & base
 *   2.  Layout utilities
 *   3.  Typography
 *   4.  Buttons
 *   5.  Section shared
 *   6.  Header / Navbar
 *   7.  Hero
 *   8.  About
 *   9.  Products shop
 *  9a.  Shipping bar
 *  9b.  Product shelf & cards
 *  9c.  Limited-time section header
 *  9d.  Size option pairs
 *  9e.  Shop shipping footnote
 *  10.  Order form
 *  10a. Price reference table
 *  10b. Address block visibility
 *  11.  Contact / Hours
 *  12.  Footer
 *  13.  Scroll reveal
 *  14.  Responsive
 *  15.  Reduced motion
 */


/* ─── 0. DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  --green-900: #1e2d10;
  --green-800: #2c3d1a;
  --green-700: #3a5123;
  --green-600: #4a6630;
  --green-400: #6e9447;
  --green-200: #b8d090;
  --green-100: #e8f0d8;
  --green-050: #f4f8ec;

  --earth-700: #6b3d1e;
  --earth-500: #9a5a2a;
  --earth-300: #c8956a;
  --earth-100: #f2e0cc;

  --amber-600: #b59a1a;
  --amber-100: #fef9df;

  --berry-700: #2d0d45;
  --berry-500: #4a1a6e;
  --berry-100: #f0e8ff;

  --rose-700:  #9c1a4a;
  --rose-500:  #e0407a;
  --rose-100:  #fde8f0;

  --cream:  #faf6ed;
  --sand:   #ede5d2;
  --stone:  #cfc5b4;
  --border: #d4c9b8;

  --text-primary: #1a2210;
  --text-muted:   #546044;
  --text-inverse: #f4f8ec;

  --bg-base:    var(--cream);
  --bg-section: var(--green-050);
  --bg-dark:    var(--green-900);
  --bg-warm:    var(--earth-100);

  --c-primary:   var(--green-700);
  --c-primary-h: var(--green-800);
  --c-accent:    var(--earth-500);
  --c-limited:   var(--rose-700);

  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  clamp(1.5rem, 3vw, 2rem);
  --text-3xl:  clamp(2rem, 4vw, 2.75rem);
  --text-hero: clamp(2.5rem, 5.5vw, 4rem);

  --weight-light: 300;
  --weight-reg:   400;
  --weight-med:   500;
  --weight-semi:  600;
  --weight-bold:  700;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  --container-max: 1180px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --section-py:    clamp(3.5rem, 8vw, 6rem);

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(26,34,16,.08);
  --shadow-md: 0 4px 16px rgba(26,34,16,.10);
  --shadow-lg: 0 8px 32px rgba(26,34,16,.14);
  --shadow-xl: 0 16px 48px rgba(26,34,16,.18);

  --ease:     cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;
}


/* ─── 1. RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-reg);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul[role="list"] { list-style: none; }

a { color: var(--c-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--c-primary-h); }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-sm); }


/* ─── 2. LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-py); }


/* ─── 3. TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
h1 { font-size: var(--text-hero); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-3xl);  font-weight: var(--weight-semi); }
h3 { font-size: var(--text-xl);   font-weight: var(--weight-semi); }
h4 { font-size: var(--text-lg);   font-weight: var(--weight-semi); }
p  { color: var(--text-muted); font-size: var(--text-md); line-height: 1.75; }


/* ─── 4. BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-med);
  line-height: 1;
  padding: 0.8em 1.75em;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color var(--dur-base) var(--ease),
    border-color     var(--dur-base) var(--ease),
    color            var(--dur-base) var(--ease),
    box-shadow       var(--dur-base) var(--ease),
    transform        var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background-color: var(--c-primary-h);
  border-color: var(--c-primary-h);
  box-shadow: 0 4px 14px rgba(58,81,35,.35);
  color: var(--text-inverse);
}

.btn--outline {
  background-color: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover {
  background-color: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.nav-cta {
  background-color: var(--c-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--weight-med);
  padding: 0.5em 1.1em;
  border-radius: var(--r-md);
  transition: background-color var(--dur-base) var(--ease);
}
.nav-cta:hover { background-color: var(--c-primary-h); color: var(--text-inverse); }

.btn--lg { font-size: var(--text-md); padding: 0.9em 2.2em; }


/* ─── 5. SECTION SHARED ──────────────────────────────────────────── */
.section__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.section__header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}
.section__header h2 { margin-bottom: var(--sp-3); }
.section__sub { font-size: var(--text-base); }


/* ─── 6. HEADER / NAVBAR ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(250,246,237,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 70px;
}

.brand { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; color: var(--text-primary); }
.brand:hover { color: var(--c-primary); }

.brand-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--green-200);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  line-height: 1.2;
  color: inherit;
}
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-reg);
  letter-spacing: .04em;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin-left: auto;
}
.nav-menu a:not(.nav-cta) {
  font-size: var(--text-sm);
  font-weight: var(--weight-med);
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background-color: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--text-primary); }
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 0;
}
.nav-toggle__bar {
  display: block; height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ─── 7. HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(360px, 52vw, 580px);
  align-items: center;
  overflow: hidden;
  background-color: var(--green-900);
}

.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* Gradient: readable text left, artwork visible right */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,34,16,.90) 0%,
    rgba(26,34,16,.65) 48%,
    rgba(26,34,16,.25) 100%
  );
}

.hero__body {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-med);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-200);
  margin-bottom: var(--sp-4);
}

.hero__title { color: #fff; margin-bottom: var(--sp-5); text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero__sub { color: rgba(255,255,255,.82); font-size: var(--text-md); max-width: 500px; margin-bottom: var(--sp-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }


/* ─── 8. ABOUT ───────────────────────────────────────────────────── */
.about { background-color: var(--bg-base); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about__media { display: flex; justify-content: center; }
.about__badge-img {
  width: min(380px, 100%);
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--green-200);
}

.about__copy h2 { margin-bottom: var(--sp-5); }
.about__copy p + p { margin-top: var(--sp-4); }
.about__copy .btn { margin-top: var(--sp-6); }


/* ─── 9. PRODUCTS SHOP ───────────────────────────────────────────── */
.products {
  position: relative;
  background-color: var(--bg-section);
  overflow: hidden;
}

/* bg-label.jpg ghosted as texture behind product cards */
.products::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/bg-label.jpg');
  background-size: cover;
  background-position: center;
  opacity: .055;
  pointer-events: none;
}
.products .container { position: relative; z-index: 1; }


/* ─── 9a. SHIPPING BAR ───────────────────────────────────────────── */
.shipping-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  background-color: var(--green-100);
  border: 1px solid var(--green-200);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-10);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.shipping-bar svg { color: var(--c-primary); flex-shrink: 0; }
.shipping-bar strong { color: var(--text-primary); }
.shipping-bar a { font-weight: var(--weight-med); }
.shipping-bar__divider {
  width: 1px; height: 1.1em;
  background-color: var(--green-200);
  align-self: center;
  flex-shrink: 0;
}


/* ─── 9b. PRODUCT SHELF & CARDS ──────────────────────────────────── */
.product-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

/* Featured shelf centers the single card and widens it */
.product-shelf--featured {
  grid-template-columns: minmax(300px, 560px);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.product-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Featured card — horizontal layout on wider screens */
.product-card--featured {
  flex-direction: row;
  border-color: var(--rose-700);
  box-shadow: 0 0 0 1px var(--rose-700), var(--shadow-md);
}
.product-card--featured:hover {
  box-shadow: 0 0 0 1px var(--rose-700), var(--shadow-xl);
}

/* Art block — colored background with inline SVG jar */
.product-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-6);
  flex-shrink: 0;
}
.product-card__art--dandelion   { background-color: var(--amber-100); }
.product-card__art--blackberry  { background-color: var(--berry-100); }
.product-card__art--pricklypear { background-color: var(--rose-100); width: 200px; }

.jar-icon { width: 80px; height: 100px; }

.product-card__body {
  padding: var(--sp-6) var(--sp-7);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__body h3 { margin-bottom: var(--sp-2); }
.product-card__body > p { font-size: var(--text-sm); margin-bottom: var(--sp-5); flex: 1; }

/* Limited-time inline tag inside card */
.product-card__limited-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-limited);
  margin-bottom: var(--sp-3);
}
.product-card__limited-tag svg { color: var(--c-limited); }


/* ─── 9c. LIMITED-TIME SECTION DIVIDER ───────────────────────────── */
.limited-header {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.limited-header__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rose-700), transparent);
}
.limited-header__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background-color: var(--rose-700);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ─── 9d. SIZE OPTION PAIRS ──────────────────────────────────────── */
.product-card__sizes {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.size-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background-color: var(--green-050);
  border: 1px solid var(--green-200);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  min-width: 90px;
  flex: 1;
}
.size-option--featured {
  background-color: var(--rose-100);
  border-color: var(--rose-700);
}

.size-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-med);
  color: var(--text-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.size-price {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}
.size-option--featured .size-price { color: var(--rose-700); }


/* ─── 9e. SHOP SHIPPING FOOTNOTE ─────────────────────────────────── */
.products__shipping-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.products__shipping-note strong { color: var(--text-primary); }


/* ─── 10. ORDER FORM ─────────────────────────────────────────────── */
.order { background-color: var(--bg-warm); }

.order__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.order__intro h2 { margin-bottom: var(--sp-4); }
.order__intro > p { margin-bottom: var(--sp-6); }

.order__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--green-400);
}
.order__details li { font-size: var(--text-sm); color: var(--text-muted); position: relative; }
.order__details li::before { content: '\2013'; position: absolute; left: calc(-1 * var(--sp-4)); color: var(--green-400); }

/* Price reference mini-table in sidebar */
.order__price-ref {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}
.order__price-ref__heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* ─── 10a. PRICE REFERENCE TABLE ─────────────────────────────────── */
.price-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.price-ref-table th,
.price-ref-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.price-ref-table th {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-ref-table td { color: var(--text-primary); }
.price-ref-table td:nth-child(2),
.price-ref-table td:nth-child(3) { font-weight: var(--weight-semi); }
.price-ref-table__limited td { background-color: var(--rose-100); }
.price-ref-table__limited td:first-child { color: var(--rose-700); }
.price-ref-table__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--weight-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  background-color: var(--rose-700);
  color: #fff;
  padding: 1px 5px;
  border-radius: var(--r-sm);
  vertical-align: middle;
  margin-left: var(--sp-1);
}

/* Form card */
.order-form {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }

.field label { font-size: var(--text-sm); font-weight: var(--weight-med); color: var(--text-primary); }
.field__req { color: var(--c-accent); }
.field__opt { font-weight: var(--weight-reg); font-style: italic; font-size: var(--text-xs); color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--cream);
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(74,102,48,.15);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #b52b2b;
  box-shadow: 0 0 0 3px rgba(181,43,43,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field__error { font-size: var(--text-xs); color: #b52b2b; min-height: 1em; }

/* ─── 10b. ADDRESS BLOCK VISIBILITY ─────────────────────────────────
   Default: shown. JS hides it when fulfillment = Local Pickup.
─────────────────────────────────────────────────────────────────── */
#addressBlock { transition: opacity var(--dur-base) var(--ease); }
#addressBlock.is-hidden { opacity: 0; pointer-events: none; }

.form__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.form__actions .btn { align-self: flex-start; }
.form__note { font-size: var(--text-xs); color: var(--text-muted); font-style: italic; }

.btn__spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__banner {
  grid-column: 1 / -1;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
}
.form__banner[hidden] { display: none; }
.form__banner strong { display: block; margin-bottom: var(--sp-1); color: var(--text-primary); }
.form__banner--success { background-color: var(--green-100); border: 1px solid var(--green-400); }
.form__banner--error   { background-color: #fceaea; border: 1px solid #d88080; }


/* ─── 11. CONTACT / HOURS ────────────────────────────────────────── */
.contact { background-color: var(--bg-base); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact__info h2 { margin-bottom: var(--sp-6); }

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-6); }
.hours-table th,
.hours-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-md);
  text-align: left;
}
.hours-table th { font-weight: var(--weight-semi); color: var(--text-primary); }
.hours-table td { color: var(--text-muted); }
.hours-table__closed th,
.hours-table__closed td { opacity: .45; font-style: italic; }

.contact__address {
  font-style: normal;
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.9;
}
.contact__address strong { color: var(--text-primary); }

.contact__map { border-radius: var(--r-lg); overflow: hidden; }
.contact__map iframe { display: block; width: 100%; border: none; }

.map-stub {
  background-color: var(--sand);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-8);
}
.map-stub p  { font-weight: var(--weight-semi); color: var(--text-primary); font-size: var(--text-md); }
.map-stub small { font-size: var(--text-xs); color: var(--text-muted); }


/* ─── 12. FOOTER ─────────────────────────────────────────────────── */
.site-footer { background-color: var(--bg-dark); padding-block: var(--sp-12); }

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}

.footer__brand { display: flex; align-items: center; gap: var(--sp-4); }
.footer__logo {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--green-600);
  flex-shrink: 0;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--text-inverse);
}
.footer__sub { font-size: var(--text-xs); color: rgba(255,255,255,.55); margin-top: var(--sp-1); }

.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6); }
.footer__nav a { font-size: var(--text-sm); font-weight: var(--weight-med); color: rgba(255,255,255,.6); }
.footer__nav a:hover { color: #fff; }

.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,.3); }


/* ─── 13. SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ─── 14. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid   { grid-template-columns: 1fr; gap: var(--sp-10); }
  .order__grid   { grid-template-columns: 1fr; gap: var(--sp-10); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about__media  { order: -1; }
  .order-form    { padding: var(--sp-8); }
  /* Featured card stacks vertically on tablet */
  .product-card--featured { flex-direction: column; }
  .product-card__art--pricklypear { width: 100%; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--cream);
    border-top: 1px solid var(--border);
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-5);
    margin-left: 0;
    z-index: 199;
    transform: translateY(-110%);
    transition: transform var(--dur-base) var(--ease);
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a:not(.nav-cta) { font-size: var(--text-md); }
  .nav-cta { width: 100%; text-align: center; }

  .order-form { grid-template-columns: 1fr; padding: var(--sp-6); }
  .shipping-bar { gap: var(--sp-2); }
  .shipping-bar__divider { display: none; }
}


/* ─── 15. REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
