/* ===================================================================
   PORTAGE BAKERY INC — Design tokens
   Palette: warm ivory + deep espresso + cherry-red accent + wheat gold
   Type: Abril Fatface (display, bold bakery-poster serif) + Nunito
         (body, soft & friendly) + Caveat (handwritten accents)
   Signature: a scalloped "bakery box" edge used as a section divider,
   and dashed-border "price tag" cards for the menu.
   =================================================================== */

:root {
  --cream: #FBF3E7;
  --cream-2: #F3E4C8;
  --espresso: #2E1D14;
  --espresso-soft: #4A3527;
  --cherry: #C22735;
  --cherry-dark: #9E1E2A;
  --gold: #D9A441;
  --gold-light: #F0C776;
  --text-soft: #6B5847;
  --text-on-dark: #FBF3E7;
  --text-on-dark-soft: #E2C9A6;
  --line: #E7D6B8;
  --shadow-card: 0 16px 34px -18px rgba(46, 29, 20, 0.35);
  --shadow-soft: 0 24px 50px -24px rgba(46, 29, 20, 0.3);

  --font-display: "Abril Fatface", ui-serif, Georgia, serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: "Caveat", cursive;

  --wrap: 1180px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --ease: cubic-bezier(.22,.85,.32,1);
}

/* ===================== Reset & base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--espresso); margin: 0 0 .45em; line-height: 1.15; font-weight: 400; }
p { margin: 0 0 1em; color: var(--text-soft); }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
address { font-style: normal; }
iframe { border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--espresso); color: var(--cream); padding: .8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ===================== Buttons — "stamp" style ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 800; font-size: .92rem; padding: .85em 1.7em; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-stamp {
  background: var(--cherry); color: var(--cream);
  border: 2.5px dashed rgba(251,243,231,.55);
  box-shadow: 0 12px 26px -12px rgba(194,39,53,.55);
}
.btn-stamp:hover { background: var(--cherry-dark); transform: translateY(-2px) rotate(-1deg); }
.btn-line { background: transparent; color: var(--espresso); border: 2px solid var(--espresso); }
.btn-line:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }
.btn-lg { padding: 1.05em 2.1em; font-size: 1rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 243, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--line);
}
.site-header.scrolled { box-shadow: 0 10px 24px -20px rgba(46,29,20,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  font-family: var(--font-body); font-weight: 800; font-size: .62rem; line-height: 1.2; text-align: center;
  color: var(--cream); background: var(--espresso); border-radius: 50%;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--espresso); }
.brand-text em { font-style: normal; color: var(--cherry); }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 700; font-size: .9rem; color: var(--espresso-soft); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--cherry); transition: width .25s var(--ease); }
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .86rem; color: var(--espresso); }
.header-phone svg { width: 16px; height: 16px; color: var(--cherry); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; }

/* ===================== Reveal-on-scroll ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Hero — asymmetric collage ===================== */
.hero { position: relative; padding: 76px 0 0; background: var(--cream); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-bottom: 60px; }

.eyebrow { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; color: var(--cherry); margin-bottom: 1em; }
.eyebrow-light { color: var(--gold-light); }

.hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--espresso); }
.script-word { font-family: var(--font-script); color: var(--cherry); font-size: 1.25em; }
.hero-sub { font-size: 1.06rem; max-width: 48ch; margin-bottom: 1.7em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2em; }

.hero-badges { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--espresso); }
.hero-badge strong span { color: var(--gold); }
.hero-badge span:last-child { font-size: .78rem; color: var(--text-soft); font-weight: 700; }

/* Collage container is hard-capped so nothing inside it can ever bleed
   into the sections below, regardless of image load state or browser
   support for aspect-ratio. */
.hero-collage { position: relative; height: 460px; max-height: 460px; overflow: hidden; }

/* Each frame reserves its own square footprint using the classic
   padding-top percentage hack (width-derived height) -- this works in
   every browser, unlike the aspect-ratio property, and never depends
   on the image having actually loaded. The <img> inside is absolutely
   positioned to fill that fixed footprint and cropped with overflow:
   hidden, so a slow or missing image can only ever occupy its frame. */
