/* ========================================
   Family Counseling Center — Custom Styles
   ======================================== */

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

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

body {
    position: relative;
}

/* ========================================
   Decorative Background Shapes
   ======================================== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 212, 176, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.deco-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 176, 114, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.deco-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(61, 102, 49, 0.08) 0%, transparent 70%);
    top: 50%;
    right: 5%;
}

.deco-rect {
    position: absolute;
    pointer-events: none;
}

.deco-rect--1 {
    width: 120px;
    height: 120px;
    background: rgba(184, 212, 176, 0.08);
    border-radius: 24px;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
}

.deco-rect--2 {
    width: 80px;
    height: 80px;
    background: rgba(212, 176, 114, 0.08);
    border-radius: 16px;
    bottom: 20%;
    right: 8%;
    transform: rotate(-10deg);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 102, 49, 0.08);
}

.nav.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 4px 20px rgba(31, 54, 27, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3d6631;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu.open {
    max-height: 400px;
    padding-bottom: 1rem;
}

.mobile-link {
    position: relative;
    display: block;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d6631, #689f56);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast,
    .animate-spin-slow {
        animation: none;
    }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 102, 49, 0.15);
}

/* ========================================
   Focus Visible
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d6631;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Utility
   ======================================== */
::selection {
    background: #b8d4b0;
    color: #1f361b;
}
