/* =============================================
   Carola's Cakes — Design System
   Chocolate / Ivory / Gold · Cormorant + DM Sans
   ============================================= */

:root {
  /* Brand */
  --ivory: #FAF6EF;
  --ivory-2: #F4ECDD;
  --cream: #F0E8D8;
  --choc: #2C1A0E;
  --choc-mid: #5C3D22;
  --choc-light: #8A6B4E;
  --gold: #C9A65A;
  --gold-soft: #E0C485;
  --gold-deep: #9F7E3F;
  --charcoal: #1A1410;
  --taupe: #7A6A5A;
  --line: #E4D9C5;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1DA851;

  /* Type */
  --f-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(44,26,14,0.06), 0 1px 2px rgba(44,26,14,0.04);
  --sh-md: 0 6px 24px rgba(44,26,14,0.10), 0 2px 6px rgba(44,26,14,0.06);
  --sh-lg: 0 24px 60px rgba(44,26,14,0.18);
  --sh-xl: 0 40px 100px rgba(44,26,14,0.25);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--choc); }

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

.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;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--choc);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
em { font-style: italic; color: var(--gold-deep); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 6px;
  position: relative;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
  margin-top: 8px;
  opacity: 0.6;
}
.eyebrow--center { display: block; text-align: center; }
.eyebrow--center::after { margin: 8px auto 0; }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::after { background: var(--gold-soft); }

.section-title {
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1;
}
.section-sub {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--taupe);
  max-width: 56ch;
  margin-top: 18px;
  font-weight: 400;
  text-wrap: pretty;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head--center {
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--r-pill);
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--choc); color: var(--ivory); }
.btn--primary:hover { background: var(--choc-mid); box-shadow: var(--sh-md); }

.btn--ghost { background: transparent; color: var(--choc); border-color: var(--choc); }
.btn--ghost:hover { background: var(--choc); color: var(--ivory); }
.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(250,246,239,0.6); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--choc); border-color: var(--ivory); }

.btn--wa { background: var(--wa); color: white; }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 10px 30px rgba(37,211,102,0.35); }

.btn--gold { background: var(--gold); color: var(--choc); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: var(--sh-md); }

