/* Sweet Moments — homepage skin (Tilda parity).
   Companion to base.css (tokens, buttons, popups, forms, carousels live there).
   Layout/sizes per docs/specs/homepage.md; typography per docs/study/visual-inventory.md.
   Parity rules: NO scroll-reveal animations, NO drop shadows on this page. */

/* ---------- page shell ----------
   Header is fixed and overlays the page (matches live: no reserved flow space) —
   the hero absorbs the 70px header height via its own top padding instead. */
[id] { scroll-margin-top: 80px; }      /* anchors clear the fixed header */

/* ---------- header (fixed 70px, #FFE9F2) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: 70px; background: var(--pink-header);
}
.header-inner { display: flex; align-items: center; gap: 44px; height: 100%; }
.logo { flex: 0 0 auto; display: inline-flex; }
.logo img { width: 300px; height: auto; display: block; }
.main-nav { display: flex; gap: 34px; margin-left: auto; }
.main-nav a { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--brown); transition: color .2s ease; }
.main-nav a:hover { color: var(--pink); }
.whatsapp { display: inline-flex; }
.whatsapp svg { width: 30px; height: 30px; display: block; }
.burger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; height: 48px; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--brown); }
.js-drawer { padding-top: 88px; }     /* links start below the fixed header line */
.js-drawer nav { display: flex; flex-direction: column; }

/* ---------- hero (cream) ----------
   Live uses the Tilda Zero 1200px artboard SCALED to the viewport with NO cap
   (measured live at 1280/1600/1920/2560: hero h = 56.94vw, title x = 18.33vw,
   video x = 59.17vw, video 23.25vw × 41.3vw). ≥1241px: everything viewport-relative. */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before {
  /* live has a faint pink petal blush bleeding off the top-left */
  content: ''; position: absolute; left: -12vw; top: -10vw; width: 46vw; height: 46vw;
  background: radial-gradient(closest-side, rgba(221,155,181,.12), rgba(221,155,181,0) 70%);
  pointer-events: none;
}
.hero-leaf {
  position: absolute; top: 50%; right: -23vw; transform: translateY(-50%);
  width: 70vw; opacity: .08; pointer-events: none;   /* huge faint leaf, off-canvas right */
}
.hero-leaf svg { display: block; width: 100%; height: auto; }
.hero-inner { position: relative; padding: 125px 0 128px; }   /* 55px design + 70px fixed-header clearance */
.hero-title {
  position: relative;
  font-family: var(--display); font-size: 54px; line-height: 65px; font-weight: 400; color: var(--brown);
}
.hero-flourish {
  position: absolute; top: 78%; left: -4%; z-index: 1;
  font-family: var(--script); font-size: 87px; line-height: 135px; color: var(--pink);
  white-space: nowrap; pointer-events: none;          /* script flourish overlapping the H1 */
}
.hero-sub { margin-top: 26px; max-width: 470px; font-size: 24px; line-height: 27px; color: var(--black); }
.hero-cta { width: 310px; height: 78px; font-size: 30px; margin-top: 31px; }
.hero-video { width: 335px; height: 595px; border-radius: 30px; overflow: hidden; }
.hero-video img { width: 100%; height: 100%; object-fit: cover; }
.hero-play {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: none; border-radius: 50%; background: var(--pink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s ease;
}
.hero-play:hover { transform: scale(1.2); }
.hero-play svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }

@media (min-width: 1241px) {
  .hero { height: 56.94vw; }
  .hero-inner { max-width: none; width: 100%; margin: 0; padding: 0; }   /* absolute children anchor to the viewport */
  .hero-title {
    position: absolute; left: 18.33vw; top: 10.14vw; max-width: 43.6vw;
    font-size: 4.51vw; line-height: 5.35vw;               /* live renders text ~1.2× (Zero transform) */
    padding-bottom: 1.52vw;                                /* live title box bottom 22.36vw */
  }
  .hero-flourish { top: 9.72vw; font-size: 7.25vw; line-height: 11.25vw; }
  .hero-sub { position: absolute; left: 18.33vw; top: 31.94vw; max-width: 20.8vw; margin: 0; font-size: 2vw; line-height: 2.36vw; }
  .hero-cta { position: absolute; left: 18.33vw; top: 41.32vw; width: 21.53vw; height: 5.42vw; margin: 0; font-size: 1.77vw; border-radius: 1.25vw; }
  .hero-video { position: absolute; left: 59.17vw; top: 6.74vw; width: 23.25vw; height: 41.3vw; border-radius: 2.08vw; }
  .hero-play { width: 2.43vw; height: 2.43vw; margin: calc(2.43vw / -2) 0 0 calc(2.43vw / -2); }
  .hero-play svg { width: 45%; height: 45%; margin-left: 4%; }
}

