/* ============================================
   The Center For Behavior Therapy — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: #c478a2;
    color: white;
}

/* --- Navbar --- */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 244, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(217, 165, 194, 0.2);
    box-shadow: 0 1px 20px rgba(111, 48, 81, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled a {
    color: #6f3051;
}

.nav-scrolled a:hover {
    color: #a65180;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #6f3051 0%, #a65180 35%, #c478a2 60%, #f0a816 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(240, 168, 22, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(166, 81, 128, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(240, 168, 22, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Floating orbs in hero */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: rgba(251, 235, 219, 0.15);
    top: -100px;
    right: -100px;
    animation: float-orb 8s ease-in-out infinite;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: rgba(196, 120, 162, 0.2);
    bottom: -80px;
    left: -80px;
    animation: float-orb 10s ease-in-out infinite reverse;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Card Flip Hover --- */
.card-flip .group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Mobile Menu --- */
.mobile-link {
    display: block;
}

/* --- Form Select Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a65180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero::before,
    .hero::after {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero {
        min-height: 100svh;
    }
}
