/* ===========================================================
   Coastal Sips Nutrition — styles
   =========================================================== */

:root {
  --ocean-deep: #0b4a5a;
  --ocean: #0f7c93;
  --ocean-light: #4fc4d9;
  --ocean-pale: #eaf8fb;
  --sand: #fffaf2;
  --coral: #ff6b4a;
  --coral-dark: #e8532f;
  --coral-light: #ffb26b;
  --pink: #ff6f9c;
  --ink: #0d2b33;
  --ink-soft: #3c5b63;
  --white: #ffffff;

  --font-body: "Poppins", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;

  --shadow-soft: 0 20px 40px -20px rgba(11, 74, 90, 0.35);
  --shadow-card: 0 14px 30px -14px rgba(11, 74, 90, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.script { font-family: var(--font-script); font-weight: 400; color: var(--coral-light); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--coral);
  margin: 0 0 10px;
}
.eyebrow.center { display: block; text-align: center; }

h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 14px; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2.center { text-align: center; }
h3 { font-size: 1.25rem; }
p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
p.center { text-align: center; margin-left: auto; margin-right: auto; }

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(255, 107, 74, 0.55);
}
.btn-coral:hover { box-shadow: 0 18px 30px -8px rgba(255, 107, 74, 0.65); }

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: var(--white); color: var(--ocean-deep); }

.btn-ghost {
  color: var(--ocean-deep);
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ---------- grain overlay (subtle texture) ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
  mix-blend-mode: overlay;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -12px rgba(11, 74, 90, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px -4px rgba(11, 74, 90, 0.4);
  transition: transform 0.35s ease;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }

.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--ocean-deep);
}
.site-header:not(.scrolled) .brand-line1,
.site-header:not(.scrolled) .brand-line2 { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.brand-line2 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--ink-soft);
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.site-header:not(.scrolled) .nav-link { color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call {
  border: 2px solid var(--ocean);
  color: var(--ocean-deep) !important;
  background: rgba(255,255,255,0.85);
}
.site-header:not(.scrolled) .header-call {
  border-color: rgba(255,255,255,0.8);
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.open span { background: var(--ink) !important; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,42,52,0.55) 0%, rgba(8,42,52,0.35) 40%, rgba(8,42,52,0.85) 100%),
    linear-gradient(120deg, rgba(15,124,147,0.55), rgba(255,107,74,0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  max-width: 720px;
}
.hero .eyebrow {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--white);
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--white);
  text-shadow: 0 8px 30px rgba(0,0,0,0.25);
  margin-top: 18px;
}
.hero-title .script { font-size: 1.05em; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 34px;
}
.hero-badges span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.95);
}

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

.wave-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 90px;
  z-index: 1;
}
.wave-divider path { fill: var(--sand); }

/* =========================================================
   TICKER
   ========================================================= */
.ticker-band {
  background: linear-gradient(90deg, var(--ocean-deep), var(--ocean));
  overflow: hidden;
  padding: 16px 0;
  position: relative;
  z-index: 3;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: tickerScroll 32s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--white);
}
.ticker-track .dot { color: var(--coral-light); opacity: 0.8; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--sand);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  z-index: 0;
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--ocean-light), transparent 70%);
  top: -120px; right: -120px;
}
.blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--coral-light), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  position: relative;
  height: 480px;
}
.about-img {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}
.about-img-1 {
  width: 78%; height: 78%;
  top: 0; left: 0;
  z-index: 1;
}
.about-img-2 {
  width: 58%; height: 58%;
  bottom: 0; right: 0;
  z-index: 2;
  border: 6px solid var(--sand);
}

.about-copy h2 { max-width: 460px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ocean-deep);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   MENU / FAN FAVORITES
   ========================================================= */
.menu { padding: 100px 0; background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-sub { color: var(--ink-soft); margin-top: 4px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.menu-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ocean-pale);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 40px -18px rgba(11,74,90,0.4);
}
.menu-card-img { aspect-ratio: 1/1; overflow: hidden; }
.menu-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.12) rotate(1deg); }
.menu-card-body { padding: 20px 20px 24px; }
.menu-card-body h3 { margin-bottom: 8px; color: var(--ocean-deep); }
.menu-card-body p { margin: 0; font-size: 0.92rem; }

.menu-note {
  text-align: center;
  margin-top: 44px;
  font-style: italic;
  color: var(--ink-soft);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: 100px 0; background: var(--ocean-pale); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  grid-row: span 1;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,74,90,0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

.follow-cta {
  margin-top: 64px;
  text-align: center;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
}
.follow-cta p { color: var(--white); font-size: 1.1rem; margin-bottom: 22px; }
.follow-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.follow-cta .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.follow-cta .btn-outline:hover { background: var(--white); color: var(--ocean-deep); }

/* =========================================================
   VISIT / LOCATION
   ========================================================= */
.visit {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--white);
}
.visit-blob {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ocean-pale), transparent 70%);
  top: -180px; left: -180px;
  z-index: 0;
}
.visit-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.visit-line {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}
.visit-line .icon { color: var(--coral); }
.visit-line a:hover { color: var(--coral); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--ocean-pale);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hours-table td {
  padding: 12px 18px;
  font-size: 0.94rem;
}
.hours-table tr:nth-child(odd) { background: rgba(15,124,147,0.06); }
.hours-table td:first-child { font-weight: 600; color: var(--ocean-deep); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

.visit-note { font-size: 0.92rem; }
.visit-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 420px;
}
.visit-map iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean) 55%, var(--coral-dark));
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.final-cta-inner h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.final-cta-inner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 30px; }
.final-cta .hero-cta { justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 70px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--white); font-weight: 600; }
.footer-tag { color: rgba(255,255,255,0.55) !important; font-weight: 400 !important; font-size: 0.85rem; margin-top: 4px !important; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--coral-light); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  border: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(255,107,74,0.6);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 20, 24, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none;
  color: var(--white); font-size: 2.4rem;
  cursor: pointer; line-height: 1;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal { transform: translateY(34px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { height: 380px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
    box-shadow: -14px 0 40px rgba(0,0,0,0.15);
    z-index: 1050;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { color: var(--ink) !important; font-size: 1.2rem; text-shadow: none !important; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }

  .hero-title { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-badges { justify-content: center; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .visit-map { height: 300px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track, .blob, .final-cta, .scroll-cue span { animation: none !important; }
  #heroImg { transform: none !important; }
}
