/* --- CSS Variables for Color Scheme --- */
:root {
    /* COLOR1: Classic Navy & White (Current) */
    --navy: #001f3f;       /* Classic Navy */
    --white: #ffffff;      /* Pure White */
    --light-grey: #f4f4f4; /* Background Grey */
    --dark-grey: #333333;  /* Text Grey */
    --accent-gold: #c5a059; /* Subtle Gold Accent */
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* FIX: Always show vertical scrollbar to prevent logo jumping */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
    /* FIX: Forces footer to bottom even on short pages */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--navy);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    /* Ensure text wraps nicely on very small screens */
    max-width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: #003366;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

.section {
    padding: 80px 0;
}

/* NEW RULE: Smaller padding for compact sections */
.section-compact {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    /* Added gap to separate image and text */
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

/* New Rule: Sizing for the Logo Image */
.logo img {
    height: 50px; /* Adjusts logo height to fit header */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--navy);
    color: var(--white);
    /* CHANGED: Reduced top/bottom padding from 100px to 50px */
    padding: 50px 20px;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    /* CHANGED: Increased width to 920px to fit homepage text on 2 lines */
    max-width: 920px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.hero .btn {
    background-color: var(--white);
    color: var(--navy);
}

.hero .btn:hover {
    background-color: var(--light-grey);
}

/* --- Split Section (Text + Logo) --- */
.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-image img {
    max-width: 350px;
    opacity: 0.9;
}

/* --- Feature Band (Expertise Section) --- */
.feature-band {
    /* CHANGED: Background to white, Text to dark */
    background-color: var(--white);
    color: var(--dark-grey);
    /* CHANGED: Reduced padding from 60px to 40px to match the section above */
    padding: 40px 20px;
    text-align: center;
}

/* CHANGED: Heading inside feature band is now Navy (since bg is white) */
.feature-band h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-band p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-top: 4px solid var(--navy);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Fix alignment by forcing all card titles to be tall enough for 2 lines */
.service-card h3 {
    min-height: 3.8rem;
    display: flex;
    align-items: flex-start; /* Aligns text to top */
}

/* Add spacing between paragraphs inside service cards */
.service-card p {
    margin-bottom: 15px;
}

/* Remove margin from the last paragraph so it doesn't push the card bottom */
.service-card p:last-child {
    margin-bottom: 0;
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
}

/* Updated Rule: Real Team Photos */
.team-photo {
    width: 180px;
    height: 180px;
    object-fit: cover; /* Ensures photo doesn't stretch */
    border-radius: 50%; /* Makes it a circle */
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--light-grey);
}

/* Keeps placeholder style just in case image is missing */
.team-photo-placeholder {
    width: 180px;
    height: 180px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.bio {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
}

/* --- Network Note --- */
.network-note {
    text-align: center;
    /* CHANGED: Reduced margin-top from 50px to 30px for tighter layout */
    margin-top: 30px;
    padding: 30px;
    background-color: #eef2f7;
    border-left: 5px solid var(--navy);
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 20px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-top: 40px;
    text-align: left;
}

footer h3 {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    display: inline-block;
    font-size: 1.2rem;
}

.footer-column p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* LinkedIn Icon Styles */
.social-links a {
    display: inline-block;
    margin-top: 5px;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: 0.3s;
}

.social-links a:hover svg {
    fill: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Contact Form Styles --- */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
}

/* NEW: Specific font sizes for the Contact Info box */
.contact-info-box h3 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 25px;
}

.contact-info-box h4 {
    font-size: 1.25rem; /* 20px */
    color: var(--navy);
    margin-bottom: 5px;
}

.contact-info-box p {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Stack split section on mobile */
    .split-section {
        /* CHANGED: Ensure logo stays on top on mobile even after HTML swap */
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}