/* =====================================================
   SUITO — HOMEPAGE STYLESHEET
   File: client/css/home.css
   Purpose: styles for index.html sections only —
   hero/video banner, logo feature, welcome, eat-chill-
   connect, and best sellers.
===================================================== */

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

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Designed gradient fallback per slide — shown automatically until a real
   photo exists at the path in index.html (the <img> simply hides itself
   on error, revealing the gradient behind it). Gives each slide a distinct
   mood even before real photography is added. */
.hero-grad-1 { background: radial-gradient(circle at 30% 30%, #5c1622 0%, #2a0a12 70%); }
.hero-grad-2 { background: radial-gradient(circle at 70% 40%, #3a0f1c 0%, #1c0509 70%); }
.hero-grad-3 { background: radial-gradient(circle at 50% 60%, #6b2a1f 0%, #2a0a12 70%); }
.hero-grad-4 { background: radial-gradient(circle at 40% 20%, #7a1f2b 0%, #24080f 70%); }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(42,10,18,0.5) 0%, rgba(42,10,18,0.32) 45%, rgba(42,10,18,0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay;
  background-size: auto, 140px 140px;
  pointer-events: none;
}

/* Soft dark vignette directly behind the hero content for extra legibility over any slide */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -60px -80px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20,6,10,0.6) 0%, rgba(20,6,10,0) 72%);
}

/* Ambient bokeh — soft glowing orbs suggesting string lights at night */
.hero-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-bokeh span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,50,70,0.55) 0%, rgba(168,50,70,0) 70%);
  filter: blur(2px);
  animation: drift 12s ease-in-out infinite;
}
.hero-bokeh span:nth-child(1) { width: 90px; height: 90px; top: 18%; left: 12%; animation-delay: 0s; }
.hero-bokeh span:nth-child(2) { width: 50px; height: 50px; top: 65%; left: 22%; animation-delay: 2.5s; }
.hero-bokeh span:nth-child(3) { width: 70px; height: 70px; top: 30%; left: 78%; animation-delay: 1s; }
.hero-bokeh span:nth-child(4) { width: 40px; height: 40px; top: 72%; left: 85%; animation-delay: 4s; }
.hero-bokeh span:nth-child(5) { width: 110px; height: 110px; top: 8%; left: 55%; animation-delay: 3s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50% { transform: translateY(-22px) scale(1.12); opacity: 0.85; }
}

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

/* The written/text SUITO logo — the hero's branding element */
.hero-logo-mark {
  width: clamp(220px, 30vw, 360px);
  margin: 0 auto 24px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s var(--ease) 0.1s forwards;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.45));
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* "Watch Video" — an outline button styled for the dark hero */
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--border-on-dark-strong);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-hero-ghost svg { width: 18px; height: 18px; }
.btn-hero-ghost:hover {
  border-color: var(--accent-light);
  background: rgba(168, 50, 70, 0.18);
  transform: translateY(-2px);
}

/* ---------- Slider Controls ---------- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark-strong);
  background: rgba(42, 10, 18, 0.4);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover {
  border-color: var(--accent-light);
  background: rgba(168, 50, 70, 0.3);
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-on-dark-strong);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), width 0.35s var(--ease);
}
.hero-dot.is-active {
  background: var(--accent-light);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-dots { bottom: 78px; }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--accent-light), transparent);
  opacity: 0.7;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}

/* Video modal / lightbox */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 6, 10, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }

.video-modal-inner {
  width: min(920px, 90vw);
  aspect-ratio: 16/9;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.video-modal.is-open .video-modal-inner { transform: scale(1); }

.video-modal-inner video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-modal-close:hover { color: var(--accent-light); }

/* ---------- Welcome Section ---------- */
.welcome-section {
  position: relative;
  padding: 110px 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.welcome-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 560px;
  height: 560px;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(122,31,43,0) 70%);
  pointer-events: none;
}

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

.welcome-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #ecdfc7, #ddc9a6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.welcome-image span {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 30px;
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; }

.welcome-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 22px 0 34px;
  max-width: 460px;
}

/* ---------- Eat. Chill. Connect. ---------- */
.ecc-section {
  position: relative;
  padding: 130px 0;
  text-align: center;
  background-color: var(--dark-section-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  background-size: 140px 140px;
  overflow: hidden;
}
.ecc-section .eyebrow { color: var(--accent-light); }
.ecc-section .section-heading { color: var(--text-on-dark); }

.ecc-heading { margin-bottom: 64px; }

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

.ecc-card {
  position: relative;
  padding: 52px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-on-dark);
  background: linear-gradient(160deg, rgba(246,236,220,0.05), rgba(246,236,220,0));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  overflow: hidden;
}
.ecc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168,50,70,0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.ecc-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-on-dark-strong);
}
.ecc-card:hover::before { opacity: 1; }

.ecc-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
}
.ecc-card p {
  position: relative;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .ecc-grid { grid-template-columns: 1fr; }
}

/* ---------- Best Sellers ---------- */
.bestsellers-section {
  position: relative;
  padding: 130px 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.bestsellers-section::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -8%;
  width: 460px;
  height: 460px;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(122,31,43,0) 70%);
  pointer-events: none;
}

.bestsellers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 720px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
}
