/* ==========================================================================
   Westhampton Pastry Shop — shared styles
   Palette: red & white (modern refresh of the classic Richmond bakery)
   ========================================================================== */

:root {
  --red:        #c8102e;   /* brand red */
  --red-dark:   #9e0b22;
  --red-soft:   #fce8eb;   /* tint for backgrounds */
  --ink:        #241f20;   /* near-black text */
  --muted:      #6b6360;   /* secondary text */
  --bg:         #ffffff;
  --cream:      #fbf7f4;   /* warm off-white section bg */
  --border:     #ece6e2;
  --shadow:     0 6px 24px rgba(36, 31, 32, .08);
  --shadow-lg:  0 14px 40px rgba(36, 31, 32, .14);
  --radius:     14px;
  --maxw:       1140px;
  --header-h:   72px;
  --serif:      "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

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

.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}
.section--red h2, .section--red h3 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .6rem;
}
.section--red .eyebrow { color: #ffd9df; }

.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--light { background: #fff; color: var(--red); border-color: #fff; }
.btn--light:hover { background: #fff5f6; color: var(--red-dark); border-color: #fff; }

/* ---------- Announcement bar (site-wide "we've moved") ---------- */
.announce {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
}
.announce .container {
  display: flex; align-items: center; justify-content: center; gap: 6px 14px;
  flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px;
}
.announce .ann-pin { font-weight: 800; letter-spacing: .01em; }
.announce a {
  color: #fff; text-decoration: underline; text-underline-offset: 2px;
  font-weight: 800; white-space: nowrap;
}
.announce a:hover { color: #ffe6ea; }
@media (max-width: 480px) { .announce { font-size: .82rem; } }

/* ---------- "We've moved" banner (prominent, homepage) ---------- */
.moved-banner { background: var(--cream); border-bottom: 1px solid var(--border); padding: 22px 0; }
.moved-banner__inner {
  display: flex; align-items: center; justify-content: center; gap: 14px 28px;
  flex-wrap: wrap; text-align: center;
  background: #fff; border: 2px solid var(--red); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 28px;
}
.moved-banner__pin { font-size: 2.1rem; line-height: 1; flex: none; }
.moved-banner h2 { color: var(--red); margin: 0 0 .15em; font-size: clamp(1.3rem, 3.4vw, 2rem); }
.moved-banner__addr { margin: 0; font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--ink); }
.moved-banner__landmark { margin: .2em 0 0; color: var(--muted); font-style: italic; font-size: 1rem; }
.moved-banner .btn { flex: none; }
@media (max-width: 560px) { .moved-banner__inner { flex-direction: column; gap: 14px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  flex: none;
}
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.05;
  color: var(--ink);
}
.brand__name small { display: block; font-family: var(--sans); font-weight: 700;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
}
.nav__links a:hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
.nav__links a.active { color: var(--red); }
.nav__links .btn { color: #fff; }
.nav__links .btn:hover { color: #fff; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 9px; border-radius: 8px;
}
.nav__toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav__links .btn { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 70px 0 80px;
}
.hero__title { margin-bottom: .25em; }
.hero__quote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); margin-bottom: 1rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; font-family: var(--serif); line-height: 1.1;
}
.hero__badge b { color: var(--red); font-size: 1.6rem; display: block; }
.hero__badge span { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 56px; }
  .hero__media { order: -1; }
}

/* ---------- Generic two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.figure { margin: 0; }
.figure figcaption { margin-top: 10px; text-align: center; font-size: .9rem; color: var(--muted); font-style: italic; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card__body { padding: 18px 18px 20px; }
.card__body h3 { margin-bottom: .25em; }
.card__price { float: right; color: var(--red); font-weight: 800; font-family: var(--sans); }
.card__body p { color: var(--muted); font-size: .96rem; margin: 0; clear: both; }

/* ---------- Menu tabs ---------- */
.menu-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 0 0 40px;
}
@media (max-width: 640px) {
  .menu-tabs {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin-inline: -22px; padding: 4px 22px 12px; scroll-snap-type: x proximity;
  }
  .menu-tabs::-webkit-scrollbar { height: 0; }
}
.menu-tab {
  flex: none; scroll-snap-align: start;
  font-family: var(--sans); font-weight: 800; font-size: .98rem;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.menu-tab:hover { border-color: var(--red); color: var(--red); }
.menu-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.menu-panel { display: none; animation: fade .25s ease; }
.menu-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.menu-panel__head { text-align: center; max-width: 64ch; margin: 0 auto 36px; }
.menu-panel__head h2 { margin-bottom: .2em; }
.menu-panel__head .note { color: var(--muted); font-size: 1.02rem; }

/* text menu list (categories without photos) */
.menu-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 56px;
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; gap: 2px; } }
.menu-item { padding: 18px 4px; border-bottom: 1px solid var(--border); }
.menu-item h3 { font-size: 1.18rem; margin-bottom: .25em; }
.menu-item p { color: var(--muted); font-size: .98rem; margin: 0; }
.menu-item .tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: var(--sans); font-weight: 800; font-size: .64rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); background: var(--red-soft);
  padding: 3px 8px; border-radius: 999px;
}

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: #fff; border: 1.5px solid var(--red); color: var(--red);
  border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: .95rem;
}
.section--red .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }

/* feature gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figure { margin: 0; }
.gallery figure figcaption { margin-top: 10px; text-align: center; font-size: .88rem; color: var(--muted); font-style: italic; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2,1fr); } }

/* press logos / covers */
.press-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: stretch; }
.press-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; text-align:center;
}
.press-card img { margin: 0 auto 16px; max-height: 240px; width:auto; border-radius: 8px; box-shadow: var(--shadow); }
@media (max-width: 780px) { .press-grid { grid-template-columns: 1fr; } }

/* info / contact */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { color: var(--red); font-size: 1.3rem; line-height: 1.4; flex: none; }
.info-list b { display: block; font-family: var(--serif); }
.info-list a { font-weight: 700; }

.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

.notice {
  background: var(--red-soft); border: 1px solid #f6c9d1; color: var(--red-dark);
  border-radius: var(--radius); padding: 16px 20px; font-weight: 700;
}

/* page header band */
.page-head { background: var(--cream); border-bottom: 1px solid var(--border); padding: 56px 0; text-align: center; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8cfca; padding: 56px 0 28px; font-size: .96rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .03em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color:#fff; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 18px;
  display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color:#a89f9a; font-size:.86rem; }

/* utilities */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
