/* ============================================================
   LE CAVEAU DALLAS — warm neighborhood wine shop
   Palette: cream #F7F7F4, wine red #9D0905, dark red #720704,
   charcoal #2B2724, earthy tan #8A7968
   Type: EB Garamond (serif) + Karla (sans)
   ============================================================ */

:root {
  --cream: #F7F7F4;
  --cream-deep: #F0EEE7;
  --paper: #FFFDF9;
  --wine: #9D0905;
  --wine-dark: #720704;
  --charcoal: #2B2724;
  --ink-soft: #56504A;
  --tan: #8A7968;
  --line: #E3DFD5;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --shadow-soft: 0 10px 30px rgba(43, 39, 36, 0.08);
  --shadow-card: 0 14px 40px rgba(43, 39, 36, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wine); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared section typography ---------- */
.section { padding: 96px 0; }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-title em, .title-accent { font-style: italic; color: var(--wine); }

.section-title.center { text-align: center; }

.section-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  text-align: center;
}

.section-head { margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.btn-solid:hover { background: var(--wine-dark); border-color: var(--wine-dark); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn-outline-dark {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 247, 244, 0.97);
  box-shadow: 0 2px 20px rgba(43, 39, 36, 0.08);
  padding: 10px 0;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link { flex-shrink: 0; display: flex; }

.logo-img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
  transition: width 0.3s ease, filter 0.3s ease;
}

.site-header.scrolled .logo-img {
  width: 130px;
  filter: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.site-header.scrolled .main-nav a {
  color: var(--charcoal);
  text-shadow: none;
}

.site-header.scrolled .main-nav a:not(.nav-cta):hover { color: var(--wine); }

.main-nav .nav-cta {
  background: var(--wine);
  color: #fff;
  text-shadow: none;
  padding: 12px 24px;
  border-radius: 2px;
}
.main-nav .nav-cta:hover { background: var(--wine-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .nav-toggle span,
.nav-open .nav-toggle span { background: var(--charcoal); box-shadow: none; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.55) 0%, rgba(20, 12, 10, 0.35) 45%, rgba(20, 12, 10, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 11vw, 128px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.hero-title em { font-style: italic; }

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: #F3E9DC;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- About ---------- */
.about-section { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text p { color: var(--ink-soft); margin-bottom: 20px; }
.about-text strong { color: var(--charcoal); }

.about-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--wine) !important;
}

.about-media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}

/* ---------- Wine Selection ---------- */
.shop-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.shop-media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}

.shop-lead { color: var(--ink-soft); margin-bottom: 32px; }

.category-list { list-style: none; margin-bottom: 40px; }

.category-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.category-list li:first-child { border-top: 1px solid var(--line); }

.cat-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--wine);
  min-width: 210px;
  flex-shrink: 0;
}

.cat-desc { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Pairings ---------- */
.pairings-section { background: var(--cream); }

.pairing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pairing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 36px 30px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pairing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(157, 9, 5, 0.25);
}

.pairing-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.pairing-card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--wine);
  margin-top: 10px;
}

.pairing-card p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Tastings / Events ---------- */
.tastings-section {
  background: var(--wine-dark);
  background: linear-gradient(180deg, #7E0B04 0%, #720704 100%);
}

.tastings-section .section-eyebrow { color: #E8C9B0; }
.tastings-section .section-title { color: #fff; }
.tastings-section .title-accent { color: #F0B98D; }
.tastings-section .section-sub { color: rgba(255, 255, 255, 0.82); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 72px;
}

.event-card {
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.event-card:hover { transform: translateY(-6px); }

.event-media { aspect-ratio: 16 / 10; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.event-card:hover .event-media img { transform: scale(1.04); }

.event-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.event-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 10px;
}

.event-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.event-body p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }

.event-rsvp {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wine);
  align-self: flex-start;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}
.event-rsvp:hover { border-bottom-color: var(--wine); }

/* RSVP form */
.rsvp-wrap { display: flex; justify-content: center; }

.rsvp-inner {
  background: var(--paper);
  border-radius: 2px;
  padding: 48px 52px;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-card);
}

.rsvp-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.rsvp-sub { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 30px; }
.rsvp-sub a { color: var(--wine); font-weight: 600; }

#contactForm .form-row { margin-bottom: 20px; }

#contactForm label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color 0.25s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--wine);
}

#contactForm textarea { resize: vertical; }

/* ---------- Story ---------- */
.story-section { background: var(--cream); }
.story-grid .about-media { order: 2; }

/* ---------- Visit ---------- */
.visit-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
}

.visit-head { margin-bottom: 56px; }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.visit-block { margin-bottom: 32px; }

.visit-block h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 10px;
}

.visit-block p { color: var(--charcoal); font-size: 17px; }
.visit-block a { text-decoration: none; }
.visit-block a:hover { text-decoration: underline; }

.hours-table { border-collapse: collapse; width: 100%; max-width: 320px; }

.hours-table td {
  padding: 7px 0;
  font-size: 16px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table .closed { color: var(--wine); font-weight: 600; }

.visit-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.visit-map {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.visit-map iframe { display: block; width: 100%; height: 520px; }

/* ---------- Final CTA ---------- */
.final-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.final-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 14, 11, 0.5);
  z-index: 1;
  pointer-events: none;
}

.final-content { position: relative; z-index: 2; padding: 80px 24px; }

.final-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 84px);
  color: #fff;
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo { width: 190px; margin-bottom: 18px; }

.footer-brand .footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0B98D;
  margin-bottom: 16px;
}

.footer-col p { font-size: 15px; margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col a:hover { color: #F0B98D; }

.footer-ig-note { color: rgba(255, 255, 255, 0.55); font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 24px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit { margin-top: 8px; }

.footer-credit a {
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.5;
  font-weight: 300;
  text-decoration: none;
}

.footer-credit a:hover { color: rgba(255, 255, 255, 0.9); opacity: 1; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .about-grid, .shop-grid, .visit-grid { grid-template-columns: 1fr; gap: 44px; }
  .shop-media { order: -1; }
  .pairing-grid, .events-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit-map iframe { height: 380px; }
}

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

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 90px 36px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -12px 0 40px rgba(43, 39, 36, 0.15);
    z-index: 200;
  }

  .main-nav a {
    color: var(--charcoal);
    text-shadow: none;
    font-size: 16px;
    padding: 12px 0;
    width: 100%;
  }

  .main-nav .nav-cta { margin-top: 18px; text-align: center; }

  .main-nav.open { transform: translateX(0); }

  .site-header { background: rgba(247, 247, 244, 0.97); padding: 12px 0; }
  .site-header .logo-img { width: 130px; filter: none; }
  .site-header .main-nav a { text-shadow: none; color: var(--charcoal); }

  .pairing-grid, .events-grid { grid-template-columns: 1fr; }
  .rsvp-inner { padding: 36px 26px; }
  .hero { min-height: 560px; }
  .cat-name { min-width: 0; flex-shrink: 1; }
  .category-list li { flex-direction: column; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .hero-sub { font-size: 16px; }
  .hero-buttons .btn { width: 100%; }
  .visit-buttons .btn { width: 100%; text-align: center; }
}
