/* ============================================ */
/* MOBILE STYLING (SAFE VERSION)                */
/* ============================================ */

@media (max-width: 768px) {
    /* 1. LAYER FIX: Ensure header stays above everything */
    .site-header {
        position: relative;
        z-index: 1000;
        background: #fff;
    }

    /* 2. OVERFLOW FIX: Force everything to stay inside the screen */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 3. WRAPPING FIX: Force all grids/columns to stack */
    .header-flex, .mission-grid, .footer-grid, .services-grid, .container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 4. TEXT FIX: Shrink the massive headings so they don't push the screen wide */
    h1, h2, h3, .about-header {
        font-size: 24px !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* 5. HAMBURGER PLACEMENT: Ensure it's visible and clickable */
    .hamburger {
        display: flex !important;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 1001;
    }

    /* 6. MENU FIX: Absolute position so it drops OVER the hero image */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column !important;
        align-items: center;
        gap: 15px;
    }

    /* 7. IMAGE FIX: Ensure the hero/mission images don't stretch */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* --- TIGHTEN HERO SECTION --- */
.hero-section {
    padding: 60px 0 !important; /* Reduces the overall height */
    min-height: auto !important; /* Ensures it doesn't force a full-screen height */
}

.hero-tagline-box {
    padding: 30px 20px !important; /* Reasonable padding around the text */
    margin: 0 15px; /* Keeps it from touching the screen edges */
}

.hero-title {
    font-size: 26px !important; /* Ensures the title fits nicely */
    margin-bottom: 10px;
}

/* Enable Smooth Scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure the Mission section has enough padding to account for a sticky header */
#mission {
    scroll-margin-top: 100px; /* Adjust this number to match your header's height */
}

/* --- Keep your existing mission-grid and about-p styles below --- */
.row-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 80px;
}

/* Typography & Reset */
body, html { margin: 0; padding: 0; font-family: 'Times New Roman', Times, serif; }

/* Updated to 1250px per your request */
.container { 
    max-width: 1250px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%;
}

/* Header - Increased height for more vertical padding */
.site-header {
    height: 120px; 
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

/* Updated Image Path */
.logo img { height: 100px; width: auto; display: block; content: url('images/logo.png'); }

/* Navigation - Using San Serif for labels */
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }
.main-nav li { margin: 0 20px; } 

.main-nav a { 
    text-decoration: none; 
    color: #444; 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 16px; 
    font-weight: 500;
    position: relative; 
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Growing Underline Animation */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #004a99; 
    transition: width 0.4s ease;
}

.main-nav a:hover {
    color: #004a99; 
}

.main-nav a:hover::after {
    width: 100%; 
}

.contact-link { 
    border-bottom: none; 
    color: #444 !important;
}

.social-icon { height: 28px; margin-left: 15px; opacity: 0.8; transition: transform 0.3s ease; }
.social-icon:hover { transform: scale(1.1); }

/* Hero Section */
.hero {
    height: 700px; 
    position: relative;
    overflow: hidden;
    border-top: 1px solid #004a99;
    border-bottom: 1px solid #004a99;
}

.slider { position: absolute; width: 100%; height: 100%; }

/* Updated Image Paths for Slider */
.slide {
    position: absolute; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2000ms ease-in-out; 
}

/* Apply background images via CSS to ensure paths are correct */
.slide:nth-child(1) { background-image: url('images/slide1.jpg'); }
.slide:nth-child(2) { background-image: url('images/slide2.jpg'); }
.slide:nth-child(3) { background-image: url('images/slide3.jpg'); }

.slide.active { opacity: 1; }

.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto; /* Ensures it only takes space needed */
}

.tagline-box {
    background: rgba(0, 74, 153, 0.7); 
    border: 2px solid #fff;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* FIX: Prevents "Billing" from wrapping */
    white-space: nowrap; 
}

.tagline-box h1 { font-size: 32px; margin: 0; font-weight: normal; }
.tagline-box h2 { font-size: 24px; margin: 10px 0 0; font-weight: normal; }

/* ============================================ */
/* SECTION: SERVICES STYLING                    */
/* ============================================ */

.section-padding { 
    padding: 80px 0; 
    background-color: #fff; 
}

