/*
Theme Name: Nixon Law PLLC
Theme URI: https://nixon-law.com
Author: Nixon Law PLLC
Author URI: https://nixon-law.com
Description: Custom dark theme for Nixon Law PLLC - Houston Trial Attorneys. Features dark navy/gold branding with full-width layouts.
Version: 1.0.1
License: Proprietary
License URI: https://nixon-law.com
Text Domain: nixonlaw
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #D4A83E;
    --gold-hover: #e6bc52;
    --dark-bg: #0f1419;
    --secondary-bg: #1a2332;
    --header-bg: #14181E;
    --card-bg: #3a4550;
    --card-border: #4a5560;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-dim: rgba(255, 255, 255, 0.6);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}
/* TOP ROW: logo | phone | CTA */
.header-top-row {
    background: #14181E;
    border-bottom: 1px solid rgba(212, 168, 62, 0.15);
    width: 100%;
    display: block;
}
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
}
/* SECOND ROW: nav links */
.header-nav-row {
    background: #0F1318;
    border-bottom: 1px solid rgba(212, 168, 62, 0.25);
    width: 100%;
    display: block;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .logo-text {
    color: var(--text-white);
    font-family: 'Cinzel', var(--font-serif);
    font-weight: 800;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    letter-spacing: 0.15em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
    padding: 0.6rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.main-nav a {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--gold-hover);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.header-phone svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    flex-shrink: 0;
}
.header-phone .phone-number {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-white);
}
.header-phone .phone-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-left: 0.25rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--gold-hover);
    color: #000;
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height, 90px));
    min-height: calc(100vh - var(--header-height, 90px));
    max-height: calc(100vh - var(--header-height, 90px));
    margin-top: var(--header-height, 90px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.55), rgba(0,0,0,0.8));
}

.hero-content {
    position: absolute;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    width: min(80vw, 94vw);
    left: 50%;
    top: 72%;
    transform: translateX(-50%) translateY(-50%);
}

.hero-words {
    margin-bottom: 2rem;
    margin-top: 3rem;
    width: 100%;
    padding-left: 20%;
    padding-right: 20%;
    box-sizing: border-box;
}

.hero-word {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-serif);
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    font-size: clamp(1.4rem, 4.2vw, 3.6rem);
    line-height: 1;
    letter-spacing: normal;
    width: 100%;
}

.hero-word span {
    display: inline-block;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.1rem 0;
    gap: 0;
}
.hero-divider .line {
    flex: 1;
    height: 2px;
    background: var(--gold);
    opacity: 0.75;
}
.hero-divider .diamond {
    width: 16px;
    height: 16px;
    background: var(--gold);
    transform: rotate(45deg);
    margin: 0 1.25rem;
    flex-shrink: 0;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 3.5rem auto 0;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gold);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-hover);
    color: #000;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-watermark {
    display: none;
}
.hero-trial-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    text-align: center;
    padding: 1rem;
    z-index: 20;
    display: block;
}
.hero-trial-banner span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-block;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

.section-label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-bar {
    width: 4rem;
    height: 2px;
    background: var(--gold);
    margin-bottom: 3rem;
}

/* ===== PRACTICE AREAS GRID ===== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.practice-card {
    display: block;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.practice-card:hover {
    border-color: rgba(212, 168, 62, 0.5);
}

.practice-card .card-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.practice-card .card-icon svg {
    width: 32px;
    height: 32px;
}

.practice-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.practice-card:hover h3 {
    color: var(--gold);
}

.practice-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.practice-card .learn-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== ATTORNEY SECTION ===== */
.attorney-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.attorney-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.attorney-content .ad-notice {
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.attorney-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.attorney-content .title {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.attorney-content .bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.attorney-content .disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-item .number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.why-item h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .quote {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-white);
}

.testimonial-card .case-type {
    color: var(--gold);
    font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-banner .cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,20,25,0.9), rgba(15,20,25,0.7));
}

