/* ============================================
   Fluency Legal - Standalone Stylesheet
   legal.fluencydigital.io
   ============================================
   Self-contained — no @import from style.css
   Includes: reset, variables, header, auth,
   modals, all page sections, footer, responsive
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Legal brand colors */
    --legal-navy: #1B2A4A;
    --legal-gold: #B8860B;
    --legal-gold-light: #D4A537;
    --legal-slate: #334155;
    --legal-text: #4A4A4A;
    --legal-muted: #6B7280;
    --legal-bg: #FFFFFF;
    --legal-section: #F8FAFC;
    --legal-border: #E5E7EB;

    /* Shared variables (needed for header/modal/footer components) */
    --primary-teal: #0d9488;
    --primary-teal-bold: #0f766e;
    --primary-black: #000000;
    --text-primary: #0a0a0a;
    --text-secondary: #374151;
    --muted-gray: #9ca3af;
    --border-light: #e5e7eb;
    --clean-white: #ffffff;
    --off-white: #fafafa;
    --bg-glass: rgba(255, 255, 255, 0.98);
    --btn-primary-bg: #0d9488;
    --btn-primary-hover: #0f766e;
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--clean-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

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

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

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   HEADER — Legal (Navy theme)
   ============================================ */
header.legal-header {
    background: var(--legal-navy);
    padding: 25px 45px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.legal-header.transparent {
    background: transparent;
}

header.legal-header.scrolled {
    padding: 20px 45px;
    background: rgba(27, 42, 74, 0.97);
    backdrop-filter: blur(10px);
}

.legal-header a {
    border-bottom: none;
}

.legal-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.legal-header-content > .legal-brand {
    position: absolute;
    left: 0;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.legal-brand img {
    height: 45px;
    transition: height 0.3s ease;
}

.legal-header.scrolled .legal-brand img {
    height: 35px;
}

.legal-brand-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.legal-brand-text span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.legal-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.legal-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Open Sans', var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.legal-nav a:hover {
    color: var(--legal-gold-light);
    border-bottom-color: var(--legal-gold-light);
}

.legal-nav a.active {
    color: var(--legal-gold-light);
    border-bottom-color: var(--legal-gold-light);
}

/* Parent company link in nav */
.parent-link {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    border-bottom: none !important;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 20px;
}

.parent-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clean-white);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 0;
    padding: 10px;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 100px 20px 50px;
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--clean-white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    transition: color 0.3s ease;
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--legal-gold-light);
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--clean-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   AUTH LINKS
   ============================================ */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 0;
}

.auth-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: none !important;
}

.auth-link:hover {
    color: var(--clean-white);
}

.auth-divider {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

/* User menu dropdown (logged in state) */
.user-menu-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--clean-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--off-white);
    color: var(--primary-teal);
}

.user-dropdown a svg {
    color: var(--muted-gray);
    flex-shrink: 0;
}

