/* ============================================================
   Thirsty Oak Wine & Spirits — stylesheet
   Mobile-first. WCAG 2.1 AA targeted. Print-friendly.
   ============================================================ */

:root {
  /* Brand palette */
  --oak-dark:    #3D2817;   /* deep barrel oak */
  --oak:         #5C3A21;   /* sienna oak */
  --forest:      #2F4A3A;   /* logo green */
  --forest-deep: #1F3327;   /* deeper green for dark sections */
  --gold:        #C9A961;   /* warm rope gold */
  --gold-deep:   #A8893F;
  --cream:       #F5EBD8;   /* page cream */
  --cream-soft:  #FBF6EC;
  --wine:        #6B2737;   /* burgundy */
  --ink:         #1A1410;
  --ink-soft:    #2D2520;
  --line:        rgba(61, 40, 23, 0.15);

  /* Functional */
  --text:        var(--ink);
  --text-soft:   #4D3F33;
  --text-invert: #F5EBD8;
  --bg:          #FBF6EC;
  --focus:       #1F6FEB;   /* high-contrast focus ring */

  /* Type */
  --font-serif:  "Playfair Display", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (mobile → desktop) */
  --fs-xs:    clamp(0.75rem, 0.72rem + 0.10vw, 0.82rem);
  --fs-sm:    clamp(0.875rem, 0.85rem + 0.10vw, 0.95rem);
  --fs-base:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --fs-lg:    clamp(1.125rem, 1.05rem + 0.40vw, 1.35rem);
  --fs-h3:    clamp(1.35rem, 1.18rem + 0.85vw, 1.85rem);
  --fs-h2:    clamp(1.75rem, 1.40rem + 1.80vw, 2.85rem);
  --fs-h1:    clamp(2.15rem, 1.55rem + 3.10vw, 4.25rem);

  /* Layout */
  --container:  72rem;
  --gutter:     clamp(1rem, 3vw, 2rem);
  --radius:     14px;
  --shadow:     0 10px 30px rgba(31, 19, 8, 0.12);
  --shadow-lg:  0 20px 50px rgba(31, 19, 8, 0.20);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a {
  color: var(--oak);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .2s var(--ease);
}
a:hover { color: var(--wine); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--forest); color: var(--cream);
  padding: 0.75rem 1rem; z-index: 1000;
  text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--cream { background: var(--cream-soft); }
.section--dark {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--text-invert);
}
.section--dark a { color: var(--gold); }
.section--dark a:hover { color: #E8C97F; }
.section--deep {
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(201,169,97,0.18), transparent 60%),
    linear-gradient(180deg, #2A1A0F 0%, #3D2817 100%);
  color: var(--text-invert);
}
.section--deep a { color: var(--gold); }

.section__head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__lede { color: rgba(245,235,216,0.86); font-size: var(--fs-lg); }
.section__footnote { text-align: center; margin-top: 2.5rem; color: rgba(245,235,216,0.78); font-size: var(--fs-sm); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--oak);
  margin: 0 0 0.75rem;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--oak-dark);
}
.brand__mark {
  width: auto; height: 44px; flex: none;
  display: block;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand__tag  { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); }

.nav-toggle {
  appearance: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--oak-dark); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.primary-nav a:not(.btn) {
  display: block; padding: 0.6rem 0.5rem;
  text-decoration: none; color: var(--oak-dark);
  font-weight: 500; border-radius: 6px;
}
.primary-nav a:not(.btn):hover { background: rgba(201, 169, 97, 0.18); color: var(--oak-dark); }
.primary-nav__cta { margin-top: 0.5rem; }

/* Mobile drawer */
@media (max-width: 880px) {
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .primary-nav.is-open { max-height: 80vh; }
  .primary-nav ul { padding: 1rem var(--gutter) 1.25rem; }
}

@media (min-width: 881px) {
  .nav-toggle { display: none; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 0.25rem; }
  .primary-nav__cta { margin: 0 0 0 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--forest);
  --b-fg: var(--cream);
  --b-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--b-bg); color: var(--b-fg);
  border: 2px solid var(--b-bd); border-radius: 999px;
  font-weight: 600; text-decoration: none;
  letter-spacing: 0.02em; line-height: 1.1;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 44px;  /* touch target */
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: var(--fs-sm); }

