/* ============================================================
   ROOTS SIARGAO — HOME PAGE STYLES
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

/* Cinematic layered background using CSS gradients as placeholders
   (real images loaded via JS with lazy-load) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-in-out) forwards;
  filter: brightness(0.72) contrast(1.06) saturate(0.88);
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(22, 13, 8, 0.95) 0%,
      rgba(22, 13, 8, 0.55) 35%,
      rgba(22, 13, 8, 0.18) 65%,
      rgba(22, 13, 8, 0.08) 100%
    ),
    linear-gradient(
      to right,
      rgba(22, 13, 8, 0.45) 0%,
      transparent 60%
    );
}

/* Vignette edges */
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(22, 13, 8, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--color-amber);
}

.hero-eyebrow-text {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-ivory);
  max-width: 12ch;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 0.85s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--color-sand);
}

.hero-subline {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--color-coconut);
  max-width: 48ch;
  margin-top: var(--space-6);
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 1.1s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.35s forwards;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.55);
}

.hero-location-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-amber);
  flex-shrink: 0;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.8s forwards;
}

.hero-scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.5);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    var(--color-amber) 0%,
    transparent 100%
  );
  animation: scrollLinePulse 2.4s ease-in-out 2s infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.1); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── INTRO / PHILOSOPHY ─────────────────────────────────────── */
.philosophy-section {
  background: var(--color-cacao);
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
}

.philosophy-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.philosophy-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 136, 42, 0.08) 0%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

.philosophy-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s var(--ease-smooth);
}

.philosophy-image-wrap:hover .philosophy-img {
  transform: scale(1.03);
}

.philosophy-text {
  padding-left: var(--space-4);
}

.philosophy-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.pillar {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.pillar-number {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--color-amber);
  letter-spacing: 0.1em;
  margin-top: 4px;
  flex-shrink: 0;
  width: 24px;
}

.pillar-text h5 {
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: var(--space-1);
}

.pillar-text p {
  font-size: var(--fs-sm);
  color: rgba(196, 168, 130, 0.6);
  line-height: 1.65;
}

/* ── TASTING JOURNEY ────────────────────────────────────────── */
.journey-section {
  background: var(--color-espresso);
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
}

.journey-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.journey-note {
  font-size: var(--fs-sm);
  color: rgba(196, 168, 130, 0.6);
  line-height: 1.75;
  max-width: 38ch;
  padding-bottom: var(--space-4);
}

/* Dish grid */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.dish-card {
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  cursor: default;
}

.dish-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-smooth);
  filter: brightness(0.88) saturate(0.85) contrast(1.05);
}

.dish-card:hover .dish-card-img {
  transform: scale(1.06);
}

.dish-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 13, 8, 0.92) 0%,
    rgba(22, 13, 8, 0.45) 35%,
    transparent 65%
  );
  transition: opacity var(--dur-mid) var(--ease-smooth);
}

.dish-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  transform: translateY(6px);
  transition: transform var(--dur-mid) var(--ease-smooth);
}

.dish-card:hover .dish-card-body {
  transform: translateY(0);
}

.dish-category {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
  margin-bottom: var(--space-2);
}

.dish-name {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--color-ivory);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.dish-description {
  font-size: var(--fs-sm);
  color: var(--color-coconut);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-mid) var(--ease-smooth),
              opacity var(--dur-mid) var(--ease-smooth);
}

.dish-card:hover .dish-description {
  max-height: 80px;
  opacity: 0.8;
}

/* Featured / large dish card */
.dish-card--large {
  grid-column: span 2;
}

.dish-card--large .dish-card-img-wrap {
  aspect-ratio: 16 / 9;
}

.dish-card--large .dish-name {
  font-size: var(--fs-xl);
}

.journey-footer-note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-left: 2px solid var(--color-amber);
  background: rgba(200, 136, 42, 0.04);
}

.journey-footer-note p {
  font-size: var(--fs-sm);
  color: rgba(196, 168, 130, 0.65);
  font-style: italic;
}

/* ── ATMOSPHERE ─────────────────────────────────────────────── */
.atmosphere-section {
  background: var(--color-cacao);
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.atmosphere-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.atmosphere-gallery {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  grid-template-rows: auto auto;
  gap: var(--space-2);
}

.atm-cell {
  overflow: hidden;
  position: relative;
}

.atm-cell--tall {
  grid-row: span 2;
}

.atm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  transition: transform 0.9s var(--ease-smooth);
  filter: brightness(0.88) saturate(0.82);
}

.atm-cell:hover .atm-img {
  transform: scale(1.04);
}

.atm-cell:nth-child(1) .atm-img { min-height: 460px; }
.atm-cell:nth-child(2) .atm-img { min-height: 224px; }
.atm-cell:nth-child(3) .atm-img { min-height: 224px; }
.atm-cell:nth-child(4) .atm-img { min-height: 224px; }

/* ── REVIEWS ────────────────────────────────────────────────── */
.reviews-section {
  background: var(--color-espresso);
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
}

.reviews-track-wrap {
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 4rem);
}

.reviews-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.7s var(--ease-smooth);
}

.review-card {
  flex: 0 0 calc(50% - var(--space-3));
  background: rgba(60, 44, 36, 0.4);
  border: var(--border-hairline);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  border-radius: var(--radius-sm);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(200, 136, 42, 0.12);
  pointer-events: none;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}

.review-star {
  color: var(--color-amber);
  font-size: 0.75rem;
}

.review-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.review-author-name {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand);
}

.review-author-platform {
  font-size: var(--fs-xs);
  color: rgba(196, 168, 130, 0.4);
  letter-spacing: 0.06em;
}

.review-author-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-amber);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Slider controls */
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
}

.reviews-counter {
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  color: rgba(196, 168, 130, 0.4);
}

.reviews-btns {
  display: flex;
  gap: var(--space-3);
}

.review-btn {
  width: 44px;
  height: 44px;
  border: var(--border-hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(196, 168, 130, 0.6);
  transition: all var(--dur-fast) var(--ease-smooth);
  font-size: 0.9rem;
}

.review-btn:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
  transform: scale(1.06);
}

/* ── RESERVE CTA SECTION ────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.48) saturate(0.75) contrast(1.1);
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(22, 13, 8, 0.8) 0%,
    rgba(22, 13, 8, 0.45) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.cta-headline em {
  font-style: italic;
  color: var(--color-sand);
}

.cta-sub {
  font-size: var(--fs-md);
  color: var(--color-coconut);
  margin-bottom: var(--space-10);
  max-width: 38ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dish-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dish-card--large {
    grid-column: span 2;
  }

  .atmosphere-intro {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .atmosphere-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .atm-cell--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .philosophy-text {
    padding-left: 0;
  }

  .journey-header {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .dish-card--large {
    grid-column: span 2;
  }

  .review-card {
    flex: 0 0 calc(85vw);
  }

  .hero-headline {
    max-width: 100%;
  }
}

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

  .dish-card--large {
    grid-column: span 1;
  }

  .atmosphere-gallery {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
