/* ===== VARIABLES ===== */
:root {
    --burgundy: #800020;
    --burgundy-light: #9B2847;
    --burgundy-dark: #5C0017;
    --rose: #C4687A;
    --rose-light: #E8A0AE;
    --pink-bg: #FDF5F7;
    --cream: #FFF8F2;
    --cream-dark: #FFF0DB;
    --white: #FFFFFF;
    --dark: #2D2026;
    --dark-muted: #5A4A50;
    --gray: #8A7A80;
    --gray-light: #C5B8BC;
    --gray-lighter: #EDE7E9;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito Sans', -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(93, 0, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(93, 0, 26, 0.08);
    --shadow-lg: 0 8px 40px rgba(93, 0, 26, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--pink-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--burgundy-light);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.service-card, .location-card, .contact-card, .about-image-wrapper, .about-text-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-card:nth-child(2), .location-card:nth-child(2), .contact-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3), .location-card:nth-child(3), .contact-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4), .location-card:nth-child(4), .contact-card:nth-child(4) { transition-delay: 0.3s; }
.location-card:nth-child(5) { transition-delay: 0.4s; }

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0;
    transition: all 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 4px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

#navbar.scrolled .nav-logo img {
    height: 70px;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

#nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

#nav-menu li a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

#nav-menu li a:hover {
    background: rgba(128, 0, 32, 0.08);
    color: var(--burgundy);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-bg) 0%, #FBE8ED 50%, var(--cream) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    animation: fadeUp 0.8s ease forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--burgundy);
    font-style: italic;
}

.hero-name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 15px;
    color: var(--dark-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border: 2px solid var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-light);
    border-color: var(--burgundy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    flex: 0 0 380px;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--rose-light);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
}

/* ===== SECTIONS ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--dark-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT ===== */
#about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
}

.about-image-caption {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

.about-intro {
    margin-bottom: 32px;
}

.about-intro p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--dark-muted);
    line-height: 1.8;
}

.about-intro strong {
    color: var(--dark);
    font-weight: 600;
}

.about-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-lighter);
    padding-bottom: 0;
}

.tab-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--dark);
}

.tab-btn.active {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-list {
    list-style: none;
}

.tab-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-lighter);
    align-items: flex-start;
}

.tab-list li:last-child {
    border-bottom: none;
}

.tab-year {
    flex-shrink: 0;
    min-width: 80px;
    font-size: 13px;
    font-weight: 700;
    color: var(--burgundy);
    padding-top: 2px;
}

.tab-year i {
    font-size: 18px;
}

.tab-text {
    font-size: 15px;
    color: var(--dark-muted);
    line-height: 1.6;
}

.tab-text strong {
    color: var(--dark);
}

/* ===== SERVICES ===== */
#services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--pink-bg) 0%, #FBE8ED 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rose-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 14px;
    margin-bottom: 20px;
}

.service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-icon i {
    font-size: 24px;
    color: var(--burgundy);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    font-size: 14px;
    color: var(--dark-muted);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose-light);
}

/* ===== LOCATIONS ===== */
#locations {
    padding: 100px 0;
    background: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.location-card {
    background: var(--pink-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s ease;
    border: 1px solid var(--gray-lighter);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.location-card.featured {
    border-color: var(--rose-light);
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF0F3 100%);
}

.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.location-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.location-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--cream-dark);
    color: var(--dark-muted);
}

.location-badge.hospital {
    background: var(--burgundy);
    color: var(--white);
}

.location-info p {
    font-size: 14px;
    color: var(--dark-muted);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.location-info i {
    color: var(--rose);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.location-info a {
    color: var(--dark-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.location-info a:hover {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

/* ===== CONTACT ===== */
#contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--pink-bg) 0%, #F5E1E6 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rose-light);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 22px;
    color: var(--burgundy);
}

.contact-card:hover .contact-icon {
    background: var(--burgundy);
}

.contact-card:hover .contact-icon i {
    color: var(--white);
}

.contact-icon.whatsapp-icon { background: #E8F5E9; }
.contact-icon.whatsapp-icon i { color: #25D366; }
.contact-card:hover .contact-icon.whatsapp-icon { background: #25D366; }
.contact-card:hover .contact-icon.whatsapp-icon i { color: var(--white); }

.contact-icon.instagram-icon { background: #FDE8EF; }
.contact-icon.instagram-icon i { color: #E1306C; }
.contact-card:hover .contact-icon.instagram-icon { background: #E1306C; }
.contact-card:hover .contact-icon.instagram-icon i { color: var(--white); }

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 13px;
    color: var(--gray);
    word-break: break-all;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    padding: 48px 24px;
    text-align: center;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin: 0 auto 20px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-title {
    font-size: 14px;
    color: var(--rose-light);
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 12px;
    color: var(--gray);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--burgundy-light);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-col {
        max-width: 500px;
    }
    
    .hero-image {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    #nav-menu.open {
        right: 0;
    }
    
    #nav-menu li a {
        font-size: 16px;
        padding: 14px 0;
        display: block;
        border-bottom: 1px solid var(--gray-lighter);
    }
    
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-image {
        flex: none;
        width: 220px;
    }
    
    .hero-image-wrapper::before {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-desc br {
        display: none;
    }
    
    #about, #services, #locations, #contact {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}
