/* ==========================================================================
   Las Islas Marias — Rohnert Park, CA
   HTML + CSS + Vanilla JS (Swiper via CDN)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --navy: #072b57;
  --navy-dark: #04182f;
  --yellow: #fdbb16;
  --yellow-dark: #e2a406;
  --white: #ffffff;
  --turquoise: #11a9b7;
  --red: #d9272e;
  --sand: #fdf7ea;
  --ink: #24303f;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --font-display: "Lilita One", "Poppins", sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --shadow-card: 0 10px 30px rgba(7, 43, 87, 0.12);
  --shadow-card-hover: 0 18px 40px rgba(7, 43, 87, 0.2);

  --header-height: 78px;
  --transition: 0.3s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-sand {
  background: var(--sand);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-kicker,
.parallax-kicker,
.hero-kicker {
  display: inline-block;
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: var(--space-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
}

.btn small {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-transform: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(7, 43, 87, 0.25);
}

.btn-primary,
.btn-menu {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover,
.btn-menu:hover {
  background: var(--yellow-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Huichol divider ---------- */
.huichol-divider {
  --hui-a: var(--yellow);
  --hui-b: var(--turquoise);
  --hui-c: var(--red);
  width: 132px;
  height: 14px;
  margin-block: var(--space-2);
  background-image:
    radial-gradient(circle 4px at 7px 7px, var(--hui-a) 98%, transparent),
    radial-gradient(circle 4px at 29px 7px, var(--hui-b) 98%, transparent),
    radial-gradient(circle 4px at 51px 7px, var(--hui-c) 98%, transparent),
    radial-gradient(circle 4px at 73px 7px, var(--hui-b) 98%, transparent),
    radial-gradient(circle 4px at 95px 7px, var(--hui-a) 98%, transparent),
    radial-gradient(circle 4px at 117px 7px, var(--hui-c) 98%, transparent);
  background-repeat: no-repeat;
}

.huichol-divider-center {
  margin-inline: auto;
}

.huichol-divider-light {
  --hui-a: var(--yellow);
  --hui-b: var(--white);
  --hui-c: var(--turquoise);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 43, 87, 0.92);
  backdrop-filter: blur(8px);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(4, 24, 47, 0.35);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.nav-link {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding-block: 0.4rem;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--yellow);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--yellow);
}

/* Socials */
.header-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background-color var(--transition), color var(--transition),
    transform var(--transition);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  background-image: url("../images/restaurant/hero.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 24, 47, 0.72) 0%,
    rgba(7, 43, 87, 0.55) 55%,
    rgba(4, 24, 47, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--header-height);
}

.hero-kicker {
  color: var(--yellow);
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 4px 18px rgba(4, 24, 47, 0.55);
}

.hero-sub {
  max-width: 620px;
  margin: var(--space-2) auto var(--space-4);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: clamp(36px, 6vw, 90px);
  display: block;
}

/* ==========================================================================
   WELCOME
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.welcome-media {
  position: relative;
}

.welcome-media img,
.welcome-media video {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.welcome-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.welcome-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.welcome-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-copy p {
  margin-bottom: var(--space-2);
}

.welcome-copy .btn {
  margin-top: var(--space-1);
}

/* ==========================================================================
   SLIDERS (shared)
   ========================================================================== */
.slider-shell {
  position: relative;
}

.menu-swiper,
.specials-swiper {
  overflow: hidden;
  padding: 10px 6px 14px;
}

.swiper-slide {
  height: auto;
  display: flex;
}

.slider-btn {
  position: absolute;
  top: 42%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition), transform var(--transition);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-btn:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: scale(1.06);
}

.slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.menu-prev,
.specials-prev {
  left: -6px;
}

.menu-next,
.specials-next {
  right: -6px;
}

.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: var(--space-2);
}

.slider-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(7, 43, 87, 0.25);
  opacity: 1;
  transition: background-color var(--transition), transform var(--transition);
}

.slider-pagination .swiper-pagination-bullet-active {
  background: var(--yellow);
  transform: scale(1.25);
}

/* ---------- Menu dish cards ---------- */
.dish-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.dish-media {
  position: relative;
  overflow: hidden;
}

