/* ============================================================
   EFFECTS CSS — Rainey Autism Therapy Center (Premium Edition)
   ============================================================ */

/* ── Particles Canvas ───────────────────────────────────── */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* ── Logo wrapper & butterfly orbit ─────────────────────── */
.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(243,138,34,0.5));
    transition: filter 0.4s ease;
}
.logo-img:hover { filter: drop-shadow(0 0 20px rgba(244,160,33,0.9)); }

.butterfly {
    position: absolute;
    pointer-events: none;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    will-change: transform;
}
.b1 { font-size: 0.95rem; top:-6px;  left:-18px;  filter:hue-rotate(0deg);   animation: flutter 3.8s linear infinite; }
.b2 { font-size: 0.80rem; bottom:-4px; right:-16px; filter:hue-rotate(90deg);  animation: flutter 5.2s linear infinite reverse; }
.b3 { font-size: 0.70rem; top:18px;  right:-22px; filter:hue-rotate(200deg); animation: flutter 4.5s linear infinite 0.5s; }
.b4 { font-size: 0.65rem; bottom:8px; left:-20px; filter:hue-rotate(280deg); animation: flutter 6.1s linear infinite reverse 1s; }

@keyframes flutter {
    0%   { transform: translate(0,0)     rotate(0deg)  scale(1);    opacity:.8; }
    20%  { transform: translate(10px,-14px) rotate(20deg) scale(1.1); opacity:1; }
    40%  { transform: translate(16px,2px)   rotate(-10deg) scale(.95); opacity:.9; }
    60%  { transform: translate(4px,14px)  rotate(15deg) scale(1.05); opacity:1; }
    80%  { transform: translate(-12px,4px)  rotate(-15deg) scale(.9); opacity:.8; }
    100% { transform: translate(0,0)     rotate(0deg)  scale(1);    opacity:.8; }
}

/* ── Scroll Progress Bar ─────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #F38A22, #D4AF37, #A8DADC);
    z-index: 9999;
    box-shadow: 0 0 8px rgba(244,160,33,0.7);
    transition: width 0.08s linear;
}

/* ── Navbar scroll-shrink ───────────────────────────────── */
.top-nav { transition: padding 0.35s ease, background 0.35s ease; }
.top-nav.shrunk {
    padding: 10px 0;
    background: rgba(12, 20, 40, 0.92);
    backdrop-filter: blur(18px);
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
                transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Heading animated underline ─────────────────────────── */
.section-header h2, .col-header h2, .about-header h2, .book-title {
    position: relative;
    display: inline-block;
}
.section-header h2::after, .col-header h2::after, .about-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0%; height: 2px;
    background: linear-gradient(90deg, #F38A22, #D4AF37, #A8DADC);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212,175,55,0.5);
    transition: width 0.65s cubic-bezier(0.22,1,0.36,1);
}
.section-header h2.visible::after, .col-header h2.visible::after, .about-header h2.visible::after { width: 100%; }

/* ── Service Card 3-D Tilt ───────────────────────────────── */
.project-card {
    transition: box-shadow 0.4s ease, transform 0.1s ease;
    cursor: pointer;
    will-change: transform;
}
.project-card:hover {
    box-shadow: 0 24px 50px rgba(212,175,55,0.22), 0 0 0 1px rgba(212,175,55,0.18);
}

/* ── Cursor sparkle ─────────────────────────────────────── */
.cursor-sparkle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: sparkle-fade 0.55s ease forwards;
}
@keyframes sparkle-fade {
    0%   { opacity:.9; transform: scale(1.4); }
    100% { opacity:0;  transform: scale(0); }
}

/* ── Floating back-to-top button ────────────────────────── */
.scroll-indicator {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 200;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.3s, transform 0.3s;
    animation: bounce-pulse 2.2s ease-in-out infinite;
}
.scroll-indicator:hover { background: rgba(212,175,55,0.35); transform: scale(1.12); }
.scroll-indicator svg { width:18px; height:18px; fill:none; stroke:#D4AF37; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
@keyframes bounce-pulse { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ═══════════════════════════════════════════════════════════
   BOOK APPOINTMENT — Full-Width Split Panel (NEW DESIGN)
   ═══════════════════════════════════════════════════════════ */
.book-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 85vh;
    margin-bottom: 80px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Left info panel */
.book-left {
    background: linear-gradient(145deg, rgba(29,53,87,0.95) 0%, rgba(15,25,50,0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow */
.book-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(243,138,34,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.book-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #F38A22;
    font-family: 'Oswald', sans-serif;
}
.book-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    line-height: 1.1;
    color: #F8F9FA;
    text-transform: uppercase;
}
.book-subtitle {
    font-size: 0.9rem;
    color: #A8DADC;
    line-height: 1.7;
    max-width: 340px;
}

/* Stats row */
.book-stats {
    display: flex;
    gap: 30px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #D4AF37;
    display: inline-block;
    line-height: 1;
}
.stat-unit { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: #F38A22; }
.stat-item p { font-size: 0.72rem; color: #A8DADC; letter-spacing: 1px; margin-top: 5px; }

/* Quote */
.book-quote {
    border-left: 3px solid #D4AF37;
    padding-left: 18px;
}
.book-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: #F8F9FA;
    margin-bottom: 6px;
}
.book-quote span { font-size: 0.75rem; color: #D4AF37; letter-spacing: 1px; }

/* Therapist chips */
.therapist-chips { display: flex; flex-direction: column; gap: 12px; }
.chip {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 40px;
    padding: 8px 16px 8px 8px;
    transition: background 0.3s;
}
.chip:hover { background: rgba(212,175,55,0.08); }
.chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #D4AF37; }
.chip strong { display: block; font-size: 0.82rem; color: #F8F9FA; }
.chip span { font-size: 0.72rem; color: #A8DADC; }

/* Right form panel */
.book-right {
    background: rgba(12,22,48,0.75);
    backdrop-filter: blur(24px);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form styles */
.booking-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 8px;
}

.field-row { display: flex; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-group.full-width { width: 100%; flex: unset; }
.field-group label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #A8DADC;
    text-transform: uppercase;
}

/* Inputs — glowing underline style (no heavy box) */
.booking-form input,
.booking-form select,
.booking-form textarea {
    background: rgba(255,255,255,0.04);
    border: none;
    border-bottom: 1.5px solid rgba(255,255,255,0.15);
    padding: 11px 4px;
    color: #F8F9FA;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-bottom-color: #D4AF37;
    background: rgba(212,175,55,0.04);
}
.booking-form input::placeholder,
.booking-form textarea::placeholder { color: rgba(255,255,255,0.25); font-size: 0.85rem; }
.booking-form select { cursor: pointer; appearance: none; }
.booking-form select option { background: #0f1930; color: #fff; }
.booking-form textarea { resize: none; }

/* Submit */
.submit-btn {
    margin-top: 6px;
    background: linear-gradient(90deg, #F38A22, #D4AF37);
    color: #0a1020;
    border: none;
    padding: 16px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 20px rgba(243,138,34,0.3);
    text-transform: uppercase;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(243,138,34,0.5);
    filter: brightness(1.08);
}
.btn-arrow { font-size: 1.2rem; transition: transform 0.3s; }
.submit-btn:hover .btn-arrow { transform: translateX(5px); }

/* Success message */
.form-success {
    display: none;
    text-align: center;
    font-size: 0.9rem;
    color: #A8DADC;
    background: rgba(168,218,220,0.08);
    border: 1px solid rgba(168,218,220,0.2);
    border-radius: 6px;
    padding: 12px;
}
.form-success.show { display: block; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
