/* =========================================================
   Dresser Hill Ice Cream Bar — Global Stylesheet
   Palette: #ffffff (primary) | #ffc367 (secondary) | #000000 (accent)
   ========================================================= */

:root {
  --white: #ffffff;
  --cream: #fff7e8;
  --amber: #ffc367;
  --amber-dark: #f5a93b;
  --ink: #0d0d0d;
  --soft-ink: #2a2a2a;
  --muted: #6b6b6b;
  --line: #eee3cf;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  font-variation-settings: "SOFT" 70, "WONK" 1;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p  { margin: 0 0 1em; color: var(--soft-ink); }

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: var(--cream);
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}
.section--tinted { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark p { color: #d8d8d8; }
.section__head { max-width: 740px; margin: 0 auto 3rem; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255,195,103,.45);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 36px rgba(255,195,103,.55);
  background: var(--amber-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  transform: translateY(-3px);
  background: var(--amber);
  color: var(--ink);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .85rem 0;
}
.header__cta { font-size: .92rem; padding: .7rem 1.25rem; }
@media (max-width: 900px) { .header__cta { display: none; } }
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  background: var(--white);
}
.brand__text { line-height: 1; }
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .95rem;
  color: var(--soft-ink);
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--cream); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
}

.header .btn { padding: .7rem 1.25rem; font-size: .92rem; }
.nav > .btn { display: none; }
@media (max-width: 900px) { .nav > .btn { display: inline-flex; } }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after  { position: absolute; top:  6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  /* Mobile menu lives inside the header (no fixed overlay) — bar + dropdown share one solid block */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
    z-index: 100;
    isolation: isolate;
  }
  .header.scrolled {
    background: var(--white);
  }
  html {
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
  }

  .header__inner {
    flex-wrap: wrap;
    align-items: center;
    padding: .7rem 0;
    row-gap: 0;
  }
  .brand {
    order: 1;
    min-width: 0;
    flex: 0 1 auto;
  }
  .menu-toggle {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    z-index: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
    transform: none;
    transition: max-height 0.45s var(--ease), padding-block 0.45s var(--ease);
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open {
    max-height: min(75vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    touch-action: pan-y;
  }
  .nav a { padding: .95rem .8rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav a.active::after { left: .9rem; transform: none; }
  .nav .btn { margin-top: .6rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__bg--sunset {
  background-image: url("../images/sunset.jpg");
  opacity: .55;
  mix-blend-mode: screen;
}
.hero__bg--main {
  background-image: url("../images/ice-cream-sunset.jpg");
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.75) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(255,195,103,.35), transparent 55%);
  z-index: -1;
}
.hero__content {
  padding: 7rem 0 6rem;
  max-width: 820px;
  animation: fadeUp 1.1s var(--ease) both;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero__lede {
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero__eyebrow {
  background: rgba(255,255,255,.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: 3rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
}
.hero__meta strong { display: block; color: var(--amber); font-weight: 700; margin-bottom: 2px; font-size: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

/* Page header (non-home) */
.page-hero {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.2)),
    var(--amber);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/sunset.jpg");
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.page-hero h1 { color: var(--white); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0; }
.page-hero .eyebrow { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.3); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.in { transform: translateX(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.in { transform: translateX(0); }
.locate__map.reveal,
.contact-map.reveal {
  opacity: 1;
  transform: none;
}
.reveal[data-stagger="1"] { transition-delay: .1s; }
.reveal[data-stagger="2"] { transition-delay: .2s; }
.reveal[data-stagger="3"] { transition-delay: .3s; }
.reveal[data-stagger="4"] { transition-delay: .4s; }
.reveal[data-stagger="5"] { transition-delay: .5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 8px); }
}

/* ---------- Services cards (home overview) ---------- */
.svc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.svc-card {
  position: relative;
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  isolation: isolate;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.svc-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.svc-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.svc-card:hover .svc-card__media img { transform: scale(1.07); }
.svc-card__body { padding: 1.4rem 1.5rem 1.75rem; }
.svc-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--cream);
  border-radius: 14px;
  margin-bottom: .9rem;
  color: var(--amber-dark);
}
.svc-card h3 { margin-bottom: .4rem; }
.svc-card p  { color: var(--muted); font-size: .95rem; margin-bottom: .9rem; }
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--ink);
}
.svc-card__link::after { content: "→"; transition: transform .25s var(--ease); }
.svc-card:hover .svc-card__link::after { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.why-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  text-align: center;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow: 0 18px 40px rgba(255,195,103,.25);
}
.why-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--amber-dark);
  margin-bottom: .4rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.why-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.reviews {
  text-align: center;
}
.reviews__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem .75rem;
  padding: .8rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}
