/*
* ClinicBridge Capital Stylesheet
* Colors: Navy #0C2340, Teal #2CA6A4, Gray #9CA3AF, Light #F6F7F9, White #FFFFFF
* Font: Inter
*/

:root {
    --color-navy: #0C2340;
    --color-teal: #2CA6A4;
    --color-gray: #9CA3AF;
    --color-light: #F6F7F9;
    --color-white: #FFFFFF;
    --max-width: 1120px;
    --border-radius: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-navy);
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
}

a:hover {
    color: var(--color-navy);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-teal);
    color: var(--color-white);
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

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

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section-dark a {
    color: var(--color-teal);
}

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

.section-paragraph {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.15rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.btn:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background-color: #258c8a; /* Slightly darker teal */
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header / Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    /* Placeholder for CB monogram */
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--color-teal);
    color: var(--color-white);
}

.nav a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--color-navy);
    padding: 5px 0;
}

.nav a:hover {
    color: var(--color-teal);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-light);
    /* Subtle gradient navy → teal radial highlight */
    background-image: radial-gradient(circle at center, rgba(44, 166, 164, 0.1) 0%, rgba(12, 35, 64, 0.05) 50%, transparent 70%);
}

.hero-headline {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--color-navy);
}

.hero-subtext {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--color-navy);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.credibility-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--color-white);
    color: var(--color-navy);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* About Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border-top: 4px solid var(--color-teal);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* What We Buy Section */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.focus-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s;
}

.focus-card h3 {
    color: var(--color-teal);
}

.focus-card p {
    color: var(--color-light);
}

/* Our Approach Section */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-teal);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    /* Placeholder for an icon */
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.profile-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.profile-photo {
    width: 100px;
    height: 100px;
    background-color: var(--color-gray);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    /* Placeholder for a photo */
}

.profile-title {
    font-size: 1.2rem;
    color: var(--color-teal);
    margin-bottom: 5px;
}

.profile-role {
    color: var(--color-navy);
}

/* Contact Section */
.contact-container {
    text-align: center;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-note {
    margin-top: 20px;
    font-style: italic;
    color: var(--color-gray);
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 30px 0;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--color-light);
    margin-left: 20px;
}

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

.linkedin-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Back to Top Button */
.back-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--color-teal);
    color: var(--color-white);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s, opacity 0.3s;
}

.back-to-top-btn:hover {
    background-color: #258c8a;
}

.back-to-top-btn:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

/* Media Queries */

/* Tablet/Desktop (Max-width 960px) */
@media (max-width: 960px) {
    .nav {
        display: none; /* Hide navigation for mobile/tablet */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-soft);
        padding: 20px 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 10px 20px;
        border-bottom: 1px solid var(--color-light);
        padding-bottom: 10px;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .focus-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-bottom: 10px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* Mobile (Max-width 600px) */
@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subtext {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .badge {
        font-size: 0.8rem;
    }

    .pillars-grid, .focus-grid, .value-grid, .leadership-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .header {
        top: 0;
    }
}
