/* ============================================================
   THE GRANDEST PRINCESS BALL EVER — custom.css
   Organized: variables → base → components → desktop overrides
============================================================ */

/* ============================================================
   0. COLOR VARIABLES
      Update colors here — they cascade everywhere automatically
============================================================ */
:root {
    /* Brand colors */
    --pink:           #EC74AE;   /* headings, accents                      */
    --teal:           #7ECAC4;   /* buttons, borders, CTA bg                */
    --purple:         #6D5784;   /* nav button, info labels, email heading  */
    --gold:           #C9A84C;   /* info values                             */
    --light-pink:     #FFE4F1;   /* reviews bg, princesses bg               */

    /* Hover / dark variants */
    --teal-dark:      #4d807b;   /* teal hover                              */
    --purple-dark:    #372c42;   /* purple hover                            */
    --teal-light:     #E9F7F6;   /* teal light                              */
    --gold-light:     #D7B05E;   /* gold light                              */
    /* Neutrals */
    --soft-gray:      #D9D9D9;   /* event cards                             */
    --dark-text:      #222222;   /* body text                               */
    --mid-text:       var(--mid-text);   /* secondary text                          */
    --light-text:     var(--light-text);   /* tertiary text / captions                */
    --border-light:   #eeeeee;   /* subtle dividers                         */
    --border-pink:    #f0e0f0;   /* pink-tinted borders (nav, panel)        */
    --white:          #FFFFFF;
    --footer-bg:      #f5f5f5;   /* footer background                       */
    --email-bg:       #e8e8e8;   /* desktop email signup background         */
    --mid-text:       #444444;
    --sub-text:       #555555;
    --body-text:      #333333;
    --muted-text:     #999999;
    --placeholder:    #aaaaaa;
    --disabled:       #bbbbbb;
    --disabled-dark:  #cccccc;
    --slideshow-bg:   #1a0a1a;   /* dark fallback behind slideshow          */

    /* Scarcity / availability badge colors */
    --avail-selling:  #d4a000;   /* SELLING FAST — amber                    */
    --avail-almost:   #e06000;   /* ALMOST GONE  — orange                   */
    --avail-sold:     #cc0000;   /* SOLD OUT     — red                      */
}

/* ============================================================
   1. RESET & BASE
============================================================ */
* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--teal-light);
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 0 0 8px;
}
.site-content {
    background-color: var(--white);
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden; /* prevents any child from bleeding past the boundary */
    box-shadow: -2px 0 8px rgba(0,0,0,0.08), 2px 0 8px rgba(0,0,0,0.08);
}
/* ============================================================
   2. NAV BAR
============================================================ */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border-pink);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Logo */
.nav-logo-link {
    display: inline-block;
    line-height: 0;
    cursor: pointer;
}

.nav-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.nav-logo-hover { display: none; }

.nav-logo-link:hover .nav-logo-default { display: none; }
.nav-logo-link:hover .nav-logo-hover   { display: block; }

.btn-nav-tickets {
    background: var(--purple);
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    padding: 9px 18px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-nav-tickets:hover {
    background: var(--purple-dark);
    transform: scale(1.03);
}

/* ============================================================
   3. HERO SLIDESHOW
============================================================ */
.hero-desktop-wrapper {
    display: block; /* mobile default; flex on desktop */
}

.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--slideshow-bg);
    aspect-ratio: 4 / 3;
    max-height: 480px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    background-size: cover;
    background-position: center top;
}

.slide.active { opacity: 1; }

.slideshow-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.slideshow-dot.active {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.2);
}

/* Hide arrows on mobile */
.slideshow-arrow { display: none; }

/* ============================================================
   4. SHOWTIMES — MOBILE SECTION
      (hidden on desktop; desktop version is in .hero-showtimes-panel)

============================================================ */
#showtimes {
    display: contents;
}
.hero-showtimes-panel { display: none; } /* shown on desktop only */

.showtimes-section-mobile {
    background: var(--white);
    padding: 24px 16px 16px;
}

