:root {
  --dark: #1b1b1b;
  --muted: #6b7280;
  --accent: #7a0f1b; /* wine red */
  --bg: #ffffff;
  --container: 1180px;
  --gap: 16px;
  --radius: 12px;

  /* fluid type scale */
  --fs-sm: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl: clamp(1.6rem, 1.4rem + 1.6vw, 2.25rem);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--fs-md);
  color: var(--dark);
  background-color: #2C5659; /* site bg behind hero */
  line-height: 1.5;
}

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

.hidden { position: absolute; left: -9999px; }

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Header / Nav (base styles)
   =========================== */
.header,
.site-nav {
  background: #E1D2B3;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(28px, 6vw, 64px);
}

.header .bar,
.site-nav .bar {
  position: relative;
  z-index: 1;
  gap: 24px;
  padding: 20px 40px;
}

.header::after {
  content: "Drink wine with joy!";
  position: absolute;
  left: 50%;
  bottom: clamp(6px, 2vw, 14px);
  transform: translateX(-50%) scaleX(0.75);
  font-size: clamp(28px, 9vw, 120px);
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  letter-spacing: -2px;
  word-spacing: -6px;
  line-height: 0.9;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  width: min(92vw, 1400px);
  white-space: normal;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
}

.logo img,
.site-logo img {
  height: clamp(100px, 10vw, 160px); /* min 100px, scales with screen, max 160px */
  display: block;
}

.menu-toggle {
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
}
.nav-panel > summary::-webkit-details-marker { display: none; }

.site-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
}
/* Instagram widget section */
.social-widget {
  background:#111; color:#fff; padding:48px 20px;
}
.social-widget__header {
  display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:20px;
}
.social-widget__header h3 {
  letter-spacing:2px; text-transform:uppercase; margin:0;
}

/* Tabs */
.social-widget__tabs { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:16px; }
.tab { background:transparent; border:1px solid #c59d5f; color:#fff; padding:8px 16px; border-radius:999px; cursor:pointer; }
.tab.is-active { background:#c59d5f; }

/* Pane visibility + iframe styling */
.is-hidden {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.lightwidget-widget,
.social-widget iframe {
  width:100%;
  border:0;
  overflow:hidden;
  display:block;
  aspect-ratio:16/9;           /* primary responsive sizing */
  border-radius:16px;
}

/* 🔽 Add these fallbacks right after the rule above */

/* Fallback for browsers that ignore aspect-ratio (some mobile/webviews) */
@supports not (aspect-ratio: 1 / 1) {
  .lightwidget-widget,
  .social-widget iframe {
    height: 520px;             /* tweak if you want taller/shorter */
  }
}

/* Extra safety on small screens */
@media (max-width: 600px) {
  .lightwidget-widget,
  .social-widget iframe {
    min-height: 420px;         /* ensures visible area on mobile */
  }
}


.site-menu a.active { color: var(--accent); }

.store-btn,
.btn-store {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--dark);
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
}

.nav { display: contents; }
.nav-links { display: contents; }
.nav-cta { display: contents; }

/* ===========================
   HERO helpers
   =========================== */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.hero-center {
  position: relative;
  z-index: 1;
  width: min(800px, 92vw);
  padding: 20px;
}

/* ===== Home page: two clickable location cards ===== */
.location-select {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}
@media (max-width: 800px) {
  .location-grid { grid-template-columns: 1fr; }
}

.location-card {
  position: relative;
  display: block;
  border-radius: 16px;
  padding-bottom: 28px;
  overflow: visible;
  aspect-ratio: 16 / 10;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  transform: translateZ(0);
}
.location-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.location-card .card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.02);
  transition: transform .35s ease;
}

.location-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 15%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
  display: grid;
  align-content: end;
  padding: 16px;
  color: #fff;
}
.location-card h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 4.5vw, 28px);
  line-height: 1.1;
}
.location-card .card-sub { margin: 0; opacity: .95; }

.location-card .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  vertical-align: middle;
}

.location-card:hover .card-bg { transform: scale(1.06); }
.location-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.62) 18%, rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.06) 100%);
}

