/* Trackside Liquors - Static Site Backup Styles */

:root {
  --maroon: #952706;
  --maroon-dark: #7a2005;
  --green: #175331;
  --green-dark: #0f3320;
  --green-footer: #114428;
  --green-footer-bar: #1d5c3a;
  --logo-width: 437px;
  --text-dark: #333;
  --text-red: #952706;
  --white: #fff;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Roboto', 'Source Sans Pro', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--text-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--green);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ===== STICKY HEADER + NAV ===== */
.site-top {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--cream) url('../images/header-bg.jpg') center/cover no-repeat;
  position: relative;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/header-texture.jpg') center/cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.header-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 19px 40px 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.header-left { text-align: left; min-width: 0; }
.header-right { text-align: right; min-width: 0; }
.header-logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-logo a {
  display: block;
  line-height: 0;
}
.header-slogan {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-red);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.header-address { font-size: 16px; color: #000; line-height: 1.2; }
.header-driveup {
  font-family: 'Prociono', Georgia, serif;
  color: var(--green);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}
.header-logo img {
  width: var(--logo-width);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.header-phone {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-red);
  line-height: 1.1;
}
.header-phone a { color: inherit; text-decoration: none; }
.header-area { font-size: 16px; color: #000; line-height: 1.2; }
.header-hours { font-size: 16px; font-weight: 700; color: var(--green); margin-top: 4px; line-height: 1.35; }
.header-hours .day { color: inherit; font-weight: inherit; }

/* ===== NAVIGATION ===== */
.site-nav {
  background-color: #952706;
  position: relative;
  z-index: 100;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-inner a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-inner a:hover { background-color: #7a2005; text-decoration: none; }
.nav-inner a.active { background: var(--green); }

/* ===== HERO BANNERS ===== */
.hero-banner {
  position: relative;
  min-height: auto;
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.hero-banner .hero-text {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 40px 20px;
}
.hero-banner h1 {
  font-family: 'Courgette', cursive;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.6);
}
.hero-banner .subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  margin-top: 8px;
}

/* ===== HOLIDAY NOTICE ===== */
.holiday-notice {
  text-align: center;
  padding: 15px 20px;
  background: var(--white);
}
.holiday-notice p {
  color: var(--green);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.35;
}
.holiday-notice .phone-link {
  color: var(--green);
  font-weight: 700;
  font-size: 28px;
  text-decoration: none;
}
.holiday-notice .phone-link a {
  color: inherit;
  text-decoration: none;
}

/* ===== HOME FEATURE SECTIONS ===== */
.feature-section {
  position: relative;
  overflow: hidden;
}
.feature-section.green-bg { background: var(--green); }
.feature-section.wood-bg {
  background: url('../images/wood-bg.jpg') center/cover no-repeat;
}
.feature-section.beer-bg {
  background: url('../images/hero-beer.jpg') center/cover no-repeat;
  padding: 40px 20px;
}
.feature-section.beer-bg .feature-inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.feature-section.liquor-bg {
  background: url('../images/hero-wine.jpg') center/cover fixed no-repeat;
}
.feature-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-section.green-bg .feature-inner { color: var(--white); }
.feature-section.wood-bg .feature-inner,
.feature-section.beer-bg .feature-inner,
.feature-section.liquor-bg .feature-inner {
  background: rgba(255,255,255,0.92);
  margin: 40px auto;
  max-width: 920px;
  border-radius: 4px;
  padding: 40px;
}
.feature-text h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--maroon);
}
.feature-section.green-bg .feature-text h2 { color: var(--white); }
.feature-text p { margin-bottom: 20px; font-size: 0.95rem; }
.feature-image { text-align: center; }
.feature-image img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--maroon);
}
.feature-section.green-bg .feature-image img { border-color: var(--white); }

.btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--maroon);
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
  text-decoration: none;
}
.feature-section.green-bg .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.feature-section.green-bg .btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

/* ===== PAGE CONTENT (two-column) ===== */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-content h2 {
  font-family: 'Lora', Georgia, serif;
  color: var(--maroon);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 6px; }