.showtimes-section-mobile .section-heading-pink {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    font-weight: 800;
    color: var(--pink);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 6px;
}

.showtimes-subheading {
    font-size: 0.88rem;
    color: var(--sub-text);
    text-align: center;
    line-height: 1.5;
    margin: 0 0 20px;
}

.showtimes-subheading em {
    font-style: italic;
    font-weight: 700;
    color: var(--body-text);
}

/* ============================================================
   5. EVENT CARDS (shared — mobile section + desktop panel)
============================================================ */
.event-card {
    background: var(--soft-gray);
    border-radius: 0;
    padding: 20px 20px 0;   /* no bottom padding — button sits flush */
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;        /* clips button corners to card radius */
}

.event-card .event-date {
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 4px;
}

.event-card .event-time {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 16px;
}

/* Price hidden on mobile, shown on desktop panel */
.event-card .event-price { display: none; }

.event-card .availability-badge {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.availability-badge.yellow { color: var(--avail-selling); }
.availability-badge.orange { color: var(--avail-almost); }
.availability-badge.red    { color: var(--avail-sold); }

.btn-get-tickets {
    display: block;
    /* Bootstrap overrides — prevent .btn padding/margin from shrinking the button */
    width: calc(100% + 40px);   /* cancel the 20px padding on each side of .event-card */
    margin-left: -20px;
    margin-right: -20px;
    /* ---- */
    background: var(--teal);
    color: var(--purple);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    padding: 13px 0;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    /* Prevent Bootstrap from adding box-shadow on :focus */
    box-shadow: none !important;
}

.btn-get-tickets:hover { background: var(--purple); color: var(--soft-gray); }

.btn-get-tickets.sold-out {
    background: var(--disabled);
    cursor: not-allowed;
    pointer-events: none;
}

.more-showtimes-link {
    text-align: right;
    margin: 4px 0 20px;
}

.more-showtimes-link a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--body-text);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.more-showtimes-link a:hover { color: var(--pink); }

/* ============================================================
   6. CTA BAND
============================================================ */
.cta-band {
    background: var(--teal);
    padding: 28px 24px;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 18px;
}

.btn-cta-main {
    background: var(--purple);
    color: var(--soft-gray);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 50px;
    padding: 13px 36px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-transform: uppercase;
}

.btn-cta-main:hover {
    background: var(--purple-dark);
    color: var(--white);
    transform: scale(1.03);
}

/* ============================================================
   7. REVIEWS SECTION
============================================================ */
.reviews-section {
    background: var(--light-pink);
    padding: 32px 20px;
    text-align: center;
}

.reviews-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--pink);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.reviews-heading {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    font-weight: 800;
    color: var(--body-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Mobile: single card */
.reviews-desktop-row { display: none; }

.review-card {
    background: var(--white);
    border: 2px solid var(--teal);
    border-radius: 14px;
    padding: 22px 20px;
    max-width: 360px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-stars {
    font-size: 1rem;
    color: var(--pink);
    font-weight: 800;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mid-text);
    margin-bottom: 14px;
}

.review-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--body-text);
    margin: 0;
}

.review-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.review-nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--teal);
    padding: 0 4px;
    line-height: 1;
}

.review-nav button:hover { color: var(--pink); }

.review-dots { display: flex; gap: 6px; }

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--disabled-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.review-dot.active { background: var(--teal); }

/* ============================================================
   8. GENERAL INFO SECTION
============================================================ */
.info-section {
    background: var(--white);
    padding: 36px 20px 28px;
    text-align: center;
}

.info-section-heading {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 800;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.info-description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--mid-text);
    font-style: italic;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.info-description strong {
    font-style: normal;
    font-weight: 700;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    text-align: center;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child { border-bottom: none; }

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 4px;
}

.info-value {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.25;
}
.btn-google-maps {
        display: inline-block;
        margin-top: 10px;
        background: var(--soft-gray);
        color: var(--body-text);
        font-weight: 600;
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border: none;
        border-radius: 0;
        padding: 9px 28px;
        text-decoration: none;
        transition: background 0.2s;
        cursor: pointer;
}

