/* ═══════════════════════════════════════════════════════════════
   ONOTRIA WINE COUNTRY CUISINE — _shared.css
   Shared tokens, components, nav, footer, animations
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --burgundy:   #57151e;
  --burgundy-dk:#3d0e15;
  --cream:      #f0ebe0;
  --cream-dk:   #e5dfd3;
  --gold:       #bc914c;
  --gold-lt:    #d4a96a;
  --brown-ink:  #241f1b;
  --brown-soft: #5c4a3a;
  --text-muted: rgba(36,31,27,0.55);
  --border:     rgba(188,145,76,0.22);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--brown-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITY ────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.section-title {
  font-family: 'Gideon Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--brown-ink);
}
.section-title.on-dark { color: var(--cream); }
.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--brown-soft);
}
.lead.on-dark { color: rgba(240,235,224,0.75); }
.rule {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
  border: none;
}
.rule.centered { margin: 1.4rem auto; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  min-height: 44px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(188,145,76,0.3);
}
.btn-outline-dark {
  background: transparent;
  color: var(--brown-ink);
  border-color: rgba(36,31,27,0.4);
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240,235,224,0.45);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22,0.68,0,1.2), transform 0.85s cubic-bezier(0.22,0.68,0,1.2);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.78);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta:hover { color: var(--gold-lt); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s, opacity 0.35s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0;
  z-index: 800;
  background: var(--burgundy-dk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-drawer.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-drawer a {
  font-family: 'Gideon Roman', serif;
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--gold); }
.mobile-drawer .mobile-phone {
  margin-top: 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(188,145,76,0.4);
  padding: 0.8rem 1.8rem;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   PHONE BAR — shown on every page before footer
══════════════════════════════════════════════════════════════ */
.phone-bar {
  background: var(--burgundy-dk);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(188,145,76,0.15);
}
.phone-bar .eyebrow {
  margin-bottom: 1.2rem;
}
.phone-bar .phone-num {
  font-family: 'Gideon Roman', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--cream);
  display: block;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  /* Large tap target on mobile */
  padding: 0.4rem 0;
}
.phone-bar .phone-num:hover { color: var(--gold); }
.phone-bar .phone-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(240,235,224,0.45);
  display: block;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .phone-bar { padding: 3rem 1.5rem; }
  /* ensure the number is always a big easy tap target */
  .phone-bar .phone-num { font-size: clamp(2.4rem, 10vw, 3.2rem); }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--burgundy);
  color: rgba(240,235,224,0.75);
  padding: 5rem 5rem 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 1.2rem;
}
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(240,235,224,0.55);
  max-width: 200px;
}
.footer-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a,
.footer-contact a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: rgba(240,235,224,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold); }
.footer-hours table {
  width: 100%;
  border-collapse: collapse;
}
.footer-hours td {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: rgba(240,235,224,0.6);
  padding: 0.25rem 0.5rem 0.25rem 0;
  line-height: 1.6;
  vertical-align: top;
}
.footer-hours td:first-child {
  font-weight: 500;
  color: rgba(240,235,224,0.8);
  white-space: nowrap;
  padding-right: 1rem;
}
.footer-contact p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(240,235,224,0.6);
  margin-bottom: 0.4rem;
}
.footer-insta-icon {
  display: inline-block;
  margin-top: 0.6rem;
  color: rgba(240,235,224,0.6);
  transition: color 0.2s;
}
.footer-insta-icon:hover { color: var(--gold); }
.footer-insta-icon svg { display: block; }
.footer-bottom {
  border-top: 1px solid rgba(188,145,76,0.15);
  margin-top: 4rem;
  padding: 1.8rem 0;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  #nav { padding: 0 2rem; }
}
@media (max-width: 600px) {
  #nav { padding: 0 1.5rem; }

  /* ── Mobile footer: centered, compact, divider-separated ── */
  #footer { padding: 2.5rem 1.5rem 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  /* Logo block — no tagline */
  .footer-brand {
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(188,145,76,0.14);
  }
  .footer-brand img {
    margin: 0 auto;
    height: 32px;
    margin-bottom: 0;
  }
  .footer-brand p { display: none; }

  /* Nav hidden — already in hamburger drawer */
  .footer-nav { display: none; }

  /* Hours — compact, centered table */
  .footer-hours {
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(188,145,76,0.14);
  }
  .footer-hours .footer-label { margin-bottom: 0.9rem; }
  .footer-hours table { margin: 0 auto; }
  .footer-hours td { font-size: 0.82rem; padding: 0.18rem 0.5rem 0.18rem 0; }
  .footer-hours td:first-child { padding-right: 0.8rem; }

  /* Contact — centered, no label */
  .footer-contact { padding: 1.6rem 0; }
  .footer-contact .footer-label { display: none; }
  .footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .footer-insta-icon {
    display: block;
    margin: 0.8rem auto 0;
  }

  .footer-bottom { margin-top: 1.8rem; }
}
