/* Froyo Frozen Yogurt — shared stylesheet
   Brand colors pulled from the pinwheel logo + polka-dot cup. */

:root {
  --pink: #E91E63;
  --pink-dark: #C2185B;
  --teal: #4ECDC4;
  --teal-dark: #2CB1A8;
  --lime: #8BC34A;
  --lime-dark: #689F38;
  --orange: #FF9800;
  --yellow: #FFC107;
  --blue: #29B6F6;
  --cream: #FFF9F0;
  --ink: #2C2C2C;
  --muted: #6B6B6B;
  --border: #EADFD0;
  --shadow: 0 8px 24px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 12px 40px rgba(44, 44, 44, 0.14);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1rem; }

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  padding: 16px 0;
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo img { height: 44px; width: auto; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  margin-left: 22px;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--pink); text-decoration: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--cream);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/photos/hero-spanish-fork.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,249,240,0.97) 0%, rgba(255,249,240,0.88) 32%, rgba(255,249,240,0.5) 60%, rgba(255,249,240,0.06) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 88px;
}
.hero-grid { display: block; }
.hero-text { max-width: 560px; text-align: left; }
.hero .hero-logo {
  max-width: 320px;
  margin: 0 0 18px;
  display: block;
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000);
}
.hero .hero-tagline {
  max-width: 380px;
  margin: 0 0 22px;
  display: block;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink);
  max-width: 520px;
  margin: 0 0 26px;
  font-weight: 500;
}
.hero .btn-row { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.hero-photo { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.28);
}
.btn-primary:hover { background: var(--pink-dark); }
.btn-secondary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(78, 205, 196, 0.28);
}
.btn-secondary:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------------- Section wrapper ---------------- */
section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--pink);
  margin-bottom: 10px;
}

/* ---------------- Location cards ---------------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.loc-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--pink);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.loc-card.accent-teal { border-top-color: var(--teal); }
.loc-card.accent-lime { border-top-color: var(--lime); }
.loc-card h3 { margin-bottom: 6px; }
.loc-card .city { color: var(--muted); font-weight: 500; margin-bottom: 16px; display: block; }
.loc-card .nap { font-size: 0.98rem; margin-bottom: 18px; }
.loc-card .nap p { margin: 0 0 4px; }
.loc-card .hours { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }
.loc-card .card-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.loc-card .card-btns .btn { padding: 10px 18px; font-size: 0.94rem; }
.loc-card .details-link { margin-top: 14px; font-size: 0.92rem; font-weight: 500; }

/* ---------------- About / Story ---------------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-img img { display: block; width: 100%; height: auto; }
.story h2 { margin-bottom: 18px; }
.story p { font-size: 1.06rem; color: var(--muted); }

/* ---------------- Photo gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #eee;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------------- Per-location photo strip ---------------- */
.loc-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.loc-photos figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.loc-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- Toppings section ---------------- */
#toppings .section-head { max-width: 880px; }
#toppings .section-head h2 { white-space: nowrap; }
@media (max-width: 700px) {
  #toppings .section-head h2 { white-space: normal; }
}
.toppings-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 7;
  background: #eee;
}
.toppings-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.toppings-ribbon {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: center;
  justify-content: center;
}
.toppings-ribbon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.08));
  transition: transform .2s ease;
}
.toppings-ribbon img:hover {
  transform: scale(1.15) rotate(-4deg);
}

/* legacy toppings grid (no longer used on homepage, kept for backward compat) */
.toppings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  justify-items: center;
}
.topping { text-align: center; padding: 12px; }
.topping img { width: 100px; height: 100px; object-fit: contain; }
.topping span { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }

/* ---------------- Location detail page ---------------- */
.loc-detail-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #FFECF2 0%, var(--cream) 100%);
}
.loc-detail-hero.accent-teal { background: linear-gradient(180deg, #E8F9F7 0%, var(--cream) 100%); }
.loc-detail-hero.accent-lime { background: linear-gradient(180deg, #EFF7E1 0%, var(--cream) 100%); }
.loc-detail-hero .eyebrow { color: inherit; }
.loc-detail-hero .breadcrumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.loc-detail-hero .breadcrumb a { color: var(--muted); }

.loc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 16px;
}
.info-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card h3 { margin-top: 0; }
.info-card .address { font-size: 1.1rem; margin-bottom: 4px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; row-gap: 6px; font-size: 0.96rem; }
.info-card dt { color: var(--muted); font-weight: 500; }
.info-card dd { margin: 0; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
  aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.origin-story {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 40px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--pink);
}
.loc-detail-hero.accent-teal ~ .block .origin-story { border-left-color: var(--teal); }
.loc-detail-hero.accent-lime ~ .block .origin-story { border-left-color: var(--lime); }
.origin-story h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}
.origin-story p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}
.origin-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.origin-photos figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.origin-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.know-before {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.know-before .card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.know-before .card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.know-before .card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #DDD;
  padding: 56px 0 32px;
  margin-top: 48px;
}
.site-footer a { color: #FFB3C9; }
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 600; }
.site-footer h4 a { color: #fff; text-decoration: none; }
.site-footer h4 a:hover { color: #FFB3C9; text-decoration: underline; }
.site-footer p, .site-footer li { font-size: 0.92rem; margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .brand img { height: 42px; margin-bottom: 12px; }
.site-footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  font-size: 0.86rem;
  color: #999;
  text-align: center;
}
.site-footer-bottom a { color: #999; }

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .hero { min-height: 480px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,249,240,0.96) 0%, rgba(255,249,240,0.78) 45%, rgba(255,249,240,0.32) 100%);
  }
  .hero .container { padding-top: 56px; padding-bottom: 64px; }
  .hero-text { text-align: center; max-width: 100%; }
  .hero-text .hero-logo, .hero-text .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .toppings-photo { aspect-ratio: 4 / 3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-photos { grid-template-columns: 1fr; }
  .origin-photos { grid-template-columns: 1fr; }
  .origin-story { padding: 24px; }
}
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .loc-info-grid { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { margin-left: 14px; font-size: 0.9rem; }
  .site-header .logo img { height: 36px; }
  .hero { min-height: 420px; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero .hero-logo { max-width: 260px; }
  .hero .hero-tagline { max-width: 300px; }
  .toppings-ribbon img { width: 48px; height: 48px; }
  section.block { padding: 48px 0; }
}
@media (max-width: 480px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
