/* Custom CSS Variables from Logo Color Palette */
:root {
    --color-primary: #1d94a5;
    --color-primary-light: #72c7d3;
    --color-accent-lime: #acce4f;
    --color-accent-green: #0d955a;
    --color-bg-light: #fbfcfb;
    --color-bg-dark: #122123;
    --color-text-dark: #1a2d30;
    --color-text-muted: #536c70;
    --color-white: #ffffff;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow-soft: 0 10px 30px rgba(29, 148, 165, 0.05);
    --box-shadow-medium: 0 15px 45px rgba(29, 148, 165, 0.1);
    --box-shadow-large: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(29, 148, 165, 0.3);
}

.btn-primary:hover {
    background-color: #167e8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 148, 165, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(29, 148, 165, 0.05);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(251, 252, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(29, 148, 165, 0.08);
    transition: var(--transition-smooth);
}

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

.logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(29, 148, 165, 0.08);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    margin-bottom: 24px;
    border-left: 3px solid var(--color-primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text-dark) 40%, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

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

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--color-white);
    padding: 40px 0;
    box-shadow: var(--box-shadow-soft);
    border-top: 1px solid rgba(29, 148, 165, 0.05);
    border-bottom: 1px solid rgba(29, 148, 165, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Specialties Section */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.specialty-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(29, 148, 165, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
    border-color: rgba(29, 148, 165, 0.15);
}

.specialty-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(29, 148, 165, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.specialty-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

.specialty-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Doctors Section */
.doctors-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.doctor-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(29, 148, 165, 0.03);
    max-width: 380px;
    width: 100%;
    transition: var(--transition-smooth);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}

.doctor-image-wrapper {
    height: 380px;
    overflow: hidden;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.doctor-info {
    padding: 30px;
}

.doctor-info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.doctor-specialty {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.doctor-bio {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--box-shadow-soft);
}

.gallery-item.large {
    grid-column: span 2;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 33, 35, 0.8), rgba(18, 33, 35, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-overlay span {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* About Section */
.about {
    background-color: rgba(29, 148, 165, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-title {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dark);
    font-weight: 500;
}

.about-point svg {
    color: var(--color-primary);
}

.about-card {
    background: linear-gradient(135deg, var(--color-primary), #126370);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    color: var(--color-white);
    box-shadow: var(--box-shadow-medium);
}

.about-card h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.value-item {
    margin-bottom: 24px;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-item h4 {
    color: var(--color-accent-lime);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.value-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Footer Brand Text Logo */
.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.text-teal {
    color: var(--color-primary-light);
}

.text-green {
    color: var(--color-accent-lime);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col-nav h4,
.footer-col-contact h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 4px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-icon {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Map Section Above Footer */
.map-section {
    width: 100%;
    height: 400px;
    background-color: #eee;
    border-top: 1px solid rgba(29, 148, 165, 0.08);
}

.map-overlay-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-overlay-container iframe {
    pointer-events: auto; /* Fully interactive on desktop */
}

.map-action-overlay {
    display: none; /* Hidden on desktop */
}

.map-overlay-container:hover .map-action-overlay {
    background-color: rgba(18, 33, 35, 0.25);
}

.route-trigger-btn {
    box-shadow: var(--box-shadow-large);
    background-color: var(--color-primary);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.route-trigger-btn:hover {
    background-color: #167e8c;
    transform: translateY(-2px);
}

/* Route Modal Styles */
.route-card {
    max-width: 420px !important;
}

.route-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.route-btn-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    transition: var(--transition-smooth);
    text-align: center;
}

.maps-option {
    background-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.maps-option:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
}

.waze-option {
    background-color: #33ccff;
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.2);
}

.waze-option:hover {
    background-color: #1eb9ee;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom a {
    color: var(--color-white);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--color-primary-light);
}

/* Pulsing heart animation */
.pulse-heart {
    display: inline-block;
    color: #ff3366;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsappFloatPulse 2s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappFloatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Modal Styling with Glassmorphism */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 33, 35, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-large);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(29, 148, 165, 0.08);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    padding: 4px;
}

.modal-close:hover {
    color: var(--color-text-dark);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Form controls */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(29, 148, 165, 0.2);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(29, 148, 165, 0.08);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-card {
        transform: none;
    }
    .hero-image-card:hover {
        transform: none;
    }
    .hero-img {
        height: 380px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
        transition: 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .header-cta .btn {
        display: none; /* Hide header CTA button on mobile, floating whatsapp does the job */
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .map-overlay-container iframe {
        pointer-events: none;
    }
    .map-action-overlay {
        display: flex;
        position: absolute;
        inset: 0;
        background-color: rgba(18, 33, 35, 0.15);
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        cursor: pointer;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .contact-info-item {
        justify-content: center;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
