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

:root {
    /* Premium Palette */
    --navy-blue: #0F2A4A;
    /* Darker, richer navy */
    --light-navy: #1B3A5C;
    /* Standard navy */
    --accent-blue: #3A7CA5;
    /* Brighter accent */
    --steel-gray: #64748B;
    /* Modern slate gray */
    --charcoal: #1E293B;
    /* Deep slate for text */
    --cream-white: #F8FAFC;
    /* Cool white background */
    --pure-white: #ffffff;
    --gold-accent: #C5A065;
    /* Premium touch */

    /* Spacing */
    --section-padding: 6rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream-white);
    color: var(--charcoal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* Navigation */
nav {
    background: var(--pure-white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--navy-blue);
}

.nav-cta {
    background: var(--navy-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--light-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--pure-white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}


.dropdown-content::before {
    content: "";
    position: absolute;
    top: -1rem;
    /* Bridge the gap */
    left: 0;
    width: 100%;
    height: 1rem;
    background: transparent;
}

.dropdown-content a {
    color: var(--charcoal);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--navy-blue);
}

@media (min-width: 1025px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Add arrow to Dropdown Link */
.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    color: var(--cream-white);
    margin-bottom: 2rem;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--navy-blue);
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    /* Modern pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: 2px solid var(--gold-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(197, 160, 101, 0.4);
    background: var(--navy-blue);
    color: var(--gold-accent);
    border-color: var(--navy-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--pure-white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--navy-blue);
}

/* Trust Bar */
.trust-bar {
    background: var(--cream-white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(15, 42, 74, 0.1);
    position: relative;
    z-index: 10;
}

.trust-items {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    color: var(--navy-blue);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-item::before {
    content: '✓';
    color: var(--navy-blue);
    background: var(--gold-accent);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.8rem;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(197, 160, 101, 0.4);
}

/* General Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 42, 74, 0.1);
    border-color: transparent;
}

.feature-card {
    background: var(--pure-white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

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

/* Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.industry-card {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.industry-card:hover {
    border-color: var(--navy-blue);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.15);
}

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

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--navy-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Testimonial */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold-accent);
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-author {
    margin-top: 1rem;
    font-style: normal;
    color: var(--steel-gray);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: var(--navy-blue);
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
    width: 100%;
    max-width: 100%;
}

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

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

/* Footer */
footer {
    background: var(--charcoal);
    padding: 3rem 2rem;
    color: var(--cream-white);
}

footer p {
    color: var(--cream-white);
    margin-bottom: 0.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--pure-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: var(--cream-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--steel-gray);
    color: var(--cream-white);
}

/* Contact Highlight */
.contact-highlight {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--navy-blue);
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-highlight a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Form Styles */
.form-container {
    background: var(--pure-white);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--charcoal);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .process-steps {
        flex-direction: column;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* --- New Components for Expansion --- */

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 2rem;
    background: var(--cream-white);
    font-size: 0.9rem;
    color: var(--steel-gray);
    margin-top: 80px;
    /* Offset fixed nav */
}

.breadcrumbs a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--steel-gray);
}

/* Service Area Block */
.service-area-block {
    background: var(--light-navy);
    color: var(--pure-white);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
}

.service-area-block h3 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.service-area-block p {
    color: var(--pure-white);
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold-accent);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--charcoal);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    margin: 0;
}

/* Related Pages Grid */
.related-pages {
    background: var(--cream-white);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.related-card {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Form Styles */
.quote-form-enhanced {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--gold-accent);
}

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

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

/* Footer Centralization & Social Media */
footer {
    text-align: center;
}

.footer-content {
    text-align: center;
    justify-items: center;
    /* Centers grid items if possible */
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children in flex column */
    width: 100%;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pure-white);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--gold-accent);
    color: var(--navy-blue);
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Primary Agent Page Styles --- */

/* Agent Profile */
.agent-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.agent-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 42, 74, 0.15);
    border: 5px solid var(--pure-white);
}

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

.agent-image-wrapper:hover .agent-headshot {
    transform: scale(1.03);
}

.agent-bio {
    flex: 2;
    min-width: 300px;
}

.community-leadership-box {
    background: var(--cream-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--navy-blue);
    margin: 2rem 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--charcoal);
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--gold-accent);
    font-weight: 800;
    margin-top: 0.1em;
    /* Align slightly down with text cap-height */
}

/* Carrier Grid */
.carrier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carrier-card {
    background: var(--pure-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carrier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-accent);
}

.carrier-card h3 {
    color: var(--navy-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.carrier-card p {
    font-size: 0.95rem;
    color: var(--steel-gray);
    margin: 0;
    line-height: 1.5;
}

/* Benefits List on Dark Background */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: var(--gold-accent);
    color: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Media Queries for Agent Page */
@media (max-width: 900px) {
    .agent-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .agent-image-wrapper {
        margin: 0 auto;
        max-width: 100%;
    }

    .agent-bio {
        text-align: left;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Mobile Fixes --- */

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Ensure trust items stack nicely */
    .trust-items {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .trust-item {
        width: 100%;
        justify-content: flex-start;
        /* Align entire block to start */
        text-align: left;
        /* Text aligns left naturally */
        align-items: flex-start;
        /* Checkmark aligns with top of text */
        padding: 0 1rem;
        /* Add some padding for breathing room */
    }

    .trust-item::before {
        margin-top: 2px;
        /* Visual optical alignment with text cap-height */
    }
}

/* Fix Checkmark Alignment on list items */
.check-list li::before {
    /* Ensure checkmark doesn't move when text wraps */
    top: 0.1em;
}

/* Fix Trust Bar Checkmarks */
.trust-item::before {
    flex-shrink: 0;
    /* Prevent checkmark from squishing */
}

/* Fix Benefit List Checkmarks */
.check-icon {
    flex-shrink: 0;
    /* Prevent icon from squishing */
}