/* General Resets */
:root {
    --primary-blue: #0056b3; /* Adjust to match exact logo blue */
    --light-gray: #f4f4f4;
    --dark-text: #333;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.logo img {
    height: 60px; /* Adjust based on your preference */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    transition: 0.3s;
}

.nav-links a:hover {
    color: #003d80;
}

.btn-client-portal {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background-image: url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    /* Desktop height */
    height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay to make text pop */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    /* Add padding so text never touches the screen edges */
    padding: 0 20px; 
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    line-height: 1.2; /* Better spacing for multi-line headers */
}

.hero p { 
    font-size: 1.5rem; 
}

/* --- MOBILE FIXES --- */
@media only screen and (max-width: 768px) {
    .hero {
        /* Change fixed height to auto so it expands if text wraps */
        height: auto; 
        min-height: 300px; /* Ensures it isn't too small */
        padding: 60px 0; /* Gives breathing room on top/bottom */
    }

    .hero h1 { 
        font-size: 1.75rem; /* Reduced from 3rem */
    }

    .hero p { 
        font-size: 1rem; /* Reduced from 1.5rem */
    }
    
    /* If there are buttons inside .hero-content, this scales them down */
    .hero-content .btn, 
    .hero-content button {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-top: 10px;
    }
}

/* Sections */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

/* --- Footer Styling --- */

footer {
    position: relative;
    /* Keeps your existing background image & overlay look */
    background-image: url('../images/footer-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 40px 0; /* More padding on top for breathing room */
    z-index: 0;
    text-align: left; /* CHANGED: Default to left align for the columns */
}

/* The Dark Blue Overlay */
footer::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 31, 63, 0.95); /* Slightly darker for readability */
    z-index: -1;
}

/* 3-Column Grid Layout */
.footer-grid {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle separator line */
}

/* Column Headers */
.footer-grid h4 {
    color: #fca311; /* Gold */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links List */
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-grid ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-grid ul li a:hover {
    color: #fca311; /* Turns gold on hover */
    padding-left: 5px; /* Subtle movement effect */
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: #fca311; /* Gold background */
    color: #001f3f; /* Dark blue icon */
    transform: translateY(-3px);
}

/* Bottom Legal Section */
.footer-legal {
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
}

.footer-legal a:hover {
    color: #fca311;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column; /* Stacks columns vertically */
        gap: 40px;
        text-align: center; /* Centers text on mobile for better look */
    }

    .footer-socials {
        justify-content: center; /* Centers icons on mobile */
    }
}

.licensing {
    font-weight: 600;
    color: white !important; /* Stand out more than regular copyright text */
    margin-bottom: 15px !important;
}

.marketing-credit {
    font-size: 0.8rem !important;
    opacity: 0.8;
    margin-top: 20px !important;
}

.marketing-credit a {
    color: #e0e0e0;
    text-decoration: underline;
}

.marketing-credit a:hover {
    color: white;
}

/* --- Quote Section Styling --- */

.quote-section {
    position: relative;
    background-color: #001f3f; /* Solid Dark Blue */
    
    /* Internal Padding (Space inside the blue box) */
    padding: 80px 0; 

    /* External Margins */
    margin-top: 60px;
    margin-bottom: 60px;
    
    color: white;
}

.quote-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto; 
    display: flex; /* Creates the two-column layout */
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
}

/* Left Side: Text */
.quote-content {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}

.quote-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.quote-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.process-steps .step {
    margin-bottom: 25px;
}

.process-steps h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: #ffffff;
    font-weight: 600;
}