.btn--link {
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--choc);
  background: transparent;
  color: var(--choc);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn--link:hover { border-bottom-color: var(--gold-deep); color: var(--gold-deep); transform: none; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250,246,239,0.92);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.nav__logo {
  display: flex;
  align-items: center;
  height: 100px;
  flex-shrink: 0;
}
.nav__logo img { height: 100%; width: auto; object-fit: contain; }
.nav.is-scrolled .nav__logo { height: 82px; transition: height .35s var(--ease); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--choc);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--gold-deep); }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lang button {
  padding: 4px 6px;
  color: var(--taupe);
  border-radius: 4px;
  transition: color .2s;
}
.lang button.is-active { color: var(--choc); }
.lang button:hover { color: var(--gold-deep); }
.lang span { color: var(--line); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--r-pill);
  position: relative;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--choc);
  margin: 4px auto;
  transition: transform .3s, opacity .2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--ivory);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateX(100%);
  visibility: hidden;
  /* visibility delay matches slide-out duration so iOS doesn't render off-screen */
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .4s var(--ease), visibility 0s 0s;
}
.mobile-menu a {
  font-family: var(--f-serif);
  font-size: 32px;
  color: var(--choc);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; align-items: center; justify-content: center; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201,166,90,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(201,166,90,0.06), transparent 50%),
    var(--ivory);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--gold-deep);
}
.hero__title {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero__title em {
  font-style: italic;
  display: block;
  color: var(--gold-deep);
}
.hero__lead {
  margin-top: 32px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--taupe);
  max-width: 48ch;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.hero__badge .stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.hero__badge .meta {
  font-size: 13px;
  color: var(--charcoal);
  font-weight: 500;
}
.hero__badge .meta b { color: var(--choc); }

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.hero__pic {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.hero__pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero__pic:hover img { transform: scale(1.05); }
.hero__pic--main { grid-row: 1 / span 2; }
.hero__ornament {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
  filter: blur(40px);
}

@media (max-width: 880px) {
  .hero { padding: 100px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  /* Move visual ABOVE copy on mobile and give it an explicit height
     (aspect-ratio alone creates a circular dependency with 1fr rows) */
  .hero__visual {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: clamp(180px, 56vw, 280px);
    aspect-ratio: unset;
    border-radius: var(--r-lg);
    overflow: hidden;
  }
}

/* ============ SLIDER (cross-fade carousel) ============ */
.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 7s linear;
  pointer-events: none;
}
.slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.slider__slide.is-leaving {
  opacity: 0;
  transform: scale(1.02);
  z-index: 1;
  transition: opacity 1.4s var(--ease);
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* slot wrapper marker (allows fade-host to be relative) */
.slider-host { position: relative; }
.slider-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 6px;
  pointer-events: none;
}
.slider-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background .3s, width .3s;
}
.slider-dots i.is-on {
  background: var(--ivory);
  width: 16px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .slider__slide { transition: opacity .2s !important; transform: none !important; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--choc);
  color: var(--ivory);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(201,166,90,0.2);
  border-bottom: 1px solid rgba(201,166,90,0.2);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__item {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee__item::after {
  content: '✦';
  color: var(--gold);
  font-size: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SECTION ============ */
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
section.alt { background: var(--cream); }
section.dark { background: var(--choc); color: var(--ivory); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--ivory); }
section.dark em { color: var(--gold-soft); }
section.dark .section-sub { color: rgba(250,246,239,0.7); }

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about__visual img { width: 100%; height: 100%; object-fit: cover; }
.about__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44,26,14,0.4));
  z-index: 3;
  pointer-events: none;
}
.about__visual .stamp {
  position: absolute;
  bottom: 28px;
  left: 28px;
  color: var(--ivory);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  z-index: 4;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--f-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--choc);
  font-weight: 400;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease, transform 0.4s ease;
  will-change: contents;
}
.stat__num.is-counting {
  color: var(--gold-deep);
  transform: translateY(-2px);
}
.stat__num.is-counted {
  animation: stat-pop 0.55s ease-out;
}
@keyframes stat-pop {
  0%   { transform: translateY(-2px) scale(1); }
  40%  { transform: translateY(0) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stat__num,
  .stat__num.is-counting,
  .stat__num.is-counted { transform: none; animation: none; transition: none; }
}
.stat__num em { color: var(--gold-deep); }

/* Generic in-flow counter (e.g. headline numbers) — keep visuals minimal so
   the parent heading style stays in charge; just stabilize numeral width. */
.js-counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 8px;
  display: block;
}

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 480px; margin: 0 auto; }
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat__num { font-size: 36px; }
}

/* ============ COLLECTIONS (categories) ============ */
.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.collection {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  background: var(--choc);
}
.collection img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.collection::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,26,14,0) 30%, rgba(44,26,14,0.85) 100%);
  transition: background .4s var(--ease);
  z-index: 3;
  pointer-events: none;
}
.collection:hover img { transform: scale(1.06); filter: brightness(1.05); }
.collection:hover::after { background: linear-gradient(180deg, rgba(44,26,14,0.1) 20%, rgba(44,26,14,0.92) 100%); }
.collection__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 28px;
  color: var(--ivory);
}
.collection__count {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
  display: block;
}
.collection__name {
  font-family: var(--f-serif);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--ivory);
}
.collection__arrow {
  margin-top: 18px;
  width: 36px; height: 36px;
  border: 1px solid rgba(250,246,239,0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s;
}
.collection:hover .collection__arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--choc);
}

.collection--wide { grid-column: span 2; aspect-ratio: 5/3; }
.collection--tall { grid-row: span 1; }