.cta-banner .cta-content {
    position: relative;
    z-index: 10;
}

.cta-banner h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-banner h2 .gold {
    color: var(--gold);
}

.cta-banner p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
    height: 40px;
}

.footer-brand .footer-logo .logo-text {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-brand .footer-logo .pllc {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-weight: 400;
    opacity: 0.8;
}

.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    color: #000;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-hours table {
    width: 100%;
    font-size: 0.85rem;
}

.footer-hours table td {
    padding: 0.3rem 0;
    color: var(--text-muted);
}

.footer-hours table td:last-child {
    text-align: right;
}

.footer-cta-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.footer-cta-box h5 {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-cta-box p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-bottom a {
    color: var(--text-dim);
}

.footer-bottom a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 8rem 0 4rem;
}

.page-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--gold);
}

.page-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.page-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.page-content ul, .page-content ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(212, 168, 62, 0.5);
}

.blog-card .post-date {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.blog-card .excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .attorney-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* ---- HEADER MOBILE ---- */
    .header-top-inner {
        padding: 0.55rem 1rem;
        gap: 0.5rem;
    }
    .site-logo img {
        height: 28px;
    }
    .site-logo .logo-text {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }
    .header-phone {
        display: none;
    }
    .header-cta {
        font-size: 0.6rem;
        padding: 0.45rem 0.65rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    /* Hide nav row on mobile — replaced by hamburger */
    .header-nav-row {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    /* ---- HERO MOBILE ---- */
    .hero-content {
        width: 94vw;
        padding: 2rem 1rem 5rem;
    }
    .hero-word {
        font-size: clamp(2rem, 11vw, 3rem);
        letter-spacing: 0.02em;
    }
    .hero-words {
        margin-bottom: 1.5rem;
    }
    .hero-divider {
        margin: 0.6rem 0;
    }
    .hero-divider .diamond {
        width: 10px;
        height: 10px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 2rem;
        line-height: 1.7;
    }
    .hero-trial-banner span {
        font-size: 0.95rem;
        letter-spacing: 0.18em;
    }
    .hero-trial-banner {
        padding: 0.75rem 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* ---- MOBILE NAV OVERLAY ---- */
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height, 80px);
        left: 0;
        right: 0;
        background: #14181E;
        padding: 2rem;
        border-bottom: 1px solid var(--card-border);
        gap: 1.5rem;
        z-index: 999;
    }
    .main-nav.active a {
        font-size: 1rem;
    }

    /* ---- CONTENT SECTIONS ---- */
    .practice-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #14181E;
        padding: 2rem;
        border-bottom: 1px solid var(--card-border);
        gap: 1.5rem;
        z-index: 999;
    }
    
    .main-nav.active a {
        font-size: 1rem;
    }
}

/* ===== WORDPRESS SPECIFIC ===== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hide admin bar styling conflicts */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================================
   MOBILE LAYOUT — max-width: 768px
   Desktop elements hidden; mobile-specific elements shown
   ============================================================ */