/* ---------- weddings (#FFF3F8 band, full-bleed photo left + pink fade) ---------- */
.weddings { position: relative; overflow: hidden; background: var(--pink-band); height: 700px; }
.weddings-media { position: absolute; top: 0; bottom: 0; left: 0; width: 54%; }
.weddings-media img { width: 100%; height: 100%; object-fit: cover; }
.weddings-fade {
  position: absolute; top: 0; bottom: 0; right: 0; width: 36%;
  /* Tilda paints this strip rotated 180deg, so the solid #FFF3F8 hugs the photo's
     right edge and dissolves leftward into the photo (parity with live). */
  background: linear-gradient(270deg, rgba(255,243,248,0) 0%, #FFF3F8 80%);
  transform: rotate(180deg);
}
.weddings-inner { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.weddings-copy { position: relative; z-index: 1; width: 474px; }
.weddings-copy h2 { font-family: var(--display); font-size: 45px; line-height: 68px; font-weight: 400; color: var(--brown); }
.weddings-copy p { margin: 24px 0 42px; font-size: 24px; line-height: 31px; color: var(--black); }
.weddings-cta { width: 271px; height: 68px; font-size: 24px; }
@media (min-width: 1241px) {
  /* Zero artboard scaling (measured live): section 48.6vw tall, photo 65.6vw wide
     starting at -11.7vw, copy right edge at 89.58vw, copy 32.9vw wide.
     The inner must break out of the centered container so the absolute copy
     anchors to the viewport, not the container box. */
  .weddings { height: 48.6vw; }
  .weddings-media { width: 65.6vw; left: -11.7vw; }
  .weddings-fade { width: 31.9%; }
  .weddings-inner { max-width: none; width: 100%; margin: 0; padding: 0; position: relative; height: 100%; }
  .weddings-copy { position: absolute; right: 10.42vw; top: 50%; transform: translateY(-50%); width: 32.9vw; }
}

/* ---------- creations (cream, 13-slide carousel, full-bleed right) ---------- */
.creations { background: var(--cream); padding: 60px 0 90px; }
.creations-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.creations-head h2 { font-family: var(--display); font-size: 45px; font-weight: 500; color: var(--brown); }
.creations-arrows { display: flex; gap: 14px; }
/* John-approved deviation from live: the carousel sits inside a centered container
   (symmetric gutters, aligned with the left-aligned heading). The container is wider
   than the page grid (1500px content) so 5 slides are visible in the window. */
.creations .carousel-track {
  gap: 20px;
  margin-right: 0;
  padding-right: 0;
}
@media (min-width: 1241px) {
  .creations .container {
    max-width: 1540px;
    padding: 0 20px;
  }
}
.creations .carousel-slide img { width: 282px; height: 500px; object-fit: cover; border-radius: 30px; }
/* variable slide widths (parity with live's irregular gallery crops) */
.creations .carousel-slide:nth-child(13n+1) img { width: 231px; }
.creations .carousel-slide:nth-child(13n+3) img { width: 284px; }
.creations .carousel-slide:nth-child(13n+4) img { width: 281px; }
.creations .carousel-slide:nth-child(13n+5) img { width: 291px; }
.creations-more { text-align: left; padding-top: 42px; }
.more-cta { width: 259px; height: 60px; font-size: 25px; }

/* ---------- course promo (#FFF3F8 band, full-bleed photo right + pink fade) ---------- */
.course { position: relative; overflow: hidden; background: var(--pink-band); height: 752px; }
.course-media { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-fade {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  /* pink at the photo's left edge, dissolving rightward into the photo (live parity) */
  background: linear-gradient(270deg, rgba(255,243,248,0) 0%, #FFF3F8 80%);
}
.course-inner { display: flex; align-items: center; height: 100%; }
.course-copy { position: relative; z-index: 1; width: 730px; }
.course-copy h2 { font-family: var(--display); font-size: 34px; line-height: 51px; font-weight: 400; color: var(--brown); margin-bottom: 26px; }
.course-copy p { max-width: 730px; margin-bottom: 18px; font-size: 24px; line-height: 31px; color: var(--black); }
.course-copy p:last-of-type { margin-bottom: 0; }
.course-cta { width: 352px; height: 68px; font-size: 25px; margin-top: 26px; }
@media (min-width: 1241px) {
  /* Zero artboard scaling (measured live): section 52.2vw tall, copy at 10vw.
     Inner breaks out of the centered container so the copy anchors to the viewport. */
  .course { height: 52.2vw; }
  .course-media { width: 58vw; }
  .course-fade { width: 43.9vw; }
  .course-inner { max-width: none; width: 100%; margin: 0; padding: 0; position: relative; height: 100%; }
  .course-copy { position: absolute; left: 10vw; top: 50%; transform: translateY(-50%); width: 50.7vw; }
}

/* ---------- about (cream, Zero artboard scaling at ≥1241px) ---------- */
.about { position: relative; background: var(--cream); padding: 87px 0; }
.about-inner { display: grid; grid-template-columns: 409px minmax(0, 1fr); gap: 111px; align-items: center; }
.about-photo { width: 409px; height: 546px; object-fit: cover; border-radius: 30px; }
.about-copy h2 { font-family: var(--display); font-size: 45px; line-height: 54px; font-weight: 400; color: var(--brown); margin-bottom: 30px; }
.about-copy p { margin-bottom: 22px; font-size: 24px; line-height: 27px; color: var(--black); }
.about-copy p:last-child { margin-bottom: 0; }
@media (min-width: 1241px) {
  /* measured live: section 50vw tall, photo 28.4vw × 37.9vw at 12.2vw, copy at 48.3vw */
  .about { height: 50vw; padding: 0; }
  .about-inner { display: block; padding-left: 0; }
  .about-photo { position: absolute; left: 12.2vw; top: 50%; transform: translateY(-50%); width: 28.4vw; height: 37.9vw; }
  .about-copy { position: absolute; left: 48.3vw; top: 50%; transform: translateY(-50%); width: 40vw; }
}

/* ---------- kind words (#FFE2EE, 3-slide carousel, arrows at far sides) ---------- */
.kindwords { background: var(--pink-testi); padding: 75px 0 90px; }
.kindwords h2 { font-family: var(--display); font-size: 45px; line-height: 50px; font-weight: 500; color: var(--brown); text-align: center; margin-bottom: 40px; }
.kindwords-carousel {
  display: flex; align-items: center; gap: 18px;
  margin: 0 min(0px, calc((1160px - 100vw) / 2));
}
.kindwords-carousel .carousel-track { flex: 1; min-width: 0; gap: 40px; justify-content: safe center; }
.kindwords-arrow { flex: 0 0 auto; }
.kindwords .carousel-slide img { width: 390px; height: 500px; object-fit: cover; border-radius: 30px; }

/* ---------- footer / contacts (3 columns; Zero block, scales at ≥1241px) ---------- */
.site-footer { position: relative; background: var(--cream); padding: 60px 0 60px; }
@media (min-width: 1241px) {
  .site-footer { height: 25.14vw; padding: 0; display: flex; align-items: center; }
  .site-footer .footer-inner { width: 100%; }
}
.footer-inner { display: grid; grid-template-columns: 1.05fr 1fr 1.15fr; gap: 40px; }
.footer-col h2 { font-family: var(--display); font-size: 45px; line-height: 56px; font-weight: 400; color: var(--brown); margin-bottom: 24px; }
.footer-location { margin-bottom: 26px; font-size: 23px; line-height: 36px; color: var(--pink-soft); }
.social { display: flex; align-items: center; gap: 14px; }
.social + .social { margin-top: 18px; }
.social svg { width: 42px; height: 42px; }
.social span { font-size: 25px; line-height: 28px; color: var(--black); }
.footer-label { font-size: 25px; line-height: 30px; font-weight: 500; color: var(--brown-soft); margin-bottom: 22px; }
.footer-links ul { list-style: none; }
.footer-links li { padding: 7px 0; font-size: 17px; line-height: 20px; color: var(--black); }
.newsletter-row { display: flex; align-items: flex-start; }
.newsletter-form .form-field { margin-bottom: 0; }
.newsletter-form .form-field input { width: 320px; height: 60px; padding: 0 20px; border: 1px solid var(--black); border-radius: 0; font-size: 16px; }
.newsletter-form .submit-square { width: 60px; height: 60px; border: none; background: var(--black); color: #fff; font-family: Georgia, serif; font-size: 22px; font-weight: 600; cursor: pointer; }

/* ---------- forms: errors + success (popup + newsletter) ---------- */
.form-error-global { display: none; margin-top: 12px; font-size: 14px; color: #b00020; }
.form-error-global.show { display: block; }
.popup .form-error-global { margin-top: 14px; }
.newsletter-form .form-success { padding: 18px 0 0; text-align: left; }
.newsletter-form .form-success h3 { margin-bottom: 6px; }
.popup-submit { width: 100%; height: 58px; font-size: 20px; margin-top: 6px; }
.success-close {
  margin-top: 20px; padding: 11px 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--brown);
  background: none; border: 1px solid rgba(119,78,55,.5); border-radius: 15px; cursor: pointer;
}
.success-close:hover { border-color: var(--brown); }
.popup-template { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1239px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 335px;
    grid-template-areas: "title video" "sub video" "cta video";
    column-gap: 70px; align-items: center;
    padding: 150px 20px 110px;
  }
  .hero-title { grid-area: title; }
  .hero-sub { grid-area: sub; }
  .hero-cta { grid-area: cta; }
  .hero-video { position: static; grid-area: video; justify-self: end; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .site-header { height: 64px; }
  .header-inner { gap: 24px; }
  .logo img { width: 240px; }
  .whatsapp { margin-left: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 281px; column-gap: 44px; padding-top: 60px; padding-bottom: 90px; }
  .hero-title { font-size: 48px; line-height: 58px; }
  .hero-flourish { font-size: 76px; line-height: 100px; }
  .hero-sub { margin-top: 50px; }
  .hero-cta { margin-top: 55px; }
  .hero-video { width: 281px; height: 500px; }
  .weddings { height: auto; }
  .weddings-inner { height: auto; }
  .weddings-copy { width: 56%; padding: 90px 0; }
  .weddings-copy h2 { font-size: 40px; line-height: 60px; }
  .course { height: auto; }
  .course-inner { height: auto; }
  .course-copy { width: 62%; padding: 80px 0; }
  .course-cta { margin-top: 80px; }
  .about { padding: 30px 0 80px; }
  .about-inner { grid-template-columns: 320px minmax(0, 1fr); gap: 50px; }
  .about-photo { width: 320px; height: 427px; }
  .kindwords { padding: 100px 0 30px; }
  .footer-inner { gap: 20px; }
}
@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr; grid-template-areas: "title" "video" "sub" "cta";
    justify-items: center; text-align: center; row-gap: 30px; padding: 130px 20px 70px;
  }
  .hero-title { font-size: 50px; line-height: 63px; }
  .hero-flourish { font-size: 80px; line-height: 124px; top: 70%; }
  .hero-sub { margin-top: 0; font-size: 20px; line-height: 22px; }
  .hero-cta { margin-top: 0; width: 240px; height: 64px; font-size: 24px; }
  .hero-video { justify-self: center; background-image: url('../img/hero-poster.jpg'); background-size: cover; background-position: center; }
  .hero-video img.js-poster { display: none; }
  /* live order at stacked widths: heading+body copy, then photo, then CTA */
  .weddings { display: flex; flex-direction: column; }
  .weddings-media { position: static; width: 100%; height: 300px; order: 2; margin-top: 15px; }
  .weddings-fade { display: none; }
  .weddings-inner { display: contents; }
  .weddings-copy { display: contents; }
  .weddings-copy h2 { order: 1; padding: 25px 40px 0; }
  .weddings-copy p { order: 1; padding: 0 40px; }
  .weddings-cta { order: 3; display: flex; margin: 35px auto 60px; }
  .course-inner { display: flex; flex-direction: column; }
  .course-copy { width: 100%; padding: 50px 24px 60px; order: 1; }
  .course-fade { display: none; }
  .course-media { position: static; width: 100%; height: 280px; order: 2; }
  .about { padding: 70px 0; }
  .about-inner { grid-template-columns: 1fr; justify-items: center; gap: 25px; padding-left: 0; }
  .about-photo { width: 320px; height: 427px; }
  .about-copy { padding: 0 40px; }
  .weddings-copy h2 { font-size: 25px; line-height: 38px; }
  .about-copy h2 { font-size: 25px; line-height: 30px; }
  .course-copy h2 { font-size: 20px; line-height: 30px; }
  .weddings-copy p, .course-copy p, .about-copy p { font-size: 16px; line-height: 21px; }
  .course-copy p { margin-bottom: 45px; }
  .course-copy p:last-of-type { margin-bottom: 0; }
  .creations-head h2 { font-size: 25px; line-height: 31px; }
  .kindwords h2 { font-size: 22px; line-height: 27.5px; }
  .creations { padding-bottom: 0px; }
  .kindwords { padding: 65px 0 70px; }
  .kindwords .carousel-slide img { width: 320px; height: 420px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-newsletter { grid-column: auto; }
  .site-footer { padding: 40px 0; }
}
@media (max-width: 480px) {
  .hero-flourish { display: none; }                 /* script flourish hidden ≤480 (parity) */
  .hero-inner { grid-template-areas: "video" "title" "sub" "cta"; padding: 55px 20px 45px; }  /* live reorders video above title ≤480 */
  .hero-title { font-size: 25px; line-height: 31px; }
  .hero-video { width: 260px; height: 462px; }
  .hero-sub { font-size: 16px; line-height: 18px; }
  .hero-cta { width: 200px; height: 56px; font-size: 18px; margin-top: 28px; }
  .weddings-cta, .course-cta { width: auto; display: flex; margin-left: auto; margin-right: auto; padding: 0 28px; height: 46px; font-size: 16px; }
  .more-cta { width: auto; padding: 0 40px; height: 58px; font-size: 18px; }
  .weddings-media { width: 241px; height: 220px; border-radius: 15px; overflow: hidden; margin: 30px auto 0; }
  .course-media { height: 254px; }
  .kindwords-carousel { gap: 10px; }
  .kindwords-arrow { width: 48px; height: 48px; }
  .kindwords .carousel-slide img { width: 260px; height: 340px; }
  .creations-head { margin-bottom: 24px; }
  .creations-more { padding-top: 63px; }
  .creations .carousel-slide img { width: 240px; height: 320px; }
  .course-copy { padding-top: 11px; }
  .about { padding: 55px 0 35px; }
  .about-copy p { margin-bottom: 10px; }
  .about-photo { width: 164px; height: 218px; }
  .footer-col h2 { font-size: 30px; line-height: 38px; }
  .social svg { width: 34px; height: 34px; }
  .social span { font-size: 18px; line-height: 24px; }
  .footer-location { font-size: 19px; line-height: 29px; }
  .footer-label { font-size: 20px; line-height: 26px; }
  .newsletter-form .form-field input { width: 100%; max-width: 240px; }
  .popup { padding: 40px 24px; }
}
@media (max-width: 390px) {
  .footer-links { display: none; }                 /* decorative Links column hidden ≤390 (parity) */
  .hero-sub { color: #DD9BB5; }                    /* hero body copy turns pink ≤390 (parity) */
}