.process-steps p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.cta-text {
    margin-top: 30px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Right Side: Form */
#JotFormIFrame-253484024523049 {
    flex: 1;
    min-width: 350px;
    /* Ensure height is recognized on desktop */
    height: 1200px; 
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .quote-container {
        flex-direction: column;
        align-items: stretch; /* Ensures full width */
    }
    
    .quote-content {
        text-align: center;
        margin-bottom: 30px;
        min-width: auto; /* Allow text to shrink if phone is very narrow */
    }

    #JotFormIFrame-253484024523049 {
        margin: 0 auto;
        display: block;
        
        /* FIX: Override the 350px inline style so it fits small phones */
        min-width: 100% !important; 
        max-width: 100% !important;
        
        /* CRITICAL FIX: Disable flex sizing so the height doesn't collapse to 0 */
        flex: none !important; 
        height: 1600px !important;
    }
}

/* --- New Index Page Styling --- */

/* Helper Classes */
.bg-light { background-color: #f9f9f9; }
.section-pad { padding: 60px 0; }
.center-text { text-align: center; }

/* Hero Button */
.btn-hero {
    background-color: #fca311; /* A nice contrasting Gold/Orange for action */
    color: #001f3f;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    border: 2px solid #fca311;
}

.btn-hero:hover {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* Intro Text */
.intro-text {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #555;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
    border-radius: 5px;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    font-size: 1.8rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

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

/* Area Served Tags */
.area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.town-tag {
    background: #eef4fb;
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Carrier Grid */
.carrier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    /* REMOVED: opacity: 0.6; */
}

.carrier-box {
    background: #ddd;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 350px;
    background: #eee;
}

.review-highlight {
    background: #fff9e6; /* Light yellow for reviews */
    padding: 20px;
    border-left: 4px solid #fca311;
    margin: 20px 0;
}

/* --- Updates for Carrier Section --- */

.bg-dark-blue {
    background-color: #001f3f; /* Dark Blue */
    color: white;
}

.bg-dark-blue h3 {
    color: white !important; /* Overrides default heading color */
}

/* Updated Carrier Box Style to force them to the front */
.carrier-box {
    position: relative; /* Needed for z-index to work */
    z-index: 10; /* This forces the box to sit "higher" than the background */
    
    background: white;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    padding: 10px;
}

/* --- Carrier Image Updates --- */

.carrier-box {
    background: white;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden; /* Ensures large images don't spill out */
    padding: 10px;    /* Adds breathing room around the logo */
}

.carrier-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps the logo aspect ratio correct */
    display: block;
}

/* --- Mobile Carrier Grid Update --- */
@media (max-width: 768px) {
    .carrier-grid {
        display: grid;
        /* This forces exactly 2 equal columns */
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
        
        /* Optional: prevents grid from touching screen edges */
        padding: 0 10px; 
    }

    .carrier-box {
        /* Override the fixed 150px width so they fit the grid */
        width: 100%; 
        
        /* Ensure they stay the same height */
        height: 80px; 
    }
}

/* --- Mobile Sticky Action Bar --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    border-top: 1px solid #eee;
}

.sticky-btn {
    flex: 1;
    margin: 0 10px;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

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

.btn-quote {
    background-color: #fca311;
    color: #001f3f;
}

/* Show only on screens smaller than 768px (Mobile) */
@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }
    
    /* Add padding to footer so the bar doesn't cover content */
    footer {
        padding-bottom: 80px; 
    }
}

/* --- About Page Styling --- */

/* Simple Hero for sub-pages */
.page-hero {
    background-color: #001f3f;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 { margin: 0 0 10px 0; font-size: 2.5rem; }
.page-hero p { margin: 0; font-size: 1.2rem; opacity: 0.9; }

/* Team Layout */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex; /* Creates the Side-by-Side layout */
    flex-wrap: wrap; /* Stacks on mobile */
}

.team-photo {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photo fills the box without stretching */
    min-height: 350px;
}

.team-info {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin: 0 0 5px 0;
}

.team-title {
    color: #fca311; /* Gold */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.team-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 3px solid #fca311;
    padding-left: 15px;
    margin-bottom: 20px;
}

.team-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.team-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-contact a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.team-contact a:hover { text-decoration: underline; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
    }
    .team-photo {
        max-width: 100%;
    }
}

