/* ==========================================================================
   Loretta's — shared styles for the individual cake pages
   (wedding-cakes-coulsdon / birthday-cakes-coulsdon / corporate-cakes-coulsdon)
   Loads after booking.css, which supplies the palette, nav, buttons and footer.
   ========================================================================== */

.cake-page { background: var(--cream); }

/* the floating brand mark belongs over the hero, not over 9,000px of content */
.cake-page .site-logo { position: absolute; }


/* ---------- Full-bleed hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(460px, 72vh, 760px);
  display: flex;
  align-items: center;   /* centred in the space below the header, so short headers don't sit low */
  overflow: hidden;
}
.page-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
/* two scrims: one down the page, one across the text side, so the
   headline stays readable whatever the photograph is doing behind it */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(48, 31, 26, 0.80) 0%,
    rgba(48, 31, 26, 0.62) 32%,
    rgba(48, 31, 26, 0.22) 62%,
    rgba(48, 31, 26, 0.05) 100%);
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(48, 31, 26, 0.42) 0%,
    rgba(48, 31, 26, 0.12) 32%,
    rgba(48, 31, 26, 0.55) 82%,
    rgba(48, 31, 26, 0.78) 100%);
  z-index: 1;
}
.page-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  /* same left edge as the sections below: 1400px of content plus the side padding */
  max-width: calc(1400px + 2 * clamp(1.5rem, 6vw, 6rem));
  margin: 0 auto;
  padding: calc(var(--hdr-h, 82px) + clamp(1.5rem, 4vw, 2.5rem)) clamp(1.5rem, 6vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
}
.page-hero-inner .eyebrow { color: var(--tan-soft); margin-bottom: 0.7rem; }
.page-hero-inner h1 {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 6.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(45, 28, 22, 0.45);
}
.page-hero-inner h1 em { font-style: italic; color: var(--tan-soft); }
.page-hero-inner .hero-sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(45, 28, 22, 0.5);
}
.page-hero-inner .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.page-hero-inner .btn-secondary {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(3px);
}
.page-hero-inner .btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: #fff; }

/* ---------- Section shell ---------- */
.sec { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 6rem); }
.sec-inner { max-width: 1400px; margin: 0 auto; }
.sec-head { max-width: 76ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.sec-head.centred { margin-left: auto; margin-right: auto; text-align: center; }
.sec h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.14;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}
.sec h2 em { font-style: italic; color: var(--caramel-deep); }
.sec .lede { font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.68; font-weight: 300; color: var(--text-muted); }
.sec--tint { background: var(--cream-deep); }
.sec--white { background: #fff; }
/* The heading keeps a tight measure so titles stay punchy, but the intro
   paragraph under it runs wider — a 60ch column under a full-width section
   reads as a stranded sliver. */
.sec-head h2 { max-width: 26ch; }
.sec-head .lede { max-width: 44rem; }

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.intro-copy p { font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.75; margin-bottom: 1rem; }
.intro-copy p:last-of-type { margin-bottom: 0; }
.intro-points { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.6rem; }
.intro-points li { padding-left: 1.6rem; position: relative; font-size: 0.97rem; line-height: 1.6; }
.intro-points li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--caramel);
}
.intro-figure img {
  width: 100%; border-radius: 26px; display: block;
  box-shadow: 0 22px 50px rgba(87, 59, 40, 0.18);
}

/* ---------- Masonry gallery ---------- */
.gallery-masonry { columns: 4 260px; column-gap: 1rem; }
.gallery-masonry .g-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--cream-deep);
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(87, 59, 40, 0.1);
}
.gallery-masonry .g-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-masonry .g-item:hover img { transform: scale(1.04); }
.gallery-masonry .g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(63,42,38,0.42));
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-masonry .g-item:hover::after { opacity: 1; }
.g-item[hidden] { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Fixed banner break ---------- */
/* background-attachment does the parallax; a fixed-position <img> inside a
   clip-path ancestor does not render reliably, so the image is a background. */
.band {
  position: relative;
  min-height: clamp(300px, 46vh, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--brown-deep);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.band::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(48, 31, 26, 0.46);
}
/* Some band photos are bright enough (white buttercream, pale icing) that the
   standard scrim leaves the small-caps sub-line unreadable. */
.band--bright::after { background: rgba(48, 31, 26, 0.62); }
.band--bright .band-inner span { color: rgba(255, 255, 255, 0.9); }
.band-inner {
  position: relative; z-index: 2;
  max-width: 40ch;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
  color: #fff;
}
.band-inner p {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height: 1.32;
  text-shadow: 0 2px 20px rgba(45, 28, 22, 0.55);
}
.band-inner span {
  display: block;
  margin-top: 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan-soft);
}
/* iOS and most touch browsers don't honour a fixed attachment */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .band { background-attachment: scroll; }
}

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--tan-soft);
  border-radius: 20px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.94rem; line-height: 1.65; color: var(--text-muted); }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.case {
  background: #fff;
  border: 1px solid var(--tan-soft);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(87, 59, 40, 0.09);
  display: flex; flex-direction: column;
}
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.case-body { padding: clamp(1.1rem, 2.2vw, 1.6rem); }
.case-body h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--green-deep); margin-bottom: 0.5rem; }
.case-body h3 em { font-style: italic; color: var(--caramel-deep); }
.case-body p { font-size: 0.95rem; line-height: 1.68; margin: 0 0 0.85rem; }
.case-body p:last-child { margin-bottom: 0; }
.case-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--caramel-deep); font-weight: 600; margin-bottom: 0.55rem;
}