.user-dropdown a:hover svg {
    color: var(--primary-teal);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.user-dropdown .logout-link {
    color: #ef4444;
}

.user-dropdown .logout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown .logout-link svg {
    color: #ef4444;
}

.dropdown-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile auth links in mobile menu */
.mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1rem !important;
    padding: 12px 20px !important;
    text-align: center;
    transition: color 0.2s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.mobile-auth-links a:hover {
    color: var(--legal-gold-light) !important;
}

.mobile-auth-links a.logout {
    color: rgba(239, 68, 68, 0.7) !important;
    margin-top: 8px;
}

.mobile-auth-links a.logout:hover {
    color: #ef4444 !important;
}

/* ============================================
   MODAL STYLES (Login / Signup)
   ============================================ */
.fluency-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fluency-modal.active {
    opacity: 1;
    visibility: visible;
}

.fluency-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.fluency-modal-content {
    position: relative;
    background: var(--clean-white);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.fluency-modal.active .fluency-modal-content {
    transform: scale(1) translateY(0);
}

.fluency-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fluency-modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.fluency-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.fluency-modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fluency-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.fluency-form-group {
    margin-bottom: 20px;
}

.fluency-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fluency-form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--off-white);
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.fluency-form-group input:focus {
    border-color: var(--primary-teal);
    background: var(--clean-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.fluency-form-group input::placeholder {
    color: var(--muted-gray);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.fluency-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    min-height: 18px;
}

.fluency-success {
    color: var(--primary-teal);
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    min-height: 18px;
}

.fluency-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-teal);
    color: var(--clean-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fluency-submit-btn:hover {
    background: var(--primary-teal-bold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.fluency-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.legal-hero {
    background: url('/images/legal/courthouse.webp?v=2') center/cover no-repeat;
    min-height: 100vh;
    padding: 180px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(27, 42, 74, 0.82) 50%, rgba(0, 0, 0, 0.88) 100%);
    z-index: 0;
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(184, 134, 11, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    background: linear-gradient(135deg, #D4A537, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Slider */
.text-slider {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.text-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero CTA */
.hero-cta {
    margin-top: 40px;
}

.hero-cta .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
    border: 2px solid var(--legal-gold);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--legal-gold), var(--legal-gold-light));
    border-color: var(--legal-gold-light);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.4);
}

/* ============================================
   SOCIAL PROOF / LOGO STRIP
   ============================================ */
.legal-social-proof {
    padding: 60px 60px;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.legal-social-proof h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.legal-social-proof .proof-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 40px;
}

.legal-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0;
}

.legal-logo-grid .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf9f7;
    border-radius: 12px;
    padding: 28px 20px;
    min-height: 90px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.legal-logo-grid .logo-item:hover {
    border-color: rgba(184, 134, 11, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legal-logo-grid .logo-item img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

.legal-logo-grid .logo-item img.logo-dimmed {
    filter: grayscale(100%);
    opacity: 0.45;
}

.legal-logo-grid .logo-item:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

@keyframes idleShimmer {
    0%, 100% { filter: grayscale(100%); opacity: 0.45; }
    50% { filter: grayscale(60%); opacity: 0.65; }
}

.legal-logo-grid .logo-item img.logo-shimmer {
    animation: idleShimmer 4s ease-in-out infinite;
}

.legal-proof-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.legal-proof-stat {
    text-align: center;
}

.legal-proof-stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--legal-navy);
    line-height: 1;
}

.legal-proof-stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 500;
}

/* ============================================
   HIGHLIGHTS TICKER
   ============================================ */
.highlights-ticker {
    display: none;
    align-items: center;
    background: var(--legal-navy);
    overflow: hidden;
    position: relative;
    height: 72px;
    box-shadow: 0 6px 20px rgba(27, 42, 74, 0.35);
    z-index: 1;
}

.highlights-ticker.loaded {
    display: flex;
}

.ticker-label {
    background: var(--legal-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    flex-shrink: 0;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 450s linear infinite;
    width: max-content;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 48px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 72px;
}

.ticker-item:hover {
    opacity: 0.8;
}

.ticker-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ticker-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   BLOG PREVIEW SECTION
   ============================================ */
.blog-preview {
    padding: 80px 60px;
    background: #fff;
}

.blog-preview-container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.blog-preview-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.blog-preview-header p {
    font-size: 1.05rem;
    color: #6b7280;
}

.blog-preview-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--legal-navy);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
    border-bottom: none;
}

.blog-preview-all:hover {
    color: var(--legal-gold);
    gap: 10px;
}

/* Magazine layout: featured left + list right */
.blog-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Featured article (first item) */
.blog-preview-featured {
    background: var(--legal-navy) url('/blog/images/featured-bg.jpg') center/cover no-repeat;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    position: relative;
    min-height: 360px;
    transition: all 0.3s ease;
}

.blog-preview-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,42,74,0.95) 0%, rgba(27,42,74,0.7) 50%, rgba(27,42,74,0.55) 100%);
    z-index: 0;
}

.blog-preview-featured > * {
    position: relative;
    z-index: 1;
}

.blog-preview-featured:hover {
    filter: brightness(1.1);
}

.blog-preview-featured .bp-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--legal-gold-light);
    margin-bottom: 14px;
}

.blog-preview-featured .bp-cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.blog-preview-featured h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-preview-featured .bp-byline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

/* Article list (right side) */
.blog-preview-list {
    display: flex;
    flex-direction: column;
}

.blog-preview-item {
    padding: 22px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    flex: 1;
}

.blog-preview-item:last-child {
    border-bottom: none;
}

.blog-preview-item:hover {
    background: #faf9f7;
}

.blog-preview-item .bp-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-preview-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-preview-item .bp-byline {
    font-size: 0.78rem;
    color: #6b7280;
}