/* Hide desktop header rows and desktop hero on mobile */
@media (max-width: 768px) {
    .header-top-row,
    .header-nav-row {
        display: none !important;
    }

    /* ---- MOBILE HEADER ---- */
    .mobile-header-row {
        display: block;
        background: #14181E;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(212, 168, 62, 0.2);
    }
    .mobile-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 1.25rem;
    }
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
    }
    .mobile-logo img {
        height: 48px;
        width: auto;
    }
    .mobile-logo-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }
    .mobile-logo-text .line-1 {
        color: #fff;
        font-family: 'Cinzel', var(--font-serif);
        font-weight: 700;
        font-size: 1.65rem;
        letter-spacing: 0.18em;
    }
    .mobile-logo-text .line-2 {
        color: rgba(255,255,255,0.7);
        font-family: var(--font-sans);
        font-weight: 400;
        font-size: 0.42rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        line-height: 1.3;
    }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #D4A83E;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ---- MOBILE NAV OVERLAY ---- */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .mobile-nav-overlay.open {
        display: block !important;
    }
    .mobile-nav-drawer {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background: #14181E;
        z-index: 999;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid rgba(212, 168, 62, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .mobile-nav-drawer.open {
        display: flex !important;
        transform: translateX(0) !important;
    }
    .mobile-nav-drawer a {
        color: #D4A83E;
        font-family: var(--font-sans);
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.12em;
        text-decoration: none;
        text-transform: uppercase;
        padding: 1.1rem 0;
        border-bottom: 1px solid rgba(212, 168, 62, 0.15);
    }
    .mobile-nav-drawer a:last-child {
        border-bottom: none;
    }
    .mobile-nav-close {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        line-height: 1;
    }

    /* ---- DESKTOP HERO — hide on mobile ---- */
    .desktop-hero {
        display: none !important;
    }

    /* ---- MOBILE HERO ---- */
    .mobile-hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 100svh;
        overflow: hidden;
        margin-top: 0;
    }
    .mobile-hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }
    .mobile-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .mobile-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.45) 40%,
            rgba(0,0,0,0.82) 75%,
            rgba(0,0,0,0.92) 100%);
    }
    .mobile-hero-content {
        position: relative;
        z-index: 10;
        padding: 0 1.5rem 2.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .mobile-hero-label {
        display: none;
    }
    .mobile-hero-title {
        color: #fff;
        font-family: var(--font-serif);
        font-size: clamp(1.75rem, 6.8vw, 2.2rem);
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
        width: 100%;
    }
    .mobile-hero-title .hero-line-1,
    .mobile-hero-title .hero-line-2 {
        display: block;
        width: 100%;
        text-align: justify;
        text-align-last: justify;
    }
    .mobile-hero-title .gold-text {
        color: #D4A83E;
    }
    .mobile-hero-description {
        color: rgba(255,255,255,0.82);
        font-size: 0.95rem;
        line-height: 1.7;
        margin: 0;
    }
    .mobile-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }
    .btn-mobile-gold {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 1.5rem;
        background: #D4A83E;
        color: #0F1318;
        font-family: var(--font-sans);
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 2px;
    }
    .btn-mobile-outline {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 1rem 1.5rem;
        background: transparent;
        color: #fff;
        font-family: var(--font-sans);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 2px;
    }

    /* ---- HERO SECTION WRAPPER — reset on mobile ---- */
    .hero-section {
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
        margin-top: 0 !important;
        display: block !important;
    }
}

/* On desktop — hide mobile-only elements */
@media (min-width: 769px) {
    .mobile-header-row,
    .mobile-hero,
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
    }
    .desktop-hero {
        display: block;
        position: relative;
        width: 90%;
        height: 100%;
        margin: 0 auto;
        overflow: hidden;
    }
    .desktop-hero .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }
    .desktop-hero .hero-trial-banner {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 20;
    }
}

/* Practice Areas Accordion Page */
.pa-page {
    background-color: #0F1318;
    color: #fff;
}

.pa-hero {
    padding: 10rem 1.5rem 6rem;
    background: linear-gradient(rgba(15, 19, 24, 0.85), rgba(15, 19, 24, 0.95)), url('assets/images/houston_skyline.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.pa-hero-label {
    color: #D4A83E;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pa-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.pa-hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.pa-accordion-section {
    padding: 6rem 1.5rem;
}

.pa-accordion-inner {
    max-width: 900px;
    margin: 0 auto;
}

.pa-accordion-item {
    border-bottom: 1px solid rgba(212, 168, 62, 0.2);
}

.pa-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.pa-accordion-trigger:hover {
    color: #D4A83E;
}

.pa-accordion-icon {
    margin-right: 1.5rem;
    color: #D4A83E;
    display: flex;
    align-items: center;
}

.pa-accordion-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    flex-grow: 1;
}

.pa-accordion-chevron {
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.5);
}

.pa-accordion-trigger[aria-expanded="true"] .pa-accordion-chevron {
    transform: rotate(180deg);
    color: #D4A83E;
}

