.elementor-30831 .elementor-element.elementor-element-f8e7525{--display:flex;}body.elementor-page-30831:not(.elementor-motion-effects-element-type-background), body.elementor-page-30831 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F7F4EB;}:root{--page-title-display:none;}body.elementor-page-30831{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}/* Start custom CSS *//* DESIGN SYSTEM - RESPONSIVE FULL WEIGHT */
:root {
    --sj-navy: #08214a;
    --sj-dark: #03132c;
    --sj-card: #08214a;
    --sj-orange: #ff8a3d;
    --sj-white: #ffffff;
    --sj-gray: #a1adb9;
}

/* Base Wrapper Fixes */
.sanjose-replacement-wrapper {
    background-color: var(--sj-dark);
    color: var(--sj-white);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Container Adjusts for Mobile */
.sj-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Reduced from 40px for mobile */
}

section {
    padding: 60px 0; /* Scaled down for mobile, desktop handles 120px below */
}

/* TYPOGRAPHY - RESPONSIVE HEADINGS */
.sanjose-replacement-wrapper h2 {
    font-size: 2rem; /* Mobile default size */
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #ffffff !important;
}

.sanjose-replacement-wrapper h2 span { color: var(--sj-orange); }

/* GRID & ROW DEFAULTS (MOBILE FIRST) */
.authority-row, .mat-row-item, .signs-grid, .trust-grid, .cta-btns {
    display: flex;
    flex-direction: column; /* Stacked by default */
    gap: 20px;
}

.mat-row-item {
    background: var(--sj-card);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.mat-img img {
    width: 100%;
    height: auto;
    display: block;
}

.mat-info { padding: 25px; }

.val-card, .sign-item {
    background: var(--sj-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* BUTTONS FIX */
.btn-orange, .btn-dark {
    width: 100%; /* Full width on mobile */
    text-align: center;
    padding: 18px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none !important;
    display: block;
    box-sizing: border-box;
}

.btn-orange { background: var(--sj-orange) !important; color: var(--sj-navy) !important; }
.btn-dark { background: var(--sj-navy) !important; color: var(--sj-white) !important; border: 1px solid rgba(255,255,255,0.2); }

/* PROCESS LIST STYLING */
.proc-step {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step-num { font-size: 2.5rem; font-weight: 900; color: var(--sj-orange); opacity: 0.4; }

/* COST GUIDE (LIGHT SECTION) */
.sj-cost-guide-callout {
    background-color: #f7f9fb;
    padding: 50px 20px;
    text-align: left;
}

.cost-guide-box h3 { color: var(--sj-navy) !important; font-size: 1.5rem; font-weight: 800; }
.cost-link { color: var(--sj-navy) !important; font-weight: 700; text-decoration: underline; }

/* FINAL CTA */
.sj-final-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(5, 13, 24, 0.95), rgba(5, 13, 24, 0.95)), url('https://lifetimeroofingrenovation.com/wp-content/uploads/2024/01/roof-bg.jpg');
    background-size: cover;
}

.cta-visible-heading { font-size: 2.2rem !important; color: #fff !important; }

/* DESKTOP RE-EXPANSION (Above 1024px) */
@media (min-width: 1024px) {
    .sj-container { padding: 0 40px; }
    section { padding: 120px 0; }
    .sanjose-replacement-wrapper h2 { font-size: 3.5rem; }
    
    .authority-row { flex-direction: row; gap: 80px; }
    .auth-left { flex: 1.2; }
    .auth-right { flex: 0.8; }

    .signs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

    .mat-row-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-right: 40px; }
    .mat-info { padding: 0; }

    .proc-step { display: grid; grid-template-columns: 120px 1fr; gap: 40px; }
    .step-num { font-size: 4rem; }

    .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    
    .btn-orange, .btn-dark { width: auto; display: inline-block; padding: 22px 45px; }
    .cta-btns { flex-direction: row; justify-content: center; }
    .cta-visible-heading { font-size: 4.5rem !important; }
}
/* FIXED AUTHORITY ROW & CARD SPACING */
.authority-row {
    display: flex;
    gap: 80px; /* Space between the main text and the cards */
    align-items: stretch; /* Ensures cards match height if needed */
}

.auth-left { 
    flex: 1.2; 
}

.auth-right { 
    flex: 0.8; 
    display: flex; 
    flex-direction: column; 
    gap: 30px; /* This specifically fixes the cards touching each other */
}

.val-card {
    background: var(--sj-card);
    padding: 45px 40px; /* Increased padding for a more premium look */
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.val-card h4 {
    color: var(--sj-orange);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.val-card p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--sj-white);
    opacity: 0.9;
}

/* Mobile Fix for Authority Section */
@media (max-width: 1024px) {
    .authority-row {
        flex-direction: column;
        gap: 40px;
    }
    .auth-right {
        width: 100%;
    }
}/* End custom CSS */