/* --- Contact Page Styling --- */

.contact-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    border-top: 4px solid #eee;
    transition: 0.3s;
}

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

/* Highlight the "Talk to Agent" card */
.highlight-card {
    border-top: 4px solid #fca311; /* Gold */
    background: #fffcf5; /* Very light gold tint */
}

.icon-header {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.big-phone-link {
    display: block;         /* Forces it to sit on its own line */
    font-size: 2.5rem;      /* INCREASED from 1.5rem to 2.5rem */
    font-weight: 800;       /* Extra Bold */
    color: #001f3f;         /* Dark Blue */
    margin: 15px 0;         /* Adds space above and below */
    text-decoration: none;
    line-height: 1.2;
}

.big-phone-link:hover {
    color: #fca311;         /* Turns Gold when you hover over it */
    text-decoration: underline;
}

.email-link {
    color: #555;
    text-decoration: underline;
}

.hours-box {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333;
}

.text-link {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: underline;
}

/* --- Business Page Styling --- */

/* The Checklist (Checkmarks) */
.check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
    color: #444;
}

.check-list li::before {
    content: "✓";
    color: #fca311; /* Gold Checkmarks */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Industry Cards */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.industry-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    border-top: 4px solid var(--primary-blue);
    transition: 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-card h3 {
    margin: 10px 0;
    color: var(--primary-blue);
}

.industry-card ul {
    margin-top: 15px;
    padding-left: 20px;
    color: #555;
}

.industry-card li {
    margin-bottom: 5px;
}

/* Coverage List Grid */
.coverage-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.coverage-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid #ccc;
}

.coverage-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.coverage-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* --- Dropdown Menu Styling --- */

/* The Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* The "Link" that triggers the dropdown */
.dropbtn {
    cursor: pointer;
    padding-bottom: 20px; /* Extends hover area so menu doesn't disappear */
}

/* The Hidden Menu Box */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    top: 35px; /* Positions it right below the text */
    left: 0;
    border-radius: 4px;
    border-top: 3px solid #fca311; /* Gold accent on top */
    padding: 10px 0;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95rem;
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

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

/* Hover effects for inner links */
.dropdown-content a:hover {
    background-color: #f4f4f4;
    color: #001f3f; /* Dark Blue */
    padding-left: 25px; /* Slight shift effect */
}

/* Show the menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Tweak: Ensure it doesn't break layout on small screens */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        background: #f9f9f9;
    }
}

/* --- Carrier Page Styling --- */

.carrier-card-grid {
    display: grid;
    /* This creates a responsive grid that fits as many cards as possible */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.carrier-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carrier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: #fca311; /* Highlight border on hover */
}

/* Carrier Logos */
.carrier-card img {
    max-width: 150px;
    height: 60px; /* Fixed height keeps grid uniform */
    object-fit: contain;
    margin-bottom: 15px;
}

.carrier-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #001f3f;
}

.carrier-phone {
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}

.carrier-phone:hover {
    color: #fca311;
}

/* Container for the Buttons */
.carrier-links {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    margin-top: auto; /* Pushes buttons to the bottom */
}

/* The Buttons */
.btn-carrier {
    display: block;
    background-color: #f4f4f4;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid #ddd;
}

.btn-carrier:hover {
    background-color: #001f3f;
    color: white;
    border-color: #001f3f;
}

/* --- Mobile Padding & Spacing Fixes --- */
@media (max-width: 768px) {
    
    /* 1. Add "Breathing Room" to all standard content containers */
    .container, 
    section, 
    .quote-content, 
    .check-list {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* 2. EXCEPTION: Remove padding from Full-Width Sections 
       (This prevents the background images from getting cut off) */
    .hero, 
    .quote-section, 
    footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Re-add padding to the CONTENT inside those full-width sections */
    .hero-content, 
    .footer-grid, 
    .quote-container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}
