/* ===== Base & Typography ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-200: #f9d0d9;
    --burgundy-300: #f4a8b8;
    --burgundy-400: #eb748b;
    --burgundy-500: #d94060;
    --burgundy-600: #c52246;
    --burgundy-700: #a11533;
    --burgundy-800: #781c27;
    --burgundy-900: #5a141e;
    --burgundy-950: #3d0b11;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Scroll Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 28, 39, 0.08);
}

.nav-text-primary {
    color: #781c27;
    transition: color 0.3s ease;
}

.nav-text-secondary {
    color: #c52246;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text-primary {
    color: #781c27;
}

#navbar.scrolled .nav-text-secondary {
    color: #a11533;
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: #f9d0d9;
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #f9d0d9;
}

/* ===== Hero ===== */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-subtext {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

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

.hero-cta-primary {
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(120, 28, 39, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Scroll Indicator ===== */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; }
    100% { top: 48px; }
}

/* ===== Section Common ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #781c27;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: #781c27;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
}

.section-title.text-burgundy-900 {
    color: #5a141e;
}

.section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ===== Services ===== */
.service-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(120, 28, 39, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(120, 28, 39, 0.12);
}

.service-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(120, 28, 39, 0.8);
    backdrop-filter: blur(8px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-content {
    padding: 24px;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--burgundy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #781c27;
    margin-bottom: 16px;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: #781c27;
    color: #fff;
}

.service-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b7280;
}

/* ===== About ===== */
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(120, 28, 39, 0.15);
}

.about-image-main {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 7/9;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(120, 28, 39, 0.2);
    border: 4px solid #fff;
}

.about-image-secondary {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-badge {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ===== Patient Experience ===== */
.experience-card {
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(120, 28, 39, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(120, 28, 39, 0.1);
}

.experience-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #781c27, #a11533);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}

.experience-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.experience-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ===== Contact ===== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--burgundy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #781c27;
    flex-shrink: 0;
}

.contact-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.contact-input::placeholder {
    color: #9ca3af;
}

.contact-input:focus {
    border-color: #781c27;
    box-shadow: 0 0 0 3px rgba(120, 28, 39, 0.1);
}

.contact-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23781c27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-submit {
    position: relative;
    overflow: hidden;
}

.contact-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-submit:hover::after {
    opacity: 1;
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .about-image-accent {
        display: none;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 24px;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-image-accent {
        width: 50%;
        right: -24px;
        bottom: -24px;
    }
}

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