/* ============================================================
   THEME - "Modern Celebration"   |   North Texas Party Central
   ------------------------------------------------------------
   A warm, premium event-brand layer over style.css. Festive
   rose + midnight indigo + champagne gold on warm cream;
   Fraunces display serif + Hanken Grotesk. Loaded site-wide
   after style.css and animations.css.

   Sections:  1 Tokens  2 Base/atmosphere  3 Typography
              4 Buttons  5 Header/nav  6 Hero  7 Sections
              8 Cards  9 Steps/specials  10 Party pages
              11 Footer/misc  12 Motion  13 Responsive
   ============================================================ */

/* 1 ---- Tokens ---------------------------------------------- */
:root {
    --font-heading: 'Fraunces', 'Georgia', serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

    --t-cream: #FBF5EE;
    --t-cream-deep: #F3E9DC;
    --t-ink: #1B1E30;
    --t-muted: #6b6275;
    --t-line: #ECE1D2;

    --t-shadow-sm: 0 2px 8px rgba(27, 30, 48, 0.06);
    --t-shadow: 0 14px 36px -16px rgba(27, 30, 48, 0.28);
    --t-shadow-lg: 0 32px 64px -24px rgba(27, 30, 48, 0.42);
    --t-shadow-rose: 0 14px 28px -10px rgba(232, 69, 95, 0.5);

    --t-radius: 20px;
    --t-ease: cubic-bezier(.2, .7, .3, 1);
    --t-bounce: cubic-bezier(.34, 1.45, .5, 1);
}

/* 2 ---- Base / atmosphere ---------------------------------- */
body {
    font-family: var(--font-body);
    background-color: var(--t-cream);
    background-image:
        radial-gradient(58rem 58rem at 88% -10%, rgba(235, 168, 58, 0.16), transparent 60%),
        radial-gradient(48rem 48rem at -12% 14%, rgba(232, 69, 95, 0.10), transparent 60%);
    background-attachment: fixed;
    color: #353849;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--t-ink); }

/* Custom scrollbar (desktop) */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 12px; height: 12px; }
    ::-webkit-scrollbar-track { background: var(--t-cream-deep); }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(var(--primary), var(--secondary));
        border-radius: 8px; border: 3px solid var(--t-cream-deep);
    }
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* 3 ---- Typography ----------------------------------------- */
h1, h2, h3, h4, h5,
.hero-title, .section-title, .card-title, .step-title,
.special-card-title, .footer-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--t-ink);
}
p { line-height: 1.7; }

/* 4 ---- Buttons -------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--t-bounce), box-shadow .2s var(--t-ease), background .2s ease;
}
/* light sweep on hover */
.btn::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 70%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left .55s var(--t-ease);
}
.btn:hover::after { left: 130%; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--t-shadow-rose);
}
.btn-primary:hover {
    background: #d83651;
    transform: translateY(-3px);
    box-shadow: 0 20px 38px -12px rgba(232, 69, 95, 0.6);
}
.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}
.btn-outline:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }
.btn-white { color: var(--secondary); }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.02rem; }
.btn:active { transform: translateY(-1px) scale(.99); }

/* 5 ---- Header / navigation -------------------------------- */
.site-header {
    background: rgba(251, 245, 238, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--t-line);
    box-shadow: var(--t-shadow-sm);
}
.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t-ink);
}
.nav-menu a { font-weight: 600; }
.nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    margin-top: 3px;
}
.nav-cart svg { color: var(--secondary); }

