/* --- 1. GLOBAL FOUNDATION --- */
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #0a0a0a; margin: 0; overflow-x: hidden; }
.bg-obsidian { background-color: #0a0a0a !important; }
.bg-graphite { background-color: #1a1a1a !important; }
.text-italic { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.playfair { font-family: 'Playfair Display', serif; }
.text-light-gray { color: #aaa; }
.color-gold { color: #d4af37; }

/* --- 2. CINEMATIC HERO --- */
.hero-premium { position: relative; height: 85vh; width: 100%; overflow: hidden; display: flex; align-items: center; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; }
/*.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%); z-index: 2; }*/
.hero-glass-card { position: relative; z-index: 3; padding: 60px; background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(20px); border: 1px solid rgba(212, 175, 55, 0.3); max-width: 800px; margin-left: 5%; }
.hero-subtitle { color: #d4af37; text-transform: uppercase; letter-spacing: 5px; font-weight: 800; font-size: 0.75rem; display: block; margin-bottom: 20px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(45px, 8vw, 100px); line-height: 0.95; margin-bottom: 30px; font-weight: 900; text-transform: uppercase; color: #fff; }
.hero-description { font-size: 1.25rem; font-weight: 300; color: #ddd; line-height: 1.6; max-width: 550px; margin-bottom: 40px; }

/* HERO BUTTON ROW */
.hero-cta-group { display: flex !important; flex-direction: row !important; align-items: center; gap: 20px; flex-wrap: nowrap !important; }
.btn-premium-gold { background: #d4af37; color: #000 !important; padding: 22px 35px; font-weight: 900; text-transform: uppercase; border: none; transition: 0.4s; letter-spacing: 2px; text-decoration: none !important; display: inline-block; cursor: pointer; }
.btn-premium-outline { border: 1px solid #fff; color: #fff !important; padding: 22px 45px; font-weight: 900; text-transform: uppercase; transition: 0.4s; letter-spacing: 2px; text-decoration: none !important; display: inline-block; cursor: pointer; }
.btn-premium-gold:hover { background: #fff; transform: translateY(-3px); }
.btn-premium-outline:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

.rating-badge-hero { color: #d4af37; font-size: 0.8rem; letter-spacing: 1px; }
.rating-badge-hero span { color: #fff; margin-left: 10px; font-weight: 600; }

/* --- 3. BRAND STRIP --- */
.brand-strip { background: #000; padding: 25px 0; border-bottom: 4px solid #d4af37; }
.trust-pill { color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 10px 20px; border-left: 1px solid #d4af37; border-right: 1px solid #d4af37; display: block; }

.compliance-card { padding: 40px; background: #fff; border: 1px solid #eee; text-align: center; height: 100%; transition: 0.3s; }
.compliance-card:hover { border-color: #d4af37; transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.gold-icon { font-size: 2.5rem; color: #d4af37; margin-bottom: 20px; display: block; }

.body-text-premium {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* --- 4. COMMAND DASHBOARD (RESTORED REFERENCE CSS + CIRCULAR BORDERS) --- */
.planner-dashboard { display: flex; justify-content: center; gap: 25px; margin-bottom: 40px; flex-wrap: wrap; }
.dash-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    /*color: #666;*/ 
    color: #ffffff;
    cursor: pointer; 
    transition: 0.4s; 
    padding: 10px; 
    min-width: 140px; 
    background: transparent; 
    border: none; 
    outline: none !important; 
}
.dash-icon-circle { 
    width: 70px; 
    height: 70px; 
    border: 2px solid #444; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 15px; 
    transition: 0.4s; 
    background: rgba(255,255,255,0.05);
}
.dash-item i { font-size: 1.6rem; margin-bottom: 0; }
.dash-item span { font-family: 'Playfair Display', serif; font-size: 0.82rem; font-weight: 700; }
.dash-item:hover { color: #fff; }
.dash-item:hover .dash-icon-circle { border-color: #fff; background: rgba(75, 48, 0, 0.674); }
.dash-item.active { color: #d4af37; position: relative; }
.dash-item.active .dash-icon-circle { border-color: #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.05); }
.dash-item.active::after { content: ''; position: absolute; bottom: -8px; width: 30px; height: 2px; background: #d4af37; box-shadow: 0 0 12px rgba(212, 175, 55, 0.8); }

.config-display { background: rgb(243, 243, 243); border: none; display: flex; align-items: stretch; box-shadow: 10px 10px 15px 5px grey !important; }
.spec-text-side { padding: 60px 60px 60px 100px; background: #fff; border-radius: 1000px 0 0 1000px; position: relative; z-index: 2;/* margin-right: -1px;*/ min-height: 580px; display: flex; flex-direction: column; box-shadow: -15px 0 40px rgba(0,0,0,0.15); }
.spec-content-stack { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr; align-items: center; }
.spec-content-block { grid-area: 1 / 1 / 2 / 2; opacity: 0; visibility: hidden; pointer-events: none; }
.spec-content-block.active { opacity: 1; visibility: visible; pointer-events: auto; animation: dashEntry 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes dashEntry { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

.description-text { margin-left: 15px; margin-right: 5px; font-size: 0.95rem; line-height: 1.8; color: #444; font-weight: 400; }
.p-label { margin-right: 5px; font-size: 0.6rem; font-weight: 800; color: #d4af37; margin-left: 20px; text-transform: uppercase; letter-spacing: 1px; border-left: 2px solid #eee; padding-left: 10px; }
.playfair { margin-left: 5px; }

.spec-meta-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.spec-id { font-family: 'Courier New', Courier, monospace; font-size: 0.65rem; font-weight: 900; background: #f0f0f0; padding: 5px 12px; color: #888; letter-spacing: 2px; border-radius: 4px; }
.spec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 4px; font-weight: 900; color: #bbb; margin-bottom: 12px; display: block; }
.spec-text-side h3 { font-weight: 900; font-size: 2.1rem; margin-bottom: 20px; color: #000; letter-spacing: -0.5px; }
.technical-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0; }
.tech-cell { border-left: 1px solid #eee; padding-left: 15px; }
.tech-cell strong { display: block; color: #000; font-size: 0.65rem; letter-spacing: 1.5px; margin-bottom: 6px; text-transform: uppercase; }
.tech-cell span { font-size: 0.82rem; line-height: 1.6; color: #666; }
.spec-divider-gold { width: 45px; height: 1.5px; background: #d4af37; margin: 25px 0; opacity: 0.6; }
.standard-checklist {
    margin-left: 15px;
}

.video-container { background: #000000; overflow: hidden; position: relative; z-index: 1; border-left: none; }
.spec-video-element { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-technical-pdf { background: #000; color: #fff !important; font-size: 0.65rem; font-weight: 900; padding: 12px 20px; text-decoration: none !important; border-radius: 5px; transition: 0.3s; }

/* CALCULATOR */
.form-control-spec { border-radius: 0; border: none; border-bottom: 2px solid #ddd; font-weight: 800; font-size: 1.2rem; background: transparent; width: 150px; text-align: center; }

/* --- 6. TYPOGRAPHY & NETWORK --- */
.premium-h2 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(35px, 5vw, 55px); line-height: 1.1; color: #0a0a0a; }
.gold-line { width: 80px; height: 4px; background: #d4af37; margin: 25px 0; }
.authority-link { color: #d4af37; font-weight: 800; border-bottom: 1px solid #d4af37; transition: 0.3s; }
/*.network-link { color: #aaa; text-decoration: none !important; transition: 0.3s; font-weight: 700; font-size: 0.9rem; }
.network-link:hover { color: #d4af37; letter-spacing: 1px; }*/


/*--- ZIP CODES ---*/

.zip-directory { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zip-directory span { font-size: 0.7rem; font-weight: 700; color: #888; border: 1px solid #eee; padding: 4px 8px; border-radius: 4px; }
.neighborhood-list { list-style: none; padding: 0; margin: 0; }
.neighborhood-list li { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: #555; position: relative; padding-left: 20px; }
.neighborhood-list li::before { content: "•"; color: #d4af37; position: absolute; left: 0; }
.mini-spec-box { padding: 40px; background: #fcfcfc; border: 1px solid #eee; border-top: 5px solid #d4af37; }
.standard-checklist { list-style: none; padding: 0; }
.standard-checklist li { position: relative; padding-left: 35px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 700; color: #333; }
.standard-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #d4af37; position: absolute; left: 0; top: 3px; }



/* --- DARK INFRASTRUCTURE MATRIX --- */
.network-dark-registry {
    background-color: #0a0a0a !important;
    padding: 60px 0;
}

.registry-label-dark {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #efefef; 
    display: block;
}

.registry-grid-dark {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Maintains 5x5 for 25 items */
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
    margin-top: 20px;
}

.reg-node-dark {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: transparent;
}

.n-code {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #333;
    margin-right: 15px;
    font-weight: 700;
}

.n-city {
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    flex-grow: 1;
    transition: 0.3s;
}

.n-status {
    width: 4px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: 0.4s;
}

/* Interaction States */
.reg-node-dark:hover {
    background-color: #111;
}

.reg-node-dark:hover .n-city {
    color: #fff;
}

.reg-node-dark:hover .n-status {
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Current Page State (San Francisco) */
.reg-node-dark.active {
    background: rgba(212, 175, 55, 0.03);
}

.reg-node-dark.active .n-city {
    color: #d4af37;
    font-weight: 700;
}

.reg-node-dark.active .n-code {
    color: #d4af37;
    opacity: 0.6;
}

.reg-node-dark.active .n-status {
    background: #d4af37;
}

/* Responsive Handling */
@media (max-width: 1199px) {
    .registry-grid-dark { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .registry-grid-dark { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .registry-grid-dark { grid-template-columns: repeat(2, 1fr); }
    .reg-node-dark { padding: 12px 15px; }
    .n-city { font-size: 0.75rem; }
    .registry-label-dark { text-align: center; font-size: 0.6rem; }

}





/* --- 7. GALLERY (REVERTED: NO BLUR, SQUARE) --- */
.gallery-section { padding: 80px 0; }
.gallery-item { overflow: hidden; border: 1px solid #fff; position: relative; aspect-ratio: 1 / 1; background: #000; }
.gallery-item img { transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.08); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; opacity: 0; transition: 0.4s; pointer-events: none; border: 1px solid rgba(212, 175, 55, 0.5); }
.gallery-item:hover .gallery-overlay { opacity: 1; }


/* --- ARCHITECTURAL RFP PORTAL V2 --- */
.rfp-portal-v2 {
    border-radius: 40px;
    background: #fff;
    overflow: hidden;
    display: flex;
}

.rfp-sidebar-v2 {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.technical-tag {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
}

.header-line-v2 {
    width: 40px;
    height: 2px;
    background: #d4af37;
    margin-top: 15px;
}

/* Credential Styling */
.cred-item-v2 {
    margin-bottom: 25px;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding-left: 20px;
}

.cred-label-v2 {
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.cred-value-v2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.sidebar-phone-v2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #d4af37 !important;
    text-decoration: none !important;
}

/* Floating Label Inputs */
.field-container-v2 {
    position: relative;
    width: 100%;
}

.input-v2 {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    transition: 0.4s;
    outline: none !important;
}

.input-v2:focus {
    border-color: #d4af37;
}

.label-v2 {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    transition: 0.3s;
    pointer-events: none;
}

/* Float logic */
.input-v2:focus + .label-v2,
.input-v2:not(:placeholder-shown) + .label-v2 {
    top: -20px;
    font-size: 0.65rem;
    color: #d4af37;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.red-star { color: #ff0000; margin-left: 3px; }

/* Custom Button */
.btn-rfp-v2 {
    min-width: 320px;
    padding: 20px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-rfp-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.input-v2.readonly {
    color: #bbb;
    border-bottom-style: dashed;
}

@media (max-width: 991px) {
    .rfp-portal-v2 { border-radius: 20px; flex-direction: column; }
    .rfp-sidebar-v2 { padding: 40px !important; }
    .btn-rfp-v2 { min-width: 100%; }
}


/* --- VALIDATION CARD STYLING --- */
.validation-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.validation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: #d4af37;
}

.star-rating {
    color: #d4af37;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.report-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
}

.report-text strong {
    color: #000;
    font-weight: 700;
}

.report-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.report-meta strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.report-meta span {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    background: rgba(212, 175, 55, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .validation-card {
        padding: 20px;
    }
}

/* --- 9. FAQ --- */
.faq-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.faq-trigger { background: none; border: none; width: 100%; text-align: left; font-weight: 800; font-size: 1.1rem; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #0a0a0a; outline: none !important; }
.faq-trigger::after { content: '+'; font-family: 'Inter'; font-weight: 300; font-size: 1.5rem; color: #d4af37; transition: 0.3s; }
.faq-trigger:not(.collapsed)::after { content: '−'; transform: rotate(180deg); }
.faq-body { padding: 0 0 25px; font-size: 1rem; line-height: 1.8; color: #555; font-weight: 400; }

/* --- 10. MOBILE ACTION BLADE --- */
/*.mobile-action-blade { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; z-index: 10000; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); border-top: 4px solid #d4af37; }
.blade-item { flex: 1; text-align: center; padding: 15px 5px; background: #fff; color: #000; font-weight: 900; font-size: 0.7rem; text-decoration: none !important; }
.blade-item i { display: block; margin-bottom: 4px; font-size: 1.1rem; color: #d4af37; }
.blade-item.highlight { background: #000; color: #fff; }*/


/* --- SOCIAL BLADE STYLING --- */
.social-blade {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.social-link {
    color: #d4af37;
    font-size: 1.4rem;
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none !important;
}
.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}


/* --- ARCHITECTURAL PDF VIEWER STYLING --- */
#pdfViewerModal .modal-xl {
    max-width: 1000px;
}

.pdf-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Adjusts based on screen height */
    background: #1a1a1a;
}

/* Modal Border accent for luxury feel */
#pdfViewerModal .modal-content {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}


/* --- TECHNICAL SPEC BUTTON REVERSION --- */
.btn-technical-pdf { 
    background: #000; 
    color: #d4af37 !important; 
    font-size: 0.75rem; 
    font-weight: 900; 
    padding: 12px 25px; 
    text-decoration: none !important; 
    border-radius: 5px; 
    transition: 0.3s; 
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-technical-pdf:hover { 
    background: #d4af37; 
    color: #000 !important; 
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Sidebar Specific Adjustment */
.mini-spec-box .btn-technical-pdf {
    width: 100%;
    margin-top: 15px;
}


/* --- COMPLIANCE PILLAR ICON CIRCLES --- */
.pillar-icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #d4af37; /* The Gold Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px; /* Centers circle and adds space below */
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.pillar-icon-circle i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0 !important; /* Overrides previous spacing */
}

/* Hover Effect: Matches the dashboard aesthetic */
.compliance-card:hover .pillar-icon-circle {
    background-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

.compliance-card:hover .gold-icon {
    color: #000 !important; /* Icon turns black on gold background */
}

/* Base card adjustment for top border continuity */
.compliance-card {
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    height: 100%;
    transition: 0.3s;
    border-top: 4px solid #d4af37;
}




/* --- AESTHETIC FLOATING MOBILE BLADE --- */
.mobile-action-blade { 
    position: fixed; 
    bottom: 10px; /* Floats above the bottom */
    left: 0; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    z-index: 10000; 
    pointer-events: none; /* Prevents container from blocking clicks elsewhere */
}

.blade-capsule {
    display: flex;
    align-items: center;
    background: #0a0a0a; /* Obsidian Background */
    border: 1px solid rgba(212, 175, 55, 0.4); /* Thin Gold Border */
    border-radius: 50px; /* Perfect pill shape */
    padding: 4px 15px;
    width: 85%; /* Narrower width */
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    pointer-events: auto; /* Re-enables clicks for the buttons */
}

.blade-item { 
    flex: 1;
    text-align: center; 
    padding: 10px 5px; 
    color: #ffffff !important; 
    font-weight: 800; 
    font-size: 0.7rem; 
    text-decoration: none !important; 
    letter-spacing: 1px;
    transition: 0.3s;
}

.blade-item i { 
    display: inline-block; 
    margin-right: 8px; 
    font-size: 0.9rem; 
    color: #d4af37; /* Technical Gold */
}

.blade-divider {
    width: 2px;
    height: 25px;
    background: #d4af37;
}

.blade-item:active {
    color: #d4af37 !important;
    transform: scale(0.95);
}



/* --- 11. RESPONSIVE --- */
@media (max-width: 1200px) {
    /* --- 2. CINEMATIC HERO --- */
    /*.hero-premium { position: relative; height: 85vh; width: 100%; overflow: hidden; display: flex; align-items: center; }
    .hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; }*/

    .hero-glass-card { padding: 45px; }
    /*.hero-subtitle { color: #d4af37; text-transform: uppercase; letter-spacing: 5px; font-weight: 800; font-size: 0.58rem; display: block; margin-bottom: 20px; }*/
    .hero-title { font-size: clamp(45px, 7vw, 88px); }
    /*.hero-description { font-size: 1.25rem; font-weight: 300; color: #ddd; line-height: 1.6; max-width: 550px; margin-bottom: 40px; }*/

    /* HERO BUTTON ROW */
    /*.hero-cta-group { display: flex !important; flex-direction: row !important; align-items: center; gap: 20px; flex-wrap: nowrap !important; }*/
    .btn-premium-gold, .btn-premium-outline  { padding: 22px 15px; font-size: 15px !important;}
    /*.btn-premium-outline { padding: 22px 15px; font-weight: 900; }*/
    /*.btn-premium-gold:hover { background: #fff; transform: translateY(-3px); }*/
}



@media (max-width: 991px) {


    .hero-title { font-size: clamp(45px, 9vw, 80px) !important; }



    /* KILL THE LEFT-SIDE LEAK: Neutralizes the negative margins on all rows in this section */
    .services .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure the column itself doesn't add a second layer of overflow */
    .mobile-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }


    .spec-text-side { 
        border-radius: 40px 40px 0 0; 
        padding: 40px 20px; 
        min-height: auto; 
        margin-right: 0; 
        border-right: 1px solid rgba(212, 175, 55, 0.3); 
        border-bottom: none;
        width: 100% !important; /* ADD THIS: Prevents the 58% width 'Tablet Gap' */
    }

    .config-display { 
        flex-direction: column; 
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden;
    }

    /* THE SPILL FIX */
    /*.needs-margin {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }*/

    .video-container { height: 350px; width: 100%; border-top: none; }
    
    /* REMOVED SCROLLBAR LOGIC - WRAPPING ENABLED */
    .planner-dashboard { gap: 15px; justify-content: center; overflow-x: visible; flex-wrap: wrap; }
    .dash-item { min-width: 120px; flex: 0 0 auto; }
    
    .hero-cta-group { 
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important; 
        width: 100% !important; 
        gap: 10px !important;
    }
    .btn-premium-gold, .btn-premium-outline { 
        padding: 12px 15px !important;
        font-size: 11px !important;
        flex: 1 !important;
        text-align: center !important; 
        margin-left: 0 !important; 
    }

    /* Stacks the 2-column technical grid into 1 column for mobile */
    .technical-spec-grid { 
    grid-template-columns: 1fr !important; 
    gap: 15px; 
    }


    /* Ensures dashboard items breathe correctly without forcing a horizontal scroll */
    .planner-dashboard { 
        gap: 15px; 
        justify-content: center; 
    }

    .dash-item { 
        min-width: 120px; /* Scaled down from 140px */
    }
    /* 1. Tame the row to stop it from bleeding 15px off-screen */
    /*.services-margin {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }*/

    /* 2. Ensure the dashboard stays centered and contained */
    .planner-dashboard {
        width: 100%;
        gap: 10px; /* Reduced gap for smaller screens */
        padding: 0 10px; /* Internal safety cushion */
    }

    /* 3. Allow buttons to shrink further on tiny devices (iPhone SE) */
    .dash-item {
        min-width: 100px; /* Reduced from 120px for safety */
        flex: 0 1 auto; /* Allows the button to be flexible rather than rigid */
    }

    /* 4. Scale down the icons slightly for mobile focus */
    .dash-icon-circle {
        width: 60px; /* Reduced from 70px */
        height: 60px;
        margin-bottom: 10px;
    }

    .dash-item span {
        font-size: 0.75rem; /* Slightly smaller text for better wrapping */
        text-align: center;
    }


    /* 3. Ensure the parent column doesn't add conflicting space */
    /*.mobile-padding {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }*/


}

@media (max-width: 767px) {

    .hero-premium {
        /* Serves the high-res image as a background since video is removed from HTML */
        background: url('../images/mailboxes/sf/hero/commercial-mailbox-installation-san-francisco.webp') no-repeat center center !important;
        background-size: cover;
    }
    
    .hero-video {
        display: none;
    }

    .social-blade {
        padding: 15px 20px; /* Reduced padding slightly for 5 icons */
        margin: 0 10px;
    }
    .social-link {
        font-size: 1.2rem; /* Scaled down slightly for mobile fit */
    }

    .pdf-container {
        height: 60vh;
    }
    #pdfViewerModal .modal-title {
        font-size: 1rem;
    }
    #pdfViewerModal .btn-premium-gold {
        padding: 8px 12px !important;
        font-size: 0.6rem !important;
    }
    .btn-premium-outline  { 
        padding: 22px 25px !important; 
        font-size: 15px !important;
    }

    .btn-premium-gold { 
        padding: 22px 10px !important; 
        font-size: 15px !important;
    }

 

    .services-mobile-padding {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }
}

@media (max-width: 575px) {

    .hero-title { font-size: clamp(45px, 14vw, 80px) !important; }

    .btn-premium-outline, .btn-premium-gold  { 

        font-size: 17px !important;
    }


    .hero-glass-card { padding: 30px; margin-left: 0%; }

    /*.hero-premium { height: 55vh;}*/

    .services-mobile-padding {
        padding-right: 0px !important;
    }

    .card-margins{      
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

}

@media (max-width: 480px) {
    .hero-glass-card { padding: 15px; }
    .hero-title { font-size: clamp(40px, 6vw, 30px)}
    .rating-badge-hero {font-size: 0.7rem; }
    .hero-premium { height: 560px !important;}

    .post-authority{
        padding-top: 20px !important;
        padding-bottom: 0px !important;
    }

    .pillars{
        padding-bottom: 0px !important;
        padding-top: 15px !important;
        margin-top: -10px !important;
    }
    .pillars-border{
        margin-bottom: 10px !important;
    }
    .pillars-h2 {
        font-size: 30px;
    }
    .services{
        padding-top: 0px !important;
    }
    .services-margin {
        margin-bottom: 0px !important;
    }
    .services-sides {
        padding-left: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 0px !important;
    }
    .gallery-sides {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .reports {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    .reports-h2 {
        font-size: 25px;
    }
    .faq {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    .faq-border {
        margin-bottom: 1px !important;
    }
    .contact{
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    .contact-padding {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 0px !important;
    }
    .contact-inside {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .btn-premium-outline { 
        padding: 12px 20px !important;
    }

    .btn-premium-gold { 
        padding: 12px 10px !important; 

    }
}

@media (max-width: 389px) {
   /* .hero-title { font-size: clamp(35px, 6vw, 30px)}*/
    .hero-premium { height: 580px !important;}

    .btn-premium-gold { 
        padding: 12px 5px !important; 
        font-size: 15px !important;
    }

    .btn-premium-outline  { 
        padding: 12px 5px !important; 
        font-size: 15px !important;
    }

    .rating-badge-hero {font-size: 0.6rem; }

    .p-label, .spec-id{
        font-size: 7px;
    }

}

@media (max-width: 345px) {
    /*.hero-title { font-size: clamp(30px, 6vw, 30px)}*/
    .hero-premium { height: 625px !important;}
}