.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.sidebar-box {
  padding: 24px;
  text-align: center;
  color: var(--white);
  margin-bottom: 20px;
}
.sidebar-box.maroon { background: var(--maroon); }
.sidebar-box.green { background: var(--green); }
.sidebar-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.sidebar-box p { font-size: 0.9rem; margin: 0; }
.sidebar-video {
  background: var(--green);
  padding: 16px;
  color: var(--white);
  margin-bottom: 20px;
}
.sidebar-video p { font-size: 0.85rem; margin-bottom: 10px; }
.sidebar-video video { width: 100%; display: block; }
.sidebar-youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.sidebar-youtube iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.videos-section .sidebar-youtube {
  margin-bottom: 0;
}

/* YouTube embed + file:// fallback thumbnail */
.youtube-fallback {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.youtube-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(200, 0, 0, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.sidebar-youtube.use-fallback iframe {
  display: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials-list { max-width: 800px; margin: 0 auto; }
.testimonial-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}
.testimonial-item img { width: 48px; height: 48px; flex-shrink: 0; }
.testimonial-item blockquote { font-style: italic; margin-bottom: 8px; }
.testimonial-item cite { font-weight: 600; color: var(--maroon); font-style: normal; }
.page-intro { text-align: center; margin-bottom: 40px; }
.page-intro h1 {
  font-family: 'Lora', Georgia, serif;
  color: var(--maroon);
  font-size: 2rem;
  margin-bottom: 8px;
}
.page-intro p { color: #555; }

/* ===== TASTING EVENTS ===== */
.tasting-images { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.tasting-images img { width: 100%; border-radius: 4px; }
.covid-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 4px;
}

/* ===== VIDEOS SECTION (home) ===== */
.videos-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.video-box {
  background: var(--green);
  padding: 20px;
  color: var(--white);
}
.video-box p { margin-bottom: 12px; font-size: 0.9rem; }
.video-box video { width: 100%; }

/* ===== MAP ===== */
.map-section iframe,
.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}
.streetview-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* ===== CONTACT PAGE ===== */
.contact-info-bar {
  background: var(--green);
  color: var(--white);
  padding: 40px 20px;
}
.contact-info-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.contact-info-inner h1,
.contact-info-inner h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--white);
}
.contact-info-inner p { margin-bottom: 6px; font-size: 0.95rem; }
.contact-info-inner a { color: var(--white); }
.btn-directions {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
}
.btn-directions:hover { background: var(--white); color: var(--green); text-decoration: none; }