/* "View all" row at bottom */
.blog-preview-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    grid-column: 1 / -1;
    background: #faf9f7;
}

.blog-preview-view-all a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--legal-navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.blog-preview-view-all a:hover {
    color: var(--legal-gold);
    gap: 10px;
}

/* ============================================
   LEGAL TOOLS SECTION
   ============================================ */
.legal-tools {
    padding: 80px 60px;
    background: #faf9f7;
    border-top: 1px solid #f1f5f9;
}

.legal-tools-container {
    max-width: 1400px;
    margin: 0 auto;
}

.legal-tools-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-tools-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.legal-tools-header p {
    font-size: 1.05rem;
    color: #6b7280;
}

.legal-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.legal-tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.legal-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(27, 42, 74, 0.12);
    border-color: var(--legal-navy);
}

.legal-tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.08), rgba(184, 134, 11, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--legal-navy);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.legal-tool-card:hover .legal-tool-icon {
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
    color: #fff;
}

.legal-tool-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.legal-tool-card p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.legal-tool-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--legal-navy);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.legal-tool-card:hover .legal-tool-link {
    color: var(--legal-gold);
    gap: 10px;
}

/* ============================================
   EXPERTISE SECTION (Accordion)
   ============================================ */
.expertise-section {
    padding: 100px 60px;
    background: #faf9f7;
}

.expertise-header {
    text-align: center;
    margin-bottom: 60px;
}

.expertise-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: 0;
}

.expertise-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.expertise-item {
    background: #faf9f7;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.expertise-item.active {
    border-color: var(--legal-navy);
    box-shadow: 0 10px 40px rgba(27, 42, 74, 0.15);
}

.expertise-header-btn {
    width: 100%;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.expertise-header-btn:hover {
    background: rgba(27, 42, 74, 0.03);
}

.expertise-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expertise-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.expertise-toggle {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expertise-toggle svg {
    width: 16px;
    height: 16px;
    fill: #6b7280;
    transition: transform 0.3s ease;
}

.expertise-item.active .expertise-toggle {
    background: var(--legal-navy);
}

.expertise-item.active .expertise-toggle svg {
    fill: #fff;
    transform: rotate(180deg);
}

.expertise-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expertise-item.active .expertise-content {
    max-height: 500px;
}

.expertise-inner {
    padding: 0 30px 30px;
}

.expertise-desc {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tag {
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.08), rgba(184, 134, 11, 0.08));
    color: var(--legal-navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   VALUE SECTION (Flip Cards)
   ============================================ */
.value-section {
    padding: 100px 60px;
    background: linear-gradient(180deg, #fafafa 0%, #faf9f7 100%);
}

.value-header {
    text-align: center;
    margin-bottom: 60px;
}

.value-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: 0;
}

.value-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* Flip Cards Grid */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.flip-card {
    perspective: 1000px;
    height: 480px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* On touch devices, disable hover flip and use JS tap toggle */
@media (hover: none) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.flip-card-front {
    transform: rotateY(0deg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 74, 0.9) 0%, rgba(27, 42, 74, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.flip-card-front-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    color: #fff;
}

.flip-card-front h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.flip-card-front p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.flip-card-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 35px;
    color: #fff;
}

.flip-card-back h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}

.flip-card-back-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
    opacity: 0.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#legal-services {
    background: linear-gradient(135deg, #f8fafc 0%, #faf9f7 100%);
}

.legal-services-section {
    padding: 80px 60px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.legal-services-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.25px;
    margin: 0 0 16px 0;
}

.legal-services-title .accent {
    background: linear-gradient(135deg, var(--legal-navy), var(--legal-gold), var(--legal-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-services-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--legal-muted);
    margin: 0 auto 56px auto;
    max-width: 760px;
    padding: 0 20px;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.legal-services-card {
    background: var(--legal-bg);
    border: 1px solid var(--legal-border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.legal-services-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.legal-services-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--legal-navy), var(--legal-gold), var(--legal-gold-light));
    opacity: 0.85;
}

.legal-services-card h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #000;
    margin: 12px 0 16px 0;
}

.legal-services-card h3 .highlight {
    color: var(--legal-gold);
}

.legal-services-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--legal-text);
    margin: 0 0 20px 0;
    padding-left: 16px;
    border-left: 4px solid var(--legal-gold);
    flex: 1;
}

.legal-services-cta {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.975rem;
    padding: 14px 28px;
    color: #fff;
    background: var(--legal-navy);
    border: 2px solid var(--legal-navy);
    border-radius: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
}

.legal-services-cta:hover {
    background: #fff;
    color: var(--legal-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Client callout (secondary) */
.legal-services-callout {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--legal-border);
}

.legal-services-callout p {
    font-size: 1.1rem;
    color: var(--legal-muted);
    margin-bottom: 16px;
}

.legal-services-cta--outline {
    background: transparent;
    color: var(--legal-navy);
    border: 2px solid var(--legal-navy);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.legal-contact {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.legal-contact .lc-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    text-align: center;
}

.legal-contact .lc-wrap::before {
    display: none;
}

.lc-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
}

.lc-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.lc-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.lc-sub {
    margin: 6px auto 0 auto;
    max-width: 720px;
    font-size: clamp(1.05rem, 2.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
}

.lc-sub strong {
    color: #fff;
}

.lc-sub em {
    font-style: normal;
    color: var(--legal-gold-light);
    font-weight: 600;
}

/* Contact options cards */
.lc-options {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px auto 18px auto;
}

.lc-card {
    background: var(--legal-section);
    border: 1px solid var(--legal-border);
    border-left: 4px solid var(--legal-navy);
    padding: 22px 24px;
    max-width: 320px;
    width: 100%;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-card--gold {
    border-left-color: var(--legal-gold);
}

.lc-card h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--legal-navy);
}

.lc-card--gold h3 {
    color: var(--legal-gold);
}

.lc-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--legal-muted);
}