.reviews__rating-text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .25rem;
  font-size: .95rem;
  color: var(--soft-ink);
}
.reviews__rating-label {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
}
.reviews__rating-sep { color: var(--line); font-weight: 400; }
.reviews__rating small { color: var(--muted); font-size: .88rem; }

.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.carousel__track {
  display: grid;
  grid-template-columns: 1fr;
}
.testimonial {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  padding: 2.5rem 1.5rem;
}
.testimonial.active { opacity: 1; pointer-events: auto; position: relative; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.3rem;
  font-variation-settings: "SOFT" 100;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--amber-dark);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.carousel__dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
  transition: background .25s, transform .25s;
}
.carousel__dots button.active { background: var(--amber-dark); transform: scale(1.4); }

.reviews__more {
  margin-top: 2rem;
}

/* ---------- Map / contact CTA ---------- */
.locate {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.locate__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  height: 420px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
}
.locate__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  border: 0;
}
.locate__info { display: flex; flex-direction: column; justify-content: center; }
.locate__info h2 { margin-bottom: .6rem; }
.locate__info .info-row {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.locate__info .info-row:last-of-type { border-bottom: 0; }
.locate__info .info-row .icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--amber-dark);
}
.locate__info .info-row strong { display: block; font-size: .85rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.locate__info a { font-weight: 600; }
.locate__info a:hover { color: var(--amber-dark); }
@media (max-width: 820px) {
  .locate { grid-template-columns: 1fr; }
  .locate__map { min-height: 300px; height: 300px; }
}

/* ---------- About page ---------- */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--amber);
  color: var(--ink);
  padding: .6rem .9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 2rem; } }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.value-card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.value-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.value-card h3 { margin-bottom: .4rem; font-size: 1.15rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.value-card .value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: grid; place-items: center;
  margin-bottom: .8rem;
  color: var(--amber-dark);
}

/* Timeline */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--line));
  border-radius: 2px;
}
.timeline__item { position: relative; padding: 0 0 2rem 3.5rem; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--amber);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.timeline__item h3 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.timeline__item p  { margin: 0; color: var(--muted); }

/* ---------- Services page ---------- */
.flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.flagship__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.flagship__media img { width: 100%; height: 100%; object-fit: cover; }
.flagship__body h2 { margin-bottom: .8rem; }
.flagship__body .eyebrow { background: var(--cream); }
@media (max-width: 820px) { .flagship { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.5rem; } }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .service-block__media { order: 2; }
.service-block__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-block__media:hover img { transform: scale(1.05); }
.service-block h2 { margin-bottom: .5rem; }
.service-block__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
@media (max-width: 820px) {
  .service-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .service-block:nth-child(even) .service-block__media { order: 0; }
}

/* Flavor grid */
.flavors {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.flavors__grid {
  display: grid;
  gap: .5rem .75rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.flavor {
  padding: .55rem .85rem;
  background: var(--cream);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--soft-ink);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: transform .2s var(--ease), background .2s;
}
.flavor:hover { background: var(--amber); transform: translateY(-2px); }
.flavor--seasonal::after {
  content: "Seasonal";
  font-size: .65rem;
  background: var(--ink);
  color: var(--white);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--soft-ink);
  transition: background .2s, color .2s, transform .2s;
}
.filter-btn:hover { background: var(--amber); }
.filter-btn.active { background: var(--ink); color: var(--white); }

@media (max-width: 768px) {
  .filter-btn {
    min-height: 44px;
    padding: .55rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-flow: dense;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 1/1;
  background: var(--cream);
  transition: transform .35s var(--ease);
}
.gallery__item:hover { transform: scale(1.02); }
.gallery__item.tall { grid-row: span 2; aspect-ratio: 1/2; }
@media (max-width: 640px) { .gallery__item.tall { grid-row: span 1; aspect-ratio: 1/1; } }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .3s;
}
.gallery__item:hover img { transform: scale(1.08); filter: brightness(.85); }
.gallery__item::after {
  content: "＋";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--white);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  background: rgba(0,0,0,.2);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 1.4rem;
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--amber); color: var(--ink); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  width: 100%;
  margin-inline: auto;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.form .row--single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .row > * { min-width: 0; }
.form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--cream);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,195,103,.25);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form-success {
  display: none;
  padding: 1rem;
  background: #e7f6ea;
  color: #1e5c2e;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  padding: 1rem;
  background: #fdecec;
  color: #8a1f1f;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
}
.form-error.show { display: block; }

