/* --- BRAND COLORS & VARIABLES --- */
:root {
    /* Updated for Vascular Rescue Logo Colors */
    --primary-dark: #0a0a0a; 
    --primary-pink: #FA5B89; 
    --primary-teal: #4A978E; 
    --light-gray: #1f1f1f; 
    --medium-gray: #2d2d2d;
    --dark-gray: #e9ecef; 
    --white: #ffffff;
    --nav-bg: #000000;
}

/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; 
    width: 100%;
}

body {
    font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
    padding-top: 56px;
    background-color: var(--primary-dark);
}

/* Smooth Scrolling Fixes */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

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

section { padding: 100px 0; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.text-center { text-align: center; }
.text-muted { color: #a0aab2; }

.section-heading {
    font-size: 40px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--white);
}

/* Mobile adjustment for headings */
@media(max-width: 768px) {
    .section-heading { font-size: 30px; }
}

.section-subheading {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 75px;
    text-transform: none;
    font-family: 'Droid Serif', serif;
}

/* --- NAVIGATION --- */
#mainNav {
    background-color: var(--nav-bg);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.navbar-brand img {
    height: 50px;
    width: auto;
}

/* Desktop Nav Styles */
.navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item { margin-left: 20px; }

.nav-link {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    font-weight: 700;
    display: block;
}

.nav-link:hover { color: var(--primary-pink); }

/* HAMBURGER MENU STYLES (Mobile Only) */
.navbar-toggler {
    display: none; 
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
}

/* Mobile Responsive Navigation */
@media(max-width: 768px) {
    .navbar-toggler {
        display: block; 
    }

    .navbar-collapse {
        display: none; 
        flex-basis: 100%;
        width: 100%;   
        margin-top: 15px;
        background-color: var(--nav-bg);
        border-top: 1px solid #333;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column; 
        align-items: center;
        padding-bottom: 20px;
    }

    .nav-item {
        margin: 10px 0;
    }
}

/* --- HEADER / HERO --- */
header.masthead {
    text-align: center;
    color: var(--white);
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.2)), url(../img/page_details/background_img.jpg);
    background-attachment: scroll;
    background-position: center bottom; 
    background-repeat: no-repeat;
    background-size: cover;
    padding: 150px 0 100px;
}

.intro-text .intro-heading {
    font-size: 50px;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-teal);
}

/* Mobile Hero Text Size */
@media(max-width: 768px) {
    .intro-text .intro-heading { font-size: 35px; line-height: 40px; }
}

.intro-lead-in {
    font-size: 30px;
    font-style: italic;
    line-height: 30px;
    margin-bottom: 25px;
    font-family: 'Droid Serif', serif;
    color: var(--primary-pink);
}

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    background-color: var(--primary-pink);
    color: var(--white);
    border-radius: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    margin-top: 30px;
}

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

/* --- PROBLEM SECTION --- */
#problem { background-color: var(--light-gray); }

.problem-text-highlight {
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.4;
}

.grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.col-half {
    flex: 0 0 50%;
    padding: 0 15px;
}

@media(max-width: 768px) {
    .col-half { flex: 0 0 100%; margin-bottom: 30px; text-align: center !important;}
}

.card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1;
    min-width: 300px;
    background-color: var(--medium-gray);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 30px;
    border-top: 5px solid var(--primary-teal);
    text-align: left;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
    display: block;
}

.card h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- SOLUTION SECTION (Timeline) --- */
#solution { background-color: var(--primary-dark); }

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

/* The Vertical Line */
.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; 
    width: 2px;
    margin-left: -1.5px;
    background-color: var(--medium-gray);
}

.timeline > li {
    position: relative;
    min-height: 100px;
    margin-bottom: 50px;
}

/* Desktop: Text Panel Width */
.timeline > li .timeline-panel {
    width: 35%; 
    float: left;
    padding: 0 20px 20px 30px;
    text-align: right;
    position: relative;
}

/* Desktop: Inverted Text Panel (Right Side) */
.timeline > li.timeline-inverted .timeline-panel {
    float: right;
    text-align: left;
    padding: 0 30px 20px 20px;
}

/* Desktop: The Image Bubble */
.timeline > li .timeline-image {
    width: 170px;
    height: 170px;
    position: absolute;
    z-index: 100;
    background-color: #000000;
    color: white;
    border-radius: 100%;
    border: 7px solid var(--medium-gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    margin-left: -85px; 
}

/* Fixed the icon being cut off */
.timeline > li .timeline-image img {
    width: 60%; 
    height: auto;
    border-radius: 0; 
}

/* Specific Colors for Timeline Bubbles */
.timeline > li:first-child .timeline-image {
    background-color: var(--primary-teal) !important;
}

.timeline-heading h4 { margin-top: 0; color: var(--white); }
.timeline-heading .subheading {
    text-transform: none;
    color: var(--primary-teal);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* MOBILE TIMELINE STYLES (Stacked) */
@media(max-width: 991px) {
    .timeline:before { display: none; }

    .timeline > li {
        margin-bottom: 50px;
        min-height: auto;
    }

    .timeline > li .timeline-image {
        position: static;
        width: 150px;
        height: 150px;
        margin: 0 auto 20px auto; 
        left: 0;
        margin-left: auto;
    }
    
    .timeline > li .timeline-panel {
        width: 100%;
        float: none;
        padding: 0 20px;
        text-align: center;
    }

    .timeline > li.timeline-inverted .timeline-panel {
        float: none;
        text-align: center;
        padding: 0 20px;
    }
}

/* --- TEAM SECTION --- */
#team { background-color: var(--light-gray); }

.team-member {
    margin-bottom: 50px;
    text-align: center;
}

.team-member img {
    width: 225px;
    height: 268px;
    border: 7px solid var(--medium-gray);
    border-radius: 50%;
    object-fit: cover;
}

.team-member h4 {
    margin-top: 25px;
    margin-bottom: 0;
    text-transform: none;
    color: var(--white);
}

.team-member p { margin-top: 10px; }

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* --- PARTNERS --- */
#partners {
    padding: 50px 0;
    background-color: var(--primary-dark);
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.partner-logo {
    max-width: 150px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- CONTACT --- */
#contact {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}

#contact .section-heading { color: var(--white); }
#contact .text-muted { color: rgba(255,255,255,0.7); }

.contact-email {
    font-size: 1.5rem;
    color: var(--primary-teal);
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/* --- FOOTER --- */
footer {
    padding: 25px 0;
    text-align: center;
    background-color: #000000;
    color: var(--white);
}

/* --- NEW CONTACT SECTION STYLES --- */
.contact-info-row {
    margin-bottom: 40px;
}

.contact-box {
    background-color: var(--medium-gray);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-teal);
    margin-bottom: 20px; 
}

.contact-box i {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.contact-box h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.contact-box p, .contact-box a {
    color: var(--dark-gray);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.contact-box a:hover {
    color: var(--primary-teal);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

@media(max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--medium-gray);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--white);
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
}

.form-control::placeholder {
    color: #888;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
}
