/* =========================================================
   TUCK GC MASTER STYLESHEET
   Version: 6.6 (Mobile Logo Forcefield & Spacing Lock)
   ========================================================= */

/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #cc0000;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-gray: #cccccc;
    --text-muted: #999999;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The modern scroll lock: prevents side-scroll without breaking sticky */
html, body {
    max-width: 100vw !important;
    overflow-x: clip !important; 
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { 
    font-weight: 800; 
    line-height: 1.2; 
    letter-spacing: -0.5px; 
}

/* --- 2. LAYOUT UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.center-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--light-gray); }

/* --- 2a. GRID SYSTEMS --- */
.grid-2, .grid-3 {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Desktop Defaults */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Split Rows */
.split-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 80px 0;
}
.split-row.reverse { flex-direction: row-reverse; }
.image-block, .text-block { flex: 1; }
.image-block img { width: 100%; border-radius: 4px; box-shadow: var(--shadow); }

/* Tablet Override */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split-row { flex-direction: column !important; gap: 30px; }
}

/* --- 3. GLOBAL HEADER (MASTER STICKY LOCK) --- */
header {
    position: -webkit-sticky !important; /* Safari Support */
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background-color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    align-self: flex-start !important; /* Forces Desktop to escape Body Flexbox and lock to top */
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
    padding: 0; 
}

.logo img { max-height: 60px; width: auto; }
.header-phone, .menu { display: none; }

