/* TMiller Law - Homepage Styles
 * Extracted from index.html on 2026-04-29 for performance
 * Cache headers in netlify.toml configure 1 year cache for *.css
 */

:root {
        --primary: #1a365d;
        --secondary: #2f855a;
        --accent: #d69e2e;
        --light: #f7fafc;
        --dark: #2d3748;
        --success: #38a169;
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Georgia', serif;
        line-height: 1.6;
        color: var(--dark);
        background: var(--light);
    }
    
    h1, h2, h3 {
        font-family: 'Times New Roman', serif;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h1 { font-size: 2.5rem; color: var(--primary); }
    h2 { font-size: 2rem; color: var(--primary); border-bottom: 3px solid var(--accent); padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
    h3 { font-size: 1.5rem; color: var(--dark); margin-top: 2.5rem; margin-bottom: 1.25rem; }

    p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.8; }

    ul { margin-bottom: 2rem; padding-left: 1.25rem; }
    li { margin-bottom: 0.85rem; line-height: 1.8; }

    /* Better spacing between list → heading transitions */
    ul + h3 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }

    .related-links { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid #e2e8f0; }
    
    /* DESKTOP HEADER */
    header {
        background: var(--primary);
        color: white;
        padding: 1rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
        font-size: 1.8rem;
        font-weight: bold;
        color: white;
        line-height: 1;
        letter-spacing: 0.5px;
    }
    .logo span {
        color: var(--accent);
    }
    
    .menu-toggle {
        display: none;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    nav {
        flex: 1;
        min-width: 0;
    }

    nav ul {
        display: flex;
        list-style: none;
        justify-content: center;
        gap: 1.5rem;
    }

    nav a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    nav a:hover { color: var(--accent); }
    
    /* Desktop: prominent text, NOT a button. Hover-underline for affordance. */
    .emergency-phone {
        color: white;
        text-decoration: none;
        flex-shrink: 0;
        white-space: nowrap;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        line-height: 1.1;
        font-size: 1.4rem;
        font-weight: bold;
        letter-spacing: 0.5px;
        padding: 0.4rem 0.6rem;
        border-radius: 4px;
        transition: color 0.2s;
    }
    .emergency-phone:hover { color: var(--accent); }
    .emergency-phone .ep-label {
        font-size: 0.7rem;
        font-weight: 500;
        opacity: 0.85;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 0.2rem;
        color: var(--accent);
    }

    /* No animation pulse on desktop - text doesn't need it */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    .hero {
        margin-top: 80px;
        background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
        color: white;
        padding: 3rem 2rem;
    }

    .hero-grid {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: center;
    }
    @media (min-width: 900px) {
        .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
    }

    .hero-text { text-align: left; }
    @media (max-width: 899px) { .hero-text { text-align: center; } }

    .hero h1 {
        color: white;
        font-size: 2.6rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        line-height: 1.15;
    }
    @media (min-width: 900px) { .hero h1 { font-size: 3rem; } }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.92;
        max-width: 540px;
    }
    @media (max-width: 899px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }

    .hero-cta-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--secondary);
        color: white;
        padding: 1.1rem 2rem;
        border-radius: 6px;
        font-weight: bold;
        font-size: 1.35rem;
        text-decoration: none;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        transition: transform 0.2s, box-shadow 0.2s;
        min-height: 56px;
    }
    .hero-cta-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.3);
    }
    .hero-cta-tagline {
        margin-top: 0.6rem;
        font-size: 0.95rem;
        opacity: 0.85;
    }
    .hero-availability {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        margin-top: 0.85rem;
        padding: 0.5rem 0.9rem;
        background: rgba(56, 161, 105, 0.18);
        border: 1px solid rgba(56, 161, 105, 0.5);
        border-radius: 20px;
        font-size: 0.92rem;
        line-height: 1.3;
    }
    .hero-availability strong { color: #9ae6b4; font-weight: 600; }
    .availability-dot {
        display: inline-block;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #38a169;
        flex-shrink: 0;
        animation: avail-pulse 2s ease-in-out infinite;
        box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.7);
    }
    @keyframes avail-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.7); }
        50% { box-shadow: 0 0 0 6px rgba(56, 161, 105, 0); }
    }
    .hero-cta-secondary {
        margin-top: 1.25rem;
        font-size: 1rem;
        opacity: 0.9;
    }
    .hero-cta-secondary a {
        color: var(--accent);
        text-decoration: underline;
    }

    .hero-photo-card {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 12px;
        padding: 1.25rem;
        backdrop-filter: blur(4px);
        max-width: 420px;
        margin: 0 auto;
    }
    .hero-photo-card img {
        width: 100%;
        max-width: 280px;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 0 auto 1rem;
        border: 3px solid var(--accent);
        box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    }
    .hero-photo-credential {
        text-align: center;
        font-size: 0.95rem;
        opacity: 0.9;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    .hero-photo-credential strong { color: var(--accent); }

    .hero-review-quote {
        font-size: 0.95rem;
        font-style: italic;
        line-height: 1.55;
        margin: 0;
        opacity: 0.95;
        border-top: 1px solid rgba(255,255,255,0.18);
        padding-top: 0.85rem;
    }
    .hero-review-stars {
        color: var(--accent);
        letter-spacing: 2px;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }
    .hero-review-cite {
        display: block;
        font-style: normal;
        font-size: 0.82rem;
        opacity: 0.7;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-secondary-form {
        background: white;
        padding: 2rem;
        border-radius: 10px;
        max-width: 640px;
        margin: -2rem auto 0;
        position: relative;
        z-index: 2;
        box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    }
    .hero-secondary-form h3 {
        color: var(--primary);
        font-size: 1.2rem;
        margin: 0 0 1rem;
        text-align: center;
    }
    .hero-secondary-form form {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .hero-secondary-form input {
        padding: 0.85rem;
        border-radius: 5px;
        border: 1px solid #cbd5e0;
        flex: 1;
        min-width: 150px;
        font-size: 1rem;
    }
    .hero-secondary-form button {
        background: var(--secondary);
        color: white;
        border: none;
        padding: 0.85rem 2rem;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        font-size: 1rem;
        min-height: 48px;
    }
    .hero-secondary-form button:hover { background: #276749; }

    .hero-badges-band {
        background: linear-gradient(180deg, #2c5282 0%, var(--primary) 100%);
        color: white;
        padding: 4rem 2rem 2rem;
        margin-top: -1px;
    }
    .hero-badges-band .hero-badges {
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .hero-mini-form {
        background: rgba(255,255,255,0.15);
        padding: 1.5rem;
        border-radius: 10px;
        max-width: 600px;
        margin: 2rem auto;
        border: 2px solid var(--accent);
        backdrop-filter: blur(5px);
    }
    
    .hero-mini-form p {
        margin-bottom: 1rem;
        font-weight: bold;
        font-size: 1.2rem;
    }
    
    .hero-mini-form form {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .hero-mini-form input {
        padding: 0.75rem;
        border-radius: 5px;
        border: none;
        flex: 1;
        min-width: 150px;
        font-size: 1rem;
    }
    
    .hero-mini-form button {
        background: var(--secondary);
        color: white;
        border: none;
        padding: 0.75rem 2rem;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        font-size: 1rem;
    }
    
    .hero-mini-form button:hover {
        background: #9b2c2c;
    }
    
    .hero-badges {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin: 2rem 0;
        flex-wrap: wrap;
    }
    
    .badge {
        background: rgba(255,255,255,0.1);
        padding: 1rem;
        border-radius: 10px;
        border: 2px solid var(--accent);
    }
    
    .cta-container {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.2rem;
        transition: all 0.3s;
        display: inline-block;
    }
    
    .btn-primary {
        background: var(--secondary);
        color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    
    .btn-primary:hover {
        background: #9b2c2c;
        transform: translateY(-2px);
    }
    
    .btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-secondary:hover {
        background: white;
        color: var(--primary);
    }
    
    .location-bar {
        background: var(--primary);
        color: white;
        padding: 1.5rem;
        text-align: center;
        border-top: 3px solid var(--accent);
    }
    
    .location-bar h2 {
        color: white;
        border: none;
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .location-bar p {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .trust-bar {
        background: var(--light);
        padding: 2rem;
        text-align: center;
        border-bottom: 3px solid var(--accent);
    }
    
    .trust-items {
        display: flex;
        justify-content: center;
        gap: 3rem;
        flex-wrap: wrap;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .trust-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        color: var(--primary);
    }
    .trust-badge-link {
        transition: transform 0.2s;
    }
    .trust-badge-link:hover {
        transform: translateY(-1px);
        color: var(--secondary) !important;
    }

    .container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 3rem 2rem;
    }
    
    .practice-areas {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 3rem 0;
    }
    
    .practice-card {
        background: white;
        border-radius: 12px;
        padding: 2rem 1.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-top: 5px solid var(--accent);
        transition: transform 0.25s, box-shadow 0.25s;
        position: relative;
    }
    .practice-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    .practice-card-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
        color: var(--accent);
        margin-bottom: 1.25rem;
        flex-shrink: 0;
        box-shadow: 0 3px 8px rgba(26, 54, 93, 0.25);
    }
    .practice-card-icon svg {
        width: 30px;
        height: 30px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .practice-card h3 {
        color: var(--primary);
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }
    .practice-card ul {
        list-style: none;
        margin: 1rem 0;
        padding: 0;
    }
    .practice-card li {
        padding: 0.55rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.98rem;
        line-height: 1.45;
    }
    .practice-card li:last-child { border-bottom: none; }
    .practice-card li:before {
        content: "✓";
        color: var(--success);
        font-weight: bold;
        margin-right: 0.5rem;
        display: inline-block;
        width: 1rem;
    }
    .practice-card p em {
        display: block;
        margin-top: 1rem;
        color: #4a5568;
        font-size: 0.95rem;
        line-height: 1.5;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }
    
    .related-links {
        background: #f7fafc;
        padding: 1.5rem;
        margin-top: 2rem;
        border-radius: 8px;
    }
    
    .related-links a {
        color: var(--primary);
        text-decoration: none;
        margin: 0 0.5rem;
    }
    
    .related-links a:hover {
        text-decoration: underline;
    }
    
    /* About Section - Float Layout */
    .about-content {
        overflow: hidden;
    }
    
    .attorney-photo {
        float: left;
        width: 280px;
        height: 300px;
        object-fit: cover;
        object-position: top;
        border-radius: 10px;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
    
    .faq-section {
        background: white;
        padding: 3rem 2rem;
        margin: 3rem auto;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .faq-item {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1.5rem;
    }
    
    .faq-question {
        font-weight: bold;
        color: var(--primary);
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        cursor: pointer;
    }
    
    .faq-answer {
        color: var(--dark);
        line-height: 1.8;
    }
    
    /* Cities Served Section */
    #cities ul li {
        padding: 0.25rem 0;
        font-size: 1rem;
    }
    
    #cities ul li a:hover {
        color: var(--secondary);
        text-decoration: underline;
    }
    
    .contact-section {
        background: var(--primary);
        color: white;
        padding: 4rem 2rem;
        text-align: center;
    }
    
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        max-width: 1000px;
        margin: 2rem auto;
        text-align: left;
    }
    
    .contact-form {
        background: white;
        color: var(--dark);
        padding: 2rem;
        border-radius: 10px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--primary);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e2e8f0;
        border-radius: 5px;
        font-size: 1rem;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--accent);
    }
    
    footer {
        background: var(--dark);
        color: white;
        padding: 3rem 2rem 1rem;
        text-align: center;
    }
    
    .footer-content {
        max-width: 1000px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        color: var(--accent);
        margin-bottom: 1rem;
    }
    
    .footer-section a {
        color: #cbd5e0;
        text-decoration: none;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .footer-section a:hover {
        color: white;
    }
    
    .disclaimer {
        font-size: 0.875rem;
        color: #a0aec0;
        border-top: 1px solid #4a5568;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    /* MOBILE - ULTRA COMPACT */
    @media (max-width: 768px) {
    /* Header - fixed small height */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        z-index: 1000 !important;
    }

    .header-container {
        width: 100% !important;
        padding: 0 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
    }

    .logo {
        font-size: 1.25rem !important;
        line-height: 1 !important;
        max-width: 160px !important;
    }

    /* Hamburger button - 48px touch target with strong visual feedback */
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        color: white !important;
        font-size: 1.5rem !important;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        position: relative !important;
        border-radius: 6px !important;
        -webkit-tap-highlight-color: rgba(255,255,255,0.25) !important;
        touch-action: manipulation !important;
        transition: background 0.15s, transform 0.1s !important;
    }
    .menu-toggle:active {
        background: rgba(255,255,255,0.2) !important;
        transform: scale(0.94) !important;
    }
    .menu-toggle[aria-expanded="true"] {
        background: rgba(214,158,46,0.25) !important;
        border-color: var(--accent) !important;
    }

    /* Animated slide-down nav overlay */
    nav {
        display: block !important;
        position: fixed !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: var(--primary) !important;
        padding: 0 !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        transition: transform 0.3s ease, opacity 0.25s ease !important;
        pointer-events: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    nav.mobile-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        list-style: none !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
    }

    nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    /* 48px min touch targets for nav links */
    nav a {
        display: flex !important;
        align-items: center !important;
        padding: 0.875rem 1.25rem !important;
        min-height: 48px !important;
        color: white !important;
        text-decoration: none !important;
        font-size: 1.05rem !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: background 0.2s !important;
    }

    nav a:active {
        background: rgba(255,255,255,0.1) !important;
    }

    .emergency-phone {
        display: none !important;
    }

    /* Mobile language selector - sits between hamburger and logo */
    .lang-selector {
        margin-left: auto !important;
        margin-right: 0.5rem !important;
        order: 2 !important;
    }
    .menu-toggle {
        order: 3 !important;
    }
    .logo {
        order: 1 !important;
    }
    .lang-globe-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .lang-dropdown {
        position: fixed !important;
        top: 52px !important;
        right: 0.5rem !important;
        left: auto !important;
        min-width: 200px !important;
    }

    /* Mobile dropdown - smooth expand */
    .dropdown-menu {
        position: static !important;
        min-width: auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,0.15) !important;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }
    .dropdown-menu a {
        padding: 0.75rem 1.25rem 0.75rem 2rem !important;
        min-height: 44px !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block !important;
        max-height: 400px !important;
    }
    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Mobile testimonial carousel */
    .testimonial-bar {
        padding: 1.5rem 1rem !important;
    }
    .testimonial-bar h2 {
        font-size: 1.4rem !important;
    }
    .testimonial-container {
        min-height: 200px !important;
    }
    .testimonial-quote {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .testimonial-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }

    /* Mobile back-to-top - above sticky CTA */
    #back-to-top {
        bottom: 4.5rem !important;
        right: 0.75rem !important;
        width: 44px !important;
        height: 44px !important;
    }
    /* Mobile text-us button - above sticky CTA */
    #text-us-btn {
        bottom: 4.5rem !important;
        left: 0.75rem !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Hero - starts exactly at header height */
    .hero {
        margin-top: 52px !important;
        padding: 1rem 1rem 1.25rem !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.25 !important;
        margin-top: 0 !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
    }

    /* Mini form - stack on small screens */
    .hero-mini-form {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
        width: 100% !important;
    }

    .hero-mini-form p {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-mini-form form {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .hero-mini-form input {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 0 !important;
        padding: 0.6rem !important;
        font-size: 16px !important;
        border-radius: 5px !important;
    }

    .hero-mini-form button {
        flex: 1 1 100% !important;
        padding: 0.7rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }

    /* Hide badges on mobile */
    .hero-badges {
        display: none !important;
    }

    /* CTA buttons */
    .cta-container {
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
        gap: 0.5rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .btn {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Trust bar - responsive grid */
    .trust-bar {
        padding: 0.75rem 0.5rem !important;
    }

    .trust-items {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem 0.75rem !important;
        justify-items: center !important;
    }

    .trust-item {
        font-size: 0.7rem !important;
        gap: 0.3rem !important;
    }

    .trust-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* Location bar */
    .location-bar {
        padding: 0.75rem 1rem !important;
    }

    .location-bar h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .location-bar p {
        font-size: 0.8rem !important;
    }

    /* About section - single column */
    .about-content {
        overflow: visible !important;
    }

    .attorney-photo {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        height: 280px !important;
        margin: 0 auto 1.5rem !important;
    }

    #about h2 {
        font-size: 1.5rem !important;
    }

    #about h3 {
        font-size: 1.15rem !important;
    }

    #about p, #about li {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Contact section - single column */
    .contact-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-grid > div {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    .contact-section h2 {
        font-size: 1.5rem !important;
    }

    .contact-section h3 {
        font-size: 1.1rem !important;
    }

    .contact-section p, .contact-section a {
        font-size: 0.95rem !important;
    }

    .contact-form {
        padding: 1.25rem !important;
    }

    /* Form inputs - 44px min touch targets, 16px font to prevent iOS zoom */
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
        display: block !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.65rem !important;
        font-size: 16px !important;
        min-height: 44px !important;
        border-radius: 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group select {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.75rem center !important;
        padding-right: 2rem !important;
    }

    /* Practice areas - single column */
    .practice-areas {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .practice-card {
        padding: 1.25rem !important;
    }

    .practice-card h3 {
        font-size: 1.1rem !important;
    }

    .practice-card li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        padding: 0.25rem 0 !important;
    }

    /* FAQ section */
    .faq-section {
        padding: 1.5rem 1rem !important;
        margin: 1.5rem auto !important;
    }

    .faq-item {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .faq-question {
        font-size: 1rem !important;
        padding: 1rem 0 !important;
        min-height: 48px !important;
        gap: 0.75rem !important;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 0.75rem !important;
    }

    .faq-answer p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* Container padding */
    .container {
        padding: 1.5rem 1rem !important;
    }

    /* Cities section mobile */
    #cities div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    #cities h4 {
        font-size: 1rem !important;
    }

    #cities ul li {
        font-size: 0.85rem !important;
        padding: 0.15rem 0 !important;
    }

    /* AI answer cards mobile */
    .ai-answer-card {
        padding: 1.25rem !important;
    }

    .ai-answer-card h3 {
        font-size: 1rem !important;
    }

    .ai-answer-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    h3 {
        margin-top: 2.5rem !important;
        margin-bottom: 1.25rem !important;
        font-size: 1.25rem !important;
    }

    ul + h3 {
        margin-top: 2.5rem !important;
        padding-top: 1.25rem !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    li {
        margin-bottom: 0.85rem !important;
        line-height: 1.8 !important;
    }

    ul {
        margin-bottom: 2rem !important;
    }

    /* Footer - stacked single column */
    footer {
        padding: 2rem 1rem 5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .footer-section a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden !important;
    }

    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}
    
    .mobile-sticky-cta {
        display: none;
    }

    @media (max-width: 768px) {
        .mobile-sticky-cta {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 2px solid var(--secondary);
            padding: 0.4rem 0.5rem;
            z-index: 1000;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
            gap: 0.5rem;
        }

        .mobile-sticky-cta a {
            flex: 1;
            text-align: center;
            padding: 0.75rem 0.5rem;
            text-decoration: none;
            font-weight: bold;
            border-radius: 8px;
            font-size: 0.9rem;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
        }

        .sticky-call {
            background: var(--secondary);
            color: white;
        }

        .sticky-form {
            background: var(--primary);
            color: white;
        }

        /* Keep solid green on press — the generic a[href^="tel:"]:active rule
           below was washing the button out (and getting stuck on iOS when the
           call sheet interrupted the touch sequence). */
        a.sticky-call:active,
        a.sticky-call:focus {
            background: var(--secondary);
        }
    }

    /* === TABLET BREAKPOINT (769px - 1024px) === */
    @media (min-width: 769px) and (max-width: 1024px) {
        .hero {
            padding: 2rem 1.5rem 3rem;
        }
        .hero h1 {
            font-size: 2.2rem;
        }
        .hero-subtitle {
            font-size: 1.2rem;
        }
        .container {
            padding: 2.5rem 1.5rem;
        }
        .trust-items {
            gap: 1.5rem;
        }
        .trust-item {
            font-size: 0.85rem;
        }
        .contact-grid {
            gap: 2rem;
        }
        .faq-section {
            padding: 2.5rem 1.5rem;
        }
        .practice-areas {
            grid-template-columns: 1fr 1fr;
        }
        .footer-content {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    article, section, aside, header, footer, main, nav {
        display: block;
    }
    
    /* === DROPDOWN NAV === */
    .nav-dropdown {
        position: relative;
    }
    .dropdown-toggle {
        cursor: pointer;
    }
    .dropdown-arrow {
        font-size: 0.7em;
        margin-left: 0.25rem;
        display: inline-block;
        transition: transform 0.2s;
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary);
        min-width: 220px;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        padding: 0.5rem 0;
        z-index: 1001;
        list-style: none;
        margin: 0;
    }
    .dropdown-menu li {
        padding: 0;
    }
    .dropdown-menu a {
        display: block;
        padding: 0.6rem 1.25rem;
        white-space: nowrap;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: background 0.2s;
    }
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--accent);
    }
    @media (min-width: 769px) {
        .nav-dropdown:hover .dropdown-menu {
            display: block;
        }
        .nav-dropdown:hover .dropdown-arrow {
            transform: rotate(180deg);
        }
    }

    /* === LANGUAGE SELECTOR === */
    .lang-selector {
        position: relative;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        flex-shrink: 0;
        z-index: 1001;
    }
    .lang-globe-btn {
        background: none;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color 0.3s, background 0.3s;
        padding: 0;
        color: white;
    }
    .lang-globe-btn:hover,
    .lang-globe-btn:focus {
        border-color: var(--accent);
        background: rgba(255,255,255,0.1);
        outline: none;
    }
    .lang-globe-btn svg {
        width: 20px;
        height: 20px;
        fill: white;
        transition: fill 0.3s;
    }
    .lang-globe-btn:hover svg { fill: var(--accent); }
    .lang-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--primary);
        min-width: 180px;
        border-radius: 5px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        padding: 0.5rem 0;
        z-index: 1002;
        list-style: none;
        margin: 0;
    }
    .lang-selector.open .lang-dropdown {
        display: block;
    }
    .lang-dropdown li {
        padding: 0;
    }
    .lang-dropdown button {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.6rem 1.25rem;
        background: none;
        border: none;
        color: white;
        font-size: 0.95rem;
        font-family: 'Georgia', serif;
        cursor: pointer;
        text-align: left;
        transition: background 0.2s;
    }
    .lang-dropdown button:hover,
    .lang-dropdown button:focus {
        background: rgba(255,255,255,0.1);
        color: var(--accent);
        outline: none;
    }
    .lang-dropdown .lang-flag {
        font-size: 1.15rem;
        line-height: 1;
    }
    .lang-dropdown .lang-name {
        flex: 1;
    }
    .lang-dropdown .lang-native {
        font-size: 0.8rem;
        opacity: 0.7;
    }

    /* === CLICKABLE BADGES === */
    a.badge {
        text-decoration: none;
        color: white;
        transition: transform 0.2s, box-shadow 0.2s;
        display: block;
    }
    a.badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        color: white;
    }

    /* === TRUST ICONS === */
    .trust-icon {
        flex-shrink: 0;
        vertical-align: middle;
    }

    /* === TESTIMONIAL CAROUSEL === */
    .testimonial-bar {
        background: white;
        padding: 2.5rem 2rem;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
    }
    .testimonial-bar h2 {
        color: var(--primary);
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    .testimonial-subtitle {
        color: #718096;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .testimonial-container {
        max-width: 700px;
        margin: 0 auto;
        position: relative;
        min-height: 180px;
    }
    .testimonial-slide {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }
    .testimonial-slide.active {
        opacity: 1;
        position: relative;
        pointer-events: auto;
    }
    .testimonial-stars {
        display: flex;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    .testimonial-quote {
        font-style: italic;
        font-size: 1.15rem;
        color: var(--dark);
        line-height: 1.6;
        margin: 0 0 0.75rem 0;
        border: none;
        padding: 0;
    }
    .testimonial-cite {
        font-size: 0.95rem;
        color: #718096;
        font-style: normal;
    }
    .testimonial-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
    .testimonial-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #cbd5e0;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.3s;
    }
    .testimonial-dot.active {
        background: var(--accent);
    }
    .testimonial-links {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .testimonial-links a {
        color: var(--secondary);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .testimonial-links a:hover {
        text-decoration: underline;
    }

    /* === FAQ ACCORDION (override existing) === */
    .faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        font-family: inherit;
        font-weight: bold;
        color: var(--primary);
        font-size: 1.2rem;
        margin-bottom: 0;
        cursor: pointer;
        padding: 0.75rem 0;
        line-height: 1.4;
    }
    .faq-question:hover {
        color: var(--secondary);
    }
    .faq-question:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    .faq-toggle {
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--accent);
        flex-shrink: 0;
        margin-left: 1rem;
        transition: transform 0.2s;
        line-height: 1;
    }
    .faq-answer {
        color: var(--dark);
        line-height: 1.8;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .faq-item.active .faq-answer {
        max-height: 800px;
    }
    .faq-item.active .faq-toggle {
        transform: rotate(45deg);
    }
    .faq-item.active .faq-question {
        color: var(--secondary);
    }

    /* === BACK TO TOP === */
    #back-to-top {
        display: none;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--primary);
        border: 2px solid var(--accent);
        cursor: pointer;
        z-index: 999;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: opacity 0.3s, background 0.3s;
        padding: 0;
    }
    #back-to-top.visible {
        display: flex;
    }
    #back-to-top:hover {
        background: var(--secondary);
    }

    /* === TEXT US FLOATING BUTTON === */
    /* Hidden on mobile (sticky CTA bar already covers Call/Form).
       On desktop: smaller, less intrusive, subtle background. */
    #text-us-btn {
        position: fixed;
        bottom: 1.5rem;
        left: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 1rem;
        background: rgba(45, 55, 72, 0.92);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.82rem;
        z-index: 999;
        box-shadow: 0 3px 8px rgba(0,0,0,0.18);
        transition: background 0.2s, transform 0.2s;
        font-family: Georgia, serif;
        opacity: 0.85;
    }
    #text-us-btn:hover {
        background: var(--secondary);
        opacity: 1;
        transform: translateY(-1px);
    }
    #text-us-btn svg {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
    }
    @media (max-width: 768px) {
        #text-us-btn { display: none !important; }
    }

    @media print {
        header, .hero, .cta-container, .mobile-sticky-cta { display: none; }
        body { font-size: 12pt; }
    }

    /* === CLICKABILITY ENHANCEMENTS === */
    .btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .btn:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
    }

    .btn-primary:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }

    .btn-secondary:focus-visible {
        outline-color: white;
    }

    .emergency-phone {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .emergency-phone:hover {
        background: #276749;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .emergency-phone:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
    }

    a[href^="tel:"] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        transition: background 0.2s, color 0.2s;
    }

    a[href^="tel:"]:hover {
        background: rgba(47,133,90,0.1);
    }

    a[href^="tel:"]:active:not(.sticky-call) {
        background: rgba(47,133,90,0.2);
    }

    a[href^="tel:"]:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
    }

     (max-width: 768px) {
        .mobile-sticky-cta a {
            -webkit-tap-highlight-color: transparent;
            min-height: 48px;
            transition: transform 0.15s ease;
        }

        .mobile-sticky-cta a:active {
            transform: scale(0.98);
        }

        .btn {
            min-height: 48px;
            width: 100%;
        }

        .cta-container {
            flex-direction: column;
            align-items: center;
        }

        .cta-container .btn {
            max-width: 320px;
        }
    }

/* Hide header phone button and floating Text Us button on desktop —
   tel:/sms: links are not useful without phone integration. Mobile keeps
   the sticky CTA bar (Call Now / Free Consult) for actual call/text actions. */
.emergency-phone,
#text-us-btn {
    display: none !important;
}
