/* Additions on top of the template theme (style.css). Primary colour: #E47A2E, dark: #0F1D3A-ish navbar. */

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #E47A2E; outline-offset: 2px;
}
.btn, .form-control, .nav-link { min-height: 44px; }   /* comfortable tap targets */
.text-muted { color: #5f6b73 !important; }               /* a touch darker for readable contrast */

/* ---------- hero: date, countdown, live pill ---------- */
.hero-wrap { position: relative; }
.hero-date { font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero-bottom {
    position: absolute; left: 0; right: 0; bottom: 70px; z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
}
.hero-bottom > * { pointer-events: auto; }
.hero-countdown { display: flex; gap: 10px; }
.hero-countdown > div {
    min-width: 78px; padding: 10px 8px; text-align: center; color: #fff;
    background: rgba(15, 25, 50, .55); border: 1px solid rgba(255,255,255,.35); border-radius: 14px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero-countdown b { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-countdown small { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.live-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px;
    background: #d62828; color: #fff !important; font-weight: 600; text-decoration: none !important; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
@media (max-width: 575px) {
    .hero-bottom { bottom: 90px; }
    .hero-countdown > div { min-width: 64px; padding: 8px 4px; }
    .hero-countdown b { font-size: 1.4rem; }
    .hero-date { font-size: 1rem; }
}

/* ---------- events: swatches + actions ---------- */
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); vertical-align: -3px; margin-right: 3px; }
.dress-line { color: #E47A2E; }
.event-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
@media (min-width: 768px) {
    .event-col:nth-child(odd) .event-actions { justify-content: flex-end; }
    .event-col:nth-child(even) .event-actions { justify-content: flex-start; }
}
.event-actions .btn { min-height: 36px; font-size: .82rem; border-radius: 99px; padding: 6px 12px; }
.event-col { margin-bottom: 36px; }

/* ---------- family cards: consistent picture shape (prevents layout jumps) ---------- */
.person-photo { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- RSVP: event checkboxes ---------- */
.attend-box { background: #EDF5F7; padding: 14px 16px; }
.attend-title { font-weight: 600; margin-bottom: 8px; }
.event-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.evt-check {
    display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; min-height: 44px;
    background: #fff; border: 1px solid #d6e2e6; border-radius: 99px; cursor: pointer; user-select: none;
}
.evt-check:has(input:checked) { border-color: #E47A2E; background: #fff4ec; }
.evt-check input { width: 18px; height: 18px; accent-color: #E47A2E; }
.wa-consent input { accent-color: #E47A2E; width: 18px; height: 18px; vertical-align: -3px; }
#rsvpTabs .nav-link { border-radius: 99px; padding: 10px 22px; }

/* ---------- FAQ ---------- */
.faq-item { background: #EDF5F7; border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: #E47A2E; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; margin: 0; white-space: pre-line; }

/* ---------- wishes wall ---------- */
.wish-form { margin-bottom: 30px; }
.wish-grid { columns: 3 240px; column-gap: 16px; }
.wish-card { break-inside: avoid; margin: 0 0 16px; background: #fff; border: 1px solid #ecdcd0; border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.wish-card blockquote { margin: 0 0 8px; font-style: italic; white-space: pre-line; }
.wish-card figcaption { color: #E47A2E; font-weight: 600; }

/* ---------- reveal-on-scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .reveal.no-anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .live-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- music button ---------- */
.music-toggle {
    position: fixed; left: 16px; bottom: 20px; z-index: 1030; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: #E47A2E; color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
}
.music-toggle.playing { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- language toggle ---------- */
.lang-toggle { border: 1px solid rgba(255,255,255,.5); border-radius: 99px; margin-left: 6px; padding-left: 14px !important; padding-right: 14px !important; }
@media (min-width: 992px) { .lang-toggle { margin-top: 20px; margin-bottom: 20px; min-height: 0; padding-top: 6px !important; padding-bottom: 6px !important; } }

/* ---------- sticky mobile bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 991px) {
    .mobile-cta {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(15, 25, 50, .96);
        box-shadow: 0 -6px 18px rgba(0,0,0,.2);
    }
    .mobile-cta a {
        flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px; font-weight: 600; text-decoration: none !important; min-height: 48px;
    }
    .mobile-cta .mc-primary { background: #E47A2E; color: #fff; }
    .mobile-cta .mc-secondary { background: #fff; color: #0F1D3A; }
    body { padding-bottom: 72px; }
    .back-to-top { bottom: 90px !important; }
    .music-toggle { bottom: 86px; }
}

/* ---------- polish after visual check ---------- */
/* jumping to a section must not hide its heading under the fixed top menu */
#about, #story, #gallery, #event, #family, #faq, #wishes, #rsvp, #contact { scroll-margin-top: 80px; }
/* phones: the big banner arrows covered the tagline - swiping/auto-play is enough there */
@media (max-width: 575px) {
    #header-carousel .carousel-control-prev, #header-carousel .carousel-control-next { display: none; }
}
.wish-empty { text-align: center; color: #8a7d74; font-style: italic; margin: 0; }

/* ---------- desktop menu: keep every item on one line ---------- */
@media (min-width: 992px) {
    .navbar .nav-link { white-space: nowrap; min-height: 0; }
    .navbar .lang-toggle { margin: 0 0 0 8px; align-self: center; padding: 4px 14px !important; line-height: 1.4; }
}
@media (min-width: 992px) and (max-width: 1499px) {
    .navbar .navbar-nav .nav-link { font-size: 14px; padding-left: 7px !important; padding-right: 7px !important; }
    .navbar .navbar-brand.mx-5 { margin-left: 1rem !important; margin-right: 1rem !important; }
    .navbar .navbar-brand h1 { font-size: 2rem; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar.px-lg-5 { padding-left: 12px !important; padding-right: 12px !important; }
    .navbar .navbar-nav .nav-link { font-size: 12.5px; letter-spacing: 0; padding-left: 5px !important; padding-right: 5px !important; }
    .navbar .navbar-brand.mx-5 { margin-left: .5rem !important; margin-right: .5rem !important; }
    .navbar .navbar-brand h1 { font-size: 1.6rem; }
    .navbar .lang-toggle { margin-left: 4px; padding: 3px 9px !important; }
}

/* ---------- countdown placement (the hero wrapper has 3rem bottom padding below the 100vh banner) ---------- */
.hero-bottom { bottom: calc(3rem + 70px); }
@media (max-width: 991px) { .hero-bottom { bottom: calc(3rem + 96px); } }   /* clear the sticky RSVP bar */
/* the template's "scroll down" arrow sat on top of the countdown */
body:has(#heroCountdown) .scroll-to-bottom { display: none !important; }


/* ---------- footer ---------- */
.site-footer { margin-top: 90px; }
.footer-welcome { margin: 10px auto 26px; }
.fw-label { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.fw-family { font-size: 2.6rem; margin: 0 0 8px; }
.fw-hosts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 1.1rem; }
.fw-hosts li { position: relative; }
.fw-hosts li + li::before { content: "\2766"; position: absolute; left: -20px; color: #E47A2E; font-size: .8rem; top: 4px; }
.footer-blessings { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.footer-cols {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px;
    border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); padding: 32px 0; margin: 10px 0 26px; text-align: left;
}
.fcol h5 { color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; margin-bottom: 14px; }
.f-date { font-size: 1.5rem; font-weight: 600; color: #E47A2E; margin: 0 0 4px; }
.f-muted { color: rgba(255,255,255,.65); margin-bottom: 12px; font-size: .92rem; }
.f-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.f-actions .btn { border-radius: 99px; min-height: 38px; }
.f-list { list-style: none; padding: 0; margin: 0; }
.f-list li { margin-bottom: 10px; }
.f-list a { color: rgba(255,255,255,.85); }
.f-list a:hover { color: #E47A2E; text-decoration: none; }
.f-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.f-contact small { flex-basis: 100%; }
.f-btns a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); margin-left: 4px; }
.footer-social { margin-bottom: 22px; }
.f-hashtag { margin-bottom: 14px; color: rgba(255,255,255,.8); }
.footer-copy { color: rgba(255,255,255,.6); font-size: .9rem; }
@media (max-width: 575px) { .footer-cols { text-align: center; } .f-actions, .f-contact { justify-content: center; } .fw-family { font-size: 2.1rem; } }
@media (max-width: 575px) { .fw-hosts { flex-direction: column; gap: 2px; } .fw-hosts li + li::before { display: none; } }

/* footer: highlighted events (Wedding, Reception...) */
.f-event { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.f-event:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.f-event-name { margin: 0 0 2px; font-weight: 600; color: #fff; }
.f-event .f-muted { margin-bottom: 4px; }
.f-event .f-muted a { color: rgba(255,255,255,.75); }
.f-cal { font-size: .88rem; color: #E47A2E !important; }


/* ---------- footer v2: Save the Dates cards ---------- */
.footer-dates { border-top: 1px solid rgba(255,255,255,.15); padding: 30px 0 6px; margin-top: 10px; }
.footer-dates > h5 { color: #fff; text-transform: uppercase; letter-spacing: 3px; font-size: .9rem; margin-bottom: 20px; }
.fd-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.fd-card {
    display: flex; gap: 16px; align-items: flex-start; text-align: left; flex: 1 1 340px; max-width: 470px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px;
}
.fd-badge {
    flex: 0 0 74px; height: 80px; border-radius: 14px; background: #E47A2E; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
    box-shadow: 0 8px 20px rgba(228,122,46,.35);
}
.fd-day { font-size: 2.1rem; font-weight: 700; }
.fd-month { font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.fd-body { flex: 1; min-width: 0; }
.fd-name { font-family: "Great Vibes", cursive; font-size: 2rem; color: #fff; margin: 0 0 2px; line-height: 1.1; }
.fd-when { color: rgba(255,255,255,.85); margin: 0 0 4px; font-size: .95rem; }
.fd-venue { color: rgba(255,255,255,.7); margin: 0 0 12px; font-size: .92rem; }
.fd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-actions .btn { border-radius: 99px; min-height: 36px; font-size: .82rem; }
.footer-cols { margin-top: 26px; }
.f-share { border-radius: 99px; min-height: 38px; }
@media (max-width: 575px) {
    .fd-card { flex-direction: column; align-items: center; text-align: center; }
    .fd-actions { justify-content: center; }
}
@media (max-width: 575px) { .fd-badge { flex: none; width: 74px; } }


/* ================= first-screen polish ================= */
/* menu visible from the start: transparent over the banner, solid after scrolling */
.navbar.fixed-top { display: flex !important; transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease; }
.navbar.nav-top { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)) !important; box-shadow: none !important; }
.navbar.nav-top .navbar-brand { opacity: 0; pointer-events: none; transition: opacity .3s; }   /* names are already big on the banner */
.navbar .navbar-brand { transition: opacity .3s; }
@media (max-width: 991px) {
    .navbar.nav-top .navbar-collapse.show, .navbar.nav-top .navbar-collapse.collapsing { background: rgba(18,31,56,.97); border-radius: 12px; padding: 6px 14px; margin-top: 8px; }
}

/* banner: slow zoom + softer, richer overlay */
.carousel-item img { transform-origin: center; }
.carousel-item.active img { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
#header-carousel .carousel-caption { background: linear-gradient(180deg, rgba(10,16,32,.55) 0%, rgba(10,16,32,.35) 45%, rgba(10,16,32,.7) 100%); }

/* names, tagline, date and buttons fade up one after another */
/* only on first page load (site.js removes .hero-intro), so slide changes never hide the buttons */
.hero-intro .carousel-item.active .carousel-caption h1,
.hero-intro .carousel-item.active .carousel-caption .d-inline-block,
.hero-intro .carousel-item.active .hero-date,
.hero-intro .carousel-item.active .hero-cta { opacity: 0; animation: fadeUp .9s ease forwards; }
.hero-intro .carousel-item.active .carousel-caption h1 { animation-delay: .15s; }
.hero-intro .carousel-item.active .carousel-caption .d-inline-block { animation-delay: .45s; }
.hero-intro .carousel-item.active .hero-date { animation-delay: .7s; }
.hero-intro .carousel-item.active .hero-cta { animation-delay: .95s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.carousel-caption h1 { text-shadow: 0 4px 24px rgba(0,0,0,.45); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.hero-btn { border-radius: 99px; padding: 12px 26px; font-weight: 600; letter-spacing: .5px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero-btn.btn-outline-light { backdrop-filter: blur(3px); background: rgba(255,255,255,.08); }
.hero-btn:hover { transform: translateY(-2px); }
@media (max-width: 575px) { .hero-cta .btn-primary { display: none; } .hero-btn { padding: 10px 20px; } }  /* phones already have the RSVP bar */

/* petals */
.petals { position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; }

/* welcome back pill */
.welcome-back {
    position: absolute; top: 96px; left: 50%; transform: translateX(-50%); z-index: 6;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
    background: rgba(255,255,255,.95); color: #121F38; padding: 10px 14px 10px 20px; border-radius: 99px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); animation: fadeUp .6s ease both;
}
.welcome-back[hidden] { display: none; }
.wb-open { font-weight: 700; color: #E47A2E !important; white-space: nowrap; }
.wb-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; }
@media (max-width: 575px) { .welcome-back { top: 76px; font-size: .9rem; border-radius: 16px; } }

/* countdown tick */
.hero-countdown b.tick { animation: tick .45s ease; }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* event status badges */
.ev-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-bottom: 10px; }
.ev-next { background: #fff1e6; color: #c25e17; border: 1px solid #f3c39e; }
.ev-today { background: #e5484d; color: #fff; animation: pulse 1.6s infinite; }
.ev-next-col img, .ev-today-col img { box-shadow: 0 0 0 4px #E47A2E; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    .carousel-item.active img, .carousel-item.active .carousel-caption h1, .carousel-item.active .carousel-caption .d-inline-block,
    .carousel-item.active .hero-date, .carousel-item.active .hero-cta, .welcome-back, .hero-countdown b.tick, .ev-today { animation: none; opacity: 1; }
}


/* =====================================================================
   FESTIVE LOOK & FEEL
   ===================================================================== */

/* ---- warm wedding palette (replaces the template's cold light blue) ---- */
body { background: #FFFCF7; }
.bg-secondary { background-color: #FBF1E6 !important; }
.attend-box, .faq-item { background: #FBF1E6; }
.evt-check { border-color: #ecd9c6; }
#event, #faq, #rsvp {
    background-color: #FFF8F0;
    background-image: radial-gradient(rgba(228,122,46,.10) 1.2px, transparent 1.6px);
    background-size: 22px 22px;
}

/* ---- scroll progress ---- */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; pointer-events: none;
    background: linear-gradient(90deg, #C9A227, #E47A2E, #E91E63); transform: scaleX(0); transform-origin: left;
}

/* ---- mandala behind section titles ---- */
.section-title { position: relative; }
.section-title > *:not(.mandala) { position: relative; z-index: 1; }
.mandala {
    position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -125px 0 0 -115px;
    color: #E47A2E; opacity: .13; z-index: 0; pointer-events: none; animation: spinSlow 80s linear infinite;
}
.mandala svg { width: 100%; height: 100%; display: block; }
.site-footer .mandala, #gallery .mandala { color: #F5C518; opacity: .16; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---- event icon ---- */
.ev-icon {
    width: 62px; height: 62px; margin: -48px auto 12px; position: relative; z-index: 2; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 28px; background: #fff;
    box-shadow: 0 0 0 4px #FFF8F0, 0 0 0 6px #f3c39e, 0 8px 18px rgba(0,0,0,.12);
}
@media (min-width: 768px) {
    .event-col:nth-child(odd) .ev-icon { margin-right: 14px; margin-left: auto; }
    .event-col:nth-child(even) .ev-icon { margin-left: 14px; margin-right: auto; }
}
.event-col img { border-radius: 10px; transition: transform .5s ease, box-shadow .5s ease; }
.event-col:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.15); }

/* ---- staggered entrance animations (classes added by site.js) ---- */
.anim { opacity: 0; transition: opacity .9s ease var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.anim-left { transform: translateX(-60px); }
.anim-right { transform: translateX(60px); }
.anim-up { transform: translateY(40px); }
.anim-zoom { transform: scale(.86); }
.anim.in { opacity: 1; transform: none; }

/* ---- love-story line grows with scrolling ---- */
@media (min-width: 768px) {
    .timeline::after { transform: scaleY(var(--tl, 1)); transform-origin: top; transition: transform .25s linear; }
}

/* ---- gallery hover ---- */
.gallery-item { overflow: hidden; }
.gallery-item img { transition: transform .8s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---- tap hearts ---- */
.tap-heart {
    position: absolute; z-index: 7; pointer-events: none; font-size: 20px; line-height: 1; margin: -10px 0 0 -10px;
    animation: heartFly 1.5s ease-out forwards;
}
@keyframes heartFly { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3); } }

/* ---- confetti ---- */
.confetti-canvas { position: fixed; inset: 0; z-index: 3500; pointer-events: none; }

/* ---- opening envelope ---- */
.intro {
    position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px;
    background: radial-gradient(circle at 50% 38%, #2a3f6b 0%, #121F38 65%, #0b1426 100%);
    transition: opacity .8s ease, visibility .8s ease;
}
html.js .intro { display: flex; }
.intro.closing { opacity: 0; visibility: hidden; }
body.intro-lock { overflow: hidden; }
.intro-inner { text-align: center; width: 100%; }
.intro-kicker { color: #f3d9b5; letter-spacing: 4px; text-transform: uppercase; font-size: .85rem; margin-bottom: 70px; }
.intro-hint { color: rgba(255,255,255,.75); margin-top: 34px; font-size: .95rem; animation: pulse 2s infinite; }
.intro-skip {
    position: absolute; top: 18px; right: 18px; background: transparent; color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 6px 16px; cursor: pointer;
}
.env { position: relative; width: min(380px, 86vw); aspect-ratio: 3 / 2; margin: 0 auto; cursor: pointer; perspective: 1400px; outline: none; }
.env:focus-visible { outline: 3px solid #F5C518; outline-offset: 8px; border-radius: 8px; }
.env-back, .env-pocket, .env-flap { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: #e3c9a6; z-index: 1; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.env-card {
    position: absolute; left: 6%; right: 6%; top: 6%; bottom: 6%; z-index: 2; border-radius: 6px;
    background: #fffaf2; border: 1px solid #ecd6b3; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 10px; transition: transform 1s cubic-bezier(.2,.8,.2,1) .55s;
    box-shadow: inset 0 0 0 6px #fffaf2, inset 0 0 0 7px #E47A2E;
}
.ec-small { font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: #8a6d4f; }
.ec-names { font-size: clamp(1.7rem, 7vw, 2.4rem); color: #121F38; line-height: 1.2; margin: 4px 0; }
.ec-date { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #E47A2E; font-weight: 600; }
.env-pocket {
    z-index: 3; background: linear-gradient(160deg, #f3dfc2, #e9d0ad);
    clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
    z-index: 4; background: linear-gradient(180deg, #ecd5b2, #dcbf96); bottom: auto; height: 60%;
    clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center;
    transition: transform .7s ease, z-index 0s linear .35s;
}
.env-seal {
    position: absolute; z-index: 5; left: 50%; top: 60%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c2384f, #8B1E2D 60%, #5e1320);
    box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 0 0 4px rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; color: #F5D88A; font-size: 1.7rem;
    transition: transform .45s ease, opacity .45s ease; animation: sealPulse 2.2s ease-in-out infinite;
}
@keyframes sealPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.intro.opening .env-seal { animation: none; transform: scale(.2) rotate(-30deg); opacity: 0; }
.intro.opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.intro.opening .env-card { transform: translateY(-62%); z-index: 4; }
.intro.opening .intro-hint { opacity: 0; }
@media (max-width: 575px) { .intro-kicker { margin-bottom: 60px; } }

/* ---- respect "reduce motion" ---- */
@media (prefers-reduced-motion: reduce) {
    .mandala, .env-seal, .intro-hint { animation: none; }
    .env-card, .env-flap, .env-seal { transition: none; }
    .gallery-item img, .event-col img { transition: none; }
}

/* ---- fixes after browser testing ---- */
/* slide-in cards start outside the screen; never let that make the page wider than the phone */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
.env-seal span { font-size: 1.3rem; letter-spacing: -1px; white-space: nowrap; }
.env:focus:not(:focus-visible) { outline: none; }


/* =====================================================================
   SECTION ANIMATIONS v2  (classes are added by site.js, so without JS
   or with "reduce motion" everything is simply shown)
   ===================================================================== */

/* ---- section headings ---- */
.title-anim h6, .title-anim h1 { transition: opacity .8s ease, transform .8s ease, letter-spacing 1.2s ease; }
.title-anim:not(.in) h6 { opacity: 0; letter-spacing: 14px !important; }
.title-anim:not(.in) h1 { opacity: 0; transform: translateY(24px); }
.title-anim.in h1 { transition-delay: .15s; }
.title-anim::before { transform-origin: right center; }
.title-anim::after { transform-origin: left center; }
.title-anim::before, .title-anim::after { transition: transform .9s cubic-bezier(.2,.8,.2,1) .4s; }
.title-anim:not(.in)::before, .title-anim:not(.in)::after { transform: scaleX(0); }
.title-anim > i { display: inline-block; }
.title-anim:not(.in) > i { opacity: 0; transform: scale(0); }
.title-anim.in > i { opacity: 1; transform: scale(1); transition: transform .5s cubic-bezier(.3,1.7,.5,1) .7s, opacity .3s .7s;
                     animation: heartbeat 1.5s ease-in-out 1.4s 3; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }

/* ---- love story: curtain-wipe photos, rising card, staggered text, popping markers ---- */
.story-row img { transition: clip-path 1.2s cubic-bezier(.7,0,.2,1), transform 1.8s ease; }
.story-row:not(.in) img { clip-path: inset(0 100% 0 0); transform: scale(1.15); }
.story-row:nth-child(even):not(.in) img { clip-path: inset(0 0 0 100%); }
.story-row.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.story-row .bg-secondary { transition: opacity .9s ease .35s, transform .9s cubic-bezier(.2,.8,.2,1) .35s, box-shadow .4s; }
.story-row:not(.in) .bg-secondary { opacity: 0; transform: translateY(40px); }
.story-row .bg-secondary > * { transition: opacity .6s ease, transform .6s ease; }
.story-row:not(.in) .bg-secondary > * { opacity: 0; transform: translateY(16px); }
.story-row.in .bg-secondary > :nth-child(1) { transition-delay: .7s; }
.story-row.in .bg-secondary > :nth-child(2) { transition-delay: .85s; }
.story-row.in .bg-secondary > :nth-child(3) { transition-delay: 1s; }
.story-row .bg-secondary:hover { box-shadow: 0 16px 34px rgba(0,0,0,.08); }
.story-row img:hover { transform: scale(1.03); transition: transform .6s ease; }
.story-row h4 { color: #121F38; }
.story-row p.text-uppercase { color: #E47A2E; letter-spacing: 2px; font-size: .85rem; font-weight: 600; }
@media (min-width: 768px) {
    .story-row::before { transition: transform .6s cubic-bezier(.3,1.7,.5,1) .45s; }
    .story-row:not(.in)::before { transform: rotate(45deg) scale(0); }
    .story-row.in::before { transform: rotate(45deg) scale(1); background: #fff7ef; }
    .story-row::after { transition: opacity .3s .7s; }
    .story-row:not(.in)::after { opacity: 0; }
    .story-row.in::after { animation: heartbeat 1.6s ease-in-out 1.1s infinite; }
}

/* ---- about: photos reveal like the story ---- */
.about-row img { transition: clip-path 1.2s cubic-bezier(.7,0,.2,1), transform 1.8s ease; }
.about-row:not(.in) img { clip-path: inset(0 0 0 100%); transform: scale(1.12); }
.about-row:nth-child(even):not(.in) img { clip-path: inset(0 100% 0 0); }
.about-row.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.about-row .bg-secondary > * { transition: opacity .6s ease, transform .6s ease; }
.about-row:not(.in) .bg-secondary > * { opacity: 0; transform: translateY(18px); }
.about-row.in .bg-secondary > :nth-child(1) { transition-delay: .4s; }
.about-row.in .bg-secondary > :nth-child(2) { transition-delay: .55s; }
.about-row.in .bg-secondary > :nth-child(3) { transition-delay: .7s; }
.about-row.in .bg-secondary > :nth-child(4) { transition-delay: .85s; }

/* ---- events: icon + colour dots pop after the card arrives ---- */
.event-col.anim .ev-icon { transition: transform .6s cubic-bezier(.3,1.7,.5,1) .55s; }
.event-col.anim:not(.in) .ev-icon { transform: scale(0) rotate(-40deg); }
.event-col.anim .swatch { transition: transform .45s cubic-bezier(.3,1.7,.5,1) .8s; }
.event-col.anim:not(.in) .swatch { transform: scale(0); }
.event-col.anim .event-actions { transition: opacity .6s ease .9s, transform .6s ease .9s; }
.event-col.anim:not(.in) .event-actions { opacity: 0; transform: translateY(10px); }
.ev-icon:hover { animation: wiggle .6s ease; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

/* ---- family cards flip in, lift on hover ---- */
.anim-flip { transform: perspective(900px) rotateY(-35deg) translateY(30px); transform-origin: left center; }
.portfolio-item > .position-relative.anim.in { transition: transform .45s ease, box-shadow .45s ease, opacity .9s ease var(--d, 0ms); }
.portfolio-item > .position-relative.anim.in:hover { transform: translateY(-10px); box-shadow: 0 18px 36px rgba(0,0,0,.14); }
.portfolio-item img { transition: filter .5s ease; }
.portfolio-item:hover img { filter: saturate(1.15) brightness(1.04); }

/* ---- wishes float gently once shown ---- */
.wish-card.anim.in { animation: floaty 7s ease-in-out infinite; animation-delay: calc(var(--d, 0ms) + 1.2s); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---- footer date badges flip ---- */
.fd-card.anim .fd-badge { transition: transform .8s cubic-bezier(.3,1.4,.5,1) .35s; }
.fd-card.anim:not(.in) .fd-badge { transform: perspective(500px) rotateY(90deg); }

/* ---- FAQ rows slide a touch on hover ---- */
.faq-item { transition: transform .3s ease, box-shadow .3s ease; }
.faq-item:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }

/* ---- button to the squad page ---- */
.squad-btn { border-radius: 99px; padding: 14px 30px; font-weight: 600; box-shadow: 0 10px 24px rgba(228,122,46,.35); animation: squadNudge 3s ease-in-out infinite; }
.squad-btn:hover { transform: translateY(-2px) scale(1.03); }
@keyframes squadNudge { 0%, 85%, 100% { transform: none; } 90% { transform: rotate(-3deg) scale(1.04); } 95% { transform: rotate(3deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .squad-btn { animation: none; } }


/* ---------- live form validation ---------- */
.field-error { display: block; text-align: left; margin-top: 6px; font-size: 13px; font-weight: 600; color: #c62828; }
.field-error:empty { display: none; }
.field-error .fix-email { border: 0; background: none; padding: 0; color: #E47A2E; font-weight: 700; text-decoration: underline; cursor: pointer; font: inherit; }
.form-control.is-invalid { background-color: #fff5f5 !important; box-shadow: inset 0 0 0 2px #e5484d !important; }
.form-control.is-valid { box-shadow: inset 0 0 0 2px #2e9e5b !important; }
.attend-box.is-invalid { box-shadow: inset 0 0 0 2px #e5484d; }

/* ---------- phone box with a fixed +91 ---------- */
.phone-wrap { position: relative; }
.phone-prefix {
    position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 12px 0 14px;
    font-weight: 600; color: #121F38; border-right: 1px solid #ecd9c6; pointer-events: none; z-index: 2;
}
.phone-wrap .form-control { padding-left: 92px !important; }