.btn-google-maps:hover { background: var(--disabled-dark); color: var(--dark-text); }


/* ============================================================
   9. PRINCESSES SECTION
============================================================ */
.princesses-section {
    background: var(--light-pink);
    text-align: center;
}

.princesses-heading {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 800;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 20px 20px 16px;
    margin: 0;
}

/* Mobile: single photo */
.princesses-photo-grid { display: none; }

.princesses-photo-mobile {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #d4a8e8 0%, #f9c8e8 40%, #b8d4e8 100%);
    position: relative;
    overflow: hidden;
}

.princesses-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    opacity: 0.3;
}

.princesses-photo-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ============================================================
   10. EMAIL SIGNUP
============================================================ */
.email-signup-section {
    background: var(--white);
    padding: 28px 20px 24px;
    text-align: center;
}

.email-signup-heading {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    font-weight: 800;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    line-height: 1.2;
}

/* Klaviyo placeholder — replace div with <div class="klaviyo-form-XXXXX"></div> */
.klaviyo-placeholder {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.klaviyo-placeholder input[type="email"] {
    flex: 1;
    border: 2px solid var(--border-light);
    border-radius: 0;
    padding: 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--body-text);
    outline: none;
    transition: border-color 0.2s;
}

.klaviyo-placeholder input[type="email"]:focus { border-color: var(--purple); }
.klaviyo-placeholder input[type="email"]::placeholder { color: var(--placeholder); }

.klaviyo-placeholder button {
    background: var(--purple);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 0;
    padding: 11px 22px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.klaviyo-placeholder button:hover { background: var(--purple-dark); }

/* ============================================================
   11. PRODUCTION CREDIT BAND
============================================================ */
.production-band {
    background: var(--teal);
    padding: 18px 20px;
    text-align: center;
}

.production-band p {
    font-size: 0.9rem;
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}

.production-band a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
}

.production-band a:hover { opacity: 0.8; }

/* ============================================================
   12. FOOTER
============================================================ */
.footer-section {
    background: var(--footer-bg);
    padding: 24px 20px;
}

.ait-footer-section {
    background: var(--white);
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.ait-footer-section p,
.footer-section p {
    font-size: 0.78rem;
    color: var(--light-text);
    margin: 0;
}

.social-icons a {
    color: var(--sub-text);
    font-size: 1.2rem;
    margin: 0 6px;
    text-decoration: none;
}

.social-icons a:hover { color: var(--pink); }

.footer-section img,
.ait-footer-section img {
    max-width: 130px;
    height: auto;
}

/* ============================================================
   13. EVENTBRITE MODAL
============================================================ */
.eb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.eb-modal-overlay.active { display: flex; }

.eb-modal-box {
    background: var(--white);
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px 16px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.eb-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-text);
    cursor: pointer;
    line-height: 1;
}

.eb-modal-close:hover { color: var(--pink); }

.eb-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--body-text);
    margin-bottom: 14px;
    padding-right: 24px;
}

#eb-widget-container { min-height: 300px; }