.btn--primary { --b-bg: var(--forest); --b-fg: #F5EBD8; --b-bd: var(--forest); }
.btn--primary:hover { --b-bg: #233a2d; }

.btn--gold { --b-bg: var(--gold); --b-fg: #2A1A0F; --b-bd: var(--gold); }
.btn--gold:hover { --b-bg: var(--gold-deep); }

.btn--ghost {
  --b-bg: transparent; --b-fg: var(--oak-dark); --b-bd: var(--oak-dark);
}
.btn--ghost:hover { --b-bg: var(--oak-dark); --b-fg: var(--cream); }

.btn--ghost-light {
  --b-bg: transparent; --b-fg: var(--cream); --b-bd: var(--cream);
}
.btn--ghost-light:hover { --b-bg: var(--cream); --b-fg: var(--oak-dark); }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 19, 8, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-gate__card {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 28rem; text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.age-gate__logo {
  display: block; margin: 0 auto 1rem;
  width: auto; height: 96px;
}
.age-gate__card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.5rem; }
.age-gate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }
.age-gate__legal { font-size: var(--fs-xs); color: var(--text-soft); margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 80vh, 760px);
  color: var(--cream);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 20% 110%, rgba(201,169,97,0.35), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(107,39,55,0.45), transparent 60%),
    linear-gradient(160deg, #3D2817 0%, #1F3327 60%, #2A1A0F 100%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 6px),
    radial-gradient(circle at 50% 50%, transparent 0, rgba(0,0,0,0.25) 100%);
  opacity: 0.9;
}
.hero__inner { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero .eyebrow { color: var(--gold); }
.hero__title {
  font-size: var(--fs-h1); margin-bottom: 1.25rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  max-width: 22ch;
}
.hero__title-accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hero__sub {
  font-size: var(--fs-lg); max-width: 52ch;
  color: rgba(245,235,216,0.92); margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.hero__actions .btn--ghost { --b-fg: var(--cream); --b-bd: var(--cream); }
.hero__actions .btn--ghost:hover { --b-bg: var(--cream); --b-fg: var(--oak-dark); }

.hero__chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero__chips li {
  font-size: var(--fs-sm); font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 235, 216, 0.12);
  border: 1px solid rgba(245, 235, 216, 0.25);
  color: rgba(245,235,216,0.92);
}

/* ---------- Two-column blocks ---------- */
.two-col {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.05fr 1fr; }
  .two-col--reverse .two-col__media { order: 2; }
}

/* ---------- Logo figure (About) ---------- */
.logo-figure {
  margin: 0; max-width: 520px; margin-inline: auto;
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
}
.logo-figure img {
  width: 100%; height: auto;
  display: block;
}

.callout {
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  background: rgba(201,169,97,0.18);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}

/* ---------- Cards (selection grid) ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  background: rgba(245, 235, 216, 0.06);
  border: 1px solid rgba(245, 235, 216, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  background: rgba(245, 235, 216, 0.10);
  border-color: rgba(201,169,97,0.55);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201,169,97,0.18);
  color: var(--gold);
  margin-bottom: 1rem;
}
.card__icon svg { width: 32px; height: 32px; }
.card h3 { color: var(--cream); margin-bottom: 0.5rem; }
.card p  { color: rgba(245,235,216,0.86); }
.card__hint {
  margin-top: 0.85rem; font-size: var(--fs-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

/* ---------- Visit / info grid ---------- */
.info-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0;
}
@media (min-width: 540px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-grid dt {
  font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--oak);
  font-weight: 700; margin-bottom: 0.35rem;
}
.info-grid dd { margin: 0; }
.info-grid address { font-style: normal; }

.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td {
  padding: 0.35rem 0;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px dashed var(--line);
}
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.link-arrow {
  display: inline-block; margin-top: 0.5rem;
  font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* Map card */
.map-card {
  display: block; text-decoration: none; color: var(--oak-dark);
  border-radius: var(--radius); overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.map-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.map-card__viz { aspect-ratio: 5 / 4; background: #E8D9B8; }
.map-card__viz svg { width: 100%; height: 100%; }
.map-card__cta {
  display: block; text-align: center;
  padding: 0.9rem 1rem; font-weight: 600;
  background: var(--forest); color: var(--cream);
}

/* ---------- Delivery ---------- */
.delivery {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .delivery { grid-template-columns: 1.2fr 1fr; } }
.delivery__btns {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
}
.delivery__btns .btn { width: 100%; }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: 0.5rem;
}
.contact-list strong {
  display: inline-block; min-width: 6rem;
  font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--oak); font-weight: 700;
}

/* Form */
.form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.form__title { font-family: var(--font-serif); margin-bottom: 1rem; font-size: var(--fs-h3); }
.field { margin-bottom: 1rem; }
.field--checkbox { display: flex; gap: 0.6rem; align-items: flex-start; }
.field--checkbox label { font-size: var(--fs-sm); }
.field label {
  display: block; font-weight: 600; font-size: var(--fs-sm);
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: var(--fs-base);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 74, 58, 0.18);
  outline: none;
}
.field input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: 0.15rem;
  accent-color: var(--forest);
}
.field__hint { color: var(--text-soft); font-size: var(--fs-xs); margin-top: 0.25rem; display: block; }
.form__status { margin-top: 0.75rem; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: var(--forest); }
.form__status.is-err { color: var(--wine); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--oak-dark);
  color: rgba(245,235,216,0.86);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #E8C97F; }
.site-footer__inner {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer__brand { font-family: var(--font-serif); font-size: 1.25rem; color: var(--cream); margin-bottom: 0.35rem; }
.footer__head { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.45rem; }
.site-footer__base {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(245,235,216,0.18);
  font-size: var(--fs-xs); color: rgba(245,235,216,0.72);
  text-align: center;
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .card, .map-card { transition: none !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .age-gate, .hero__bg, .hero__overlay, .nav-toggle, .delivery__btns, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; break-inside: avoid; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
}

/* ---------- High contrast / forced-colors ---------- */
@media (forced-colors: active) {
  .btn, .card, .map-card, .form { border-color: CanvasText !important; }
  .btn { background: ButtonFace !important; color: ButtonText !important; }
}