.lc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lc-note {
    margin-top: 14px;
    font-size: 1rem;
    color: var(--legal-muted);
    font-style: italic;
}

/* Contact Form */
.lc-contact-form {
    max-width: 600px;
    margin: -40px auto 60px auto;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid var(--legal-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: left;
    position: relative;
    z-index: 1;
}

.lc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lc-form-group {
    margin-bottom: 20px;
}

.lc-form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--legal-text);
    margin-bottom: 8px;
}

.lc-form-group label .required {
    color: #ef4444;
}

.lc-form-group input,
.lc-form-group textarea,
.lc-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--legal-border);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.lc-form-group input:focus,
.lc-form-group textarea:focus,
.lc-form-group select:focus {
    outline: none;
    border-color: var(--legal-navy);
    box-shadow: 0 0 0 4px rgba(27, 42, 74, 0.1);
}

.lc-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.lc-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--legal-navy), var(--legal-gold));
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.lc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 42, 74, 0.4);
}

.lc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form success state */
.lc-form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.lc-form-success.show {
    display: block;
}

.lc-form-success .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.lc-form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--legal-navy);
    margin-bottom: 10px;
}

.lc-form-success p {
    color: var(--legal-muted);
}

/* Honeypot */
.lc-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Resume Upload */
.lc-file-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.lc-file-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.lc-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--legal-section);
    border: 2px dashed var(--legal-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--legal-muted);
    font-size: 0.95rem;
}

.lc-file-label i {
    font-size: 1.3rem;
    color: var(--legal-gold);
}

.lc-file-label:hover {
    border-color: var(--legal-navy);
    background: rgba(27, 42, 74, 0.03);
}

.lc-file-label.has-file {
    border-color: var(--legal-navy);
    border-style: solid;
    background: rgba(27, 42, 74, 0.05);
    color: var(--legal-navy);
    font-weight: 600;
}

.lc-file-name {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--legal-muted);
}

/* Processing Overlay */
.lc-processing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lc-processing-content {
    background: white;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--legal-border);
}

.lc-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--legal-navy);
    border-radius: 50%;
    animation: lc-spin 1s linear infinite;
}

@keyframes lc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lc-processing-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.lc-processing-sub {
    color: var(--legal-muted);
    font-size: 0.9rem;
}

/* Toast */
.lc-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
    pointer-events: none;
}

.lc-toast-overlay.show {
    display: block;
    pointer-events: auto;
}

.lc-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--legal-border);
    pointer-events: none;
}

.lc-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.lc-toast-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--legal-navy);
}

.lc-toast-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.lc-toast-msg {
    font-size: 1rem;
    color: var(--legal-muted);
    line-height: 1.6;
}

/* Firm contact note */
.lc-firm-note {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--legal-border);
    text-align: center;
    font-size: 0.95rem;
    color: var(--legal-muted);
}