.hero--home,
.hero--trussville,
.hero--locations,
.hero--about,
.hero--events,
.hero--private {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero--home { min-height: 80vh; background: #000 url("images/home-hero.jpg") center/cover no-repeat; }
.hero--trussville { min-height: 80vh; background: #000 url("images/trussville-hero.jpg") center/cover no-repeat; }
.hero--locations { min-height: 50vh; background: #000 url("images/locations-hero.jpg") center/cover no-repeat; }
.hero--about { min-height: 80vh; background: #000 url("images/about-hero.jpg") center/cover no-repeat; }
.hero--events { min-height: 80vh; background: #000 url("images/events-hero.jpg") center/cover no-repeat; }
.hero--private { min-height: 80vh; background: #000 url("images/private-events-hero.jpg") center/cover no-repeat; }

/* ===========================
   About
   =========================== */
.about {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.about img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ===========================
   Frosted card + buttons
   =========================== */
.glass-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  color: #fff;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.glass-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
}
.glass-card .subnote { margin: 0 0 16px; font-weight: 700; letter-spacing: 0.2px; opacity: 0.95; }
.btn-link {
  display: inline-block;
  margin-right: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn-link:hover { background: rgba(255,255,255,0.12); }

.btn-black {
  color: #000 !important;
  border-color: #000;
  background: rgba(255,255,255,0.9);
}
.btn-black:hover { background: #fff; }

@media (max-width: 420px) {
  .glass-card { padding: 18px; }
}

/* ===========================
   Locations page blocks (FIXED)
   =========================== */
.locations-section {
  padding: 40px 0 60px;
  background: #2C5659;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* responsive fix */
  gap: 22px;
}
.location-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  color: #fff;
  padding: 20px;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  min-width: 0; /* prevents overflow */
}
.location-card h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 28px);
}
.location-meta { margin: 10px 0 14px; line-height: 1.4; opacity: 0.95; }
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 2px;
  margin: 12px 0 0;
}
.hours {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px dashed rgba(255,255,255,0.35);
  padding: 6px 0;
}
.hours li:first-child { border-top: 0; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===========================
   Forms
   =========================== */
.glass-card form { display: grid; gap: 12px; }
.glass-card label { color: #fff; font-weight: 600; display: grid; gap: 6px; }
.glass-card input[type="text"],
.glass-card input[type="email"],
.glass-card input[type="tel"],
.glass-card input[type="number"],
.glass-card input[type="file"],
.glass-card select,
.glass-card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.22);
  color: #fff;
  font: inherit;
}
.glass-card input::placeholder,
.glass-card textarea::placeholder { color: rgba(255,255,255,0.8); }
.glass-card input[type="file"] { background: #0f172a; }

.glass-card button[type="submit"],
.submit-btn {
  margin-top: 4px;
  color: #000;
  background: rgba(255,255,255,0.9);
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.glass-card button[type="submit"]:hover,
.submit-btn:hover { background: #fff; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 60px 20px;
  text-align: center;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center; /* ensures h3 and buttons are centered together */
  margin-bottom: 40px;
}

.footer-subscribe h3 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: #fff;
  text-align: center; /* redundant but safe for inherited overrides */
}

.subscribe-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.subscribe-btn {
  display: inline-block;
  background-color: #c59d5f; /* gold accent */
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #b38b50;
}
/* Footer row: social left, links right */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* pushes links to the right */
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;                  /* lets it wrap nicely on tiny screens */
}
/* Social icons row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px; /* adjust to taste */
}

.footer-social a svg,
.footer-social a img {
  height: 22px;
  width: 22px;
  display: block;
}


/* Footer links as a tidy row aligned right */
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;       /* ensures it hugs the right when wrapping */
  text-align: right;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { text-decoration: underline; }

/* Optional: on very narrow screens, center the links for symmetry */
@media (max-width: 500px) {
  .footer-inner { justify-content: center; }
  .footer-links { margin-left: 0; justify-content: center; text-align: center; }
}