/* 6 ---- Hero ----------------------------------------------- */
.hero {
    background:
        radial-gradient(40rem 28rem at 78% 12%, rgba(235, 168, 58, 0.42), transparent 62%),
        radial-gradient(34rem 30rem at 14% 92%, rgba(232, 69, 95, 0.55), transparent 60%),
        linear-gradient(155deg, #2C3A5E 0%, #3a2c54 48%, #6e2748 100%);
    position: relative;
    overflow: hidden;
}
.hero::after {                       /* drifting confetti speckle */
    content: "";
    position: absolute;
    inset: -10% 0 0 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #EBA83A 38%, transparent 40%),
        radial-gradient(circle, #E8455F 38%, transparent 40%),
        radial-gradient(circle, #FBF5EE 38%, transparent 40%),
        radial-gradient(circle, #1FA98A 38%, transparent 40%);
    background-size: 26px 26px, 34px 34px, 22px 22px, 30px 30px;
    background-position: 8% 24%, 82% 70%, 64% 16%, 30% 84%;
    background-repeat: no-repeat;
    opacity: 0.85;
    animation: t-confetti-drift 9s ease-in-out infinite alternate;
}
@keyframes t-confetti-drift {
    from { transform: translateY(-6px) rotate(-1deg); }
    to   { transform: translateY(10px) rotate(1.5deg); }
}
.hero-content { position: relative; z-index: 3; }
.hero-title {
    font-weight: 600;
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}
.hero-title::before {
    content: "Full-service celebrations";
    display: block;
    font-family: var(--font-body);
    font-size: clamp(.72rem, 1.4vw, .82rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
/* Staggered hero reveal */
.hero-title  { animation: t-rise .7s var(--t-ease) both .05s; }
.hero-subtitle { animation: t-rise .7s var(--t-ease) both .2s; }
.hero-cta    { animation: t-rise .7s var(--t-ease) both .35s; }
@keyframes t-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Cartoon balloons -> soft celebratory bokeh */
.balloon-float {
    border-radius: 50% !important;
    filter: blur(1px);
    opacity: 0.5;
    box-shadow: none !important;
    mix-blend-mode: screen;
}
.balloon-float::before, .balloon-float::after { display: none !important; }

/* 7 ---- Sections + headings -------------------------------- */
.bg-light { background: var(--t-cream-deep) !important; }
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.95rem);
    line-height: 1.1;
}
.section-title::after {
    content: "";
    display: block;
    width: 64px; height: 4px;
    border-radius: 4px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-subtitle {
    color: var(--t-muted);
    font-size: 1.06rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}
.section + .section::before {            /* editorial dot divider */
    content: "\2022  \2022  \2022";
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    margin: -0.5rem 0 1.6rem;
    opacity: 0.7;
}

/* 8 ---- Cards ---------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow-sm);
    overflow: hidden;
    transition: transform .28s var(--t-ease), box-shadow .28s var(--t-ease), border-color .28s ease;
}
.card:hover {
    transform: translateY(-9px);
    box-shadow: var(--t-shadow-lg);
    border-color: rgba(235, 168, 58, 0.65);
}
.card-image { overflow: hidden; background: var(--t-cream-deep); }
.card-image img { transition: transform .6s var(--t-ease); width: 100%; }
.card:hover .card-image img { transform: scale(1.08); }
.card-title a { color: inherit; transition: color .15s ease; }
.card-title a:hover { color: var(--primary); }
.card-category {
    color: var(--secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.card-price { font-family: var(--font-heading); color: var(--primary); font-weight: 600; }
.card-badge {
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
    box-shadow: var(--t-shadow-sm);
}
.card-badge-accent { background: var(--accent); color: var(--t-ink); }

/* 9 ---- Steps / specials ----------------------------------- */
.step-icon { border-radius: 22px; box-shadow: var(--t-shadow); }
.step-description { color: var(--t-muted); }
.special-card { border-radius: var(--t-radius); box-shadow: var(--t-shadow); }
.special-ribbon { font-family: var(--font-body); font-weight: 800; letter-spacing: 0.03em; }

/* 10 ---- Party pages --------------------------------------- */
.party-hero {
    background:
        radial-gradient(34rem 26rem at 80% 6%, rgba(235, 168, 58, 0.38), transparent 62%),
        linear-gradient(155deg, #2C3A5E 0%, #3a2c54 50%, #6e2748 100%);
}
.party-type-card, .package-card, .builder-panel, .party-summary { border-radius: var(--t-radius); }
.party-type-card-top { background: linear-gradient(140deg, var(--primary) 0%, var(--accent) 100%); }
.package-price { font-family: var(--font-heading); font-weight: 600; }

/* 11 ---- Footer / misc ------------------------------------- */
.breadcrumb { font-size: 0.85rem; }
.site-footer { background: var(--t-ink); }
.footer-heading { font-family: var(--font-heading); font-weight: 600; }
.alert { border-radius: 14px; }

/* 12 ---- Motion / a11y ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 13 ============ RESPONSIVE — mobile-perfect pass ========== */

/* Tablet */
@media (max-width: 1024px) {
    .hero::after { background-size: 22px, 28px, 18px, 24px; }
}

/* Phones (<=768px) */
@media (max-width: 768px) {
    body { background-attachment: scroll; }

    .hero { padding-top: 2.6rem; padding-bottom: 3.4rem; }
    .hero::after { opacity: 0.55; background-size: 16px, 22px, 14px, 18px; }
    .hero-title::before { letter-spacing: 0.16em; }
    .hero-cta { display: flex; flex-direction: column; gap: 0.75rem; }
    .hero-cta .btn { width: 100%; }

    .section-title::after { margin-top: 0.7rem; }
    .section + .section::before { margin: -0.25rem 0 1.1rem; }

    /* Tap targets */
    .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
    .nav-cart, .nav-toggle, .nav-auth-link { min-width: 44px; min-height: 44px; }

    /* Cards lift less aggressively on touch */
    .card:hover { transform: translateY(-4px); }
    .card:active { transform: scale(0.99); }
}

/* Small phones (<=480px) */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.1rem, 8.5vw, 2.8rem); }
    .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
    .section-subtitle { font-size: 0.98rem; }
    .btn-lg { padding: 0.85rem 1.4rem; font-size: 0.96rem; }
    .card-badge { font-size: 0.62rem; }
}