.pa-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pa-accordion-body:not([hidden]) {
    max-height: 1000px; /* Large enough to fit content */
}

.pa-accordion-content {
    padding: 0 0 2.5rem 4.25rem;
}

.pa-accordion-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 750px;
}

.pa-sub-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.pa-sub-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 168, 62, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pa-sub-links li a:hover {
    background: rgba(212, 168, 62, 0.08);
    border-color: #D4A83E;
    transform: translateX(5px);
}

.pa-sub-links li a svg {
    color: #D4A83E;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.pa-sub-links li a:hover svg {
    opacity: 1;
}

.pa-learn-more {
    display: inline-flex;
    align-items: center;
    color: #D4A83E;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: gap 0.3s ease;
    gap: 0.5rem;
}

.pa-learn-more:hover {
    gap: 0.8rem;
}

.pa-cta-strip {
    background-color: #14181E;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(212, 168, 62, 0.1);
    text-align: center;
}

.pa-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.pa-cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .pa-accordion-content {
        padding-left: 0;
    }
    .pa-accordion-icon {
        display: none;
    }
    .pa-accordion-title {
        font-size: 1.25rem;
    }
    .pa-sub-links {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    background: var(--dark-bg);
    color: var(--text-white);
    min-height: 100vh;
}
.contact-hero {
    padding: 8rem 0 4rem;
    background: var(--secondary-bg);
    text-align: center;
}
.contact-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-white);
    margin: 0.5rem 0 1rem;
}
.contact-hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}
.contact-hero-sub a { color: var(--gold); text-decoration: none; }
.contact-body { padding: 5rem 0 6rem; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}
.contact-col-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.contact-col-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.clio-iframe-wrap {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    min-height: 700px;
}
.clio-iframe-wrap iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: none;
}
.contact-info-card {
    background: var(--secondary-bg);
    border: 1px solid var(--card-border);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.contact-info-card h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.contact-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}
.contact-info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}
.contact-info-value { color: var(--text-white); font-size: 0.95rem; line-height: 1.5; text-decoration: none; }
a.contact-info-value:hover { color: var(--gold); }
.contact-hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; color: var(--text-muted); }
.contact-hours-table td { padding: 0.4rem 0; }
.contact-hours-table td:last-child { text-align: right; color: var(--text-white); }
.contact-hours-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; line-height: 1.6; }
.contact-practice-list { list-style: none; padding: 0; margin: 0; }
.contact-practice-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--card-border); font-size: 0.9rem; }
.contact-practice-list li:last-child { border-bottom: none; }
.contact-practice-list a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.contact-practice-list a:hover { color: var(--gold); }
@media (max-width: 768px) {
    .contact-hero { padding: 6rem 0 3rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info-col { order: -1; }
    .clio-iframe-wrap, .clio-iframe-wrap iframe { min-height: 600px; }
}

/* Contact page — principal office address block */
.contact-principal-card .contact-address-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--card-border);
}
.contact-address-line {
    display: block;
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.7;
}
.contact-phone {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold) !important;
    letter-spacing: 0.02em;
}
address.contact-address {
    font-style: normal;
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== COMPACT FOOTER ===== */
.footer-compact {
    padding: 2.5rem 0 1.5rem;
}
.footer-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}
.footer-brand-compact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-brand-compact .footer-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    max-width: 380px;
    line-height: 1.5;
}
/* Horizontal quick links row */
.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    align-items: center;
}
.footer-links-row a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.75rem;
    transition: color 0.2s;
    border-right: 1px solid var(--card-border);
    white-space: nowrap;
}
.footer-links-row a:last-child {
    border-right: none;
}
.footer-links-row a:hover {
    color: var(--gold);
}
.footer-links-row a:first-child {
    padding-left: 0;
}

/* Override old footer-grid for compact layout */
.footer-grid { display: none; }

