/* Sweet B's Bakery V2: original one-pager
   Palette from the shop: pink door, hedge, neon, teal chairs, florals.
   Neon script = sign only. Body = clear professional sans. */

:root {
  --pink: #e23a78;
  --pink-deep: #b81d58;
  --pink-soft: #f6c6d8;
  --pink-mist: #fff2f7;
  --hedge: #163e32;
  --hedge-mid: #2a5c4b;
  --teal: #0d6467;
  --teal-deep: #08494c;
  --ink: #141618;
  --ink-soft: #3a4046;
  --paper: #fffcfd;
  --line: rgba(22, 62, 50, 0.16);
  --font: "Figtree", "Segoe UI", sans-serif;
  --script: "Pinyon Script", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 3.6rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--pink-mist) 0%, var(--paper) 18%, #f4fbf7 62%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--pink-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 253, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 74rem;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand:hover { color: var(--pink-deep); }

.brand-script {
  font-family: var(--script);
  font-size: 1.95rem;
  color: var(--pink);
}

.brand-sans {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hedge);
}

.nav-desk {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
  margin-right: 0.85rem;
}
.nav-desk a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-desk a:hover { color: var(--pink-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary,
.btn-call {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover,
.btn-call:hover {
  background: var(--pink-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--hedge);
  border-color: rgba(22, 62, 50, 0.3);
}
.btn-ghost:hover {
  border-color: var(--hedge);
  background: rgba(22, 62, 50, 0.04);
  color: var(--hedge);
}

.btn-call {
  margin-left: auto;
  font-size: 0.82rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.05rem 1.1rem 0;
}

.hero-copy {
  max-width: 38rem;
}

.place {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.2rem, 8.5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  max-width: 11ch;
}

.lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hours-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0 0 1.1rem;
  padding: 0.15rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.hours-strip p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hours-strip span {
  display: inline;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hedge-mid);
  margin-right: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.hero-band {
  margin: 0 -1.1rem;
  position: relative;
  background: var(--hedge);
}

.hero-band img {
  width: 100%;
  height: clamp(10rem, 36vw, 15.5rem);
  object-fit: cover;
  object-position: 20% 30%;
}

/* Sections */
.section {
  max-width: 74rem;
  margin: 0 auto;
  padding: 3.25rem 1.1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  max-width: 15ch;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.section-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.photo { margin: 0; }

.photo img {
  width: 100%;
}

.cupcakes .photo {
  position: relative;
}
.cupcakes .photo::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: var(--hedge);
  z-index: -1;
}
.cupcakes .photo img {
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

blockquote {
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
  max-width: 32rem;
}
blockquote p {
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  position: relative;
  padding-top: 0.85rem;
}
blockquote p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--teal);
}

/* Cakes */
.cakes {
  position: relative;
}
.cakes::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(226, 58, 120, 0.05), transparent 42%),
    linear-gradient(0deg, rgba(22, 62, 50, 0.04), transparent 35%);
  pointer-events: none;
}

.cakes-intro { margin-bottom: 1.6rem; position: relative; }
.cakes-intro .intro { font-size: 1.06rem; }

.cakes-gallery {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.cakes-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hedge-mid);
}

.cakes-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cakes-quote { margin: 0.35rem 0 1.35rem; position: relative; }
.cakes-cta { display: flex; position: relative; }

/* Visit */
.visit {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.visit-stage {
  display: grid;
  gap: 1.35rem;
}

.visit-photo { margin: 0 -1.1rem; }

.visit-photo img {
  width: 100%;
  height: clamp(15rem, 58vw, 26rem);
  object-fit: cover;
  object-position: center 60%;
}

.visit-copy h2 { max-width: 13ch; }

.sign-photo {
  margin: 1.75rem 0 0;
  max-width: 20rem;
}
.sign-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* Hours */
.hours {
  padding-top: 2rem;
  padding-bottom: 3.75rem;
}

.hours-panel {
  padding: 1.65rem 1.2rem 1.85rem;
  background: var(--hedge);
  color: #f3fff8;
  position: relative;
  overflow: hidden;
}

.hours-panel::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -4rem;
  bottom: -5rem;
  border-radius: 50%;
  background: rgba(226, 58, 120, 0.28);
}

.hours-panel > * { position: relative; z-index: 1; }

.hours-panel h2,
.hours-panel p,
.hours-panel a { color: #f7fff9; }

.hours-panel h2 {
  max-width: none;
  margin-bottom: 0.85rem;
}

.address {
  font-size: 1.05rem;
  line-height: 1.4;
}
.address a,
.phone-lg a {
  text-decoration: none;
}
.address a:hover,
.phone-lg a:hover {
  text-decoration: underline;
  color: var(--pink-soft);
}

.phone-lg {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 1.25rem !important;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.35rem;
}
.hours-table th,
.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  text-align: left;
  font-weight: 500;
}
.hours-table th {
  width: 42%;
  color: rgba(247, 255, 249, 0.7);
  font-weight: 600;
}

.hours-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hours-actions .btn-primary {
  background: #fff;
  color: var(--hedge);
}
.hours-actions .btn-primary:hover {
  background: var(--pink-soft);
  color: var(--ink);
}
.hours-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.38);
}
.hours-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.35rem 1.1rem 3rem;
  background: rgba(255,255,255,0.65);
}
.footer-inner { max-width: 74rem; margin: 0 auto; }
.footer-inner .brand { margin-bottom: 0.75rem; }
.footer-inner p {
  margin: 0.22rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-inner a {
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-inner a:hover { color: var(--pink-deep); }
.footer-tag {
  margin-top: 0.95rem !important;
  color: var(--hedge) !important;
  font-weight: 600;
}

/* Motion: visible by default; enhance when JS marks ready */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal.delay { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 720px) {
  .nav-desk { display: flex; }
  .btn-call { margin-left: 0; }

  .hero { padding-top: 1.75rem; }

  .hours-strip {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    column-gap: 1.75rem;
    max-width: none;
  }

  .hero-band {
    margin: 0;
  }
  .hero-band img {
    height: clamp(12.5rem, 20vw, 16.5rem);
  }

  .section-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.25rem;
  }

  .cakes-gallery {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.15rem;
    align-items: start;
  }
  .cakes-gallery .photo:last-child {
    margin-top: 2.25rem;
  }

  .visit {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(12rem, 0.65fr);
    gap: 1.75rem;
    align-items: end;
  }
  .visit-stage { grid-column: 1; gap: 1.75rem; }
  .visit-photo { margin: 0; }
  .visit-photo img {
    height: 27rem;
  }
  .sign-photo {
    grid-column: 2;
    margin: 0;
    max-width: none;
  }

  .hours-panel {
    padding: 2.1rem 2.35rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 2.75rem;
  }
  .hours-panel h2,
  .address,
  .phone-lg,
  .hours-actions { grid-column: 1; }
  .hours-table {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .hero,
  .section,
  .footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero h1 { font-size: 3.85rem; }

  /* Keep the photo as a band under the offer, not a side-panel hero */
  .hero-band img {
    height: clamp(14rem, 18vw, 17.5rem);
  }

  .section { padding-top: 4.25rem; padding-bottom: 4.25rem; }

  .cupcakes .section-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }
}