/* ---------- Flavours + process, side by side ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.flavour-list { list-style: none; display: grid; gap: 0.55rem; }
.flavour-list li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 0.96rem; line-height: 1.55;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--tan-soft);
}
.flavour-list li strong { color: var(--brown-deep); min-width: 8.5em; font-weight: 600; }
.flavour-list li:last-child { border-bottom: none; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1.05rem; }
.steps li { counter-increment: s; padding-left: 3rem; position: relative; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.15em;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--tan-soft);
  color: var(--brown-deep);
  font-family: 'Fraunces', serif; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; color: var(--green-deep); font-size: 1rem; margin-bottom: 0.15rem; }
.steps p { font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Single review ---------- */
.review-quote { max-width: 62ch; margin: 0 auto; text-align: center; }
.review-quote .stars { display: flex; gap: 0.3rem; justify-content: center; margin-bottom: 1.1rem; }
.review-quote .stars svg { width: 20px; height: 20px; color: var(--caramel); }
.review-quote blockquote {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.5; color: var(--brown-deep);
}
.review-quote cite {
  display: block; margin-top: 1.1rem; font-style: normal;
  font-weight: 600; color: var(--green-deep);
}
.review-quote cite span {
  display: block; font-weight: 400; font-size: 0.84rem; color: var(--text-muted); margin-top: 0.15rem;
}
.review-link { display: inline-block; margin-top: 1.4rem; color: var(--caramel-deep); font-size: 0.9rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 74ch; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--tan-soft); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600; font-size: 1.02rem; color: var(--chocolate);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--caramel-deep); line-height: 1;
}
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list details p { padding: 0 0 1.3rem; font-size: 0.96rem; line-height: 1.7; color: var(--text-muted); }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--green-deep); color: #fff; text-align: center; }
.cta-band h2, .cta-band .sec-inner h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 auto; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }
.cta-band .btn-secondary { border-color: rgba(255,255,255,0.7); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* ---------- Cross-links ---------- */
.xlink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.xlink {
  position: relative; display: block;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(87, 59, 40, 0.12);
}
.xlink img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.xlink:hover img { transform: scale(1.05); }
.xlink span {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 1.1rem 1.05rem;
  background: linear-gradient(transparent, rgba(63,42,38,0.85));
  color: #fff;
  font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
      background: rgba(45, 28, 22, 0.93); padding: clamp(1rem, 4vw, 3rem); }
.lb.is-open { display: flex; }
.lb figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.lb img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; display: block; margin: 0 auto; }
.lb figcaption { color: rgba(250,244,236,0.85); text-align: center; font-size: 0.9rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(250,244,236,0.14); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev { left: clamp(0.6rem,2vw,1.6rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.6rem,2vw,1.6rem); top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(250,244,236,0.28); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid, .two-col { grid-template-columns: 1fr; }
  .intro-figure { order: -1; }
  .gallery-masonry { columns: 2 150px; column-gap: 0.7rem; }
  .gallery-masonry .g-item { margin-bottom: 0.7rem; border-radius: 12px; }
  .band { min-height: 260px; }
}
@media (max-width: 560px) {
  .page-hero { min-height: 520px; }
  /* clear the floating brand mark */
  .page-hero-inner { padding-top: 7.5rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

/* ---------- A single review pulled out as social proof ---------- */
.pull-review { max-width: 44rem; margin: 0 auto; text-align: center; }
.pull-review .rv-stars {
  display: block; color: var(--caramel-deep); letter-spacing: 0.12em;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.pull-review blockquote {
  margin: 0 0 1.2rem; font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.55; color: var(--green-deep);
}
.pull-review blockquote p { margin: 0; }
.pull-review figcaption { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.pull-review .rv-name { font-weight: 600; color: var(--brown-deep); }
.pull-review .rv-more {
  display: inline-block; margin-top: 1.1rem; font-size: 0.88rem;
  font-weight: 600; color: var(--caramel-deep);
}