@media (max-width: 880px) {
  .collections { grid-template-columns: 1fr 1fr; }
  .collection--wide { grid-column: span 2; aspect-ratio: 4/3; }
  .collection__name { font-size: 24px; }
  .collection__body { padding: 18px; }
}

/* ============ PORTFOLIO MASONRY ============ */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--choc);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--choc); }
.filter-btn.is-active {
  background: var(--choc);
  color: var(--ivory);
  border-color: var(--choc);
}

.masonry {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 720px)  { .masonry { column-count: 2; column-gap: 10px; } }

.masonry__item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--cream);
  transition: opacity .35s var(--ease);
}
.masonry__item.is-hidden { display: none; }
.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44,26,14,0.5));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.masonry__item:hover::after { opacity: 1; }
.masonry__zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250,246,239,0.95);
  color: var(--choc);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
  z-index: 3;
}
.masonry__item:hover .masonry__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.portfolio__more { text-align: center; margin-top: 50px; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(26,16,8,0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(85vw, 1100px);
  max-height: 85vh;
  width: auto; height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--ivory);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,239,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background .25s, border-color .25s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(250,246,239,0.1); border-color: var(--ivory); }
.lightbox__close { top: 30px; right: 30px; }
.lightbox__prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 30px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(250,246,239,0.7);
}

/* ============ FLAVORS GRID ============ */
.flavors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.flavor-col h3 {
  font-size: 28px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.flavor-col h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.flavor-list { display: flex; flex-direction: column; gap: 0; }
.flavor-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.flavor-item:hover { padding-left: 12px; }
.flavor-item:last-child { border-bottom: none; }
.flavor-item__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ivory-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.flavor-item__name {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--choc);
}
.flavor-item__desc {
  font-size: 13px;
  color: var(--taupe);
  margin-top: 2px;
}
.flavor-item__tag {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--choc);
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 880px) {
  .flavors { grid-template-columns: 1fr; }
}

/* ============ SIZES (shapes) ============ */
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.shape-card {
  background: var(--ivory);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
}
section.alt .shape-card { background: var(--white); }
.shape-card h3 {
  font-size: 32px;
  margin-bottom: 6px;
}
.shape-card__desc {
  color: var(--taupe);
  font-size: 14px;
  margin-bottom: 24px;
}
.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.size-row:last-child { border-bottom: none; }
.size-row__icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.size-row__icon svg { width: 100%; height: 100%; }
.size-row__info { flex: 1; }
.size-row__name {
  font-family: var(--f-serif);
  font-size: 24px;
  color: var(--choc);
}
.size-row__serves {
  font-size: 13px;
  color: var(--taupe);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .sizes-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ MVV MOBILE CAROUSEL ============ */
.mvv-dots { display: none; }

@media (max-width: 720px) {
  /* Turn the 3-card grid into a horizontal scroll-snap carousel */
  #mvv-grid {
    display: flex !important;           /* override inline grid-template-columns */
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    /* bleed slightly outside container so first card peeks into gutter */
    margin-top: 32px;
    padding-bottom: 4px;
  }
  #mvv-grid::-webkit-scrollbar { display: none; }
  #mvv-grid .shape-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }

  /* Navigation dots */
  .mvv-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }
  .mvv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background .35s, transform .35s;
  }
  .mvv-dot--active {
    background: var(--gold);
    transform: scale(1.35);
  }
}

/* ============ FIND US (map + socials) ============ */
.findus__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.findus__map {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--ivory);
  min-height: 460px;
  border: 1px solid var(--line);
}
.findus__map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  display: block;
  filter: saturate(0.85);
}
.findus__map-cta {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--ivory);
  color: var(--choc);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh-md);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.findus__map-cta:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.findus__socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