.dish-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.dish-body {
  padding: var(--space-2) var(--space-2) var(--space-3);
  border-top: 4px solid var(--yellow);
  flex: 1;
}

.dish-body h3 {
  margin-bottom: 0.35rem;
}

.dish-body p {
  font-size: 0.9rem;
  color: #5a6675;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-body h3 small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--turquoise);
}

.dish-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turquoise);
  transition: color var(--transition);
}

.dish-card:hover .dish-more {
  color: var(--red);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-4);
}

/* ---------- Weekly specials cards ---------- */
.specials-section {
  position: relative;
  background: var(--navy) url("../images/specials/specials-bg.jpg") center / cover no-repeat;
}

.specials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 43, 87, 0.9),
    rgba(4, 24, 47, 0.86)
  );
}

.specials-section > .container {
  position: relative;
  z-index: 1;
}

.specials-section .section-kicker {
  color: var(--yellow);
}

.specials-section h2 {
  color: var(--white);
}

.specials-section .slider-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
}

.specials-section .slider-pagination .swiper-pagination-bullet-active {
  background: var(--yellow);
}

.special-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.special-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.special-day {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.special-divider {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  margin: 0.7rem auto 1rem;
  background: linear-gradient(90deg, var(--yellow), var(--turquoise), var(--red));
}

.special-card h3 {
  margin-bottom: 0.5rem;
}

.special-card p {
  font-size: 0.95rem;
  color: #4c5866;
  flex: 1;
}

.special-tag {
  align-self: center;
  margin-top: var(--space-2);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: rgba(17, 169, 183, 0.12);
  color: var(--turquoise);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   PARALLAX SECTIONS
   ========================================================================== */
.parallax {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.parallax-bg {
  position: absolute;
  inset: -18% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.full-bar-bg {
  background-image: url("../images/bar/full-bar.jpg");
}

.celebrations-bg {
  background-image: url("../images/celebrations/celebrations.jpg");
}

.parallax .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 24, 47, 0.68),
    rgba(7, 43, 87, 0.58)
  );
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.parallax h2 {
  color: var(--white);
  text-shadow: 0 4px 16px rgba(4, 24, 47, 0.5);
}

.parallax-kicker {
  color: var(--yellow);
}

.parallax-lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

.celebrations-parallax {
  min-height: 520px;
}

.celebrations-content .btn {
  margin-top: var(--space-3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-logo {
  width: 72px;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  font-size: 0.92rem;
  margin-bottom: var(--space-2);
}

.footer-col address {
  font-style: normal;
  margin-bottom: var(--space-1);
}

.footer-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-2);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1);
  font-size: 0.85rem;
}

.developer-credit a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

.developer-credit a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODAL (dish / special detail)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 47, 0.72);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(4, 24, 47, 0.45);
  transform: translateY(18px) scale(0.97);
  transition: transform var(--transition);
}

.modal.is-open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--yellow);
  color: var(--navy);
}

.modal-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal-media.is-hidden {
  display: none;
}

.modal-body {
  padding: var(--space-3);
  border-top: 4px solid var(--yellow);
}

.modal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.modal-kicker:empty {
  display: none;
}

.modal-body p {
  color: #4c5866;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-bg,
  .hero-bg {
    inset: 0;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Laptop */
@media (max-width: 1199px) {
  .menu-prev,
  .specials-prev {
    left: 4px;
  }

  .menu-next,
  .specials-next {
    right: 4px;
  }
}

/* Tablet & below — mobile navigation */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  /* backdrop-filter creates a containing block that would trap the
     fixed-position drawer inside the header, so it is disabled here */
  .site-header {
    backdrop-filter: none;
    background: var(--navy);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
    background: var(--navy);
    box-shadow: -12px 0 32px rgba(4, 24, 47, 0.4);
    transform: translateX(105%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
  }

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

  .welcome-badge {
    right: 12px;
    bottom: -14px;
  }

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

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Small mobile */
@media (max-width: 479px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .slider-btn {
    top: auto;
    bottom: -8px;
  }

  .menu-prev,
  .specials-prev {
    left: calc(50% - 108px);
  }

  .menu-next,
  .specials-next {
    right: calc(50% - 108px);
  }

  .slider-pagination {
    margin-top: var(--space-3);
  }
}