/* Mobile compact footer */
@media (max-width: 768px) {
    .footer-compact { padding: 2rem 0 1rem; }
    .footer-top-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .footer-brand-compact { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .footer-brand-compact .footer-desc { max-width: 100%; }
    .footer-links-row { gap: 0; }
    .footer-links-row a {
        font-size: 0.78rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Footer horizontal logo */
.footer-logo-link { display: inline-block; line-height: 0; }
.footer-horizontal-logo {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .footer-horizontal-logo { height: 44px; }
}

/* Contact page — Clio Grow CTA (replaces broken iframe) */
.clio-form-cta {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 1rem;
}
.clio-form-note {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.btn-clio-form {
    display: inline-block;
    background: var(--gold);
    color: #0d1117 !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-clio-form:hover {
    background: #c8a84b;
    transform: translateY(-1px);
}
.clio-form-alt {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
}
.clio-form-alt a {
    color: var(--gold);
    text-decoration: none;
}
.clio-form-alt a:hover { text-decoration: underline; }

/* ===== CONTACT PAGE — CF7 FORM STYLING ===== */
.cf7-contact-wrap { margin-top: 0.5rem; }

/* Field groups */
.cf7-contact-wrap .cf7-field-group {
    margin-bottom: 1.25rem;
}
.cf7-contact-wrap .cf7-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
    .cf7-contact-wrap .cf7-field-row {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.cf7-contact-wrap label {
    display: block;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    font-weight: 500;
}
.cf7-contact-wrap label .required {
    color: var(--gold);
    margin-left: 2px;
}

/* Inputs, selects, textareas */
.cf7-contact-wrap input[type="text"],
.cf7-contact-wrap input[type="email"],
.cf7-contact-wrap input[type="tel"],
.cf7-contact-wrap select,
.cf7-contact-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.cf7-contact-wrap input[type="text"]:focus,
.cf7-contact-wrap input[type="email"]:focus,
.cf7-contact-wrap input[type="tel"]:focus,
.cf7-contact-wrap select:focus,
.cf7-contact-wrap textarea:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}
.cf7-contact-wrap input::placeholder,
.cf7-contact-wrap textarea::placeholder {
    color: rgba(255,255,255,0.25);
}
.cf7-contact-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    color: var(--text-white);
}
.cf7-contact-wrap select option {
    background: #1a1f2e;
    color: var(--text-white);
}
.cf7-contact-wrap textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit button */
.cf7-contact-wrap .btn-submit,
.cf7-contact-wrap input[type="submit"] {
    display: inline-block;
    background: var(--gold);
    color: #0d1117 !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    margin-top: 0.5rem;
}
.cf7-contact-wrap .btn-submit:hover,
.cf7-contact-wrap input[type="submit"]:hover {
    background: #c8a84b;
    transform: translateY(-1px);
}

/* Disclaimer */
.cf7-contact-wrap .cf7-disclaimer {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* CF7 validation and response messages */
.cf7-contact-wrap .wpcf7-not-valid-tip {
    color: #e05c5c;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
}
.cf7-contact-wrap .wpcf7-response-output {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-top: 1rem;
    border: 1px solid;
}
.cf7-contact-wrap .wpcf7-mail-sent-ok {
    border-color: #4caf50;
    color: #4caf50;
    background: rgba(76,175,80,0.08);
}
.cf7-contact-wrap .wpcf7-mail-sent-ng,
.cf7-contact-wrap .wpcf7-validation-errors {
    border-color: #e05c5c;
    color: #e05c5c;
    background: rgba(224,92,92,0.08);
}

/* ===== /intake PAGE WRAPPER (uses standard header/footer) ===== */
.intake-page-wrap {
    background: var(--dark-bg);
    min-height: 60vh;
    padding: 3rem 1.5rem 4rem;
}
.intake-page-inner {
    max-width: 720px;
    margin: 0 auto;
}
.intake-page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.intake-page-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin-top: 0.5rem;
}
.intake-page-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.intake-page-sub .cf7-req {
    color: var(--gold);
}