section.alt .social-card { background: var(--white); }
.social-card:hover {
  transform: translateX(6px);
  border-color: var(--choc);
  box-shadow: var(--sh-md);
}
.social-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--choc);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}
.social-card--ig:hover .social-card__icon { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.social-card--tt:hover .social-card__icon { background: #000; color: #25F4EE; }
.social-card--fb:hover .social-card__icon { background: #1877F2; }
.social-card--gm:hover .social-card__icon { background: #EA4335; }
.social-card--wa:hover .social-card__icon { background: var(--wa); }
.social-card__body { flex: 1; min-width: 0; }
.social-card__net {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
  font-weight: 500;
}
.social-card__handle {
  font-family: var(--f-serif);
  font-size: 20px;
  color: var(--choc);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--choc);
  flex-shrink: 0;
  transition: background .25s, border-color .25s;
}
.social-card:hover .social-card__arrow {
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 960px) {
  .findus__grid { grid-template-columns: 1fr; }
  .findus__map, .findus__map iframe { min-height: 360px; }
}

/* ============ CUSTOM SIZES (tiered cakes) CTA ============ */
.custom-sizes {
  margin-top: 40px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(201,166,90,0.18), transparent 60%),
    linear-gradient(135deg, var(--choc) 0%, #3D2515 100%);
  color: var(--ivory);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.custom-sizes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 0% 100%, rgba(201,166,90,0.10), transparent 60%);
  pointer-events: none;
}
.custom-sizes__visual {
  width: clamp(180px, 22vw, 280px);
  height: clamp(220px, 28vw, 360px);
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(201,166,90,0.25);
}
.custom-sizes__visual svg { width: 100%; height: auto; display: block; }
.custom-sizes__body { position: relative; z-index: 2; }
.custom-sizes__body .eyebrow { color: var(--gold-soft); }
.custom-sizes__body .eyebrow::after { background: var(--gold-soft); opacity: 0.6; }
.custom-sizes__body h3 {
  color: var(--ivory);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  margin: 22px 0 18px;
  text-wrap: balance;
}
.custom-sizes__body p {
  color: rgba(250,246,239,0.78);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 56ch;
}
@media (max-width: 720px) {
  .custom-sizes { grid-template-columns: 1fr; text-align: left; padding: 32px 24px; }
  .custom-sizes__visual { width: 100%; height: 240px; margin: 0 0 12px; }
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.step {
  padding: 28px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
section.alt .step { background: var(--white); }
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.step__num {
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.step__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--choc);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step__title {
  font-size: 24px;
  margin-bottom: 10px;
}
.step__desc {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============ REVIEWS ============ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,166,90,0.2);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s, background .3s;
}
.review:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.review__stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 16px;
}
.review__quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ivory);
  flex: 1;
  text-wrap: pretty;
}
.review__quote::before { content: '"'; }
.review__quote::after { content: '"'; }
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,166,90,0.2);
}
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--choc);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
}
.review__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ivory);
}
.review__meta {
  font-size: 12px;
  color: rgba(250,246,239,0.6);
  margin-top: 2px;
}

@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .reviews { grid-template-columns: 1fr; } }

/* ============ ADD-ONS ============ */
.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.addon {
  background: var(--ivory);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
section.alt .addon { background: var(--white); }
.addon__visual { aspect-ratio: 16/10; position: relative; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); overflow: hidden; }
.addon__visual .slider__slide img { object-position: center center; }
.addon__visual svg, .addon__visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.addon__body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.addon__title { font-size: 28px; margin-bottom: 10px; }
.addon__lead { color: var(--taupe); font-size: 14px; margin-bottom: 22px; }
.price-list { margin: 8px 0 24px; flex: 1; }
.price-row {
  display: flex; justify-content: flex-start; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  gap: 12px;
  color: var(--charcoal);
}
.price-row__bullet {
  color: var(--gold-deep);
  font-size: 11px;
  line-height: 1.6;
  flex-shrink: 0;
}
.price-row:last-child { border-bottom: none; }
.price-row__price {
  font-family: var(--f-serif);
  font-size: 18px;
  color: var(--choc);
  white-space: nowrap;
  font-weight: 500;
}
.price-row__price em {
  font-size: 11px;
  font-style: normal;
  color: var(--taupe);
  margin-left: 4px;
}

