/* ========================================
   Pelfrey Counseling — Custom Styles
   ======================================== */

/* Color Palette */
:root {
    --terracotta: #C4704B;
    --terracotta-light: #D4896A;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D8;
    --stone-800: #2D2A26;
    --stone-600: #6B6560;
    --stone-400: #A8A29E;
    --stone-200: #E7E5E4;
    --stone-100: #F5F5F4;
    --white: #FFFFFF;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--white);
}

.font-serif {
    font-family: 'Lora', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom Colors */
.text-terracotta { color: var(--terracotta); }
.bg-terracotta { background-color: var(--terracotta); }
.text-sand { color: var(--sand); }
.bg-sand { background-color: var(--sand); }

/* Navigation */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .text-stone-800 {
    color: var(--stone-800);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hero Animations */
.hero-subtitle {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-desc {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Labels */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Section Titles */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Service Cards */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(196, 112, 75, 0.08);
}

/* Approach Steps */
.approach-step {
    transition: all 0.5s ease;
}

.approach-step:hover {
    background: var(--sand);
}

/* Form Styles */
input:focus,
textarea:focus {
    border-color: var(--terracotta) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--stone-400);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sand);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-headline {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 769px) {
    .hero-headline {
        font-size: 4.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5.5rem !important;
    }
}

/* Print Styles */
@media print {
    #navbar,
    .hero-cta,
    #contact-form {
        display: none;
    }
}