.lc-firm-note a {
    color: var(--legal-navy);
    font-weight: 600;
    text-decoration: none;
}

.lc-firm-note a:hover {
    color: var(--legal-gold);
}

/* Firm Modal */
.firm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.firm-modal-overlay.show {
    display: block;
}

.firm-modal {
    background: #fff;
    max-width: 540px;
    margin: 60px auto;
    padding: 40px;
    position: relative;
    border: 1px solid var(--legal-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.firm-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--legal-navy), var(--legal-gold));
}

.firm-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.6rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.firm-modal-close:hover {
    color: #333;
}

.firm-modal h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--legal-navy);
    margin: 0 0 6px 0;
}

.firm-modal .firm-modal-sub {
    font-size: 0.95rem;
    color: var(--legal-muted);
    margin-bottom: 24px;
}

.firm-modal .lc-form-group {
    margin-bottom: 18px;
}

.firm-modal .lc-submit-btn {
    margin-top: 6px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    padding: 18px 50px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
    border: 2px solid var(--legal-gold);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--legal-gold), var(--legal-gold-light));
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.4);
}

/* ============================================
   SUBPAGE HERO
   ============================================ */
.subpage-hero {
    background: var(--legal-navy) center/cover no-repeat;
    min-height: 400px;
    padding: 160px 40px 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(27,42,74,0.7) 50%, rgba(0,0,0,0.75) 100%);
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.subpage-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--legal-gold-light);
    margin-bottom: 16px;
}

.subpage-hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.subpage-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-options-section {
    padding: 60px 40px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-option-card {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--legal-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--legal-navy);
}

.contact-option-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(27,42,74,0.08), rgba(184,134,11,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--legal-navy);
}

.contact-option-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.contact-option-card p {
    font-size: 0.95rem;
    color: var(--legal-muted);
}

.contact-option-card p a {
    color: var(--legal-navy);
    font-weight: 600;
}

.contact-option-card p a:hover {
    color: var(--legal-gold);
}

.contact-form-section {
    padding: 80px 40px;
    background: #faf9f7;
}

.contact-form-section--firm {
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-form-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.contact-form-header p {
    font-size: 1.05rem;
    color: var(--legal-muted);
    line-height: 1.6;
}

.contact-form-header p em {
    font-style: normal;
    color: var(--legal-gold);
    font-weight: 600;
}

/* ============================================
   HOMEPAGE PRACTICE AREA CARDS (Simplified)
   ============================================ */
.practice-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.practice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27,42,74,0.1);
    border-color: var(--legal-navy);
}

.practice-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(27,42,74,0.08), rgba(184,134,11,0.08));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--legal-navy);
    margin-bottom: 14px;
}

.practice-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.practice-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
}

.practice-cards-link {
    text-align: center;
    margin-top: 32px;
}

.practice-cards-link a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--legal-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.practice-cards-link a:hover {
    color: var(--legal-gold);
    gap: 10px;
}

/* Homepage CTA Banner (replaces full contact form) */
.contact-cta-banner {
    background: linear-gradient(135deg, var(--legal-navy), #2d4a7a);
    padding: 80px 40px;
    text-align: center;
}

.contact-cta-banner h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.contact-cta-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-banner .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--legal-gold), var(--legal-gold-light));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(184,134,11,0.3);
}

.contact-cta-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(184,134,11,0.5);
}

/* ============================================
   RESPONSIVE — Subpage / Contact additions
   ============================================ */
@media (max-width: 768px) {
    .subpage-hero {
        min-height: 320px;
        padding: 120px 20px 60px;
    }

    .contact-options-section {
        padding: 40px 20px;
    }

    .contact-options-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-section {
        padding: 50px 20px;
    }

    .practice-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-banner {
        padding: 50px 20px;
    }
}

@media (max-width: 1100px) {
    .practice-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FOOTER — Legal (Navy theme)
   ============================================ */
.legal-footer {
    background: var(--legal-navy);
    color: #fff;
    padding: 60px 60px 30px;
}

.legal-footer-content {
}

.legal-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.legal-footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--legal-gold-light);
}

.legal-footer-section p,
.legal-footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-footer-section a:hover {
    color: var(--legal-gold-light);
}

.legal-footer-links {
    list-style: none;
}

