/* ==========================================================
   Sunrise to Sunset Events — shared styles for every page
   Change the colors here and the whole site updates.
   ========================================================== */
:root {
  --ink: #1e1c1b;        /* near-black, like the tent and logo lettering */
  --paper: #fdfbf8;      /* warm white page background */
  --stone: #e9e7e2;      /* soft gray from the S2S logo post */
  --stone-dark: #8a8781;
  --blush: #f3c4c4;      /* watercolor sunset pink */
  --peach: #f9d8b0;
  --butter: #fbeec0;
  --sky: #bcdcea;        /* watercolor water blue */
  --sea: #93c2d8;

  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

.script { font-family: var(--script); font-size: 2rem; line-height: 1; margin: 0 0 .25rem; color: var(--stone-dark); }
.kicker { font-weight: 600; letter-spacing: .25em; text-transform: uppercase; font-size: .85rem; }
.lead { max-width: 38rem; margin-inline: auto; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: rgba(253, 251, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.brand { font-family: var(--script); font-size: 1.9rem; text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); flex-wrap: wrap; }
.nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 400; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta { background: var(--ink); color: #fff; padding: .55rem 1rem .45rem; border-radius: 999px; }
.nav .nav-cta:hover { text-decoration: none; opacity: .85; }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.btn {
  display: inline-block; text-decoration: none; text-transform: uppercase;
  letter-spacing: .15em; font-size: .85rem; font-weight: 600;
  padding: .95rem 1.6rem .85rem; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Hero: watercolor sunset over the water ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem 7rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 244, 200, .9), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fdeeee 30%, var(--blush) 62%, var(--peach) 85%, var(--butter) 100%);
}
.hero-logo {
  width: min(640px, 100%); margin: 0 auto 1.5rem; mix-blend-mode: multiply;
  /* soften the flat bottom edge of the logo into the sunset */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
          mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); max-width: 36rem; margin: 0 auto; }
.hero .buttons { position: relative; z-index: 1; }
.water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4.5rem;
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, .45) 10px 13px),
    linear-gradient(180deg, var(--sky), var(--sea));
}

/* ---------- Black & white stripe band (like the booth rug) ---------- */
.stripes {
  height: 18px;
  /* the gaps are see-through, so they pick up whatever color is behind them */
  background: repeating-linear-gradient(90deg, var(--ink) 0 28px, transparent 28px 56px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem); max-width: 1100px; margin: 0 auto; text-align: center; }

/* Event type cards */
.event-grid {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.event-grid li {
  background: #fff; border: 1px solid var(--stone); border-radius: 18px;
  padding: 1.75rem 1.25rem 1.25rem;
}
.event-grid p { margin: 0; font-size: .98rem; }
.sun {
  display: block; width: 46px; height: 23px; margin: 0 auto .9rem;
  border-radius: 46px 46px 0 0;
  background: linear-gradient(180deg, var(--blush), var(--peach) 60%, var(--butter));
  box-shadow: 0 3px 0 var(--sky);
}

/* Soda bar feature (dark, like the black tent) */
.soda {
  max-width: none; background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  text-align: left; padding-inline: max(clamp(1rem, 5vw, 3rem), calc((100% - 1100px) / 2));
}
.soda .script { color: var(--blush); }
.soda .buttons { justify-content: flex-start; }
.soda-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.soda-photos img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 5.5; object-fit: cover; }
.soda-photos img:last-child { transform: translateY(-2rem); }

/* Image + text rows */
.cart, .critter {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; text-align: left;
}
.cart img { border-radius: 20px; width: 100%; }
.critter { grid-template-columns: 1.2fr 1fr; }
.critter { padding-top: 0; }
.critter img { order: 2; clip-path: circle(48.5%); max-width: 420px; justify-self: center; }