.services-container { 
    flex-direction: column; 
    text-align: center; 
}

.services-title { 
    font-size: 48px;
    font-weight: 500; 
    letter-spacing: 2px; 
    color: #333; 
    margin-bottom: 25px; 
    text-transform: uppercase;
}

/* UPDATED: Added Sans-Serif and matched the font weight */
.services-intro { 
    max-width: 1000px; 
    margin: 0 auto 60px; 
    line-height: 1.6; 
    font-size: 22px; 
    color: #555; 
    font-family: Arial, Helvetica, sans-serif; /* Applied Sans-Serif here */
}

/* GRID LAYOUT */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    width: 100%; 
}

.service-col { 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    transition: transform 0.3s ease; 
}

.service-col:hover {
    transform: translateY(-5px); 
}

/* COLUMN IMAGES */
.service-img { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    width: 100%;
}

/* TEXT CONTENT BOXES */
.service-text { 
    padding: 35px 25px; 
    text-align: left; 
    color: #fff; 
    flex-grow: 1; 
}

.service-text h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    font-weight: bold; 
    line-height: 1.3;
    font-family: Arial, Helvetica, sans-serif;
}

.service-text .underline { 
    border-bottom: 2px solid #fff; 
    padding-bottom: 2px; 
}

.service-text p { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 19px; 
    line-height: 1.5; 
    margin-bottom: 25px; 
}

