/* 
 * Bridge Impact Capital - Main Stylesheet
 * Color Palette: Navy (#1A2B4A), Teal (#2A9D8F), Warm White (#F8F9FA)
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for sticky navbar */
}

:root {
    --navy: #1A2B4A;
    --teal: #2A9D8F;
    --gold: #E9C46A;
    --charcoal: #2D3748;
    --light-gray: #E2E8F0;
    --warm-white: #F8F9FA;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-bridge {
    color: var(--charcoal);
}

.logo-separator {
    color: var(--teal);
    font-weight: 300;
    font-size: 1.75rem;
}

.logo-impact {
    color: #A8B2BC;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--charcoal);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--navy);
    border-bottom-color: var(--teal);
}

.cta-nav {
    background: var(--teal);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 6px;
    border: none !important;
}

.cta-nav:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

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

.btn-secondary:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--navy) 0%, #2A4A6A 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image: 
        /* Subtle bridge/connection lines */
        repeating-linear-gradient(90deg, var(--teal) 0px, var(--teal) 2px, transparent 2px, transparent 100px),
        repeating-linear-gradient(45deg, var(--teal) 0px, var(--teal) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(-45deg, var(--teal) 0px, var(--teal) 1px, transparent 1px, transparent 80px);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 60%, 0 0, 0 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--warm-white);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
    background: var(--warm-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--charcoal);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */

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

.service-column {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-column h3 {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list strong {
    color: var(--navy);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--teal);
    font-weight: 600;
}

.link-arrow:after {
    content: " →";
    margin-left: 0.5rem;
}

/* ============================================
   WHY SECTION
   ============================================ */

.why-section {
    background: var(--warm-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.why-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.why-item h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.why-item p {
    color: var(--charcoal);
    line-height: 1.6;
}

/* ============================================
   TRACK RECORD SECTION
   ============================================ */

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.track-category {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--teal);
}

.track-category h3 {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.track-category ul {
    list-style: none;
}

.track-category li {
    padding: 0.625rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.track-category li:before {
    content: "•";
    color: var(--teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #2A4A6A 100%);
    text-align: center;
    color: var(--white);
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--warm-white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--navy);
    color: var(--warm-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.footer-brand h3 .footer-logo-bridge {
    color: var(--white);
    font-weight: 700;
}

.footer-brand h3 .footer-logo-separator {
    color: var(--teal);
    font-weight: 300;
    margin: 0 0.5rem;
}

.footer-brand h3 .footer-logo-impact {
    color: #A8B2BC;
    font-weight: 400;
}

.footer-brand p {
    color: var(--warm-white);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--warm-white);
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--warm-white);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ============================================
   SERVICES PAGE SPECIFIC
   ============================================ */

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 0.875rem 2.5rem;
    background: var(--warm-white);
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.tab-button:hover {
    border-color: var(--teal);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.service-detail {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--teal);
}

.service-detail h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-detail p {
    color: var(--charcoal);
    line-height: 1.7;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
}

.track-record-full {
    margin-top: 4rem;
}

.track-category-large {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border-top: 4px solid var(--teal);
}

.track-category-large h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.track-category-large ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.track-category-large li {
    padding: 1rem;
    background: var(--white);
    border-radius: 6px;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.track-category-large li:before {
    content: "✓";
    color: var(--teal);
    font-weight: bold;
    position: absolute;
    left: 0.75rem;
}

/* ============================================
   INSIGHTS PAGE SPECIFIC
   ============================================ */

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

.insight-card {
    background: var(--warm-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--teal);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.insight-content {
    padding: 2rem;
}

.insight-meta {
    color: var(--charcoal);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.insight-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.insight-card p {
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.insight-link {
    color: var(--teal);
    font-weight: 600;
}

.insight-link:after {
    content: " →";
}

.insights-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--warm-white);
    border-radius: 8px;
}

.insights-empty h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.insights-empty p {
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
}

.contact-method h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-method p {
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-method a {
    color: var(--teal);
    font-weight: 600;
}

.contact-form {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .services-columns {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .track-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .track-category-large ul {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ============================================
   CLIENTS PAGE SPECIFIC
   ============================================ */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 200px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.client-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}
