/* ============================================================
   A & C's Ohana Ice — retro aloha-poster redesign
   Palette pulled from the logo (hibiscus red / white script)
   and the trailer paint (lagoon teal / coral).
   ============================================================ */

:root {
  --red: #e02128;
  --red-deep: #b5121b;
  --red-dark: #8f0e15;
  --cream: #fff4e4;
  --cream-soft: #fffaf1;
  --sand: #f9e8cd;
  --teal: #17a2a0;
  --teal-deep: #0d7c7c;
  --teal-ink: #0a4a4d;
  --coral: #ff8a70;
  --sun: #ffc94d;
  --ink: #43151a;

  --font-display: "Shrikhand", "Georgia", serif;
  --font-script: "Kaushan Script", cursive;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow: 0 14px 40px -12px rgba(67, 21, 26, 0.28);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.12; font-weight: 400; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.01em;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- kickers & section intros ---------- */

.kicker {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--teal-deep);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 0.35rem;
}
.kicker-cream { color: var(--sun); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

.section-sub {
  max-width: 46ch;
  margin: 0.9rem 0 2.4rem;
  font-size: 1.06rem;
  color: rgba(67, 21, 26, 0.78);
}
.section-sub-cream { color: rgba(255, 244, 228, 0.85); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  text-decoration: none; border: 3px solid transparent;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-cream {
  background: var(--cream); color: var(--red-deep);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45);
}
.btn-cream:hover { background: #fff; }

.btn-outline {
  border-color: var(--cream); color: var(--cream); background: rgba(67, 21, 26, 0.18);
  backdrop-filter: blur(3px);
}
.btn-outline:hover { background: rgba(255, 244, 228, 0.16); }

/* ---------- CSS-only scalloped dividers (no SVG) ---------- */

.scallop {
  position: absolute; left: 0; right: 0; height: 26px; z-index: 3;
  --dot: var(--cream);
  background: radial-gradient(circle at 50% 100%, var(--dot) 0 55%, transparent 56%);
  background-size: 52px 26px;
  background-repeat: repeat-x;
  bottom: -1px;
}

.scallop-cream { --dot: var(--cream); }
.scallop-red-top    { --dot: var(--red); top: -25px; bottom: auto; transform: scaleY(-1); }
.scallop-red-bottom { --dot: var(--red-deep); bottom: -25px; top: auto; }
.scallop-teal-top   { --dot: var(--teal-deep); top: -25px; bottom: auto; transform: scaleY(-1); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--red);
  background-image: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 6px 24px -6px rgba(143, 14, 21, 0.5);
}

.nav-inner {
  width: min(1180px, 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-logo {
  width: 46px; height: auto; border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-pop);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: var(--cream); }
.brand-text em { font-family: var(--font-script); font-style: normal; font-size: 0.8rem; opacity: 0.9; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: 0.97rem;
  padding: 0.3rem 0; position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; border-radius: 3px; background: var(--sun);
  transition: right 0.28s var(--ease-pop);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  background: var(--sun); color: var(--ink) !important;
  padding: 0.5rem 1.15rem !important; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-pop);
}
.nav-cta:hover { transform: translateY(-2px) rotate(-1.5deg); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.6rem; cursor: pointer;
}
.nav-burger span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: min(88svh, 820px);
  display: flex; align-items: flex-start;
  padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  isolation: isolate; overflow: hidden;
}

.hero-photo, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center; z-index: -2;
}
.hero-photo img { animation: heroDrift 22s ease-in-out infinite alternate; }

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}

/* keep the sunset sky glowing; darken only where the text sits */
.hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(67, 21, 26, 0.28) 0%, transparent 30%),
    linear-gradient(75deg, rgba(67, 21, 26, 0.78) 0%, rgba(67, 21, 26, 0.42) 38%, transparent 62%),
    linear-gradient(0deg, rgba(67, 21, 26, 0.55) 0%, transparent 42%);
}

.hero-content {
  width: min(1120px, 92vw); margin-inline: auto;
  max-width: none; text-align: left;
}
.hero-content > * { max-width: 620px; }

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  color: var(--sun);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  color: var(--cream);
  text-shadow: 0 4px 0 rgba(143, 14, 21, 0.7), 0 14px 40px rgba(0, 0, 0, 0.5);
  margin: 0.4rem 0 0.9rem;
}

.hero-sub {
  color: rgba(255, 244, 228, 0.94);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.7rem;
  max-width: 46ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 640px) {
  .hero { align-items: center; text-align: center; }
  .hero-content { text-align: center; display: grid; justify-items: center; }
  .hero-photo, .hero-photo img { object-position: 78% center; }
  .hero-cta { justify-content: center; }
}

/* ---------- combos ---------- */

.section-combos { background: var(--cream); padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }

.combo-list {
  list-style: none;
  display: grid; gap: 0.55rem 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .combo-list { grid-template-columns: 1fr 1fr; } }

.combo-row {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-body); color: var(--ink);
  background: var(--cream-soft);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 14px -8px rgba(67, 21, 26, 0.3);
  border-left: 5px solid var(--red);
}

.combo-row-text { flex: 1; min-width: 0; display: block; }
.combo-row-name {
  display: block;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--red-deep);
  letter-spacing: 0.01em; line-height: 1.3;
}
.combo-row-flavors { display: block; font-size: 0.88rem; color: rgba(67, 21, 26, 0.72); }

.combo-badge {
  display: inline-block; vertical-align: 2px;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.16rem 0.55rem; border-radius: 999px;
  margin-left: 0.35rem;
  transform: rotate(-2deg);
}

