/* ============================================
   All In Health — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #064e3b;
    color: #fefdf8;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav-link {
    position: relative;
}

.menu-line {
    transform-origin: center;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero-headline {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* ============================================
   SECTION EYEBROWS
   ============================================ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   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, #064e3b, #059669);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ============================================
   REVEAL ANIMATIONS
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ============================================
   FORM INPUTS
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* ============================================
   MAP OVERLAY
   ============================================ */
iframe {
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-headline br {
        display: none;
    }
}

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

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

@media (min-width: 1280px) {
    .hero-headline {
        font-size: 6.5rem;
    }
}
