/* Reusable "content block" utilities shared by the homepage AND other v2 pages that
   reuse the same section patterns (currently: quality.blade.php). Moved out of
   home.css on 2026-08-22 when the quality page needed the exact same dietary-card grid
   and section-head treatment the homepage already had — rather than duplicate it,
   both pages now load this file via $v2PageStyles (see header.blade.php §3). */

.sec-lbl {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: var(--sh-txt);
}

.sec-ttl {
  font-family: var(--serif);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  color: var(--choco-mid);
  line-height: 1.2;
  text-shadow: var(--sh-txt);
}

.sec-ttl em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 11px 26px;
  border-radius: 50px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-o:hover {
  background: var(--gold);
  color: var(--white);
}

.locs-hd,
.dietary-hd,
.guides-hd,
.how-hd,
.flavours-hd,
.faq-hd {
  text-align: center;
  margin-bottom: 50px;
}

/* DIETARY — icon + heading + paragraph + "learn more" link card grid */

.dietary {
  padding: 118px 0;
  background: var(--white);
}

.dietary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dietary-grid > :nth-child(4),
.dietary-grid > :nth-child(5) {
  grid-column: span 1;
}

.dietary-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  text-align: left;
  background: var(--cream);
  border: 1px solid rgba(209, 39, 100, 0.08);
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.dietary-card:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.dietary-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blush), var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(209, 39, 100, 0.15);
}

.dietary-icon svg {
  width: 30px;
  height: 30px;
}

.dietary-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.dietary-card p {
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.62;
  margin-bottom: 16px;
  flex: 1;
}

.dietary-card .learn {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dietary-card .learn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.dietary-card:hover .learn svg {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .dietary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dietary {
    padding: 86px 0;
  }

  .dietary-grid {
    grid-template-columns: 1fr;
  }
}

/* Generic pill button base — pairs with a color variant class (.btn-o, .btn-p, etc.) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
  white-space: nowrap;
}

.cta-box-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* NEWS/CTA banner — a rounded card with copy + CTAs on one side, an image on the
   other. Used by the homepage's "Every Celebration Deserves a Cake" section and
   quality.blade.php's "Order a Cake You Can Trust" section. */

.news {
  padding: 72px 0;
  background: var(--gold-pale);
}

.news-in {
  background: var(--white);
  border-radius: 24px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  box-shadow: var(--sh);
}

.news-vis {
  border-radius: 18px;
  overflow: hidden;
}

.news-vis img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .news-in {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
}

/* PROCESS step card — numbered circle + heading + text. Shared by the homepage's
   5-step ".how-steps" band and quality.blade.php's 6-step ".qc-steps" band; each
   page defines its own grid (column count + connecting dashed line) since 5 vs 6
   columns need different rules, but the individual step markup/styling is identical. */

.how {
  padding: 120px 0 100px;
  background: var(--cream);
}

.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 14px;
}

.how-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--white);
  border: 1.5px solid var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}

.how-step:hover .how-num {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.how-step h3 {
  font-size: 1.08rem;
  margin-bottom: 9px;
}

.how-step p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.how-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .how {
    padding: 86px 0 64px;
  }
}

/* PICKUP LOCATIONS — real $locations data. Shared by the homepage and
   cakes.blade.php (/cakes, /desserts); each page supplies its own heading/copy but
   the grid/card styling is identical. */

.locs {
  padding: 80px 0;
  background: var(--gray-soft);
}

.locs-hd p {
  color: var(--gray-txt);
  margin: 12px auto 0;
  line-height: 1.65;
}

.locs-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.loc {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1.5px solid var(--cream-2);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.loc:hover {
  border-color: var(--gold);
  box-shadow: var(--sh);
}

.loc-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.loc-body {
  padding: 18px 20px 22px;
}

.loc-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.loc-nm {
  font-size: 15px;
  font-weight: 600;
  color: var(--choco-mid);
  margin-bottom: 6px;
}

.loc-addr {
  font-size: 13px;
  color: var(--gray-txt);
  line-height: 1.5;
  margin-bottom: 14px;
}

.loc-ctcs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-ctc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  transition: color 0.2s;
}

.loc-ctc:hover {
  color: var(--choco-mid);
}

.loc-ctc svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .locs-g {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .locs-g {
    grid-template-columns: 1fr;
  }
}

/* "diet-section" — two-column intro (copy + info-box on one side, floating image on
   the other). Shared by quality.blade.php's "Quality & Safety Commitment" and
   cakes.blade.php's "Special Dietary & Allergen-Friendly Cakes". Class names
   `.diet-container`/`.diet-content` are renamed from the source's `.container`/
   `.content` (too generic — collided with other pages' own meaning of `.container`,
   e.g. refund.css) but keep identical styling. */

.diet-section {
  padding: 80px 0;
  overflow: hidden;
}

