/* --- Global Variables and Base Styling --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    /* Primary Colors */
    --color-navy: #072045;
    --color-teal: #14858f;
    --color-teal-light: #26c0b6;
    --color-orange: #f58b2a;
    --color-orange-light: #ff9539;

    /* Semantic Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #072045;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
    --gradient-cta: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout */
    --content-max-width: 1200px;
    --container-padding: 2rem;
    --section-spacing: 5rem;

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

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

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

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

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

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Typography Helpers --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout --- */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

/* --- Header --- */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(7, 32, 69, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(245, 139, 42, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 139, 42, 0.45);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(7, 32, 69, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 32, 69, 0.4);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    color: var(--text-inverse);
    padding: 10rem 0 8rem;
    overflow: hidden;
    background: var(--color-navy);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero_healthcare_network.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 32, 69, 0.95) 0%, rgba(20, 133, 143, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--text-inverse);
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--color-teal-light);
}

.hero-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- About Section --- */
.about {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

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

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

/* --- Services (What We Do) --- */
.services {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(7, 32, 69, 0.05);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 2rem;
    display: inline-block;
}

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

.service-card ul {
    margin-top: 1.5rem;
    text-align: left;
}

.service-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: bold;
}

/* --- Philosophy --- */
.philosophy {
    background: var(--bg-primary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.philosophy-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.philosophy-card i {
    font-size: 3rem;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
}

.philosophy-card h3 {
    margin-bottom: 1rem;
}

/* --- Vision --- */
.vision {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    text-align: center;
}

.vision h2 {
    color: var(--text-inverse);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* --- Partnerships --- */
.partnerships {
    background: var(--bg-secondary);
}

.partner-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.partner-info {
    flex: 1;
}

.partner-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.partner-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.partner-list li {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-weight: 500;
    color: var(--color-navy);
}

/* --- Contact Section --- */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(7, 32, 69, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(20, 133, 143, 0.1);
}

textarea.form-control {
    min-height: 150px;
}

.validation-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--color-navy);
    color: var(--text-inverse);
    padding: 5rem 0 3rem;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 2rem;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--color-teal-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 32, 69, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-primary);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 5rem;
    color: var(--color-teal);
    margin-bottom: 2rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-card {
        flex-direction: column;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
    }

    .services-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .partner-list {
        grid-template-columns: 1fr;
    }
}