/* ---------- Apply page ---------- */
.apply-wrap { max-width: 760px; margin: 0 auto; }
.apply-wrap > *,
.contact-grid > *,
.why-grid > * { min-width: 0; }
.apply-disclaimer {
  font-size: .88rem;
  color: var(--soft-ink);
  line-height: 1.55;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--cream);
  margin-bottom: 1.5rem;
}
.apply-why .why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.apply-why .why-card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: 14px;
  margin-bottom: 1rem;
  color: var(--amber-dark);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.apply-why .why-card__icon svg { width: 26px; height: 26px; }
.apply-why .why-card h3 { margin-top: 0; }

.contact-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,.75); }
.contact-panel .info-row {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .7rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-panel .info-row .icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,195,103,.18);
  color: var(--amber);
  display: grid; place-items: center;
  flex: none;
}
.contact-panel .info-row strong {
  display: block; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 2px;
}
.contact-panel a { color: var(--white); font-weight: 600; }
.contact-panel a:hover { color: var(--amber); }

.contact-panel__phone {
  display: none;
  margin: 0;
}
.contact-map-below { padding-top: 0; }
.contact-panel__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}
.contact-panel__socials .btn {
  padding: .6rem 1rem;
  font-size: .88rem;
  justify-content: center;
}

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}
.hours-list li strong { color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}
.footer a { color: rgba(255,255,255,.8); transition: color .2s; }
.footer a:hover { color: var(--amber); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.footer__brand span { color: var(--amber); }
.footer__about p { font-size: .92rem; line-height: 1.6; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { padding: .2rem 0; font-size: .92rem; }
.footer__socials { display: flex; gap: .65rem; margin-top: 1rem; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.footer__socials a:hover { background: var(--amber); color: var(--ink); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 40;
  font-size: 1.2rem;
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--ink); color: var(--amber); }

/* ---------- Utility ---------- */
.center-text { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   STAR RATING (4.5 stars visual)
   ============================================================ */
.star-rating {
  --star-size: 18px;
  --star-gap: 2px;
  display: inline-flex;
  align-items: center;
  gap: var(--star-gap);
  line-height: 1;
}
.star-rating .star {
  width: var(--star-size);
  height: var(--star-size);
  flex: none;
  color: var(--amber);
}
.star-rating .star svg { width: 100%; height: 100%; display: block; }
.star-rating .star--half { position: relative; color: rgba(255,255,255,.35); }
.star-rating .star--half > svg { color: inherit; }
.star-rating .star--half::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 50%;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77 5.82 21l1.18-6.88-5-4.87 6.91-1.01z'/></svg>") no-repeat left center;
  -webkit-mask-size: 200% 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77 5.82 21l1.18-6.88-5-4.87 6.91-1.01z'/></svg>") no-repeat left center;
          mask-size: 200% 100%;
}

/* Home hero meta — Google-style review badge (4.5★ + local favorite + reviews) */
.hero__meta-badge {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: .35rem;
  column-gap: .5rem;
  margin-top: 0;
  padding: .55rem .9rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,.92);
  font-size: .85rem;
  max-width: 100%;
}
.hero__rating-count { font-weight: 600; color: rgba(255,255,255,.95); font-size: .8rem; white-space: nowrap; line-height: 1.2; }
.star-rating--hero {
  --star-size: 13px;
  --star-gap: 2px;
  flex-shrink: 0;
}
/* Same star row on light backgrounds (testimonials pill) */
.star-rating--light .star { color: var(--amber-dark); }
.star-rating--light .star--half { color: rgba(0,0,0,.12); }
.star-rating--light .star--half::before { background: var(--amber-dark); }

/* ============================================================
   MOBILE OPTIMIZATION
   ============================================================ */
@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--container)); }

  body { font-size: 16px; line-height: 1.5; }

  /* Header — compact bar (row-gap must stay 0 so bar + in-flow nav read as one block) */
  .header__inner {
    padding: .45rem 0;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: .4rem;
  }
  .brand__logo { width: 40px; height: 40px; border-width: 1.5px; }
  .brand { font-size: 1.05rem; gap: .55rem; }
  .brand__text small { font-size: .62rem; letter-spacing: .2em; margin-top: 2px; }
  .menu-toggle { width: 44px; height: 44px; }

  .btn--primary:hover,
  .btn--ghost:hover,
  .btn--dark:hover { transform: none; }

  /* Hero — portrait-friendly */
  .hero { min-height: auto; }
  .hero__content { padding: 5rem 0 4rem; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .hero__lede { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__cta .btn--ghost { flex: 1 1 100%; }
  .hero__meta { margin-top: 2rem; gap: 1.2rem 2rem; font-size: .85rem; }
  .hero__meta > div { flex: 1 1 45%; min-width: 140px; }
  .hero__meta-badge {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero__meta-badge .hero__rating {
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    padding: .65rem 1rem;
  }
  .hero__scroll { display: none; }

  /* Page hero */
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }

  /* Sections stack */
  .section { padding: 3.5rem 0; }
  .section__head { margin-bottom: 2rem; }

  /* Grids → single column on mobile */
  .svc-grid, .why-grid, .values { grid-template-columns: 1fr; gap: 1rem; }
  .locate { grid-template-columns: 1fr; gap: 1.5rem; }
  .story { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline: .2rem;
  }
  .service-block { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; }
  .service-block:nth-child(even) .service-block__media { order: 0; }
  .flagship { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }

  /* Maps — explicit box height (iframe fills absolutely positioned parent) */
  .locate__map { min-height: 300px; height: 300px; }
  .contact-map { min-height: 300px; height: 300px; }

  /* Cards & typography */
  .why-card { padding: 1.5rem 1.25rem; }
  .svc-card__body { padding: 1.2rem 1.25rem 1.5rem; }
  .flavors { padding: 1.25rem; }
  .flavors__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .flavor { font-size: .88rem; padding: .5rem .75rem; }

  /* Touch targets & tappability */
  .btn { min-height: 44px; padding: .9rem 1.3rem; }
  .nav a { min-height: 44px; display: flex; align-items: center; font-size: 1rem; }

  /* Forms — iOS 16px to prevent zoom */
  .form { padding: 1.5rem; }
  .form input, .form select, .form textarea {
    font-size: 16px;
    min-height: 48px;
    padding: .9rem 1rem;
  }
  .form input[type="date"] { overflow: hidden; }
  .form textarea { min-height: 140px; }
  .form .row, .form .row--single { grid-template-columns: 1fr; gap: .75rem; margin-bottom: .9rem; }

  /* Contact panel */
  .contact-grid > * { width: 100%; max-width: 100%; margin-inline: auto; }
  .contact-panel { width: 100%; max-width: 100%; padding: 1.5rem; }
  .contact-panel .info-row { padding: .6rem 0; gap: .7rem; }
  .contact-map-below { padding-top: 2.25rem; }

  .contact-panel__phone {
    display: block;
    margin: .25rem 0 .75rem;
  }
  .contact-panel__phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
  }
  .contact-panel__phone a:hover { background: var(--amber-dark); color: var(--ink); }

  .contact-panel__socials .btn {
    min-height: 44px;
    padding: .7rem 1.15rem;
    font-size: .9rem;
  }

  /* Reviews carousel — larger dot hit targets */
  .carousel { max-width: 100%; }
  .carousel__dots { gap: .15rem; flex-wrap: wrap; }
  .carousel__dots button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    transform: none !important;
  }
  .carousel__dots button::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
    transition: background .25s, transform .25s;
  }
  .carousel__dots button.active::after {
    background: var(--amber-dark);
    transform: scale(1.35);
  }
  .testimonial { padding: 1.5rem 1rem; }
  .testimonial blockquote { font-size: 1.05rem; }

  /* Timeline */
  .timeline__item { padding-left: 3rem; }

  /* Footer stacks cleanly */
  .footer { padding: 3rem 0 1.25rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer__bottom { flex-direction: column; gap: .35rem; text-align: center; }

  /* Gallery — 2 col grid on phones */
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .gallery__item.tall { grid-row: span 1; aspect-ratio: 1/1; }

  /* Scroll-to-top positioned away from thumbs */
  .to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }

  /* Vertical reveal on mobile — avoids horizontal overflow */
  .reveal--left, .reveal--right { transform: translateY(34px); }
  .reveal--left.in, .reveal--right.in { transform: translateY(0); }
}

@media (max-width: 420px) {
  .form { padding: 1.25rem; }
  .contact-panel { padding: 1.25rem; }
  .why-card { padding: 1.35rem 1.1rem; }
  .hero__meta { gap: .8rem 1.2rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .flavors__grid { grid-template-columns: repeat(2, 1fr); }
  .why-card__num { font-size: 2.4rem; }
  .star-rating--hero { --star-size: 11px; }
  .hero__rating-count { font-size: .72rem; }
  .reviews__rating { padding: .7rem 1rem; gap: .45rem .55rem; }
}

/* Images fluid; map iframes use sized parents (avoid height:auto on embeds) */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.gallery__item img, .svc-card__media img,
.service-block__media img, .story__media img, .flagship__media img { height: 100%; }

/* Contact page map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  height: 450px;
  min-height: 300px;
  position: relative;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
}

/* Section icon (used at top of flavors section) */
.section-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  box-shadow: 0 10px 24px rgba(255,195,103,.35);
}
.section-icon svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
