@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #ecfdf5;
    --navy: #1f2937;
    --navy-light: #374151;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-white: #f9fafb;
    --bg-light: #ffffff;
    --bg-tint: #f0fdf4;
    --azure: #3b82f6;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

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

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

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

.btn-emergency {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-emergency i {
    width: 1rem;
    height: 1rem;
}

.btn-emergency:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Header */
header {
    height: 4rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.logo i {
    background-color: var(--primary);
    color: white;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    font-size: 1.1rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-muted);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: var(--transition);
}

.book-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.book-link i {
    width: 1.1rem;
    height: 1.1rem;
}

.book-link:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Media Query for Mobile (Tablets and below) */
@media (max-width: 992px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        order: 2;
        flex-shrink: 0;
    }

    /* Hide book link but keep emergency visible */
    .book-link {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        background: var(--primary-light);
        border: 1.5px solid rgba(16, 185, 129, 0.2);
        border-radius: 0.625rem;
        color: var(--primary);
        order: 3;
        transition: background 0.2s ease, transform 0.15s ease;
        flex-shrink: 0;
    }

    .mobile-nav-toggle:hover {
        background: rgba(16, 185, 129, 0.15);
    }

    .mobile-nav-toggle:active {
        transform: scale(0.93);
    }

    .mobile-nav-toggle i {
        width: 1.375rem;
        height: 1.375rem;
    }

    #main-nav {
        position: fixed;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background: white;
        transition: left 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    #main-nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 0;
        align-items: stretch;
    }

    nav ul li {
        border-bottom: 1px solid var(--border);
    }

    nav ul li:first-child {
        border-top: 1px solid var(--border);
    }

    nav ul li a {
        display: block;
        padding: 1.25rem 0.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--navy);
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--primary);
        padding-left: 1rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

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

.hero-img {
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.stats-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    gap: 2.5rem;
    z-index: 10;
}

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

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

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

.stat-number.blue {
    color: var(--azure);
}

/* Services */
.services {
    background-color: var(--bg-light);
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Philosophy */
.philosophy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-img {
    border-radius: 2rem;
    width: 100%;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.bullet-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Departments */
.departments {
    background-color: var(--bg-light);
    text-align: center;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.department-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dept-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.department-card:hover .dept-img {
    transform: scale(1.1);
}

.dept-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    width: 100%;
}

.dept-overlay h3 {
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dept-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dept-body p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.dept-links {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.dept-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dept-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.learn-more {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.9375rem;
    transition: gap 0.2s ease;
}

.learn-more i {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.learn-more:hover {
    gap: 0.875rem;
    color: var(--primary-hover);
}

.learn-more:hover i {
    transform: translateX(3px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-white);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1.5rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: left;
}

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

.testimonial-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.stars svg {
    fill: #fbbf24 !important;
    stroke: none !important;
    width: 20px;
    height: 20px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.patient-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-light);
}

.patient-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.patient-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Global Buttons for Grid Footers */
.grid-footer {
    display: flex !important;
    justify-content: center !important;
    margin: 4rem 0 0 0;
    width: 100%;
}

.btn-green-light {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    display: inline-flex;
}

.btn-green-light:hover {
    background-color: var(--primary-hover);
}

/* Stats Banner */
.stats-banner {
    background: var(--bg-white);
}

.stats-banner-grid {
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    border-top: 1px solid var(--border);
}

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

.banner-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.banner-stat .number.green {
    color: var(--primary);
}

.banner-stat .number.blue {
    color: var(--azure);
}

.banner-stat .label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #059669 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
    overflow: hidden;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    /* Prevents breaking on small screens */
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: #059669;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid white;
}

.cta-btn i {
    width: 1.1rem;
    height: 1.1rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-footer-info {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cta-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cta-info-item {
    text-align: center;
}

.cta-info-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-info-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Fix for the hacky cta-margin and other cta-content styles */
.cta-content {
    margin: 0 auto;
    max-width: 800px;
}

@media (max-width: 991px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 850px) {
    .cta-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cta-footer-info {
        margin-top: 3.5rem;
        padding-top: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }
}

/* Footer */
footer {
    background-color: #020617;
    /* Deep navy */
    color: #94a3b8;
    /* Slate gray */
    padding: 6rem 0 3rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box i {
    color: white;
    width: 1.5rem;
    height: 1.5rem;
}

.footer-col p {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.social-link {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link i {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.footer-col h4 {
    color: white;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links a {
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item i {
    color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 2.5rem;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    /* Hero */
    .hero .container,
    .philosophy .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .stats-card {
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 0;
        width: auto;
        white-space: nowrap;
        gap: 2rem;
        padding: 0.875rem 1.5rem;
        border-radius: 1rem;
        font-size: 0.9rem;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Departments */
    .departments-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Banner */
    .stats-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 4rem 0 2rem 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-logo,
    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-top: 2rem;
    }

    .footer-legal {
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-image-wrapper {
        padding-bottom: 1.5rem;
    }

    .stats-card {
        gap: 1.5rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .stats-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .banner-stat .number {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        justify-content: center;
    }

    .cta-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-top {
        gap: 2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
}