.collage-frame {
  position: absolute; overflow: hidden; border-radius: 10px;
  box-shadow: var(--shadow-card); background: #fff;
  padding: 10px 10px 34px;
}
.collage-frame::before { content: ""; display: block; padding-top: 100%; }
.collage-frame img {
  position: absolute; top: 10px; left: 10px; right: 10px; bottom: 34px;
  width: calc(100% - 20px); height: calc(100% - 44px);
  object-fit: cover; border-radius: 4px;
}
.frame-1 { width: 62%; top: 0; left: 4%; transform: rotate(-6deg); z-index: 2; }
.frame-2 { width: 48%; bottom: 0; right: 0; transform: rotate(5deg); z-index: 3; }
.frame-3 { width: 42%; top: 40%; right: 20%; transform: rotate(-3deg); z-index: 1; }
.collage-tape { position: absolute; width: 60px; height: 22px; background: rgba(217,164,65,.55); z-index: 4; }
.tape-1 { top: -8px; left: 20%; transform: rotate(-8deg); }
.tape-2 { bottom: 30%; right: 6%; transform: rotate(10deg); }

/* Signature scalloped bakery-box divider */
.scallop-divider { line-height: 0; color: var(--cream-2); }
.scallop-divider svg { width: 100%; height: 34px; display: block; fill: currentColor; }
.scallop-divider.flip { transform: scaleY(-1); color: var(--cream); }

/* ===================== Trust strip ===================== */
.trust-strip { background: var(--espresso); padding: 32px 0; }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); }
.trust-item .label { font-size: .78rem; color: var(--text-on-dark-soft); font-weight: 700; }

/* ===================== Section shared ===================== */
section { padding: 88px 0; }
.section-head { max-width: 600px; margin-bottom: 50px; }
.section-sub { font-size: 1.02rem; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }

/* ===================== Menu — bakery tag cards ===================== */
.menu { background: var(--cream-2); }
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tag-card {
  position: relative; background: var(--cream); border: 2px dashed var(--line); border-radius: var(--radius-md);
  padding: 34px 26px 26px; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), rotate .3s var(--ease);
}
.tag-card:hover { transform: translateY(-6px) rotate(-1deg); }
.tag-hole { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--cream-2); border: 2px dashed var(--line); }
.tag-icon { width: 30px; height: 30px; color: var(--cherry); margin-bottom: 14px; }
.tag-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.tag-card p { font-size: .92rem; margin-bottom: 1em; }
.tag-price { font-family: var(--font-script); font-size: 1.3rem; color: var(--gold); font-weight: 700; }

/* ===================== Story ===================== */
.story { background: var(--cream); }
.story-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.story-media { position: relative; }
.story-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); aspect-ratio: 4/5; object-fit: cover; }
.story-stamp {
  position: absolute; bottom: -18px; left: -18px; background: var(--gold); color: var(--espresso);
  font-family: var(--font-display); font-size: .78rem; text-align: center; line-height: 1.3;
  width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg); box-shadow: var(--shadow-card);
}
.story-copy p { font-size: 1.02rem; }
.script-quote { font-family: var(--font-script); font-size: 1.7rem; color: var(--cherry); margin-top: 1em; }

/* ===================== Cakes & Events ===================== */
.events { background: var(--espresso); }
.events-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.events-copy h2 { color: var(--text-on-dark); }
.events-copy p { color: var(--text-on-dark-soft); font-size: 1.02rem; }
.events-list { display: flex; flex-direction: column; gap: 20px; margin: 1.6em 0 2em; }
.events-list li { border-left: 3px solid var(--gold); padding-left: 18px; }
.events-list strong { display: block; color: var(--text-on-dark); font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; margin-bottom: 2px; }
.events-list span { color: var(--text-on-dark-soft); font-size: .92rem; }
.events-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); aspect-ratio: 4/5; object-fit: cover; }

