/* ========================================
   Balance Massage Therapeutics
   Custom Styles
   ======================================== */

:root {
    --navy-900: #0C1E3A;
    --navy-800: #132D52;
    --gold: #D4A84B;
    --gold-light: #E8C477;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Color Classes
   ======================================== */
.text-navy-900 { color: var(--navy-900); }
.bg-navy-900 { background-color: var(--navy-900); }
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(12, 30, 58, 0.08);
    backdrop-filter: blur(12px);
}

.nav-text {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-text {
    color: var(--navy-900);
}

.nav-icon-color {
    transition: fill 0.4s ease, stroke 0.4s ease, color 0.4s ease;
}

#navbar.scrolled .nav-icon-color {
    color: var(--navy-900);
}

#navbar.scrolled .nav-icon-color path[fill*="#D4A84B"],
#navbar.scrolled .nav-icon-color circle[fill*="#D4A84B"] {
    fill: var(--gold);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: var(--navy-900);
}

#navbar.scrolled .nav-link:hover {
    color: var(--gold);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(12, 30, 58, 0.06);
}

/* ========================================
   Geometric Shapes
   ======================================== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gold);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gold);
    bottom: 20%;
    left: 5%;
    opacity: 0.05;
    animation-delay: 2s;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--gold);
    top: 30%;
    right: 15%;
    opacity: 0.06;
    animation-delay: 1s;
    transform: rotate(15deg);
}

.square {
    width: 100px;
    height: 100px;
    background: var(--gold);
    bottom: 15%;
    right: 5%;
    opacity: 0.05;
    animation-delay: 3s;
    transform: rotate(45deg);
}

.ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    top: 20%;
    left: 40%;
    opacity: 0.07;
    animation-delay: 4s;
}

.about-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--gold);
    bottom: -200px;
    right: -150px;
    opacity: 0.06;
    animation-delay: 1s;
}

.about-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid var(--gold);
    top: 10%;
    left: 10%;
    opacity: 0.05;
    animation-delay: 2s;
    transform: rotate(-20deg);
}

.wellness-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--navy-900);
    top: -80px;
    left: -80px;
    opacity: 0.08;
    animation-delay: 0s;
}

.wellness-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--navy-900);
    bottom: -50px;
    right: 10%;
    opacity: 0.1;
    animation-delay: 3s;
}

.cta-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gold);
    top: -120px;
    left: -100px;
    opacity: 0.07;
    animation-delay: 2s;
}

.cta-square {
    width: 80px;
    height: 80px;
    background: var(--gold);
    bottom: 10%;
    right: 8%;
    opacity: 0.06;
    animation-delay: 4s;
    transform: rotate(30deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 75, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 75, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

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

.reveal.visible {
    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; }

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span {
        font-size: 2rem;
    }

    .geo-shape {
        display: none;
    }

    .circle-1, .circle-2, .triangle, .square, .ring {
        display: none;
    }

    .about-circle, .about-triangle {
        display: none;
    }

    .wellness-circle, .wellness-ring {
        display: none;
    }

    .cta-circle, .cta-square {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: var(--gold);
    color: var(--navy-900);
}

/* ========================================
   Smooth image loading
   ======================================== */
img {
    image-rendering: auto;
    will-change: object-fit;
}