.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}
.contact-form-section h2 {
  font-family: 'Lora', Georgia, serif;
  color: var(--maroon);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: var(--maroon);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-submit:hover { background: var(--maroon-dark); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 0;
  background: transparent;
}
.footer-phone-bar {
  background: var(--green-footer-bar);
  padding: 10px 24px;
}
.footer-phone-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: right;
}
.footer-phone-top {
  font-family: 'Roboto', sans-serif;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.footer-phone-top:hover { text-decoration: none; opacity: 0.92; }
.footer-main {
  background: var(--green-footer);
  color: var(--white);
  padding: 32px 24px 40px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px) minmax(240px, 300px);
  gap: 0 48px;
  align-items: start;
}
.footer-spacer { display: block; }
.footer-col { min-width: 0; }
.footer-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-map {
  width: 100%;
  height: 290px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 14px;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.footer-directions {
  display: inline-block;
  padding: 9px 28px;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-directions:hover {
  background: var(--white);
  color: var(--green-footer);
  text-decoration: none;
}
.footer-contact-col {
  font-family: 'Roboto', sans-serif;
  padding-top: 2px;
}
.footer-contact-col p {
  margin-bottom: 2px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-contact-col a {
  color: var(--white);
  text-decoration: underline;
}
.footer-contact-col a:hover { opacity: 0.9; }
.payment-icons {
  display: flex;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.pay-visa { color: #1a1f71; }
.pay-discover { color: #111; font-size: 0.48rem; }
.pay-mastercard { color: #eb001b; }
.pay-card { color: #333; font-size: 0.5rem; }

.footer-legal {
  background: var(--white);
  padding: 14px 20px 16px;
  text-align: center;
  font-size: 0.72rem;
  color: #777;
}
.footer-legal a { color: #777; margin: 0 3px; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal .copyright { margin-top: 8px; color: #888; }

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 360px;
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  font-size: 0.82rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 12px; line-height: 1.5; }
.cookie-banner a { color: var(--text-red); }
.cookie-buttons { display: flex; gap: 8px; }
.cookie-buttons button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--white);
}
.cookie-buttons .btn-necessary { background: #888; }
.cookie-buttons .btn-enable-all { background: #444; }

/* ===== RESPONSIVE ===== */

/* Tablet — tighten header/nav before mobile stack */
@media (max-width: 960px) and (min-width: 769px) {
  .header-inner {
    padding: 16px 24px 8px;
  }
  .header-logo img { width: min(375px, 42vw); }
  .header-slogan { font-size: 20px; }
  .header-driveup { font-size: 22px; }
  .header-phone { font-size: 26px; }
  .header-address,
  .header-area,
  .header-hours { font-size: 15px; }
  .nav-inner a { padding: 11px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .site-top {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  /* Header: flex stack — logo centered horizontally */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 12px;
    gap: 18px;
  }
  .header-left,
  .header-right,
  .header-logo {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .header-left {
    order: 1;
    text-align: center;
  }
  .header-logo {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .header-right {
    order: 3;
    text-align: center;
  }
  .header-logo a {
    display: block;
    margin: 0 auto;
    line-height: 0;
  }
  .header-logo img {
    width: min(280px, 78vw);
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .header-slogan { font-size: 20px; }
  .header-address { font-size: 15px; }
  .header-driveup { font-size: 22px; }
  .header-phone { font-size: 26px; }
  .header-area { font-size: 15px; }
  .header-hours {
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  /* Nav — two columns, centered labels */
  .nav-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    padding: 0;
  }
  .nav-inner a {
    padding: 14px 8px;
    font-size: 12px;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .holiday-notice {
    padding: 18px 16px;
  }
  .holiday-notice p,
  .holiday-notice .phone-link { font-size: 20px; }

  .hero-banner { padding: 70px 16px; }
  .hero-banner h1 { font-size: 28px; }

  .feature-inner,
  .content-grid,
  .videos-section,
  .contact-info-inner {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }
  .feature-section.wood-bg .feature-inner,
  .feature-section.beer-bg .feature-inner,
  .feature-section.liquor-bg .feature-inner {
    margin: 24px 16px;
    padding: 28px 20px;
  }
  .feature-image img {
    width: 200px;
    height: 200px;
  }
  .page-content { padding: 32px 16px; }
  .content-grid { gap: 28px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-spacer { display: none; }
  .footer-map { height: 260px; }
  .footer-phone-bar-inner { text-align: center; }
  .footer-col { text-align: center; }
  .footer-directions { margin: 0 auto; }
  .payment-icons { justify-content: center; }

  .cookie-banner { left: 10px; right: 10px; max-width: none; }
}

@media (max-width: 480px) {
  .header-inner { padding: 16px 12px 10px; gap: 14px; }
  .header-logo img { width: min(240px, 72vw); }
  .header-slogan { font-size: 18px; }
  .header-driveup { font-size: 20px; }
  .header-phone { font-size: 24px; }
  .header-address,
  .header-area,
  .header-hours { font-size: 14px; }

  .nav-inner a {
    padding: 12px 6px;
    font-size: 11px;
  }

  .holiday-notice p,
  .holiday-notice .phone-link { font-size: 17px; }

  .hero-banner { padding: 50px 12px; }
  .hero-banner h1 { font-size: 24px; }

  .feature-text h2 { font-size: 1.35rem; }
  .page-content h2 { font-size: 1.3rem; }
}
