/* ============================================================
   index.css — homepage styles
   ============================================================ */

/* ── HERO CAROUSEL ── */
.carousel {
  position: relative;
  height: calc(100vh - 66px);
  overflow: hidden;
  z-index: 1;
}
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform .85s cubic-bezier(.77,0,.175,1);
}
.slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s ease;
}
.slide.active img { transform: scale(1); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,.88) 0%, rgba(10,8,6,.3) 50%, rgba(10,8,6,.1) 100%);
  pointer-events: none;
}

/* Hero content overlay */
.hero-over {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5rem 4rem;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 3rem;
  pointer-events: none;
}
.hero-tag {
  font-size: .6rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  opacity: .55;
}
.hero-tag::before { content: ''; width: 25px; height: 1px; background: var(--text); opacity: .4; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: white;
}
.hero-btns { display: flex; gap: 1rem; margin-top: 2rem; }
.hero-btns a { pointer-events: all; }

/* Tonight panel */
.hero-info-panel {
  background: rgba(10,8,6,.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  min-width: 250px;
  pointer-events: all;
}
.hip-label {
  font-size: .55rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.hip-item {
  font-size: .82rem;
  color: rgba(248,244,239,.7);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .8rem;
}
.hip-item:last-child { border: none; }
.hip-time { color: var(--red); font-size: .7rem; min-width: 48px; }

/* Carousel controls */
.cbtn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  background: rgba(10,8,6,.55);
  border: 1px solid rgba(248,244,239,.2);
  color: white;
  width: 46px; height: 46px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.cbtn:hover { background: var(--red); border-color: var(--red); }
.cprev { left: 1.5rem; }
.cnext { right: 1.5rem; }
.cdots {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .5rem;
  z-index: 20;
}
.cdot {
  width: 24px; height: 3px;
  background: rgba(248,244,239,.2);
  cursor: pointer;
  transition: all .3s;
}
.cdot.on { background: var(--gold); width: 36px; }

/* ── FOOD SECTION ── */
.food-sec { border-top: 1px solid var(--border); }
.food-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 480px; }
.food-cell { overflow: hidden; position: relative; }
.food-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s, filter .5s;
  filter: brightness(.65);
}
.food-cell:hover img { transform: scale(1.05); filter: brightness(.5); }
.food-border { border-right: 1px solid var(--border); }
.food-cta {
  padding: 3.5rem 3rem;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.food-cta-label {
  font-size: .58rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
}
.food-cta-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.food-cta-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-style: italic;
}

/* ── EVENTS TILES ── */
.events-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.events-hdr {
  padding: 4rem 4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
}
.events-hdr h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: .95;
  color: var(--text);
}
.events-hdr h2 em { color: var(--red); font-style: normal; }
.events-cal-link {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: .2rem;
  transition: all .2s;
}
.events-cal-link:hover { color: var(--gold); border-color: var(--gold); }
.events-tiles { display: grid; grid-template-columns: repeat(3,1fr); }
.etile {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  transition: background .3s;
  text-decoration: none;
  display: block;
}
.etile:last-child { border-right: none; }
.etile:hover { background: var(--bg3); }
.etile-day {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--text);
  transition: color .3s;
}
.etile:hover .etile-day { color: var(--gold); }
.etile-when {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.etile-title {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: .4rem;
}
.etile-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.75; }

/* ── WINE GALLERY ── */
.wine-gallery { padding: 5rem 3rem; background: var(--bg2); }
.wg-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.wg-card { background: var(--bg3); overflow: hidden; transition: background .3s; }
.wg-card:hover { background: var(--bg4); }
.wg-img { height: 200px; overflow: hidden; }
.wg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
  filter: brightness(.8);
}
.wg-card:hover .wg-img img { transform: scale(1.07); filter: brightness(.95); }
.wg-info { padding: 1.4rem; }
.wg-region { font-size: .58rem; letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-bottom: .3rem; }
.wg-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: .25rem;
}
.wg-detail { font-size: .7rem; color: var(--text-muted); line-height: 1.65; }
.wg-note { font-size: .78rem; color: var(--text-muted); font-style: italic; font-family: var(--font-body); margin-top: .5rem; }

/* ── POPUP ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}
.popup-overlay.show { opacity: 1; pointer-events: all; }
.popup {
  background: linear-gradient(135deg, #2e0807 0%, #5c1210 60%, #2e0807 100%);
  max-width: 780px;
  width: 95%;
  padding: 0;
  position: relative;
  border: 1px solid var(--border-gold);
  animation: popIn .5s ease forwards;
  overflow: hidden;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-inner { display: grid; grid-template-columns: 1fr 1fr; }
.popup-img-col { overflow: hidden; min-height: 360px; }
.popup-img-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-text-col {
  padding: 2.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.popup-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: rgba(248,244,239,.4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  z-index: 2;
}
.popup-close:hover { color: white; }
.popup-label {
  font-size: .55rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(201,168,76,.7);
  margin-bottom: .8rem;
}
.popup-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.popup-text {
  font-size: .82rem;
  color: rgba(248,244,239,.6);
  line-height: 1.9;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-style: italic;
}
.popup-btns { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.popup-skip {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(248,244,239,.3);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
  font-family: var(--font-ui);
}
.popup-skip:hover { color: rgba(248,244,239,.6); }

/* ── HOMEPAGE MOBILE ── */
@media (max-width: 768px) {
  .hero-over { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .hero-info-panel { display: none; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .food-grid { grid-template-columns: 1fr; height: auto; }
  .food-cell { height: 200px; }
  .food-cta { padding: 2.5rem 1.5rem; }
  .events-tiles { grid-template-columns: 1fr; }
  .events-hdr { padding: 2rem 1.5rem; flex-direction: column; gap: 1rem; align-items: flex-start; }
  .wg-grid { grid-template-columns: 1fr 1fr; }
  .popup-inner { grid-template-columns: 1fr; }
  .popup-img-col { min-height: 200px; max-height: 220px; }
  .popup-text-col { padding: 1.8rem; }
  .etile { padding: 2rem 1.5rem; }
  .etile-day { font-size: 3.5rem; }
  .reviews-sec { padding: 3rem 1.5rem; }
  .wine-gallery { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .wg-grid { grid-template-columns: 1fr; }
}