@media (max-width: 880px) { .addons-grid { grid-template-columns: 1fr; } }

/* ============ PAYMENTS ============ */
.payments-cta {
  background: linear-gradient(135deg, var(--choc) 0%, #3D2515 100%);
  color: var(--ivory);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.payments-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,166,90,0.15), transparent 70%);
  pointer-events: none;
}
.payments-cta h3 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--ivory);
  position: relative;
}
.payments-cta p {
  margin-top: 12px;
  color: rgba(250,246,239,0.75);
  max-width: 50ch;
  position: relative;
}
.payments-cta .logos {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
}
.payments-cta .logo-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(250,246,239,0.9);
}
@media (max-width: 720px) {
  .payments-cta { grid-template-columns: 1fr; }
}

/* ============ DELIVERY ============ */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.delivery-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.delivery-visual > div {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
}
.delivery-visual > div:first-child { grid-row: span 2; aspect-ratio: 1/2; }
.delivery-visual img { width: 100%; height: 100%; object-fit: cover; }
.delivery-list { margin-top: 28px; }
.delivery-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.delivery-list li:last-child { border-bottom: none; }
.delivery-list .check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--choc);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

@media (max-width: 880px) { .delivery-grid { grid-template-columns: 1fr; } }

/* ============ FINAL CTA ============ */
.final-cta {
  background:
    radial-gradient(800px 400px at 30% -10%, rgba(201,166,90,0.18), transparent 60%),
    radial-gradient(700px 400px at 80% 110%, rgba(201,166,90,0.10), transparent 60%),
    var(--choc);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  color: var(--ivory);
}
.final-cta h2 {
  color: var(--ivory);
  font-size: clamp(40px, 6vw, 88px);
}
.final-cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(250,246,239,0.75);
  max-width: 56ch;
  margin: 20px auto 0;
}
.final-cta .actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ CONTACT / FOOTER ============ */
footer {
  background: #1A0F08;
  color: rgba(250,246,239,0.7);
  padding: 80px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand img {
  height: 160px;
  width: auto;
  filter: brightness(0) invert(1) sepia(0.2) saturate(0.5);
  margin-bottom: 24px;
  opacity: 0.95;
}
.footer__tag {
  font-size: 14px;
  max-width: 28ch;
  line-height: 1.55;
}
.footer__socials {
  display: flex; gap: 12px; margin-top: 22px;
}
.footer__socials a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250,246,239,0.2);
  border-radius: 50%;
  transition: background .25s, border-color .25s, color .25s;
}
.footer__socials a:hover { background: var(--gold); color: var(--choc); border-color: var(--gold); }
.footer__col h5 {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  transition: color .25s, padding-left .25s;
}
.footer__col a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer__bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(250,246,239,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: rgba(250,246,239,0.4);
}

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  background: var(--wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2s infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  /* marquee is informational — keep it running but very slowly */
  .marquee__track { animation-duration: 120s; }
  .wa-float::before { animation: none; }
}

/* ============ TWEAKS PANEL ============ */
.tweaks-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 90;
  background: var(--choc);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 0.1em;
  display: none;
}

/* ============ COPYRIGHT & IMAGE PROTECTION ============ */
/* Watermark sutil en el portafolio — © Carola's Cakes */
.masonry__item {
  position: relative;
}
.masonry__item::after {
  content: '© Carola\'s Cakes';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
}
/* Protección anti-arrastre en todas las imágenes del portafolio */
.masonry__item img,
.slider__slide img,
.addon__visual img,
.hero__pic img,
.about__visual img,
.delivery-visual img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
/* Re-habilitar pointer events solo para el contenedor (para clicks del lightbox) */
.masonry__item {
  cursor: pointer;
}
/* Deshabilitar selección de texto sobre imágenes */
.masonry,
.portfolio,
.addon__visual,
.delivery-visual,
.hero__visual {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
