/* ============================================================
   INDEX HERO - tropical redesign (loaded after theme.css)
   Scoped to .hero so nothing else on the site is affected.
   ============================================================ */

.hero {
  position: relative;
  min-height: 80vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  background:
    radial-gradient(circle at 100% 100%,
      rgba(255, 107, 74, 0.55) 0%,
      rgba(255, 178, 44, 0.35) 26%,
      rgba(255, 210, 63, 0.12) 45%,
      transparent 62%),
    var(--grad-jungle);
}

/* Hide the old photo placeholder + dark overlay for this hero */
.hero .hero-background {
  display: none;
}

/* ---- Decorative layers ---- */
.hero-picado {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: url("../images/art/papel-picado.svg") repeat-x top left / auto 96px;
  z-index: 1;
  pointer-events: none;
}

.hero-sun {
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: clamp(220px, 34vw, 520px);
  height: auto;
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  animation: hero-sun-glow 7s ease-in-out infinite;
}

.hero-frond {
  position: absolute;
  bottom: 0;
  width: clamp(180px, 26vw, 420px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.hero-frond--left {
  left: -4%;
  transform-origin: bottom left;
  animation: hero-sway-left 7s ease-in-out infinite;
}

.hero-frond--right {
  right: -4%;
  transform-origin: bottom right;
  animation: hero-sway-right 7s ease-in-out infinite;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: var(--cream);
  z-index: 2;
  pointer-events: none;
  -webkit-mask: url("../images/art/wave-divider.svg") no-repeat bottom / 100% 100%;
  mask: url("../images/art/wave-divider.svg") no-repeat bottom / 100% 100%;
}

/* ---- Content ---- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  text-align: left;
  color: #FFFFFF;
  padding: calc(96px + var(--space-8)) var(--space-6) calc(120px + var(--space-8));
}

.hero-title {
  color: #FFFFFF;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  color: var(--mango);
  font-family: var(--font-accent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  justify-content: flex-start;
}

/* Red "View Our Menu" */
.hero .btn-primary {
  background: linear-gradient(135deg, var(--red-600) 0%, #9E0D23 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.hero .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--red-600) 0%, #9E0D23 100%);
  color: #FFFFFF;
  filter: brightness(1.08);
}

/* Outlined-white "Call to Order" */
.hero .btn-accent {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.hero .btn-accent:hover:not(:disabled) {
  background: #FFFFFF;
  color: var(--green-900);
  border-color: #FFFFFF;
}

.hero-hours {
  color: var(--cream);
  opacity: 1;
  justify-content: flex-start;
}

/* Open-now badge */
.hero .hero-status {
  background: var(--green-700);
  color: var(--cream);
  font-weight: var(--fw-bold);
  padding: var(--space-1) var(--space-4);
}

.hero .hero-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(166, 206, 57, 0.35);
}

.hero .hero-status.closed {
  background: var(--green-700);
  color: var(--cream);
}

.hero .hero-status.closed::before {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.35);
}

/* ---- Motion ---- */
@keyframes hero-sway-left {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

@keyframes hero-sway-right {
  0%, 100% { transform: rotate(2deg); }
  50%      { transform: rotate(-2deg); }
}

@keyframes hero-sun-glow {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frond--left,
  .hero-frond--right,
  .hero-sun {
    animation: none !important;
  }
}

/* ============================================================
   INNER PAGE HEROES (about, menu, catering, gallery, contact)
   Smaller 40vh version of the illustrated hero. CSS-only:
   the old centered 1200px placeholder SVG boxes were removed
   from the markup, so the art lives entirely in these layers.
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 40vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    url("../images/art/papel-picado.svg") repeat-x top left / auto 64px,
    url("../images/art/palm-frond-left.svg") no-repeat bottom left / clamp(120px, 18vw, 240px) auto,
    url("../images/art/palm-frond-right.svg") no-repeat bottom right / clamp(120px, 18vw, 240px) auto,
    url("../images/art/sun.svg") no-repeat bottom right / clamp(150px, 22vw, 300px) auto,
    radial-gradient(circle at 100% 120%,
      rgba(255, 107, 74, 0.5) 0%,
      rgba(255, 178, 44, 0.3) 28%,
      transparent 60%),
    var(--grad-jungle);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding: calc(64px + var(--space-6)) var(--space-6);
}

.page-hero-title {
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-hero-subtitle {
  color: var(--mango);
  font-family: var(--font-accent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}