.diet-container {
  width: 1200px;
  max-width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.diet-content {
  width: 70%;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  border-left: 6px solid var(--primary);
  background: linear-gradient(90deg, #fff, var(--blush));
  border-radius: 12px;
  margin: 35px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.info-box .icon {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.info-box p {
  margin-top: 6px;
}

.info-box a {
  color: var(--primary);
  font-weight: 600;
}

.diet-image-area {
  width: 30%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diet-image-area .circle {
  position: absolute;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, var(--blush), #fff);
  border-radius: 50%;
  z-index: -1;
}

.diet-image-area img {
  width: 90%;
  animation: diet-float 5s ease-in-out infinite;
  filter: drop-shadow(0 35px 40px rgba(0, 0, 0, 0.18));
}

@keyframes diet-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 991px) {
  .diet-container {
    flex-direction: column;
    gap: 40px;
  }

  .diet-content,
  .diet-image-area {
    width: 100%;
  }

  .diet-image-area {
    margin-top: 20px;
  }

  .diet-image-area .circle {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 640px) {
  .diet-section {
    padding: 56px 0;
  }
}

/* HERO (image + floating badge) — from the design handoff's newhero.css. Shared by
   quality.blade.php and cakes.blade.php (/cakes, /desserts) — each page supplies its
   own eyebrow/title/copy/image, the card/grid mechanics are identical. */

.HeroInner {
  background: linear-gradient(135deg, var(--blush) 0%, #fff 62%);
  border: 1px solid rgba(209, 39, 100, 0.1);
  box-shadow: var(--shadow-soft);
}

.hero-a-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding: 50px 0;
}

.hero-a-box::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 106, 0.28), transparent 70%);
}

.hero-a-box::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 39, 100, 0.1), transparent 70%);
}

.hero-a-text {
  position: relative;
  z-index: 2;
}

.hero-a-text .sec-ttl {
  margin-bottom: 16px;
}

.hero-a-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 28px;
}

.h-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-a-media {
  position: relative;
  z-index: 2;
  padding: 36px 40px 36px 0;
}

.hero-a-media .frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 44px -16px rgba(74, 42, 31, 0.35);
}

.hero-a-media .frame img {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

.hero-a-badge {
  position: absolute;
  left: 0;
  bottom: 14px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(209, 39, 100, 0.12);
}

.hero-a-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
}

.hero-a-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--secondary);
}

.hero-a-badge span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .hero-a-box {
    grid-template-columns: 1fr;
  }
  .hero-a-media {
    order: -1;
    padding: 30px 30px 0;
  }
  .hero-a-media .frame img {
    height: 240px;
  }
  .hero-a-badge {
    position: static;
    margin-top: -30px;
    margin-left: 20px;
    display: inline-flex;
  }
}

/* GTAChoose / CounterCard* — trust-facts grid + wide CTA card. Duplicated here (not
   moved) from inner-hero.css: refund.blade.php/terms.blade.php still need
   inner-hero.css's copy, but they also need inner-hero.css's *simple* .sec-lbl/.sec-ttl
   (plain pink text, no big serif heading) — loading content-blocks.css there too would
   double-define .sec-ttl and create the exact load-order-dependent collision documented
   in §14/§15j. Small, deliberate duplication beats that risk. */

.CounterCardListing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .CounterCardListing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .CounterCardListing {
    grid-template-columns: repeat(1, 1fr);
  }
}

.CounterCard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 1px solid #8080801a;
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.6s;
}

.CounterCard:hover {
  background: var(--gold-pale);
}

.CounterCard figure {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gray-soft);
  color: var(--gray-txt);
  padding: 10px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  width: fit-content;
  transition: all 0.6s;
}

.CounterCard:hover figure {
  background: var(--white);
  color: var(--gold);
}

.CounterCard figure svg {
  aspect-ratio: 1 / 1;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.CounterCardText h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--gold);
}

.CounterCardText p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-txt);
  margin-top: 10px;
}

.CounterCardCTA {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
  background: var(--gold-pale);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.CounterCardCTA figure {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  color: var(--gold);
  padding: 10px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  width: fit-content;
  margin: 0 auto;
}

.CounterCardCTA figure svg {
  aspect-ratio: 1 / 1;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.CounterCardCTAText h3 {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: var(--gold);
}

.CounterCardCTAText p {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: var(--gray-txt);
  margin-top: 10px;
}

.CounterCardCTAButton {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.GTAChoose {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .GTAChoose {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .CounterCardCTAButton {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Trust bar (.tbar/.tbar-g/.t-item) — shared by the homepage and the category
   listing page (category.css). */

.tbar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-2);
}

.tbar-g {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.t-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-right: 1px solid var(--cream-2);
}

.t-item:last-child {
  border-right: none;
}

.t-item:hover {
  background: var(--gold-pale);
}

.t-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gray-soft);
  color: var(--gray-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.25s;
}

.t-item:hover .t-ico {
  background: var(--white);
  color: var(--gold);
}

.t-ico svg {
  width: 24px;
  height: 24px;
}

.t-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--choco-mid);
}

.t-txt span {
  font-size: 12px;
  color: var(--gray-txt);
}

@media (max-width: 900px) {
  .tbar-g {
    grid-template-columns: 1fr 1fr;
  }

  .t-item {
    border-right: none;
    border-bottom: 1px solid var(--cream-2);
  }
}

@media (max-width: 700px) {
  .tbar-g {
    grid-template-columns: 1fr;
  }
}