/* ============================================================
   14. DESKTOP OVERRIDES  (min-width: 768px)
============================================================ */
@media (min-width: 768px) {

    /* Nav */
    .site-nav { padding: 14px 32px; }
    .nav-logo-placeholder .logo-script { font-size: 2rem; }
    .btn-nav-tickets { font-size: 0.88rem; padding: 10px 24px; }

    /* Hero: side-by-side layout */
    .hero-desktop-wrapper {
        display: flex;
        align-items: stretch;
        min-height: 480px;
    }

    .hero-desktop-wrapper .hero-slideshow {
        flex: 0 0 52%;
        max-height: none;
        aspect-ratio: unset;
    }

    /* Show arrows on desktop */
    .slideshow-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.25);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 1rem;
        cursor: pointer;
        z-index: 10;
        transition: background 0.2s;
    }

    .slideshow-arrow:hover { background: rgba(255,255,255,0.5); }
    .slideshow-arrow.prev  { left: 10px; }
    .slideshow-arrow.next  { right: 10px; }

    /* Desktop showtimes panel */
    .hero-showtimes-panel {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        background: var(--white);
        padding: 32px 28px 24px;
        border-left: 1px solid var(--border-pink);
    }

    .showtimes-section-mobile { display: none; }

    .showtimes-panel-heading {
        font-size: clamp(1.15rem, 3vw, 1.5rem);
        font-weight: 800;
        color: var(--pink);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.2;
        margin-bottom: 4px;
        text-align: center;
    }

    .showtimes-panel-subheading {
        font-size: 0.88rem;
        color: var(--purple);
        text-align: center;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .showtimes-panel-subheading em {
        font-style: italic;
        font-weight: 700;
        color: var(--pink);
    }

    /* Desktop panel cards have 18px side padding — adjust button to match */
    .hero-showtimes-panel .event-card {
        padding: 18px 18px 0;
    }

    .hero-showtimes-panel .event-card .btn-get-tickets {
        width: calc(100% + 36px);
        margin-left: -18px;
        margin-right: -18px;
    }

    /* Show price in desktop panel */
    .hero-showtimes-panel .event-card .event-price {
        display: block;
        font-size: 0.85rem;
        color: var(--sub-text);
        margin-bottom: 14px;
    }

    /* CTA band: inline */
    .cta-band {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 22px 48px;
    }

    .cta-band h2 {
        margin-bottom: 0;
        text-align: left;
        white-space: nowrap;
    }

    /* Reviews: 3-up */
    .reviews-mobile-carousel { display: none; }

    .reviews-desktop-row {
        display: flex;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .review-nav-arrow {
        flex: 0 0 36px;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--teal);
        cursor: pointer;
        padding: 0;
        line-height: 1;
        transition: color 0.2s;
    }

    .review-nav-arrow:hover { color: var(--pink); }

    .reviews-cards-track {
        flex: 1;
        display: flex;
        gap: 16px;
    }

    .review-card-desktop {
        flex: 1;
        background: var(--white);
        border: 2px solid var(--teal);
        border-radius: 14px;
        padding: 20px 18px;
        text-align: center;
        min-height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* General info: 2-col grid */
    .info-section {
        padding: 40px 48px 32px;
        max-width: 960px;
        margin: 0 auto;
    }

    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 40px;
    }

    /* Hide <hr> dividers on desktop — they become spurious grid children
       and push items out of column alignment */
    .info-grid .info-divider { display: none; }

    .info-item {
        border-bottom: none;
        padding: 0;
    }

    .info-item-location { grid-column: 1 / -1; }

    /* Princesses: 3-col grid */
    .princesses-photo-mobile { display: none; }

    .princesses-heading { padding: 24px 48px 20px; }

    .princesses-photo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .princesses-photo-grid-cell {
        aspect-ratio: 3 / 4;
        background-size: cover !important;
        background-position: center top !important;
        overflow: hidden;
        position: relative;
        background-repeat: no-repeat !important;
    }

    .princesses-photo-grid-cell:nth-child(1) { background: linear-gradient(135deg, #f9c8e8, #d4a8e8); }
    .princesses-photo-grid-cell:nth-child(2) { background: linear-gradient(135deg, #b8d4e8, #f9c8e8); }
    .princesses-photo-grid-cell:nth-child(3) { background: linear-gradient(135deg, #d4e8b8, #e8d4f9); }

    .cell-placeholder-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 64px;
        opacity: 0.3;
    }

    /* Email signup: grey bg, wider form */
    .email-signup-section {
        background: var(--email-bg);
        padding: 32px 48px;
    }

    .klaviyo-placeholder {
        max-width: 700px;
    }

    .klaviyo-placeholder input[type="email"],
    .klaviyo-placeholder button {
        font-size: 0.95rem;
        padding: 13px 16px;
    }

    .klaviyo-placeholder button { padding: 13px 32px; }
}