/* ============================================
   Wound Center — Custom Styles
   ============================================ */

/* --- Base & Utilities --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation --- */
.nav-text {
    color: #0A2342;
}

.nav-text-light {
    color: #759AB8;
}

.nav-btn {
    color: #0A2342;
}

/* Scroll-based navbar styling */
.navbar-scrolled .nav-text {
    color: #0A2342;
}

.navbar-scrolled .nav-text-light {
    color: #759AB8;
}

.navbar-scrolled .nav-btn {
    color: #0A2342;
}

#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E8EDF4;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #14B8A6;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- Hero Geometric Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    top: 30%;
    right: 5%;
    animation: float-slow 5s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(10, 35, 66, 0.05);
    border-radius: 16px;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: float-slow 7s ease-in-out infinite reverse;
}

.geo-square-2 {
    width: 50px;
    height: 50px;
    background: rgba(45, 212, 191, 0.15);
    border-radius: 12px;
    bottom: 25%;
    right: 15%;
    transform: rotate(-10deg);
    animation: float-slow 4s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(13, 148, 136, 0.08);
    top: 45%;
    left: 3%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.geo-square-1 { --rotation: 15deg; }
.geo-square-2 { --rotation: -10deg; }

/* --- 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, #2DD4BF, #14B8A6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* --- Process Steps --- */
.process-step {
    position: relative;
}

.process-step:hover .w-20 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-card.bg-midnight-800:hover {
    box-shadow: 0 20px 60px rgba(10, 35, 66, 0.3);
}

.testimonial-card.bg-midnight-50:hover {
    box-shadow: 0 20px 60px rgba(10, 35, 66, 0.1);
}

/* --- Form --- */
#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }

    .geo-circle-3 {
        display: none;
    }

    .geo-square-1 {
        width: 50px;
        height: 50px;
    }

    .geo-square-2 {
        display: none;
    }

    .geo-triangle-1 {
        display: none;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

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

/* --- Print --- */
@media print {
    nav, #mobile-menu, .geo-shape {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
