/* ================================================================
   Just 4 Fun Photobooth, Shared Stylesheet
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:        #C8232A;
    --red-light:  #E8323A;
    --red-dark:   #9E1B21;
    --navy:       #1B4FA0;
    --navy-dark:  #0F3276;
    --navy-light: #2B6FD0;
    --sky:        #A8D4F5;
    --sky-light:  #D4EAFC;
    --gold:       #FFD700;
    --gold-dark:  #E6C200;
    --white:      #FFFFFF;
    --off-white:  #F8F9FF;
    --dark:       #0D1B3E;
    --gray:       #6B7280;
    --radius:     16px;
    --shadow:     0 8px 32px rgba(27,79,160,.15);
    --shadow-lg:  0 16px 48px rgba(27,79,160,.25);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background: var(--white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 10px 0;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 20px rgba(200,35,42,.12);
    transition: padding .3s, box-shadow .3s;
}
.nav.scrolled { padding: 6px 0; box-shadow: 0 4px 30px rgba(0,0,0,.15); }
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 58px; transition: transform .3s; display: block; }
.nav-logo img:hover { transform: scale(1.06) rotate(-2deg); }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem;
    padding: 8px 14px; border-radius: 50px; transition: all .25s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
    height: 3px; background: var(--red); border-radius: 2px; transition: all .25s;
}
.nav-links a:hover::after { left: 14px; right: 14px; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { left: 14px; right: 14px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
    font-weight: 800; color: var(--navy); font-size: .9rem;
    text-decoration: none; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav-phone:hover { color: var(--red); }
.nav-gallery-btn {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--sky);
    box-shadow: 0 3px 14px rgba(27,79,160,.12);
}
.nav-gallery-btn:hover {
    background: var(--sky-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
}
.nav-label-short { display: none; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px; border-radius: 50px; font-weight: 800; font-size: .95rem;
    text-decoration: none; cursor: pointer; border: none;
    transition: all .25s; font-family: 'Nunito', sans-serif; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; box-shadow: 0 4px 20px rgba(200,35,42,.4);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 28px rgba(200,35,42,.5); }
.btn-secondary { background: transparent; color: #fff; border: 3px solid #fff; }
.btn-secondary:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-secondary-navy { background: transparent; color: var(--navy); border: 3px solid var(--navy); }
.btn-secondary-navy:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark); font-size: 1.05rem; padding: 14px 36px;
    box-shadow: 0 4px 20px rgba(255,215,0,.5);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(255,215,0,.65); }
.btn-pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(255,215,0,.5); }
    50%      { box-shadow: 0 8px 40px rgba(255,215,0,.85), 0 0 0 10px rgba(255,215,0,.12); }
}

/* ── SECTION LABELS & TYPOGRAPHY ─────────────────────────── */
.section-label {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sky-light); color: var(--navy);
    padding: 6px 18px; border-radius: 50px; font-weight: 800; font-size: .8rem;
    margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.section-label.on-dark { background: rgba(168,212,245,.15); color: var(--sky); }
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    color: var(--navy-dark); line-height: 1.2; margin-bottom: 14px;
}
.section-title.on-dark { color: #fff; }
.section-title .accent { color: var(--red); }
.section-title .gold   { color: var(--gold); }
.section-subtitle { font-size: 1rem; color: var(--gray); line-height: 1.75; max-width: 580px; }
.section-subtitle.on-dark { color: rgba(255,255,255,.75); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
section { padding: 84px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
    opacity: 0; transition: opacity .7s ease, transform .7s ease;
}
.reveal       { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
    padding: 130px 24px 70px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(168,212,245,.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(200,35,42,.12) 0%, transparent 50%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,215,0,.15); border: 2px solid var(--gold);
    color: var(--gold); padding: 7px 20px; border-radius: 50px;
    font-weight: 800; font-size: .85rem; margin-bottom: 20px;
    animation: slideInDown .8s ease both;
}
.page-hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: #fff; line-height: 1.1; margin-bottom: 16px;
    animation: slideInDown .9s ease both .1s;
}
.page-hero h1 .highlight { color: var(--gold); }
.page-hero p {
    font-size: 1.05rem; color: rgba(255,255,255,.8);
    line-height: 1.7; margin-bottom: 28px;
    animation: slideInDown .9s ease both .2s;
}
.page-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: slideInDown .9s ease both .3s; }
.mobile-scroll-cue {
    display: none;
}
.mobile-scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 3px solid rgba(255,255,255,.62);
    border-bottom: 3px solid rgba(255,255,255,.62);
    transform: rotate(45deg);
}
@keyframes mobileScrollCueBounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
}

