/* ========================================
   Nueva Vida Behavioral - Custom Styles
   ======================================== */

/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Custom Properties */
:root {
    --color-navy: #0F172A;
    --color-navy-light: #1E293B;
    --color-gold: #D4A574;
    --color-gold-light: #E8C4A0;
    --color-gold-dark: #B8864E;
    --color-amber: #D97706;
    --color-amber-light: #F59E0B;
    --color-amber-50: #FFFBEB;
    --color-amber-100: #FEF3C7;
    --color-amber-200: #FDE68A;
    --color-teal: #0D9488;
    --color-rose: #F43F5E;
    --font-body: 'DM Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: #475569;
    line-height: 1.6;
    overflow-x: hidden;
}

.font-dm-sans {
    font-family: var(--font-body);
}

.font-playfair {
    font-family: var(--font-heading);
}

/* Navbar */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-gold-dark) !important;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #FEF3C7 50%, #F0FDFA 100%);
    min-height: 100vh;
    position: relative;
}

.hero-blob-1 {
    background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 0%, transparent 70%);
    animation: float-blob 8s ease-in-out infinite;
}

.hero-blob-2 {
    background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
    animation: float-blob 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    animation: float-blob 6s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Content Animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-gold-dark) 100%);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-amber-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Input Fields */
.input-field {
    background: #F8FAFC;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-navy);
}

.input-field::placeholder {
    color: #94A3B8;
}

.input-field:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* About Images */
.about-images img {
    transition: transform 0.5s ease;
}

.about-images:hover img:first-child {
    transform: translateY(-8px);
}

.about-images:hover img:last-child {
    transform: translateY(8px);
}

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

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold), var(--color-amber));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* Back to Top */
#back-to-top {
    background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-gold-dark) 100%);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .about-images {
        margin-bottom: 2rem;
    }
}

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