/*
Theme Name: Pena Law
Author: Stray Dog Communications
Description: Custom ACF Block Theme for Pena Law Group
Version: 1.0.0
Text Domain: penalaw
*/

        /* --- BRAND COLORS: NAVY & RED --- */
        :root {
            --brand-navy: #162542;
            --brand-red: #B71C1C; 
            --brand-red-hover: #9A1616;
            --white: #ffffff;
            
            --bg-page: var(--brand-navy);
            --bg-alt: #0f192d; 
            --bg-card-dark: #080d18; 
            
            --text-body: #cbd5e1;
            --text-heading: var(--white);
            --border-card: rgba(255, 255, 255, 0.05);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Merriweather', serif; background-color: var(--bg-page); color: var(--text-body); line-height: 1.8; overflow-x: hidden;}
        h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--text-heading); line-height: 1.2; }
        a { text-decoration: none; transition: 0.3s ease; }
        .container { max-width: 1250px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10;}
        .bg-alt-section { background-color: var(--bg-alt); }

        /* --- TOP UTILITY BAR --- */
        .top-bar { background-color: #0f192d; color: #d1d5db; padding: 10px 0; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; position: relative; z-index: 1001;}
        .top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
        .top-bar a { color: #d1d5db; }
        .top-bar a:hover { color: var(--brand-red); }
        .top-phone { color: var(--white) !important; font-weight: 800; font-size: 0.95rem; letter-spacing: 1px;}
        .lang-toggle-wrapper { display: flex; align-items: center; gap: 8px; }
        .lang-toggle-wrapper svg { width: 16px; height: 16px; fill: var(--brand-red); }
        .lang-toggle { color: #d1d5db; }
        .lang-toggle span { color: var(--brand-red); font-weight: 800;}

        /* --- MAIN HEADER & NAVIGATION --- */
        header { background: var(--white); padding: 15px 0; position: sticky; top: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
        .nav-flex { display: flex; justify-content: space-between; align-items: center; }
        .logo-link { display: block; }
        .logo-img { max-height: 55px; display: block; filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.15)); }
        .main-nav ul { display: flex; gap: 35px; list-style: none; margin: 0;}
        .main-nav a { color: var(--brand-navy); font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        .main-nav a:hover { color: var(--brand-red); }

        /* --- FLOATING PHONE PILL --- */
        .floating-phone { position: fixed; bottom: 30px; right: 30px; background-color: var(--brand-red); color: var(--white); padding: 15px 25px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 15px rgba(183, 28, 28, 0.4); z-index: 9999; transition: transform 0.3s ease, background-color 0.3s ease; letter-spacing: 1px; }
        .floating-phone:hover { background-color: var(--white); color: var(--brand-navy); transform: translateY(-3px); }

        /* --- BUTTONS --- */
        .btn { display: inline-block; padding: 15px 30px; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; border-radius: 2px; cursor: pointer; letter-spacing: 0.5px; text-align: center; }
        .btn-red { background-color: var(--brand-red); color: var(--white); border: 2px solid var(--brand-red); }
        .btn-red:hover { background-color: var(--brand-red-hover); border-color: var(--brand-red-hover); transform: translateY(-2px); }
        .btn-outline { border: 2px solid var(--brand-red); color: var(--brand-red); background: transparent; }
        .btn-outline:hover { background: var(--brand-red); color: var(--white); }

        /* --- SPLIT HERO --- */
        .hero { 
            position: relative;
           /* min-height: 85vh; */
            display: flex; 
            align-items: center; 
            padding: 80px 0;
            padding-bottom:75px;
            overflow: hidden;
            background: radial-gradient(circle at 60% 50%, #1f335c 0%, var(--brand-navy) 70%);
        }

        .hero-flex {
            position: relative;
            display: flex;
            justify-content: space-between; 
            align-items: center;
            z-index: 3;
            width: 100%;
        }
        
        .ashley-portrait {
            position: absolute;
           /* bottom: -133px; */ 
            right: -16px;
            width: 1200px;
            height: calc(100% + 140px);
            background-image: url('ashley-pena.png');
            background-repeat: no-repeat;
            background-position: center bottom;
            background-size: contain;
            z-index: 2;
        }
        
        .hero-text { 
            max-width: 550px; 
            position: relative;
            z-index: 3;
        }
        .hero-kicker { display: block; color: var(--brand-red); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; }
        .hero-text h1 { color: var(--white); font-size: 3.8rem; margin-bottom: 1.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .hero-text p { color: var(--white); font-size: 1.25rem; font-family: 'Montserrat', sans-serif; opacity: 0.9; line-height: 1.6;}
        
        /* --- HIGH CONVERTING HERO FORM --- */
        .hero-form-wrapper {
            width: 400px; 
            flex-shrink: 0;
            transform: translateY(30px); 
            position: relative;
            z-index: 4; 
        }

        .hero-form-card { 
            background: var(--white); 
            border-radius: 4px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.6); 
            overflow: hidden; 
        }
        
        .hero-form-header {
            background-color: var(--brand-red);
            padding: 25px 20px;
            text-align: center;
        }
        
        .hero-form-header h3 { 
            color: var(--white); 
            font-size: 1.25rem; 
            margin: 0; 
            line-height: 1.4;
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .hero-form-body { padding: 30px 30px 35px 30px; }
        
        .hero-form-list {
            list-style: none;
            margin: 0 0 25px 0;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr 1fr; 
            gap: 12px 10px;
        }
        
        .hero-form-list li {
            color: #4b5563;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .hero-form-list li::before {
            content: '✓';
            color: var(--brand-red);
            font-size: 1.1rem;
            font-weight: 800;
        }
        
        .form-group { margin-bottom: 15px; text-align: left; }
        .form-control { 
            width: 100%; 
            padding: 14px; 
            border: 1px solid rgba(0,0,0,0.1); 
            font-family: 'Montserrat', sans-serif; 
            font-size: 0.95rem; 
            resize: vertical; 
            background-color: #f1f5f9; 
            border-radius: 2px;
            color: #1f2937;
        }
        .form-control::placeholder { color: #6b7280; opacity: 1; }
        .hero-form-card .btn-red { width: 100%; margin-top: 10px; padding: 18px; font-size: 0.9rem;}
        
        /* Override Gravity Forms default */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
    width: 100% !important; 
    padding: 14px !important; 
    border: 1px solid rgba(0,0,0,0.1) !important; 
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 0.95rem !important; 
    background-color: #f1f5f9 !important; 
    border-radius: 2px !important;
    color: #1f2937 !important;
}

/* Override Gravity Forms submit button to match our Red Power button */
.gform_wrapper input[type="submit"] {
    background-color: var(--brand-red) !important;
    color: var(--white) !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 0.9rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
}
.gform_wrapper input[type="submit"]:hover {
    background-color: var(--brand-red-hover) !important;
    transform: translateY(-2px);
}



        /* --- IMAGE TRUST BADGES --- */
        .trust-band { background: var(--white); padding: 40px 0; border-bottom: 1px solid #e5e7eb; position: relative; z-index: 100; }
        .trust-badges-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
        .trust-badge-img { max-height: 120px; width: auto; object-fit: contain; }

        /* --- SECTION PADDING --- */
        .section-pad { padding: 100px 0; }
        .section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto;}
        .section-header h2 { font-size: 2.8rem; margin-bottom: 15px; }
        
        /* --- TRIAGE CARDS --- */
        .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
        .card { background: var(--bg-card-dark); padding: 40px; border-radius: 6px; border: 1px solid var(--border-card); border-top: 4px solid var(--brand-red); transition: transform 0.3s ease;}
        .card:hover { transform: translateY(-5px); }
        .card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--white); }
        .card-link { color: var(--brand-red); font-weight: 700; font-family: 'Montserrat', sans-serif; text-transform: uppercase; font-size: 0.85rem; margin-top: 15px; display: inline-block; }

        /* --- ABOUT / EMPATHY SPLIT --- */
        .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
        .split-img { width: 100%; height: 500px; background: url('ashley-pena.png') no-repeat top center; background-size: cover; background-color: var(--white); border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
        .split-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
        .split-text p { margin-bottom: 20px; font-size: 1.1rem; }
        .check-list { list-style: none; margin-top: 30px; margin-bottom: 40px;}
        .check-list li { margin-bottom: 15px; font-family: 'Montserrat', sans-serif; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text-heading);}
        .check-list li::before { content: '✓'; color: var(--brand-red); font-size: 1.2rem; }

        /* --- RESULTS --- */
        .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
        .result-card { background: var(--bg-card-dark); padding: 40px 30px; border: 1px solid var(--border-card); text-align: center; border-radius: 6px; transition: transform 0.3s ease;}
        .result-card:hover { transform: translateY(-5px); }
        .result-amount { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--brand-red); margin-bottom: 10px; }
        .result-type { font-weight: 700; color: var(--white); font-family: 'Montserrat', sans-serif; }
        .result-desc { font-size: 0.9rem; margin-top: 10px; color: #94a3b8; }

        /* --- CLIENT REVIEWS (Google Style) --- */
        .reviews-section { background-color: #fafafa; }
        .reviews-section h2 { color: var(--brand-navy); }
        .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 30px;}
        .review-card { 
            background: var(--white); 
            padding: 30px; 
            border-radius: 6px; 
            border: 1px solid #e5e7eb; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
            position: relative;
        }
        
        .google-icon { position: absolute; top: 30px; right: 30px; width: 20px; height: 20px; }
        .review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px;}
        
        .reviewer-avatar {
            width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
        }
        .avatar-c { background-color: #005a4b; } 
        .avatar-a { background-color: #7b2cbf; }
        .avatar-img { background: url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?q=80&w=100') no-repeat center center; background-size: cover; }
        
        .reviewer-info h4 { font-size: 1.05rem; margin: 0 0 2px 0; color: #1f2937; }
        .reviewer-date { font-size: 0.8rem; color: #6b7280; font-family: 'Montserrat', sans-serif; font-weight: 600;}
        .review-stars { margin-bottom: 15px; color: #facc15; font-size: 1.2rem;}
        .review-text { font-size: 0.95rem; color: #374151; line-height: 1.6; }
        
        .review-summary { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: #1f2937; margin-top: 20px;}
        .review-summary strong { font-weight: 800; }

        /* --- GEO SERVICE AREAS GRID --- */
        .geo-grid { 
            display: grid; 
            grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
            gap: 15px; 
            margin-top: 30px;
        }
        .geo-link {
            display: block;
            background: var(--bg-card-dark);
            border: 1px solid var(--border-card);
            color: #d1d5db;
            padding: 20px 15px;
            text-align: center;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .geo-link:hover {
            background: var(--brand-red);
            color: var(--white);
            transform: translateY(-3px);
            border-color: var(--brand-red);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }

        /* --- FOOTER --- */
        footer { background-color: var(--brand-navy); color: #d1d5db; padding: 80px 0 30px 0; border-top: 4px solid var(--brand-red); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
        .footer-col h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; }
        .footer-logo { color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; display: block; }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 12px; }
        .footer-col ul a { color: #94a3b8; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; }
        .footer-col ul a:hover { color: var(--brand-red); }
        .footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.8rem; font-family: 'Montserrat', sans-serif; }

        /* --- MOBILE RESPONSIVENESS --- */
        @media (max-width: 1024px) {
            .hero-form-wrapper { width: 350px; }
            .hero-form-list { grid-template-columns: 1fr; gap: 8px;} 
            .geo-grid { grid-template-columns: repeat(4, 1fr); }
        }
        
        @media (max-width: 900px) {
            .main-nav { display: none; }
            .top-bar-flex { justify-content: center; }
            
            .hero { min-height: auto; padding: 60px 0; }
            .hero-flex { flex-direction: column; text-align: center; }
            
            .ashley-portrait { 
                right: 50%; transform: translateX(50%); bottom: 0; width: 100%; height: 100%;
                opacity: 0.15; z-index: 1;
            }
            
            .hero-text { max-width: 100%; margin-bottom: 40px; }
            .hero-text h1 { font-size: 2.8rem; }
            
            .hero-form-wrapper { width: 100%; max-width: 500px; transform: translateY(0); margin: 0 auto;}
            
            .split-grid, .footer-grid { grid-template-columns: 1fr; }
            .geo-grid { grid-template-columns: repeat(3, 1fr); }
            
            .trust-badges-flex { justify-content: center; gap: 20px; }
            .trust-badge-img { max-height: 90px; } 
            .floating-phone { bottom: 20px; right: 20px; font-size: 0.9rem; padding: 12px 20px; }
        }
        @media (max-width: 480px) {
            .trust-badge-img { max-height: 75px; }
            .hero-text h1 { font-size: 2.4rem; }
            .hero-form-body { padding: 25px 20px; }
            .geo-grid { grid-template-columns: repeat(2, 1fr); }
        }
        
       /* --- TRUST BADGES STRICT STYLING --- */
.trust-badges-section {
    background-color: #f8fafc;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.trust-badges-section .badges-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.trust-badges-section .badge-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-badges-section .badge-img {
    max-height: 70px !important; /* Forces them to stay a reasonable height */
    width: auto !important;      /* Prevents WP from stretching them */
    object-fit: contain;         /* Keeps the aspect ratio perfect */
    display: block;
    margin: 0;
}

/* --- SPLIT BIO SECTION --- */

/* Mobile-first flex container */
.split-bio-flex {
    display: flex;
    flex-direction: column; /* Stacks image on top of text for mobile */
    gap: 40px;
    align-items: center;
}

/* 1. The Columns */
.bio-image-col, 
.bio-text-col {
    width: 100%;
    flex: 1; /* Makes them take up equal 50/50 space on desktop */
}

/* 2. The Bio Image */
.bio-image-col .bio-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Premium drop shadow */
    object-fit: cover;
    display: block;
}

/* 3. The Typography and Spacing */
.bio-text-col h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.bio-description p {
    margin-bottom: 20px;
    color: #4b5563; /* Soft gray for high readability */
    line-height: 1.7;
}

/* 4. The Custom Checkmark List */
.bio-checkmarks {
    list-style-type: none !important; /* Removes default bullet points */
    padding: 0;
    margin: 30px 0;
}

.bio-checkmarks li {
    display: flex;
    align-items: center; /* Aligns the SVG checkmark perfectly with the text */
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.bio-checkmarks .check-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0; /* Prevents the checkmark from shrinking if the text wraps to two lines */
}

/* --- DESKTOP BREAKPOINT --- */
@media (min-width: 992px) {
    .split-bio-flex {
        flex-direction: row; /* Puts them side-by-side */
        align-items: flex-start; /* Aligns both columns to the top */
        gap: 60px; /* Wider gap for desktop breathing room */
    }
}

/* --- CLIENT REVIEWS OVERRIDE --- */
.client-reviews .section-header h2 {
    color: var(--brand-navy) !important;
}

/* --- HEADER CORE LAYOUT --- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Header Right Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Nav List - Visible on Desktop */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Actions (Phone & Lang) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hide Hamburger on Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brand-navy);
    position: relative;
    transition: all 0.3s ease;
}
.hamburger::before { content: ""; position: absolute; top: -8px; left: 0; }
.hamburger::after { content: ""; position: absolute; bottom: -8px; left: 0; }

/* --- MOBILE RESPONSIVE (992px and below) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* Show pancake only on mobile */
    }

    .main-nav {
        display: none; /* Hide nav on mobile until toggled */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .main-nav.is-open {
        display: block; /* Show when JS toggles it */
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    /* Fix phone/lang crowding on mobile */
    .action-items {
        gap: 10px;
    }
    
    .phone-link {
        font-size: 0.85rem;
    }
}

/* --- SURGICAL HEADER FIXES --- */

/* 1. Ensure the Logo and Nav are visible on Desktop */
@media (min-width: 993px) {
    .main-nav {
        display: block !important;
    }
    .main-nav ul {
        display: flex !important;
        visibility: visible !important;
    }
}

/* 2. Hamburger Logic (Hide on Desktop, Show on Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block !important;
    }
    
    /* Ensure the mobile menu actually hides/shows when we click the button */
    .main-nav {
        display: none; 
    }
    
    .main-nav.is-open {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

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

    /* 3. Spacing for Phone & Lang on Mobile */
    .action-items {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}

/* 4. Hamburger Icon Visuals */
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brand-navy);
    position: relative;
    transition: all 0.3s ease;
}
.hamburger::before { content: ""; position: absolute; top: -8px; left: 0; }
.hamburger::after { content: ""; position: absolute; bottom: -8px; left: 0; }

/* --- FIXING THE MISSING LOGO --- */
.logo-text {
    color: #162542 !important; /* Force the Navy color */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    display: block !important;
}

/* --- FIXING THE MISSING MENU --- */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Ensure the menu shows on desktop */
@media (min-width: 993px) {
    .main-nav {
        display: block !important;
    }
    .nav-list {
        display: flex !important;
        list-style: none;
        gap: 30px;
        margin: 0;
        padding: 0;
    }
    .menu-toggle {
        display: none !important; /* Hide pancake on desktop */
    }
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block !important;
    }
    .main-nav {
        display: none; /* Hide until toggled */
    }
    .main-nav.is-open {
        display: block !important;
    }
}

/* --- SPECIFIC PANCAKE FIX --- */
@media (max-width: 992px) {
    /* 1. Make the button a big square (Hitbox) */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 60px !important; /* Large tap area */
        height: 60px !important;
        background: transparent !important;
        border: none !important;
        
        /* 2. Create the padding on the right */
        margin-right: 15px !important; 
        
        /* 3. Fix the "click-through" issue */
        position: relative;
        z-index: 9999;
    }

    /* Ensure the actual lines don't block the click */
    .hamburger {
        pointer-events: none;
    }
}

/* --- LOGO MOBILE PADDING --- */
@media (max-width: 992px) {
    .logo {
        /* This creates the same breathing room on the left as the pancake has on the right */
        padding-left: 15px !important;
    }
    
    .logo-img {
        /* Ensures the image doesn't get squished by the new padding */
        width: auto !important;
        display: block;
    }
}

/* --- RIGHT-ALIGN MOBILE MENU CONTENT --- */
@media (max-width: 992px) {
    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        /* Aligns the list items to the right of the container */
        align-items: flex-end !important; 
        /* Adds space from the right edge of the dropdown */
        padding-right: 20px !important; 
        gap: 15px !important;
    }

    .nav-list li {
        width: 100%;
        /* Aligns the actual text inside the link to the right */
        text-align: right !important;
    }

    .nav-list li a {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
}

/* --- TOP BAR MOBILE ALIGNMENT --- */
@media (max-width: 992px) {
    .top-bar-flex {
        display: flex !important;
        flex-direction: row !important; /* Keeps them on one line */
        justify-content: space-between !important; /* Pushes them to opposite sides */
        align-items: center !important;
        padding: 0 15px !important; /* Matches the logo/pancake padding */
        width: 100% !important;
    }

    /* Ensure the individual items don't have weird margins */
    .lang-toggle-wrapper {
        margin: 0 !important;
    }

    .top-phone {
        margin: 0 !important;
        text-align: right !important;
    }
}

/* --- PRACTICE AREA LAYOUT --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 380px; /* 380px Sidebar */
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
    align-items: start;
}

.inner-hero {
    background-color: var(--brand-navy);
    padding: 80px 0;
    border-bottom: 5px solid var(--brand-red);
}

.inner-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Sidebar Styling */
.sidebar {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
}

.sidebar-form-card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.sidebar-form-header {
    background: var(--brand-red);
    padding: 20px;
    text-align: center;
}

.sidebar-form-header h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

.sidebar-form-body {
    padding: 25px;
}

.sidebar-form-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--brand-navy);
    text-transform: uppercase;
}

.sidebar-form-list li::before {
    content: '✓';
    color: var(--brand-red);
    margin-right: 5px;
}

/* Resource Card */
.sidebar-card {
    background: var(--bg-card-dark);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-card);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 10px;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-list a {
    color: var(--text-body);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.resource-list a:hover {
    color: var(--brand-red);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}

/* --- PRACTICE AREA TEMPLATE STYLING --- */

/* Inner Hero with Welder Visual Overlay */
.inner-hero {
    /* Background image is now handled dynamically in PHP */
    background-size: cover; 
    background-position: center center; 
    padding: 100px 0 80px 0; 
    text-align: center;
    background-repeat: no-repeat;
}

.inner-hero h1 { color: var(--white); font-size: 3.2rem; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.inner-hero p { color: #d1d5db; font-size: 1.15rem; max-width: 750px; margin: 0 auto; font-family: 'Montserrat', sans-serif;}

/* Layout Structure */
.page-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding: 80px 0; align-items: start; }

/* Main Content Styling */
.main-content h2 { font-size: 2.2rem; margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; color: var(--brand-navy); }
.main-content h2:first-child { margin-top: 0; }
.main-content p { margin-bottom: 20px; font-size: 1.05rem; color: #4b5563; }

.highlight-box { background-color: #f1f5f9; border-left: 5px solid var(--brand-red); padding: 30px; margin: 40px 0; }
.highlight-box p { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--brand-navy); font-size: 1.1rem; line-height: 1.4; }

/* Sticky Sidebar */
.sidebar { position: sticky; top: 120px; }

/* Sidebar Form Card with Attorney Pic Overlap */
.sidebar-form-card { 
    background: var(--white); 
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
    position: relative; 
}

.sidebar-form-header {
    background-color: var(--brand-red);
    padding: 30px 20px;
    text-align: left; 
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.sidebar-form-header h3 { 
    color: var(--white); 
    font-size: 1.25rem; 
    margin: 0; 
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    max-width: 70%; 
}

.form-attorney-pic {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url('ashley-pena.png'); /* Ensure this file is in your theme folder */
    background-size: cover;
    background-position: top center;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.sidebar-form-body { padding: 25px; }

.sidebar-form-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sidebar-form-list li {
    color: #4b5563;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-form-list li::before {
    content: '✓';
    color: var(--brand-red);
    font-size: 1rem;
    font-weight: 800;
}

/* Sidebar Resource Cards */
.sidebar-card { 
    background: var(--white); 
    padding: 30px; 
    border: 1px solid #e5e7eb; 
    border-top: 4px solid var(--brand-navy); 
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
}

.sidebar-card h3 { font-size: 1.2rem; margin-bottom: 15px; text-align: center; color: var(--brand-navy); }
.resource-list { list-style: none; padding: 0; font-size: 0.95rem; }
.resource-list li { margin-bottom: 8px; border-bottom: 1px solid #f1f5f9; padding-bottom: 5px; }
.resource-list a { color: var(--brand-navy); font-weight: 600; display: block; }
.resource-list a:hover { color: var(--brand-red); padding-left: 5px; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .inner-hero h1 { font-size: 2.2rem; }
}

/* --- PRACTICE AREA PAGE BACKGROUND --- */

/* 1. Target the wrapper section */
.page-layout-wrapper {
    background-color: #fafafa;
    width: 100%;
}

/* 2. Adjust the existing page-layout padding */
.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 80px 20px; /* Added horizontal padding for mobile safety */
    align-items: start;
    background-color: #fafafa; /* Ensures the gap between columns is also this color */
}

/* 3. Optional: Make the main content "pop" if you want it white 
   (Skip this if you want the text directly on the #fafafa) */
.main-content {
    /* background: var(--white); */
    /* padding: 40px; */
    /* border-radius: 4px; */
}

/* --- PRACTICE AREA BACKGROUND & LAYOUT --- */

/* This makes the #fafafa color go edge-to-edge */
.page-layout-wrapper {
    background-color: #fafafa;
    width: 100%;
}

.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 80px 20px;
    align-items: start;
}

/* Ensure images in the sidebar display correctly */
.form-attorney-pic {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Sidebar Cards look better white on the #fafafa background */
.sidebar-form-card, .sidebar-card {
    background: var(--white);
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

/* Fix for light-colored list items */
.main-content ul li, 
.main-content ol li {
    color: #4b5563 !important; /* Matches your paragraph color */
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 1. Kill the default browser bullets */
.main-content ul {
    list-style-type: none !important; 
    padding-left: 1.5rem !important; /* Creates the "gutter" for our custom bullet */
    margin-bottom: 30px;
}

/* 2. Style the custom Red Bullet */
.main-content ul li {
    position: relative;
    color: #4b5563 !important;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.main-content ul li::before {
    content: "•";
    color: var(--brand-red);
    font-weight: bold;
    display: inline-block;
    
    /* Size and Positioning */
    font-size: 2rem;       /* Big bold bullet */
    position: absolute;
    left: -1.2rem;         /* Moves the bullet into the padding gutter */
   /* top: -4px;             /* Vertically aligns the big bullet with the text */ 
    
    line-height: 1;
}

/* --- ACF CUSTOM QUOTE BLOCK --- */
.highlight-box { 
    background-color: #f1f5f9 !important;
    border-left: 5px solid #B71C1C !important; 
    padding: 35px !important; 
    margin: 40px 0 !important; 
    border-radius: 0 4px 4px 0;
}

.highlight-box p { 
    margin: 0 !important; 
    font-family: 'Montserrat', sans-serif !important; 
    font-weight: 600 !important; 
    color: #162542 !important; 
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    border: none !important; /* Removes any default block borders */
}

.highlight-box span { 
    display: block !important;
    font-family: 'Merriweather', serif !important; 
    font-size: 0.9rem !important; 
    color: #64748b !important; 
    font-weight: 400 !important; 
    margin-top: 15px !important;
    font-style: normal !important;
}

/* --- BULLETPROOF FAQ STYLING --- */

/* 1. Only style the direct faq-item, kill any nested ones */
.faq-item {
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    margin-bottom: 15px !important;
    padding: 20px !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

/* 2. KILL borders/padding on any accidental nested faq-items */
.faq-item .faq-item {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.faq-question {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #162542 !important;
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.faq-answer {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
}

/* Ensure no extra margins on paragraphs inside the answer */
.faq-answer p {
    margin: 0 !important;
}

/* --- ABOUT PAGE GRID & PILLAR --- */

.bio-grid {
    display: grid;
    grid-template-columns: 380px 1fr; /* Fixed width for the ID badge */
    gap: 60px;
    align-items: start;
}

/* The Legal Badge Card */
.bio-image-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 15px 15px 0px rgba(22, 37, 66, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    text-align: center;
}

.attorney-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #162542;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card-photo {
    line-height: 0;
    font-size: 0;
    border-bottom: 6px solid #B71C1C; /* The Red Stage */
}

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

.card-credentials {
    padding: 25px;
    background: #fcfcfc;
}

.cred-item strong {
    display: block;
    color: #B71C1C;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cred-item {padding-bottom:10px;}

/* Force Brand Navy on Credential Text */
.card-credentials .cred-item p {
    color: #162542 !important;
    opacity: 1 !important; /* Ensures no transparency is softening the color */
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important;
}

/* Mission Box */
.mission-box {
    background-color: #162542;
    padding: 30px;
    margin-top: 30px;
    border-radius: 4px;
}

.mission-box p {
    color: #ffffff !important;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 !important;
}

/* Responsive Fix */
@media (max-width: 991px) {
    .bio-grid {
        grid-template-columns: 1fr;
    }
    .bio-sidebar-pillar {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- CONTACT PAGE STYLING --- */

.contact-page {
    background-color: #fafafa;
}

.contact-hero {
    background-color: var(--brand-navy);
    padding: 80px 0;
}

.contact-hero h1, 
.contact-hero .subtitle {
    color: #ffffff !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

/* Info Blocks */
.info-block {
    margin-bottom: 40px;
}

.info-block .eyebrow {
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.contact-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-navy);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--brand-red);
}

.info-block address {
    font-style: normal;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 10px;
}

/* The Form Card */
.contact-form-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--brand-red);
}

.contact-form-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.contact-form-card p {
    margin-bottom: 30px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-form-card {
        padding: 30px;
    }
}

/* --- PRIMARY BUTTON STYLING --- */

.btn-primary {
    display: inline-block !important;
    background-color: #B71C1C !important; /* Brand Red */
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 18px 35px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 0px #8a1515; /* Subtle depth */
}

.btn-primary:hover {
    background-color: #162542 !important; /* Shifts to Navy on hover */
    box-shadow: 0 4px 0px #0d1729;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 2px 0px #0d1729;
}

/* --- CONTACT PAGE FINAL POLISH --- */

.contact-value, 
.contact-value-small, 
.contact-details p {
    color: #162542 !important;
}

/* Ensure Gravity Form labels/inputs on this page don't go light gray */
.evaluation-card label {
    color: #162542 !important;
    font-weight: 700;
}

/* Map Styling */
.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Responsive Fix */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- THE FINAL NAV BUTTON (Desktop + Mobile) --- */

/* 1. DESKTOP STYLES */
.main-navigation ul li.nav-cta-button {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important; 
    margin: 0 !important;
    padding: 0 0 0 10px !important; /* Tiny bit of space from the previous link */
    vertical-align: middle !important;
}

li.nav-cta-button a {
    background-color: #B71C1C !important; /* Brand Red */
    color: #ffffff !important;
    display: inline-block !important;
    line-height: 1 !important; 
    padding: 12px 22px !important;
    
    /* The Alignment Nudge */
    position: relative !important;
    top: -4px !important; 
    
    /* Typography */
    text-transform: uppercase !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

/* Hover State - Color Only */
li.nav-cta-button a:hover {
    background-color: #162542 !important; /* Brand Navy */
    color: #ffffff !important;
}

/* 2. MOBILE STYLES (Restored) */
@media (max-width: 991px) {
    /* Reset the list item for the vertical menu */
    .main-navigation ul li.nav-cta-button {
        display: block !important;
        margin: 15px 20px !important; /* Adds breathing room in the mobile drawer */
        padding: 0 !important;
        height: auto !important;
    }

    /* Make the button full-width and centered on mobile */
    li.nav-cta-button a {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 18px !important; /* Thicker button for easier thumb-tapping */
        font-size: 1rem !important;
        top: 0 !important; /* Remove the desktop nudge for mobile */
    }
}

.lang-toggle a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    opacity: 0.5; /* Inactive language */
    transition: opacity 0.3s ease;
}

.lang-toggle a.is-active {
    opacity: 1; /* Active language */
}

.lang-toggle a:hover {
    opacity: 1;
}

.lang-sep {
    color: #ffffff;
    margin: 0 4px;
    opacity: 0.5;
}

/* Remove default Gutenberg margins from your specific block */
.wp-block-acf-hero-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure the section takes up the full width */
section.hero {
    display: block;
    width: 100%;
    margin: 0;
    /* Adjust this padding if the gap is inside the blue area */
    padding: 80px 0; 
}

/* 1. Target the WordPress auto-generated wrapper */
.wp-block-acf-hero-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* 2. Target your section specifically */
section.hero {
    /* Adjust these numbers to get the exact look you want */
    padding-top: 100px !important; 
    padding-bottom: 100px !important;
    
    /* Ensure it fills the screen width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* Vertical alignment fix */
    display: flex;
    align-items: center;
    min-height: 700px; /* Adjust based on Ashley's photo height */
}

/* 3. Ensure the container inside stays centered */
section.hero .container.hero-flex {
    max-width: 1200px; /* Or your site's container width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Center and Style Pagination */
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-wrapper a, 
.pagination-wrapper span {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #162542;
    font-weight: 700;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-wrapper .current {
    background: #162542;
    color: #ffffff;
    border-color: #162542;
}

.pagination-wrapper a:hover {
    border-color: #B71C1C;
    color: #B71C1C;
}

.pagination-wrapper .prev, 
.pagination-wrapper .next {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Styling for the cities when they are NOT links */
.geo-link.no-click {
    cursor: default;     /* Shows the regular arrow instead of the hand icon */
    pointer-events: none; /* Makes it unclickable */
    opacity: 0.9;        /* Optional: makes them look slightly more like "tags" than buttons */
}

.geo-link.no-click:hover {
    background-color: transparent; /* Or whatever your default background is */
    color: inherit; /* Prevents color shift on hover */
    transform: none; /* If you had a lift effect */
}