/* COLOR THEMES */
.red-col .service-text { background-color: #a31d1d; } 
.blue-col .service-text { background-color: #1d4d8c; } 

.service-text p:last-child { margin-bottom: 0; }

/* ============================================ */
/* SECTION: ABOUT / DETAILS STYLING             */
/* ============================================ */

.about-bg {
    background-color: #ffffff; 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; 
    align-items: start;
    padding: 40px 20px;
}

/* Primary Headers - Serif */
.about-header {
    font-family: 'Times New Roman', Times, serif;
    color: #333;
    text-transform: uppercase;
    /* --- PRECISION CONTROLS --- */
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.1;
    /* -------------------------- */
    margin-bottom: 35px;
}

/* Subheadlines - Sans-Serif */
.about-subheadline {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    /* --- PRECISION CONTROLS --- */
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    /* -------------------------- */
    margin-bottom: 25px;
}

/* Body Text - The "Thinner & Looser" Look */
.about-col p, .about-list li {
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
    /* --- PRECISION CONTROLS --- */
    font-size: 20px;
    font-weight: 300;       /* Thinner weight */
    letter-spacing: 0.8px;  /* Looser horizontal spacing */
    line-height: 1.5;       /* Looser vertical spacing */
    /* -------------------------- */
    margin-bottom: 25px;
}

/* Item Titles (Underlined Headers) */
.about-item-title {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    /* --- PRECISION CONTROLS --- */
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    /* -------------------------- */
    margin-top: 40px;
    margin-bottom: 12px;
}

.underline-dark {
    border-bottom: 2px solid #333;
    padding-bottom: 2px;
}
/* Special Styling for the Summary Paragraph */
.about-summary {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    /* --- PRECISION CONTROLS --- */
    font-size: 20px;
    font-weight: 700;       /* Bold */
    font-style: italic;     /* Italicized */
    letter-spacing: 0.8px;  
    line-height: 1.6;       
    /* -------------------------- */
    margin-top: 30px;
}

/* ============================================ */
/* SECTION: ABOUT SUMMARY BOX                   */
/* ============================================ */

.about-summary-box {
    /* UPDATED: Opaque blue (matching the blue columns) */
    background-color: rgba(6, 73, 160, 0.05);
    
    /* Adds a subtle border to define the box further */
    border: 1px solid rgba(42, 71, 110, 0.185); 
    
    border-radius: 12px;       
    padding: 35px;             
    margin-top: 40px;
    
    /* BOX SHADOW: Soft depth */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    /* --- PRECISION FONT CONTROLS --- */
    font-family: Arial, Helvetica, sans-serif;
    color: #1d4d8c;            /* Set text to brand blue for a cohesive look */
    
    font-size: 20px;
    font-weight: 700;          
    font-style: italic;        
    letter-spacing: 0.8px;
    line-height: 1.6;
    /* ------------------------------- */
}

/* ============================================ */
/* GLOBAL: SECTION SPACING                      */
/* ============================================ */

.section-padding { 
    /* Reduced from 80px to 40px to tighten the gap */
    padding: 20px 0; 
    background-color: #fff; 
}

/* Force rows to stack vertically */
.row-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 80px; /* Space between the rows */
}

.title-row {
    margin-bottom: 50px;
    padding-top: 40px;
}

/* The Grid (1.2 to 0.8 ratio) */
.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* Inherited Styling from your earlier sections */
.about-header {
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 1.8px;
    margin-bottom: 30px;
}

.about-p, .about-list li {
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
    font-size: 19px;
    font-weight: 300;       /* Thin weight from your previous success */
    letter-spacing: 0.7px;  /* Loose spacing */
    line-height: 1.8;       /* Loose leading */
}

.mission-signature {
    margin-top: 35px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 19px;
}

.founders-img {
    width: 100%;
    border-radius: 12px;
}

.about-summary-box {
    background-color: rgba(29, 77, 140, 0.05); 
    border: 1px solid rgba(29, 77, 140, 0.1); 
    border-radius: 12px;       
    padding: 35px;             
}

/* FAT FOOTER STYLES */
.fat-footer {
    background-color: #b21e1e; /* Deep Red from Screenshot */
    color: #ffffff;
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

/* Typography Consistency */
.footer-logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-header {
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-address, .footer-phones, .footer-email, .footer-serving p {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 300; /* Matching the thin aesthetic */
    line-height: 1.8;
    font-style: normal;
    margin-bottom: 20px;
}

.footer-contact-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contact-col a:hover {
    opacity: 0.7;
}

/* Map Container */
.map-container {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* COPYRIGHT BAR */
.copyright-bar {
    background-color: #1a1a1a;
    color: #999;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

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

.footer-nav a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
}

.footer-nav a:hover {
    color: #fff;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .copyright-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* LARGE PHONE NUMBER STYLING */
.footer-phone-large {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;      /* Large, prominent size */
    font-weight: 700;     /* Bold for high visibility */
    letter-spacing: 1px;
    line-height: 1.4;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-phone-large:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Maintain thin styling for other text */
.footer-address, .footer-email, .footer-serving p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 300; /* Thin and loose */
    line-height: 1.8;
    margin-top: 20px;
}

/* LARGE PHONE NUMBER STYLING */
.footer-phone-large {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;      /* Large, prominent size */
    font-weight: 700;     /* Bold for high visibility */
    letter-spacing: 1px;
    line-height: 1.4;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-phone-large:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Maintain thin styling for other text */
.footer-address, .footer-email, .footer-serving p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 300; /* Thin and loose */
    line-height: 1.8;
    margin-top: 20px;
}

/* --- MOBILE REPAIRS --- */
@media (max-width: 768px) {
    
    /* Force columns to stack and stop the 'cut off' look */
    .mission-grid, .footer-grid, .header-flex, .services-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 30px !important;
    }

    /* Side Padding so content isn't touching the edge */
    .container {
        padding: 0 20px !important;
        overflow-x: hidden; /* Stops horizontal scrolling */
    }

    /* Hamburger Icon Styling */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .hamburger span {
        width: 25px;
        height: 3px;
        background: #333;
    }

    /* Hide menu by default on mobile */
    .main-nav {
        display: none;
        width: 100%;
        text-align: center;
        background: #fff;
        padding: 20px 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- HEADER CORE (Stabilization) --- */
.site-header {
    background: #fff;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* --- NAV & LINKS --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

/* --- SOCIAL ICONS (Size Lock & Alignment) --- */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* Pushes icons to the far right of the group */
}

/* Prevents the 'Giant Icon' fail seen in earlier screenshots */
.social-icon {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

/* Define helper classes for visibility */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* --- HAMBURGER (Hidden on Desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
}

/* ============================================ */
/* MOBILE BREAKPOINT (Under 992px)              */
/* ============================================ */
@media (max-width: 992px) {
    /* Swap visibility */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; margin-top: 25px; justify-content: center;}

    .hamburger { display: flex; }

    .main-nav {
        display: none; /* Stays hidden until JS toggles it */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}