.legal-footer-links li {
    margin-bottom: 10px;
}

.legal-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.legal-footer-bottom .footer-address {
    font-size: 0.8rem;
    margin-top: 5px;
}

.legal-footer-bottom .footer-address a {
    color: rgba(255, 255, 255, 0.7);
}

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

.legal-footer .parent-company {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-footer .parent-company a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.legal-footer .parent-company a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Social links in footer */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--legal-gold);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--clean-white);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }

/* Focus states for accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--legal-gold);
    outline-offset: 3px;
}

.btn:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   RESPONSIVE — 1280px
   ============================================ */
@media (max-width: 1280px) {
    .legal-nav {
        gap: 20px;
    }

    .legal-nav a {
        font-size: 13px;
    }

    .auth-links .auth-link {
        font-size: 12px;
    }
}

/* ============================================
   RESPONSIVE — 1100px (tablet / hide nav)
   ============================================ */
@media (max-width: 1100px) {
    header.legal-header {
        padding: 18px 20px;
    }

    header.legal-header.scrolled {
        padding: 14px 20px;
    }

    .legal-nav {
        display: none;
    }

    .auth-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 2.5rem;
        padding: 15px;
        opacity: 0.45;
    }

    .legal-brand img {
        height: 35px;
    }

    .legal-header.scrolled .legal-brand img {
        height: 30px;
    }

    .legal-header-content > .legal-brand {
        position: static;
    }

    .legal-header-content {
        justify-content: space-between;
    }
}

/* ============================================
   RESPONSIVE — 768px (mobile)
   ============================================ */
@media (max-width: 768px) {
    /* Hero */
    .legal-hero {
        min-height: 100vh;
        padding: 120px 20px 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .text-slider {
        height: 200px;
    }

    .hero-cta {
        margin-top: 25px;
    }

    .hero-cta .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    /* Ticker */
    .ticker-label {
        padding: 0 14px;
        font-size: 0.7rem;
    }

    /* Blog preview */
    .blog-preview {
        padding: 50px 20px;
    }

    .blog-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview-featured {
        min-height: 240px;
        padding: 28px 24px;
    }

    .blog-preview-featured h3 {
        font-size: 1.25rem;
    }

    .blog-preview-item {
        padding: 18px 20px;
    }

    /* Tools */
    .legal-tools {
        padding: 60px 20px;
    }

    .legal-tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal-tool-card {
        padding: 28px 22px;
    }

    /* Social proof */
    .legal-social-proof {
        padding: 50px 20px;
    }

    .legal-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .legal-proof-stats {
        gap: 40px;
    }

    /* Expertise */
    .expertise-section {
        padding: 60px 20px;
    }

    .expertise-header-btn {
        padding: 20px;
    }

    .expertise-inner {
        padding: 0 20px 20px;
    }

    /* Flip cards */
    .flip-card {
        height: 460px;
    }

    .flip-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Value section */
    .value-section {
        padding: 50px 20px;
    }

    /* Services */
    .legal-services-section {
        padding: 50px 20px;
    }

    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .legal-services-card {
        padding: 24px;
    }

    /* Contact */
    .legal-contact .lc-wrap {
        padding: 0;
        margin: 0;
    }

    .lc-head {
        padding: 50px 20px;
    }

    .lc-contact-form {
        margin: -30px 16px 40px 16px;
        padding: 28px 20px;
    }

    .lc-options {
        gap: 18px;
    }

    .lc-form-row {
        grid-template-columns: 1fr;
    }

    /* Firm modal */
    .firm-modal {
        margin: 30px 16px;
        padding: 28px 20px;
    }

    /* CTA */
    .cta-section {
        padding: 50px 20px;
    }

    /* Footer */
    .legal-footer {
        padding: 40px 20px 20px;
    }

    .legal-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .legal-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-links {
        order: -1;
    }
}

/* ============================================
   RESPONSIVE — 480px (small mobile)
   ============================================ */
@media (max-width: 480px) {
    .legal-footer-grid {
        grid-template-columns: 1fr;
    }

    .legal-footer-section {
        text-align: center;
    }

    .legal-footer-bottom p {
        font-size: 0.8rem;
    }

    .flip-card {
        height: 420px;
    }

    .lc-toast {
        padding: 30px 20px;
        width: 90%;
    }

    .legal-services-cta {
        width: 100%;
        text-align: center;
    }
}
