/* ============================================
   Atlanta Veterinary Skin & Allergy Clinic
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #1a2336;
}

/* --- Navigation --- */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 35, 54, 0.08);
}

.navbar-scrolled .nav-logo-color,
.navbar-scrolled .nav-logo-text {
    color: #1a2336;
}

.navbar-scrolled .nav-logo-sub {
    color: #6688bf;
}

.navbar-scrolled .nav-menu-btn span {
    background: #1a2336;
}

.navbar-light .nav-logo-color,
.navbar-light .nav-logo-text {
    color: #ffffff;
}

.navbar-light .nav-logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

.navbar-light .nav-menu-btn span {
    background: #ffffff;
}

.navbar-light .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-light .nav-link:hover {
    color: #d4a84b;
}

.navbar-light .nav-logo-color {
    fill: #ffffff;
}

/* --- Mobile Menu --- */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .nav-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open .nav-menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .nav-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* --- Hero Animations --- */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subheadline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta-1 {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta-2 {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-trust {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Line --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

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

.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; }

/* --- Service Cards --- */
.service-card {
    position: relative;
    background: #ffffff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a84b, #e8c97a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* --- Approach Steps --- */
.approach-step {
    position: relative;
}

.approach-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a84b, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.approach-step.revealed::after {
    transform: scaleX(1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    background: #ffffff;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 35, 54, 0.08);
}

/* --- Form Styling --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #d4a84b !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #b8c8e3;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b8c8e3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fa8d1;
}

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

    .reveal {
        transform: translateY(20px);
    }

    .approach-step::after {
        display: none;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* --- 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
