/* ============================================================
   The Waffle Taco – Home Page Styles
   /assets/css/home.css
   ============================================================ */

/* ── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0a0604;
}

/* Each slide */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

/* Background image per slide – set via data-bg in JS */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* Dark overlay – bottom-to-top gradient, heavier on left for text legibility */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 6, 4, 0.78) 0%,
    rgba(10, 6, 4, 0.60) 40%,
    rgba(10, 6, 4, 0.25) 75%,
    rgba(10, 6, 4, 0.10) 100%
  );
}

/* Slide content */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  padding-top: var(--nav-h);
  max-width: 680px;
  width: 100%;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Hero title */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-title-line {
  display: block;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 40px;
}

/* Hero CTA row */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Frosted glass "Order Online" button */
.btn-frost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-frost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

/* ── Slide entrance animation ───────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide.active .hero-badge     { animation: slideUp 0.7s var(--ease-spring) 0.1s both; }
.slide.active .hero-title-line:nth-child(1) { animation: slideUp 0.8s var(--ease-spring) 0.25s both; }
.slide.active .hero-title-line:nth-child(2) { animation: slideUp 0.8s var(--ease-spring) 0.38s both; }
.slide.active .hero-subtitle  { animation: slideUp 0.8s var(--ease-spring) 0.5s both; }
.slide.active .hero-cta       { animation: slideUp 0.8s var(--ease-spring) 0.62s both; }

/* ── Slider controls ────────────────────────────────────────── */
.slider-nav {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  padding: 0 64px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

/* Slide counter */
.slider-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 40px;
}

/* ── Info Strip ─────────────────────────────────────────────── */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 40px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--rust);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.info-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Featured Menu ──────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61, 43, 31, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(61, 43, 31, 0.13);
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.menu-card-body {
  padding: 22px 24px 26px;
}

.menu-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
  line-height: 1.2;
}

.menu-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.btn-add:hover {
  transform: scale(1.1);
  background: var(--rust-dark);
}

.btn-add svg {
  width: 18px;
  height: 18px;
}

/* ── About Strip ─────────────────────────────────────────────── */
.about-strip {
  background: var(--brown);
  color: var(--white);
  border-radius: 28px;
  margin: 0 40px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.about-strip::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232, 160, 32, 0.08);
  pointer-events: none;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-title em {
  color: var(--gold);
  font-style: italic;
}

.about-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-strip {
    gap: 48px;
    padding: 60px;
  }
}

@media (max-width: 768px) {
  .slide-content {
    padding: 0 24px;
    padding-top: var(--nav-h);
  }

  .slider-nav {
    padding: 0 24px;
    bottom: 28px;
    justify-content: center;
  }

  .info-strip {
    grid-template-columns: 1fr;
    margin-top: 40px;
    padding: 0 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .about-strip {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
    margin: 0 20px;
  }
}

/* ── Slide background images ────────────────────────────────── */
/* Replace these Unsplash URLs with your own photos when ready.          */
/* To swap: upload your image to /assets/img/ and update the url() here. */

/* Slide 1 – waffle flatlay overhead with berries and fruit */
.slide-bg--1 {
  background-image: url('https://images.unsplash.com/photo-1528207776546-365bb710ee93?w=1920&q=85');
}

/* Slide 2 – golden waffle close-up with strawberries */
.slide-bg--2 {
  background-image: url('https://images.unsplash.com/photo-1484723091739-30a097e8f929?w=1920&q=85');
}

/* Slide 3 – brunch spread overhead with eggs, coffee, and waffles */
.slide-bg--3 {
  background-image: url('https://images.unsplash.com/photo-1551782450-a2132b4ba21d?w=1920&q=85');
}

/* Slide 4 – fresh breakfast taco / Mexican fusion plating */
.slide-bg--4 {
  background-image: url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=1920&q=85');
}
