/* ==========================================================================
   CSS CUSTOM VARIABLES
   Edit these to easily change the global color scheme and fonts
   ========================================================================== */
:root {
    /* Primary Colors */
    --color-primary: #0a2540;
    /* Deep Navy Blue */
    --color-primary-light: #16406e;
    /* Lighter Navy */
    --color-accent: #0084a5;
    /* Teal/Medical Blue */
    --color-accent-light: #00a8d3;
    /* Bright Teal */

    /* Background Colors */
    --color-bg-main: #ffffff;
    --color-bg-alt: #f8fafc;
    /* Soft Gray */
    --color-bg-dark: #0f172a;
    /* Very Dark Blue for Footer */

    /* Text Colors */
    --color-text-main: #334155;
    /* Dark Slate Gray */
    --color-text-dark: #0f172a;
    /* Near Black for headings */
    --color-text-light: #94a3b8;
    /* Light Slate */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilities */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
}

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

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

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

ul {
    list-style: none;
}

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

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

.bg-light {
    background-color: var(--color-bg-alt);
}

.text-white {
    color: #ffffff !important;
}

.mt-4 {
    margin-top: 2rem;
}

.pb-0 {
    padding-bottom: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-primary);
}

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

.btn-primary-small {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--color-accent);
}

.btn-primary-small:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   TYPOGRAPHY UTILS
   ========================================================================== */
.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-tag.light {
    color: #a5f3fc;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--color-accent);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #eef2f6 100%);
    padding-top: 80px;
    /* Offset for navbar */
    position: relative;
    overflow: hidden;
}

/* Subtle background shape */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 132, 165, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: #fff;
    padding: 1rem;
}

.image-wrapper img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.badge {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
}

.badge-text strong {
    display: block;
    color: var(--color-primary);
    font-size: 1rem;
}

.badge-text span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateX(10px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-weight: 500;
    color: var(--color-text-main);
}

/* ==========================================================================
   SPECIALTIES SECTION
   ========================================================================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.specialties-grid.detailed {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.specialty-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 132, 165, 0.2);
}

.specialty-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--color-accent);
}

.specialty-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.specialty-card .card-subtitle {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.specialty-card ul {
    text-align: left;
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.specialty-card li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.specialty-card li strong {
    color: var(--color-primary);
}

.external-bold-link {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color var(--transition-fast);
}

.external-bold-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.external-icon {
    opacity: 0.7;
    margin-bottom: 2px;
}

.external-bold-link:hover .external-icon {
    opacity: 1;
}

/* ==========================================================================
   GLOBAL HEALTH SECTION
   ========================================================================== */
.global-health {
    background: linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)), url('https://images.unsplash.com/photo-1578357078586-491adf1aa5ba?auto=format&fit=crop&q=80&w=2000') center/cover;
    position: relative;
    text-align: center;
}

.global-health-container {
    display: flex;
    justify-content: center;
}

.gh-content {
    max-width: 800px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gh-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.location-card h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.footer-contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-info .icon {
    font-size: 1.1rem;
}

.footer-contact-info a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   PROFESSIONAL SERVICES SECTION
   ========================================================================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.service-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.service-item:hover {
    transform: translateX(5px);
    border-color: rgba(0, 132, 165, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    color: var(--color-accent);
}

.service-content {
    flex-grow: 1;
}

.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-header-interactive {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.reveal-btn {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reveal-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.reveal-btn .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.qualifications-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.qualifications-reveal.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--color-accent);
}

.qualifications-reveal h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.qualifications-reveal ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.qualifications-reveal li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.qualifications-reveal li strong {
    color: var(--color-primary);
}

/* ==========================================================================
   TESTIMONIES SECTION
   ========================================================================== */
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.yelp-embed-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.yelp-placeholder {
    text-align: center;
    width: 100%;
    position: relative;
}

.yelp-placeholder .stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.placeholder-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.yelp-instruction {
    font-size: 0.85rem;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Ensure iframe embeds fit nicely */
.yelp-embed-wrapper iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   GLOBAL HEALTH SECTION
   ========================================================================== */
.global-health-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.global-health-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.mission-stats-wrapper {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.mission-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mission-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.mission-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.photo-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   ARTICLE CARDS (MISSIONS PAGE)
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.article-card p {
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-card .btn-primary-small {
    align-self: flex-start;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .global-health-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-stats-wrapper {
        justify-content: center;
    }

    /* Move the image to the top on mobile */
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    /* Move the stats cards to the top on mobile in the about section */
    .about-stats {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -2rem;
        width: 90%;
        justify-content: center;
    }

    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .center {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-main);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        
        /* Animation properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }
}