/* Yes Yes Makeover — small site-wide additions on top of Tailwind utilities. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff7f9;
  overflow-x: hidden;
}

::selection {
  background: #d82078;
  color: #fff;
}

/* Icons: reserve space and hide ligature text until the icon font is ready */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
  /* reserve exactly one icon's space, so a slow icon font never spills words like "arrow_forward" */
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #d82078;
  outline-offset: 3px;
  border-radius: 9999px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Desktop bar: solid white by default, see-through over the home hero (.is-overlay) */
@media (min-width: 1024px) {
  .nav-desk {
    background: rgba(255, 247, 249, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px -8px rgba(216, 32, 120, 0.25);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
  }
  .nav-desk-inner { height: 4rem; transition: height 0.35s ease; }
  .nav-logo { width: 2.25rem; height: 2.25rem; transition: width 0.35s ease, height 0.35s ease, box-shadow 0.35s ease; }
  .nav-name { font-size: 18px; color: #241820; transition: font-size 0.35s ease, color 0.35s ease; }
  .nav-sub { display: none; color: #ffb1c8; }
  .nav-link { position: relative; color: #594047; transition: color 0.2s ease; }
  .nav-link:hover { color: #b1005f; }
  .nav-link[aria-current="page"] { color: #b1005f; }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 9999px;
    background: #d82078;
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .nav-link[aria-current="page"]::after,
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-phone { display: none; }
  .nav-cta {
    background: #d82078;
    color: #fff;
    box-shadow: 0 4px 16px rgba(216, 32, 120, 0.25);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  .nav-cta:hover { background: #b1005f; }

  .is-overlay .nav-desk {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .is-overlay .nav-desk-inner { height: 6rem; }
  .is-overlay .nav-logo { width: 2.75rem; height: 2.75rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
  .is-overlay .nav-name { font-size: 21px; color: #fff; }
  .is-overlay .nav-sub { display: block; }
  .is-overlay .nav-link { color: rgba(255, 255, 255, 0.8); }
  .is-overlay .nav-link:hover,
  .is-overlay .nav-link[aria-current="page"] { color: #fff; }
  .is-overlay .nav-phone { display: flex; color: #fff; }
  .is-overlay .nav-cta { background: #fff; color: #b1005f; box-shadow: none; }
  .is-overlay .nav-cta:hover { background: #ffd9e2; }
}

/* Filled icon (active tab) */
.ms-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* Horizontal scrollers (filter pills, service tabs) without a visible bar */
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------- Motion ---------- */
/* Reading progress line along the top edge */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #d82078, #ff7eb6 60%, #95d948);
  pointer-events: none;
}

/* Home hero: slow zoom on the photo that is showing */
.carousel-slide img {
  transform: scale(1.1);
  transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-slide.opacity-100 img {
  transform: scale(1);
}
#hero-slides-track {
  will-change: transform;
}

/* Smooth scrolling (Lenis, set up in cinema.js) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Bridal Journey (home) ----------
   Default: chapters stacked (phones, reduced motion, no JS).
   .is-cinema (desktop, added by cinema.js): pinned stage, chapters layered and played by scrolling. */
.journey {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: #241820;
  color: #ffecf5;
}
.journey::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 32, 120, 0.22), transparent);
  pointer-events: none;
}
.journey-inner { position: relative; }
.journey-head { max-width: 40rem; margin: 0 auto 3.5rem; text-align: center; }
.journey-chapter {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 4rem;
}
.journey-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 2rem;
  overflow: hidden;
  isolation: isolate;   /* keeps each chapter number inside its own photo when chapters are layered */
  background: #3a2c35;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
/* a little taller than the frame: crops the white band along the bottom of studio-vanity-suite.jpg */
.journey-media img { display: block; width: 100%; height: calc(100% + 1.5rem); object-fit: cover; object-position: 50% 0; }
.journey-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 16, 0.65), transparent 45%);
  pointer-events: none;
}
.journey-num {
  position: absolute;
  left: 1.5rem;
  bottom: 0.75rem;
  z-index: 1;
  font: 500 clamp(3rem, 6vw, 5.5rem)/1 "Playfair Display", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;   /* Playfair's default italic figures run into each other */
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.journey-step {
  font: 700 11px/14px "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb1c8;
}
.journey-copy h3 {
  margin: 0.75rem 0 1rem;
  font: 500 clamp(1.75rem, 2.6vw, 2.5rem)/1.2 "Playfair Display", Georgia, serif;
  color: #fff;
}
.journey-copy p {
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 236, 245, 0.78);
}
.journey-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 177, 200, 0.3);
  border-radius: 999px;
  font: 600 13px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #aff761;
}
.journey-tag .material-symbols-outlined { font-size: 18px; }
.journey-foot { display: flex; justify-content: center; }
.journey-progress { display: none; align-items: center; gap: 1rem; }
.journey-count { font: 600 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: 0.12em; color: rgba(255, 236, 245, 0.6); }
.journey-count b { color: #fff; font-weight: 700; }
.journey-bar { display: block; width: 140px; height: 2px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; overflow: hidden; }
.journey-bar i { display: block; height: 100%; background: #d82078; transform-origin: 0 50%; transform: scaleX(0.25); }

@media (min-width: 768px) {
  .journey-chapter { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .journey-chapter:nth-of-type(even) .journey-media { order: 2; }
}

/* Desktop cinema mode */
.journey.is-cinema { height: 100vh; padding: 5rem 0 5.5rem; }   /* bottom room keeps the chat button clear of the CTA */
.journey.is-cinema .journey-inner { height: 100%; }
.journey.is-cinema .journey-stage { position: relative; height: 100%; max-height: 760px; }
.journey.is-cinema .journey-head,
.journey.is-cinema .journey-foot {
  position: absolute;
  left: calc(52% + 4rem);
  right: 0;
  z-index: 5;
  margin: 0;
  text-align: left;
}
.journey.is-cinema .journey-head { top: 0; }
.journey.is-cinema .journey-foot { bottom: 0; justify-content: space-between; align-items: center; gap: 1.5rem; }
.journey.is-cinema .journey-progress { display: flex; }
.journey.is-cinema .journey-chapter {
  position: absolute;
  inset: 0;
  margin: 0;
  grid-template-columns: 52% 1fr;
  column-gap: 4rem;
  align-items: stretch;
}
.journey.is-cinema .journey-media { order: 0; aspect-ratio: auto; height: 100%; }
.journey.is-cinema .journey-copy { align-self: end; padding-bottom: 6rem; }

/* Footer developer credit: quiet text, the company name picks up the brand pink */
.dev-credit {
  font: 400 12px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #594047;
  text-align: center;
  transition: color 0.2s ease;
}
.dev-credit strong { font-weight: 600; color: #b1005f; }
.dev-credit:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Small laptops: keep the see-through bar on one line */
@media (min-width: 1024px) {
  .nav-link { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .is-overlay .nav-phone { display: none; }
}

/* ---------- Site intro (first page in a tab) + page curtain (between pages) ---------- */
#site-intro,
#page-curtain {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
#site-intro {
  z-index: 100;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #fff7f9 0%, #ffe9f2 55%, #fbd9e8 100%);
}
#page-curtain {
  z-index: 99;
  background: linear-gradient(160deg, #d82078 0%, #b1005f 100%);
}
.intro-play #site-intro { display: flex; animation: yy-failsafe 0s linear 7s forwards; }
/* Page curtain between pages: turned off on request (kept for later).
.intro-seen #page-curtain { display: flex; animation: yy-failsafe 0s linear 3s forwards; }
.is-leaving #page-curtain { display: flex; }
*/
@keyframes yy-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.intro-glow {
  position: absolute;
  width: min(70vmax, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 32, 120, 0.22) 0%, rgba(216, 32, 120, 0) 65%);
}
.intro-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0; /* shown by site-intro.js once the sequence starts */
}
.intro-logo { width: clamp(150px, 22vw, 220px); height: auto; }
.intro-name {
  margin-top: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #241820;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.intro-name .intro-ch { display: inline-block; will-change: transform; }
.intro-line { display: block; width: 72px; height: 2px; margin: 18px 0 14px; border-radius: 2px; background: #d82078; }
.intro-sub {
  font: 700 12px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #b1005f;
  padding-left: 0.42em; /* balance the trailing letter-spacing */
}
.intro-tag {
  margin-top: 22px;
  font: italic 400 clamp(15px, 2vw, 19px)/1.5 "Playfair Display", Georgia, serif;
  color: #594047;
}
.intro-skip {
  position: absolute;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(177, 0, 95, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #b1005f;
  font: 600 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.intro-skip:hover { background: #fff; }
.curtain-logo {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 12px 40px rgba(60, 0, 30, 0.35);
}

/* ---------- Connection notice (offline / back online) ---------- */
.net-note {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 9999px;
  background: #3a2c35;
  color: #fff;
  font: 600 13px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  box-shadow: 0 12px 32px rgba(36, 24, 32, 0.3);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.net-note.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.net-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff7eb6; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255, 126, 182, 0.25); }
.net-note.is-online .net-dot { background: #95d948; box-shadow: 0 0 0 4px rgba(149, 217, 72, 0.25); }
@media (min-width: 1024px) { .net-note { bottom: 28px; } }

/* Form validation states */
.field-error {
  box-shadow: 0 0 0 2px #ba1a1a !important;
}
.pill-group-error {
  outline: 2px dashed #ba1a1a;
  outline-offset: 6px;
  border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #site-header,
  #tab-bar,
  #chat-fab {
    display: none !important;
  }
}