/* Floating stars (used on hero) */
.stars-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star {
    position: absolute; background: var(--gold); border-radius: 50%;
    animation: twinkle var(--dur,3s) ease-in-out infinite var(--delay,0s);
}
@keyframes twinkle {
    0%,100% { opacity:.2; transform:scale(.8); }
    50%      { opacity:1;  transform:scale(1.3); }
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 45%, var(--navy) 100%);
    padding: 100px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: '🎉📸✨🎊📷🌟'; position: absolute; font-size: 6rem; opacity: .04;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    white-space: nowrap; letter-spacing: 40px; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-title { font-family: 'Fredoka One', cursive; font-size: clamp(2.1rem,5vw,3.4rem); color: #fff; margin-bottom: 14px; line-height: 1.2; }
.cta-subtitle { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 40px; line-height: 1.65; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 32px;
}
.footer-logo { height: 62px; margin-bottom: 16px; filter: brightness(1.15); display: block; }
.footer-tagline { color: rgba(255,255,255,.58); font-size: .88rem; line-height: 1.65; max-width: 290px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    text-decoration: none; color: #fff; transition: all .3s;
}
.social-btn:hover { background: var(--red); transform: translateY(-4px); }
.footer-col-title { font-family: 'Fredoka One', cursive; font-size: 1.05rem; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.58); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 12px; }
.footer-contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: rgba(255,255,255,.38); font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.38); font-size: .82rem; text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

/* ── MOBILE NAV ───────────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; transition: all .3s; }
.mobile-nav {
    position: fixed; inset: 0; background: rgba(13,27,62,.97);
    z-index: 5000; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 30px;
    transform: translateX(100%); transition: transform .3s ease;
}
.mobile-nav.open { transform: none; }
.mobile-nav a { font-family: 'Fredoka One', cursive; font-size: 2rem; color: #fff; text-decoration: none; transition: color .2s; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 22px; right: 22px; z-index: 5001; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; }

/* ── KEYFRAMES ────────────────────────────────────────────── */
@keyframes slideInDown  { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:none} }
@keyframes slideInLeft  { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:none} }
@keyframes slideInRight { from{opacity:0;transform:translateX(30px)}  to{opacity:1;transform:none} }
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1040px) {
    .nav-phone { display: none; }
    .nav-label-full { display: none; }
    .nav-label-short { display: inline; }
}

@media (max-width: 768px) {
    .nav-links, .nav-phone { display: none; }
    .nav-hamburger { display: flex; }
    .nav { padding: 8px 0; }
    .nav-inner { padding: 0 12px; gap: 8px; }
    .nav-logo img { height: 44px; }
    .nav-cta { gap: 6px; margin-left: auto; }
    .nav-cta .btn {
        min-height: 36px;
        padding: 8px 10px;
        border-width: 2px;
        font-size: .76rem;
        box-shadow: none;
    }
    .nav-label-full { display: none; }
    .nav-label-short { display: inline; }
    .nav-hamburger { padding: 6px; }
    .nav-hamburger span { width: 22px; height: 3px; }
    .page-hero { padding-bottom: 96px; }
    .mobile-scroll-cue {
        position: absolute;
        left: 50%;
        bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 1;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        color: rgba(255,255,255,.62);
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .02em;
        animation: mobileScrollCueBounce 2.2s ease-in-out infinite;
        pointer-events: none;
    }
    .reveal-left, .reveal-right { transform: translateY(40px); }
    section { padding: 64px 20px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 380px) {
    .nav-logo img { height: 38px; }
    .nav-inner { padding: 0 10px; gap: 6px; }
    .nav-cta .btn { padding: 7px 8px; font-size: .72rem; }
}