/* Contact */
.contact {
  max-width: none;
  background: linear-gradient(180deg, var(--paper), #fdeeee 40%, var(--peach));
}
.phone { display: inline-block; font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 600; text-decoration: none; margin-top: .5rem; }

/* Footer */
.site-footer { text-align: center; background: var(--ink); color: #fff; padding-bottom: 2rem; }
.site-footer .stripes {
  margin-bottom: 2rem;
  /* footer is black, so fill the gaps with the peach the contact section fades into */
  background: repeating-linear-gradient(90deg, var(--ink) 0 28px, var(--peach) 28px 56px);
}
.site-footer p { margin: .25rem 0; font-size: .85rem; letter-spacing: .05em; }
.site-footer .brand { font-size: 2.2rem; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer .social { margin: .5rem 0 1rem; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { justify-content: center; }
  .soda, .cart, .critter { grid-template-columns: 1fr; text-align: center; }
  .soda .buttons { justify-content: center; }
  .critter img { order: 0; max-width: 300px; }
  .cart img { max-width: 420px; margin: 0 auto; }
  .soda-photos img:last-child { transform: none; }
}
@media (max-width: 520px) {
  .event-grid { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
}

/* ==========================================================
   Inner pages (Soda Bar, Critter Cove, 404)
   ========================================================== */
h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Big photo header */
.page-hero {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: 2rem 1rem;
  background-size: cover; background-position: center 40%;
  color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 17, .35), rgba(20, 18, 17, .65)); }
.page-hero-inner { position: relative; }
.page-hero .script { color: var(--peach); font-size: 2.4rem; }
.page-hero h1 { margin: 0 0 .5rem; }

/* Text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; text-align: left; }
.split img { border-radius: 20px; width: 100%; max-height: 640px; object-fit: cover; }

/* Menu board */
.menu-wrap { background: var(--ink); color: #fff; }
.menu-wrap .script { color: var(--blush); }
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2.5rem;
  margin-top: 2.5rem; text-align: left;
}
.menu-group { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1.25rem; }
.menu-group h3 { font-size: 1.7rem; margin-bottom: .75rem; }
.menu-group h3 span { font-family: var(--sans); font-size: .8rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; margin-bottom: 1rem; }
.menu-group b { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.menu-group i { font-style: normal; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; color: var(--peach); }
.menu-group p { grid-column: 1 / -1; margin: .15rem 0 0; font-size: .95rem; opacity: .85; }
.menu-note { margin-top: 2rem; font-size: .95rem; opacity: .8; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* Critter Cove logo at the top of its page */
.critter-hero-logo { width: min(380px, 80%); margin: 0 auto 1.5rem; clip-path: circle(48.5%); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split img { max-width: 480px; margin: 0 auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Keep jump links (#menu, #contact) from hiding under the sticky header */
[id] { scroll-margin-top: 80px; }

/* On phones the header wraps to 2-3 lines, so let it scroll away instead of sticking */
@media (max-width: 760px) {
  .site-header { position: static; }
  [id] { scroll-margin-top: 0; }
}

/* Black band, like the "Now booking" soda bar section (used for alternating sections) */
.band-dark {
  max-width: none; background: var(--ink); color: #fff;
  padding-inline: max(clamp(1rem, 5vw, 3rem), calc((100% - 1100px) / 2));
}
.band-dark .script { color: var(--blush); }
.critter.band-dark { padding-top: clamp(3.5rem, 8vw, 6rem); }

/* ==========================================================
   Every page's top section is the same height, content centered
   Change --hero-h to make them all taller or shorter at once.
   ========================================================== */
:root { --hero-h: 640px; }
.hero, .page-hero {
  min-height: var(--hero-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero { padding: 2rem 1rem 6.5rem; }   /* bottom room for the water stripes */
.hero .hero-logo { width: min(600px, 100%); }
.critter-hero-logo { width: min(300px, 62vw); }
@media (max-width: 760px) {
  :root { --hero-h: 620px; }
  .critter-hero-logo { width: min(230px, 60vw); }
}