/* ---------- flavors ---------- */

.section-flavors {
  background: var(--red);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.07) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 70%, rgba(255, 255, 255, 0.06) 0 130px, transparent 131px),
    radial-gradient(circle at 70% 12%, rgba(0, 0, 0, 0.05) 0 70px, transparent 71px),
    linear-gradient(165deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--cream);
  margin-block: 25px;
}
.section-flavors h2 { color: var(--cream); text-shadow: 0 3px 0 rgba(143, 14, 21, 0.8); }

.flavor-wall { display: flex; flex-wrap: wrap; gap: 0.65rem; list-style: none; }

.flavor-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--cream-soft); color: var(--ink);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.55rem 1.05rem 0.55rem 0.7rem; border-radius: 999px;
  box-shadow: 0 5px 14px -4px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-pop);
}
.flavor-chip:hover { transform: translateY(-3px) rotate(-1.5deg) scale(1.04); }
.flavor-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--dot, var(--teal));
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.22), inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

/* ---------- toppings ---------- */

.section-toppings { background: var(--cream); }

.topping-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 760px) { .topping-grid { grid-template-columns: repeat(3, 1fr); } }

.topping-card {
  background: var(--cream-soft);
  border: 3px dashed rgba(224, 33, 40, 0.4);
  border-radius: var(--radius);
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  transition: transform 0.28s var(--ease-pop), border-color 0.28s, box-shadow 0.28s;
}
.topping-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  border-color: var(--red);
  box-shadow: var(--shadow);
}
.topping-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--red-deep); }
.topping-card p { font-size: 0.82rem; color: rgba(67, 21, 26, 0.65); margin-top: 0.2rem; }

/* ---------- trailer ---------- */

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

.trailer-grid {
  display: grid; gap: 2.4rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .trailer-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }

.trailer-photo { position: relative; }
.trailer-photo img {
  border-radius: 200px 200px 26px 26px; /* arched, like the serving window */
  box-shadow: var(--shadow), 0 0 0 8px var(--cream-soft), 0 0 0 11px rgba(224, 33, 40, 0.5);
  transform: rotate(-1.4deg);
}
.trailer-sticker {
  position: absolute; right: -6px; bottom: 18px;
  font-family: var(--font-script); font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  background: var(--sun); color: var(--ink);
  padding: 0.5rem 1.2rem; border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(67, 21, 26, 0.4);
  transform: rotate(-5deg);
}

.trailer-copy h2 { color: var(--red-deep); }
.trailer-copy p { margin-top: 1rem; max-width: 52ch; }
.trailer-points { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.55rem; font-weight: 700; }

/* ---------- find us ---------- */

.section-find {
  background: var(--teal-deep);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.07) 0 110px, transparent 111px),
    radial-gradient(circle at 8% 80%, rgba(0, 0, 0, 0.08) 0 90px, transparent 91px),
    linear-gradient(170deg, var(--teal-deep), var(--teal-ink));
  color: var(--cream);
  margin-top: 25px;
}
.section-find h2 { color: var(--cream); text-shadow: 0 3px 0 rgba(10, 74, 77, 0.9); }

.week-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 900px) { .week-grid { grid-template-columns: repeat(6, 1fr); } }

.day-card {
  background: rgba(255, 244, 228, 0.1);
  border: 2px solid rgba(255, 244, 228, 0.22);
  border-radius: 18px; padding: 1rem 0.9rem;
  transition: transform 0.25s var(--ease-pop), background 0.25s;
}
.day-card:hover { transform: translateY(-4px); background: rgba(255, 244, 228, 0.16); }
.day-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--sun); }
.day-time { font-weight: 800; margin-top: 0.25rem; }
.day-place { font-size: 0.82rem; opacity: 0.8; }
.day-closed { opacity: 0.62; }

.day-today {
  background: var(--cream); color: var(--ink);
  border-color: var(--sun); transform: scale(1.04);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
}
.day-today:hover { transform: scale(1.04); background: var(--cream); }
.day-today h3 { color: var(--red-deep); }
.day-today h3::after { content: " · today"; font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-deep); }
.day-today .day-place { opacity: 0.7; }

.find-note { margin-top: 2rem; font-size: 1.02rem; }
.find-note a { color: var(--sun); font-weight: 800; }

/* ---------- footer ---------- */

.footer { background: var(--red-dark); color: rgba(255, 244, 228, 0.9); }

.footer-grid {
  display: grid; gap: 2rem; padding: 3.2rem 0 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand img { border-radius: 12px; margin-bottom: 0.8rem; }
.footer-brand p { max-width: 30ch; font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--font-display); font-size: 1rem; color: var(--sun);
  margin-bottom: 0.7rem; letter-spacing: 0.03em;
}
.footer-col a { display: block; color: inherit; text-decoration: none; padding: 0.18rem 0; font-weight: 600; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: 0.95rem; }
.footer-socials { margin-top: 0.5rem; }
.footer-socials a { display: inline; }

.footer-bar {
  border-top: 1px solid rgba(255, 244, 228, 0.2);
  padding: 1.1rem 0; text-align: center; font-size: 0.88rem;
}

/* ---------- to top ---------- */

.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--red); color: var(--cream);
  font-size: 1.3rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(143, 14, 21, 0.6);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-pop);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px) scale(1.06); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s var(--ease-pop); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile nav ---------- */

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--red-deep);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.4);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a {
    padding: 0.9rem 5vw !important; border-radius: 0 !important;
    border-top: 1px solid rgba(255, 244, 228, 0.14);
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { background: var(--sun); box-shadow: none; }

}