/* ===================== Gallery ===================== */
.gallery { background: var(--cream-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.gallery img { aspect-ratio: 1/1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* ===================== Belt ===================== */
.belt { background: var(--cream); padding: 50px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.belt-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.belt-item { display: flex; gap: 14px; align-items: flex-start; }
.belt-item svg { width: 32px; height: 32px; color: var(--cherry); flex-shrink: 0; }
.belt-item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 400; color: var(--espresso); margin-bottom: 3px; }
.belt-item span { font-size: .82rem; color: var(--text-soft); }

/* ===================== Testimonials — postcards ===================== */
.testimonials { background: var(--cream-2); }
.postcard-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.postcard {
  position: relative; background: var(--cream); border-radius: 4px; padding: 30px 26px;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.postcard:nth-child(2) { transform: rotate(1.2deg); }
.postcard:nth-child(3) { transform: rotate(-1deg); }
.postcard-stamp { position: absolute; top: 16px; right: 18px; color: var(--gold); font-size: 1.3rem; }
.postcard p { font-family: var(--font-script); font-size: 1.35rem; color: var(--espresso); line-height: 1.45; margin-bottom: .5em; margin-right: 26px; }
.postcard cite { font-size: .78rem; font-weight: 800; color: var(--cherry); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }

/* ===================== FAQ ===================== */
.faq { background: var(--cream); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.acc-item { border-bottom: 2px dashed var(--line); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; text-align: left; font-family: var(--font-display); font-size: 1.05rem; color: var(--espresso); font-weight: 400; }
.acc-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-left: 16px; background: var(--cherry); border-radius: 50%; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease); }
.acc-icon::before { width: 10px; height: 2px; top: 10px; left: 6px; }
.acc-icon::after { width: 2px; height: 10px; top: 6px; left: 10px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel p { padding: 0 4px 22px; font-size: .95rem; }

/* ===================== Visit ===================== */
.visit { background: var(--cream-2); }
.visit-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.visit-copy address { font-size: 1rem; color: var(--text-soft); margin-bottom: 1.4em; line-height: 1.7; }
.hours-list { margin-bottom: 1.8em; border-top: 2px dashed var(--line); }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 2px dashed var(--line); font-weight: 700; font-size: .92rem; }
.hours-list li span:last-child { color: var(--text-soft); font-weight: 600; }
.visit-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.visit-map iframe { width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ===================== Final CTA ===================== */
.final-cta { background: linear-gradient(135deg, var(--cherry), var(--cherry-dark)); text-align: center; }
.final-cta-inner { max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: var(--cream); }
.final-cta p { color: #F6DCDC; font-size: 1.05rem; margin-bottom: 1.8em; }
.final-cta .btn-stamp { background: var(--cream); color: var(--cherry-dark); border-color: rgba(46,29,20,.25); }
.final-cta .btn-stamp:hover { background: var(--gold-light); color: var(--espresso); }

/* ===================== Footer ===================== */
.site-footer { background: var(--espresso); color: var(--text-on-dark-soft); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; }
.footer-brand .brand-text { color: var(--text-on-dark); }
.footer-brand .brand-text em { color: var(--gold-light); }
.footer-brand p { color: var(--text-on-dark-soft); font-size: .9rem; margin-top: .8em; }
.footer-col h3 { color: var(--text-on-dark); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1em; font-family: var(--font-body); font-weight: 800; }
.footer-col a { display: block; color: var(--text-on-dark-soft); font-size: .92rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px dashed rgba(251,243,231,.15); padding: 18px 24px; }
.footer-bottom p { color: #9C8465; font-size: .8rem; margin: 0; text-align: center; }

/* ===================== Floating CTA ===================== */
.floating-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  animation: floatBounce 2.6s ease-in-out infinite;
}
.floating-cta svg { width: 30px; height: 30px; }
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===================== Responsive ===================== */
@media (max-width: 1020px) {
  .hero-inner, .story-inner, .events-inner, .visit-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 460px; margin: 0 auto; height: 380px; max-height: 380px; overflow: hidden; }
  .story-media { max-width: 380px; margin: 0 auto; }
  .events-media { max-width: 380px; margin: 0 auto; }
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .postcard-row { grid-template-columns: 1fr; }
  .postcard:nth-child(2), .postcard:nth-child(3) { transform: none; }
  .belt-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}

@media (max-width: 780px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 62px 0; }
  .hero { padding-top: 30px; }
  .tag-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .belt-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream); padding: 20px 24px; gap: 4px;
    border-bottom: 2px dashed var(--line); box-shadow: var(--shadow-card);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
}

@media (max-width: 560px) {
  .hero-badges { gap: 20px; }
  .header-cta .btn-stamp { padding: .7em 1.1em; font-size: .8rem; }
  .hero-collage { height: 320px; max-height: 320px; }
}
