/* ============================================
   DR. RAYMOND RODRIGUEZ — KEY WEST MEDICAL
   Clean Minimalist | Burgundy & Blush
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(123, 45, 59, 0.15);
    color: #3a121a;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(250, 249, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #7B2D3B;
    color: #faf9f8;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #7B2D3B;
}

.btn-primary:hover {
    background: #5c1f2b;
    border-color: #5c1f2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #7B2D3B;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(123, 45, 59, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    border-color: #7B2D3B;
    background: rgba(123, 45, 59, 0.04);
}

/* ---- Typography ---- */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

/* ---- Hero Animations ---- */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-image-wrapper {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-card {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 1; height: 64px; }
}

/* ---- Divider ---- */
.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(123, 45, 59, 0.15), transparent);
}

/* ---- About ---- */
.about-image-accent {
    z-index: 0;
}

.about-stat {
    border-left: 1px solid rgba(123, 45, 59, 0.2);
    padding-left: 16px;
}

/* ---- Services ---- */
.service-card {
    position: relative;
}

.service-icon {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    opacity: 1;
}

/* ---- Philosophy ---- */
.value-item {
    border-bottom: 1px solid rgba(123, 45, 59, 0.1);
    padding-bottom: 16px;
}

.value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ---- Contact Form ---- */
.form-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #90887c;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(144, 136, 124, 0.3);
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #36312d;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #b0a89c;
}

.form-input:focus {
    border-bottom-color: #7B2D3B;
}

.form-input:hover:not(:focus) {
    border-bottom-color: rgba(144, 136, 124, 0.6);
}

/* ---- Contact Info ---- */
.contact-info-label {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Mobile Menu ---- */
.menu-line,
.menu-line-close {
    display: block;
    width: 24px;
    height: 1px;
    background: #36312d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

#menu-close.active .menu-line-close:nth-child(1) {
    transform: rotate(45deg) translate(4px, -4px);
}

#menu-close.active .menu-line-close:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

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

/* ---- Scroll Reveal ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 24px;
        max-width: 100%;
    }
    
    .about-image-accent,
    .philosophy-image-accent {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image {
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .hero-image {
        height: 600px;
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* ---- Print ---- */
@media print {
    #navbar,
    .scroll-indicator,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
