/* ============================================================
   Dairy Queen Menu — stylesheet
   Palette:  DQ Red #E4002B · Royal Blue #003DA5 · Sky #2AA9E0
             Cream #FFF7EC · Ink #1A1526 · Cloud #FFFFFF
   Type:     Fredoka (display, rounded) · Inter (body/data)
   ============================================================ */

:root {
  --red:    #E4002B;
  --red-dk: #B80022;
  --blue:   #003DA5;
  --blue-lt:#1E5BD6;
  --sky:    #2AA9E0;
  --cream:  #FFF7EC;
  --cloud:  #FFFFFF;
  --ink:    #1A1526;
  --muted:  #6A6577;
  --line:   #EFE6D6;
  --shadow: 0 10px 30px -12px rgba(26, 21, 38, .28);
  --shadow-sm: 0 4px 14px -8px rgba(26, 21, 38, .30);
  --radius: 22px;
  --maxw: 1180px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 128px; }

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

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

a { color: var(--blue); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
  color: #fff;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: #fff; text-decoration: none; letter-spacing: .2px;
}
.brand .curl { width: 44px; height: 30px; flex: none; object-fit: contain; border-radius: 5px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: #dfe7ff; text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px; transition: .18s;
}
.topnav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 82% -10%, #1E5BD6 0%, var(--blue) 42%, #002a72 100%);
  color: #fff;
  padding: 74px 0 96px;
}
.hero::after { /* soft-serve swoosh band */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--cream);
  clip-path: polygon(0 62%, 8% 55%, 22% 66%, 38% 52%, 55% 64%, 72% 50%, 88% 63%, 100% 54%, 100% 100%, 0 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.02;
  margin: 18px 0 14px; max-width: 15ch;
}
.hero h1 .pop { color: #FFD23F; }
.hero p { max-width: 60ch; font-size: 1.08rem; color: #e7ecff; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(228,0,43,.7); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(228,0,43,.75); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px;
}
.hero-stats .stat { }
.hero-stats .num { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: #FFD23F; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: #cdd8ff; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Category rail (sticky) ---------- */
.rail {
  position: sticky; top: 60px; z-index: 40;
  background: rgba(255,247,236,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.rail .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.rail a {
  flex: none; text-decoration: none; color: var(--blue);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; transition: .18s;
}
.rail a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Section headers ---------- */
.section { padding: 60px 0 20px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head .kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 2.6rem;
  color: var(--red); line-height: .9; opacity: .16; flex: none;
}
.section-head .titles h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; color: var(--ink); line-height: 1.05;
}
.section-head .titles p { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--cloud); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 1 / 1; background: var(--cream);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.06rem;
  margin: 0; line-height: 1.2;
}
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: #fff; background: var(--red);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.cals {
  font-size: .8rem; font-weight: 600; color: var(--blue);
  background: #EAF1FF; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.cals.na { color: var(--muted); background: #F1EDE4; }

/* ---------- Prose / info sections ---------- */
.prose { max-width: 78ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue); margin: 40px 0 12px;
}
.prose p { margin: 0 0 16px; color: #38323f; }

/* ---------- Info tables ---------- */
.tables { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel {
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  margin: 0; padding: 15px 18px; color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
}
.panel.red h3 { background: linear-gradient(90deg, var(--red-dk), var(--red)); }
.panel table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.panel td { padding: 10px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.panel tr td:first-child { font-weight: 600; color: var(--ink); width: 42%; }
.panel tr td:last-child { color: #4a4552; }
.panel .note { padding: 12px 18px; font-size: .82rem; color: var(--muted); background: #FBF6EC; }

/* ---------- Hours strip ---------- */
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hours .day {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  text-align: center;
}
.hours .day .d { font-family: var(--font-display); font-weight: 500; color: var(--red); }
.hours .day .t { font-size: .9rem; color: var(--muted); }

/* ---------- Contact cards ---------- */
.contact { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 6px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.ccard .lab { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.ccard .val { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-top: 6px; }
.ccard .val a { text-decoration: none; }

.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 8px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: #cfc9d8; margin-top: 70px; padding: 46px 0 30px;
}
footer.site .brand { color: #fff; margin-bottom: 14px; }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
footer.site .links a { color: #b7b1c4; text-decoration: none; font-size: .92rem; }
footer.site .links a:hover { color: #fff; }
footer.site .disc { font-size: .8rem; color: #8a8499; max-width: 80ch; line-height: 1.6; border-top: 1px solid #322c40; padding-top: 20px; }
footer.site .copy { margin-top: 14px; font-size: .82rem; color: #6f697d; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .topnav { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--blue); flex-direction: column; padding: 10px 22px 18px; }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 12px; }
  .menu-toggle {
    display: inline-flex; background: rgba(255,255,255,.14); color: #fff; border: none;
    width: 42px; height: 38px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
  }
  .hero { padding: 54px 0 84px; }
  .section-head .kicker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* Visible keyboard focus */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px;
}

/* ============================================================
   SUBPAGE / ARTICLE STYLES
   ============================================================ */

/* compact page hero (subpages) */
.page-hero { padding: 58px 0 92px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { max-width: 68ch; font-size: 1.06rem; color: #e7ecff; }
.page-hero .hero-img {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(300px, 30vw); border-radius: 24px; box-shadow: var(--shadow);
  z-index: 2; border: 5px solid rgba(255,255,255,.9);
}
@media (max-width: 900px){ .page-hero .hero-img{ display:none; } }

/* article wrapper */
.article { max-width: 820px; margin: 0 auto; padding-top: 46px; }
.article h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue);
  margin: 42px 0 14px; scroll-margin-top: 130px;
}
.article h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
  color: var(--ink); margin: 28px 0 10px;
}
.article p { margin: 0 0 16px; color: #38323f; }
.article ul { margin: 0 0 18px; padding-left: 20px; }
.article li { margin-bottom: 8px; color: #38323f; }

/* pull quote / callout */
.callout {
  border-left: 5px solid var(--red); background: #fff;
  padding: 18px 22px; border-radius: 0 16px 16px 0; margin: 24px 0;
  box-shadow: var(--shadow-sm); font-size: 1.05rem; color: #2c2734;
}
.note-box {
  background: #EAF1FF; border: 1px solid #cfe0ff; border-radius: 16px;
  padding: 14px 18px; margin: 22px 0; font-size: .95rem; color: #274a86;
}

/* menu price table */
.menu-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; background:#fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.menu-table thead th {
  background: linear-gradient(90deg, var(--blue), var(--blue-lt)); color:#fff;
  font-family: var(--font-display); font-weight: 500; text-align: left;
  padding: 13px 18px; font-size: .95rem;
}
.menu-table td { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.menu-table tbody tr:nth-child(even){ background: #FBF6EC; }
.menu-table td:first-child { font-weight: 600; color: var(--ink); }
.menu-table .p { color: var(--red); font-weight: 700; white-space: nowrap; }
.tag-fav { display:inline-block; background:var(--red); color:#fff; font-size:.62rem; font-weight:700;
  letter-spacing:.06em; padding:2px 7px; border-radius:999px; vertical-align:middle; margin-left:7px; text-transform:uppercase; }
.tag-season { display:inline-block; background:var(--sky); color:#fff; font-size:.62rem; font-weight:700;
  letter-spacing:.06em; padding:2px 7px; border-radius:999px; vertical-align:middle; margin-left:7px; text-transform:uppercase; }

/* size cards (blizzard sizes) */
.sizes { display:grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap:16px; margin:22px 0 28px; }
.size {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  text-align:center; padding:22px 14px; position:relative; overflow:hidden;
}
.size::before{ content:""; position:absolute; inset:0 0 auto 0; height:6px; background:var(--red); }
.size .name { font-family:var(--font-display); font-weight:600; color:var(--blue); letter-spacing:.04em; }
.size .amt { font-family:var(--font-display); font-weight:600; font-size:1.8rem; color:var(--red); margin:6px 0 2px; }
.size .oz { font-size:.82rem; color:var(--muted); }

/* pick cards (best blizzards) */
.picks { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin:20px 0 28px; }
.pick { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); }
.pick .badge { font-size:.68rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--red); }
.pick h3 { margin:8px 0 8px; font-family:var(--font-display); font-weight:500; font-size:1.15rem; color:var(--ink); }
.pick p { font-size:.92rem; color:#4a4552; margin:0; }

/* FAQ */
.faq details {
  background:#fff; border:1px solid var(--line); border-radius:16px; margin-bottom:12px;
  box-shadow:var(--shadow-sm); overflow:hidden;
}
.faq summary {
  cursor:pointer; padding:16px 20px; font-family:var(--font-display); font-weight:500;
  color:var(--blue); font-size:1.04rem; list-style:none; position:relative;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:20px; top:14px; font-size:1.4rem; color:var(--red); transition:transform .2s; }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq details p { padding:0 20px 18px; margin:0; color:#4a4552; font-size:.95rem; }

/* breadcrumb */
.crumb { font-size:.85rem; color:var(--muted); padding:16px 0 0; }
.crumb a { color:var(--blue); text-decoration:none; }
.crumb a:hover { text-decoration:underline; }