/* --- 4. GLOBAL BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: #800000; transform: translateY(-2px); }
.btn-hero { padding: 16px 32px; font-size: 1.2rem; margin-top: 20px; }

/* --- 5. BREADCRUMBS --- */
.breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumb a { color: #666; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--accent-color); border-bottom: 1px solid var(--accent-color); }
.breadcrumb span.separator { margin: 0 10px; color: #ccc; }
.breadcrumb .current { color: var(--primary-color); cursor: default; font-weight: 800; }

/* --- 6. COMPONENT STYLES --- */
.feature-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.feature-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.feature-card img { width: 100%; height: 250px; object-fit: cover; border-bottom: 1px solid #eee; margin-top: 0; }
.feature-card h3, .feature-card p { padding: 0 20px; }
.feature-card h3 { margin-top: 20px; margin-bottom: 10px; }
.feature-card p { margin-bottom: 20px; color: #666; flex-grow: 1; }

.enlarge-tag { display: block; font-size: 0.75rem; font-weight: 800; color: var(--accent-color); margin-bottom: 5px; text-transform: uppercase; }

/* Info Boxes */
.info-box { padding: 25px; background: #f9f9f9; border: 1px solid #ddd; border-left-width: 5px; border-radius: 4px; margin: 30px 0; }
.info-box a { font-weight: 700; color: #333; }
.info-box a:hover { color: var(--accent-color); text-decoration: underline; }
.border-blue { border-left-color: #2980b9; background: #eef6ff; }
.border-red { border-left-color: #c0392b; background: #fff4f4; }
.border-black { border-left-color: #000; }

/* Video Player */
.video-wrapper { background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.2); position: relative; border: 1px solid #333; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-facade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; display: flex !important; align-items: center !important; justify-content: center !important; z-index: 5; }
.video-facade img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; z-index: 1; }
.play-button { width: 68px; height: 48px; background: #ff0000; border-radius: 12px; position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s; }
.play-button::before { content: ""; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent white; }
.video-facade:hover .play-button { transform: scale(1.1); }
iframe.video-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; z-index: 20; }

/* --- 7. FOOTER STYLES --- */
.main-footer { background: var(--primary-color); color: white; padding: 60px 0 40px 0; border-top: 6px solid var(--accent-color); margin-top: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; padding-bottom: 30px; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.footer-info { flex: 1; min-width: 300px; }
.footer-info h3 { margin: 0; font-size: 1.8rem; color: white; }
.footer-info p { color: var(--text-gray); margin: 5px 0 0 0; font-size: 1.1rem; }
.footer-info .small-text { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }
.yt-btn { background: var(--accent-color); color: white; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.yt-btn:hover { background: #800000; opacity: 0.9; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: left; margin-bottom: 50px; }
.footer-col h4 { color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: white; font-size: 1.05rem; }
.footer-col a:hover { color: var(--text-gray); text-decoration: underline; }
.footer-divider { margin: 20px 0 10px 0; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; font-weight: bold; border-bottom: 1px solid #444; padding-bottom: 5px; }
.footer-sub-link { color: var(--text-gray) !important; font-size: 0.95rem !important; }
.footer-areas { background: #222; padding: 30px; border-radius: 8px; margin-bottom: 40px; text-align: center; }
.footer-areas p { color: white; font-size: 1.1rem; margin-bottom: 15px; }
.footer-areas .area-list { font-size: 0.95rem; color: var(--text-gray); margin: 0; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 30px; font-size: 1rem; }
.legal-links { margin-top: 10px; font-weight: 500; }
.legal-links a { color: var(--text-muted); }

/* --- 8. DESKTOP RULES (Min-Width 900px) --- */
@media (min-width: 900px) {
    .menu-toggle, .mobile-call-btn { display: none; }
    .header-phone { display: block; font-weight: 800; color: var(--primary-color); margin-right: 20px; font-size: 1.1rem; }
    .menu { display: flex; gap: 20px; list-style: none; align-items: center; }
    .menu-link { font-weight: 700; color: var(--primary-color); padding: 30px 0; font-size: 1.05rem; display: block; }
    .menu-link:hover { color: var(--accent-color); }
    .menu .btn { background: var(--accent-color) !important; color: white !important; padding: 10px 20px !important; border-radius: 4px; font-weight: bold; }
    .menu-item { position: relative; }
    .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; box-shadow: var(--shadow); padding: 10px 0; border-top: 4px solid var(--accent-color); border-radius: 0 0 4px 4px; }
    .menu-item:hover .dropdown { display: block; }
    .dropdown a { display: block; padding: 12px 20px; border-bottom: 1px solid #eee; font-size: 0.95rem; text-transform: none; color: var(--primary-color); }
    .dropdown a:hover { background: #f9f9f9; color: var(--accent-color); padding-left: 25px; }
}

/* --- 9. UNIVERSAL MOBILE RULES (Max-Width 899px) --- */
@media (max-width: 899px) {
    .nav-bar { padding: 0 10px !important; width: 100%; display: flex !important; align-items: center !important; justify-content: space-between !important; }
    
    /* THE UNIVERSAL LOGO LOCK + 16px FORCEFIELD */
    .logo { display: flex; align-items: center; margin-right: auto !important; padding-right: 16px !important; flex: 0 1 auto; min-width: 0; }
    .logo img { height: auto !important; width: auto !important; max-height: 44px !important; max-width: 100% !important; object-fit: contain; }
    
    /* THE UNIVERSAL BUTTON LOCK (8px GAP) */
    .mobile-call-btn, .menu-toggle { 
        display: flex !important; 
        justify-content: center !important; 
        align-items: center !important; 
        height: 34px !important; 
        font-size: 12px !important; 
        font-weight: 800 !important; 
        line-height: 1 !important; 
        text-transform: uppercase; 
        border-radius: 4px !important; 
        margin: 0 !important; 
        padding: 0 12px !important; 
        box-sizing: border-box !important; 
        flex-shrink: 0 !important; 
    }
    .mobile-call-btn { background: var(--accent-color) !important; color: white !important; margin-right: 8px !important; border: none !important; }
    .menu-toggle { background: transparent !important; border: 2px solid var(--primary-color) !important; color: var(--primary-color) !important; }
    
    .menu { display: none; position: absolute; top: 90px; left: 0; width: 100%; background: white; flex-direction: column; border-top: 4px solid var(--accent-color); padding: 0; z-index: 9999; }
    .menu.show { display: flex; }
    .menu li { width: 100%; border-bottom: 1px solid #eee; text-align: left; }
    .menu-link { display: block; padding: 15px 20px; color: var(--primary-color); font-weight: 700; }
    .dropdown { display: block !important; position: static; box-shadow: none; background: #f8f8f8; width: 100%; padding-left: 20px; border-left: 5px solid var(--accent-color); border-top: none; }
    .dropdown a { color: #333; border-bottom: 1px solid #ddd; padding: 12px 20px; display: block; }
    .menu .btn { margin: 15px 20px; display: block; text-align: center; }
    
    /* MOBILE STACKING (Critical Override) */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    .breadcrumb { margin-bottom: 30px; }
}

/* =====================================================================
   10. TUCK GC: LUXURY TYPOGRAPHY & BOX ENFORCEMENT
   ===================================================================== */

/* FIX TABLE OVERFLOWS (Keeps tables inside their boxes) */
.tech-table, table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* FORCE BOXES TO STAY IN BOUNDS */
.info-box, .case-study-box, .secondary-case-study, .permit-box, .feature-box, .detail-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important; 
}

/* UNIFY PARAGRAPH SIZES (COLOR-SAFE) */
main .section .container p,
.intro-text-p {
    font-size: 1.05rem !important; 
    line-height: 1.7 !important;   
    margin-bottom: 25px !important;
}

/* UNIFY SECTION HEADERS (COLOR-SAFE) */
main .section .container h2 {
    font-size: 2rem !important; 
    margin-top: 60px !important;
    margin-bottom: 25px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    border-bottom: 2px solid #eee !important;
    padding-bottom: 10px !important;
    text-align: left !important;
}

/* FIX THE VERY FIRST H2 (The Hook) */
main .section .container h2:first-of-type {
    text-align: center !important;
    font-size: 2.2rem !important; 
    border-bottom: none !important;
    margin-top: 0 !important;
}

h3 { 
    font-size: 1.4rem !important; 
    font-weight: 700 !important; 
    margin-top: 30px !important; 
    margin-bottom: 15px !important;
}

/* FORCE THE HERO TEXT TO BE BRIGHT WHITE */
.hero-section h1 { 
    font-size: 3rem !important; 
    margin-bottom: 15px !important; 
    line-height: 1.15 !important; 
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

.hero-section p, .hero-content p {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

/* UNIFY ALL PAGE WIDTHS */
main .section > .container {
    max-width: 950px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
main .section .container .center-800 {
    max-width: 100% !important; 
}

/* INJECT GLOBAL COMPONENTS */
.process-list { counter-reset: tuck-counter; list-style: none; padding: 0; margin: 40px 0; }
.process-list li { position: relative; padding-left: 60px; margin-bottom: 30px; line-height: 1.6; font-size: 1.05rem; }
.process-list li::before { counter-increment: tuck-counter; content: counter(tuck-counter); position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: #cc0000; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.process-list li strong { font-size: 1.1rem; display: block; margin-bottom: 5px; }

.tech-table { border-collapse: collapse; margin: 50px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); font-size: 1.05rem; }
.tech-table th { background: #1a1a1a; color: white; padding: 18px; text-align: left; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.tech-table td { padding: 18px; border-bottom: 1px solid #e0e0e0; }
.tech-table tr:nth-child(even) { background: #f9f9f9; }

.faq-section { background: #f9f9f9; padding: 50px; border-left: 5px solid #cc0000; border-radius: 4px; margin: 60px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.faq-item { margin-bottom: 30px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question { font-weight: 800; display: block; margin-bottom: 12px; font-size: 1.2rem; }
.faq-answer { line-height: 1.7; font-size: 1.05rem; }

/* --- 11. AGGRESSIVE MOBILE TYPOGRAPHY OVERRIDES --- */
@media (max-width: 900px) { 
    .hero-section h1 { font-size: 2.2rem !important; } 
    main .section .container h2 { font-size: 1.75rem !important; }
    main .section .container h2:first-of-type { font-size: 1.85rem !important; }
    h3 { font-size: 1.25rem !important; }
}