/* CarWreckAZ.com - Master Stylesheet */
/* Consolidated from multiple CSS files for optimal performance */
/* Generated: 2025-11-28 */


/* ========================================
   STYLES.CSS
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - ASU Maroon (Pride & Professionalism) */
    --primary: #8C1D40;
    --primary-dark: #6b1530;
    --primary-light: #a8234f;
    
    /* Accent Colors - ASU Gold (Energy & Warmth) */
    --accent: #FFC627;
    --accent-dark: #e6b022;
    --secondary: #FFC627;
    
    /* Semantic Colors */
    --success: #059669;
    --error: #dc2626;
    --warning: #f59e0b;
    
    /* Text Colors - Softer, More Premium */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    /* Background Colors - Warm Off-White */
    --bg-white: #fafaf9;
    --bg-gray: #f5f5f4;
    --bg-dark: #0f172a;
    
    /* Borders - Warm Tones */
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #a8234f;
    --primary-dark: #8C1D40;
    --primary-light: #c42a5c;
    --accent: #FFD54F;
    --accent-dark: #FFC627;
    --secondary: #FFD54F;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3b8;
    --bg-white: #1e293b;
    --bg-gray: #111827;
    --bg-dark: #000000;
    --border: #374151;
    --success: #34d399;
    --error: #f87171;
}

/* Dark Theme Form Overrides */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group select::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .checkbox-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
}

[data-theme="dark"] .form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

[data-theme="dark"] .area-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

[data-theme="dark"] .attorney-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

[data-theme="dark"] .office-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: var(--spacing-sm); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.phone-number {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(255, 198, 39, 0.3);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 198, 39, 0.5);
}

.btn-secondary {
    background: var(--bg-dark);
    color: white;
}

.btn-secondary:hover {
    background: #374151;
    transform: translateY(-2px);
}

.btn-secondary-light {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-secondary-light:hover {
    background: transparent;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block { width: 100%; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.hero-text { padding-top: var(--spacing-lg); }

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight { color: #fbbf24; }

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 500;
}

.feature-icon {
    flex-shrink: 0;
    color: #10b981;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Form Card */
.form-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
}

.form-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

/* Forms */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
}

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

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.error-message.show {
    display: block;
}

.form-consent {
    margin: var(--spacing-sm) 0;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.btn-submit {
    margin-top: var(--spacing-sm);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
}

.success-message {
    text-align: center;
    padding: var(--spacing-xl);
}

.success-icon {
    color: var(--success);
    margin-bottom: var(--spacing-md);
}

.success-message h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.success-message p {
    color: var(--text-secondary);
}

/* Practice Areas */
.practice-areas {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.area-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.area-icon {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.area-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.area-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Why Choose */
.why-choose {
    padding: var(--spacing-2xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.benefit {
    text-align: center;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: var(--spacing-sm);
}

.benefit h3 {
    margin-bottom: var(--spacing-sm);
}

.benefit p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-section a {
    color: #9ca3af;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: var(--spacing-sm);
}

.disclaimer {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .header-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-number {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme toggle removed - using ASU pride theme only */

/* Simple Cookie Consent */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: var(--spacing-md);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-secondary);
}

.cookie-consent-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Cookie Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.cookie-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

#close-cookie-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--text-secondary);
}

.cookie-modal-body {
    padding: var(--spacing-lg);
}

.cookie-category {
    margin-bottom: var(--spacing-lg);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* Dark theme cookie styles */
[data-theme="dark"] #cookie-consent-banner,
[data-theme="dark"] .cookie-modal-content {
    background: var(--bg-white);
    border-color: var(--border);
}

[data-theme="dark"] .cookie-consent-text p,
[data-theme="dark"] .cookie-category p {
    color: var(--text-secondary);
}
.office-location {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.location-info {
    display: flex;
    align-items: center;
    height: 100%;
}

.office-card {
    background: var(--bg-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.office-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.office-address {
    margin-bottom: var(--spacing-lg);
}

.office-address p {
    margin: var(--spacing-xs) 0;
    font-size: 1.1rem;
}

.office-contact {
    margin-bottom: var(--spacing-lg);
}

.office-contact p {
    margin: var(--spacing-xs) 0;
}

.office-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.office-hours {
    margin-bottom: var(--spacing-lg);
}

.office-hours h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.office-hours p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Attorney image styles */
.attorney-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Attorneys Section */
.attorneys {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-gray);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.attorney-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding: var(--spacing-lg);
}

.attorney-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.attorney-photo {
    margin-bottom: var(--spacing-md);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    box-shadow: var(--shadow-md);
}

.photo-placeholder svg {
    width: 60px;
    height: 60px;
}

.attorney-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.attorney-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attorney-bio {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.attorney-credentials {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.attorney-credentials span {
    background: var(--bg-gray);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.attorneys-cta {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.attorneys-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

@media (max-width: 768px) {
    .attorneys-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .attorney-card {
        padding: var(--spacing-md);
    }
    
    .attorney-photo {
        margin-bottom: var(--spacing-md);
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder svg {
        width: 50px;
        height: 50px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .location-map iframe {
        height: 300px;
    }
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    background: var(--bg-white);
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(30, 64, 175, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-gray);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.faq-answer ul,
.faq-answer ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.faq-answer li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    color: var(--text-secondary);
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Consistent FAQ list styling - maroon bullets/numbers */
.faq-answer ul li::marker,
.faq-answer ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

.faq-cta {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.faq-cta h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-grid {
        gap: var(--spacing-md);
    }

    .faq-question {
        padding: var(--spacing-md);
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .faq-cta {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-md);
    }

    .faq-cta h3 {
        font-size: 1.25rem;
    }
}

.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--font-primary);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-toggle svg {
    color: white;
    transition: transform 0.3s ease;
}

.chatbot-widget.open .chatbot-toggle svg {
    transform: rotate(180deg);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    border: 2px solid white;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotSlideUp 0.3s ease-out;
}

@keyframes chatbotSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-name {
    display: flex;
    flex-direction: column;
}

.chatbot-title {
    font-weight: 600;
    font-size: 14px;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.8;
    color: #10b981;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    display: flex;
    gap: 8px;
    max-width: 80%;
}

.chatbot-message-bot {
    align-self: flex-start;
}

.chatbot-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.chatbot-message-user .message-avatar {
    background: var(--primary);
}

.message-content {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.chatbot-message-user .message-content {
    background: var(--primary);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chatbot-input {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

#chatbot-input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#chatbot-input-field:focus {
    border-color: var(--primary);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chatbot-send:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.chatbot-quick-replies {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Dark theme support */
[data-theme="dark"] .chatbot-window {
    background: var(--bg-white);
    color: var(--text-primary);
}

[data-theme="dark"] .message-content {
    background: var(--bg-light);
    color: var(--text-primary);
}

[data-theme="dark"] .chatbot-message-user .message-content {
    background: var(--primary);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        max-width: none;
        right: -16px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
}

/* Typing indicator */
.chatbot-typing {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    align-self: flex-start;
    max-width: 80%;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.article-featured-image {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.article-featured-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.article-image {
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.image-caption {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Blog Preview Section */
.blog-preview {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-gray);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.blog-preview-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-preview-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
}

/* Blog category in header (inline) */
.blog-header .blog-category,
.blog-meta .blog-category {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 198, 39, 0.3);
}

.blog-header .blog-category a,
.blog-meta .blog-category a {
    color: var(--primary-dark);
    text-decoration: none;
}

.blog-preview-content {
    padding: var(--spacing-lg);
}

.blog-preview-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.blog-preview-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-preview-content h3 a:hover {
    color: var(--primary);
}

.blog-preview-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-preview-cta {
    text-align: center;
}

/* Individual Blog Post Styles */
.blog-post {
    padding: var(--spacing-2xl) 0;
}

.breadcrumb {
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
}

.article-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.article-content p.lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.stat-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Danger Zones */
.danger-zones {
    margin: var(--spacing-xl) 0;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--error);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.danger-zone h4 {
    color: var(--error);
    margin-bottom: var(--spacing-xs);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.cta-box p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Attorney Spotlight */
.attorney-spotlight {
    background: var(--bg-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.attorney-spotlight-content h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.attorney-spotlight-content p {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.attorney-spotlight-content cite {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Article Tags */
.article-tags {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.tag {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-right: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Author Bio */
.author-bio {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.author-info {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.author-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.author-details p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Related Articles */
.related-articles {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.related-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.related-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Blog Index Styles */
.blog-header {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-date {
    opacity: 0.9;
}

.blog-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.blog-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.post-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}

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

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.post-content {
    padding: var(--spacing-lg);
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.post-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h2 a:hover {
    color: var(--primary);
}

.post-content .post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Newsletter Signup */
.newsletter-signup {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.newsletter-content h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 400px;
    margin: 0 auto var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Blog Categories */
.blog-categories {
    margin-top: var(--spacing-2xl);
}

.blog-categories h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-card.featured {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages */
.content-container {
    max-width: 900px;
}

.last-updated {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-style: italic;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}


/* ========================================
   ENHANCEMENTS-2025.CSS
   ======================================== */

/**
 * 2025 CSS Enhancements
 * Modern spacing, micro-interactions, and polish
 * Load this AFTER styles.css
 */

/* ========================================
   IMPROVED SPACING & TYPOGRAPHY
   ======================================== */

/* More generous whitespace for 2025 aesthetic */
.container {
    padding: 0 2rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

/* Better section spacing */
section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 7rem 0;
    }
}

/* Improved heading hierarchy */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

/* Better paragraph spacing */
p {
    margin-bottom: 1.25rem;
    max-width: 65ch; /* Optimal reading width */
}

/* ========================================
   ENHANCED BUTTONS
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect on click */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Improved hover states */
.btn-primary {
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(220, 38, 38, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -3px rgba(220, 38, 38, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */

.attorney-card,
.area-card,
.office-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.attorney-card:hover,
.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Subtle gradient overlay on hover */
.attorney-card::after,
.area-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.attorney-card:hover::after,
.area-card:hover::after {
    opacity: 1;
}

/* ========================================
   IMPROVED FORM STYLING
   ======================================== */

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(220, 38, 38, 0.15);
}

/* ========================================
   LINK ANIMATIONS
   ======================================== */

a {
    position: relative;
    transition: color 0.3s ease;
}

/* Underline animation for text links */
.section-subtitle a,
.article-content a {
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.section-subtitle a:hover,
.article-content a:hover {
    background-size: 100% 2px;
}

/* ========================================
   HEADER IMPROVEMENTS
   ======================================== */

.header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(31, 41, 55, 0.95);
}

/* Scroll shadow */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   PHONE NUMBER PULSE ANIMATION
   ======================================== */

.phone-number {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.phone-number:hover {
    animation: none;
    transform: scale(1.05);
}

/* ========================================
   SECTION TITLE ENHANCEMENTS
   ======================================== */

.section-title {
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

/* ========================================
   SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for sticky header */
}

/* ========================================
   LOADING STATES
   ======================================== */

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   FOCUS VISIBLE (Accessibility)
   ======================================== */

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ========================================
   IMAGE LAZY LOAD FADE IN
   ======================================== */

img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   ATTORNEY PHOTO HOVER EFFECT
   ======================================== */

.attorney-photo {
    position: relative;
    overflow: hidden;
}

.attorney-photo img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.attorney-card:hover .attorney-photo img {
    transform: scale(1.05);
}

/* ========================================
   CTA BOX ENHANCEMENTS
   ======================================== */

.attorneys-cta,
.cta-box {
    position: relative;
    overflow: hidden;
}

.attorneys-cta::before,
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .phone-number {
        font-size: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .footer,
    .btn,
    .cta-box {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}


/* ========================================
   ALIGNMENT-FIX.CSS
   ======================================== */

/* Alignment & Centering Fixes */

/* Ensure all containers are consistently aligned */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Fix any sections that might have different widths */
section {
    width: 100%;
    box-sizing: border-box;
}

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

/* Ensure hero content is centered */
.hero .container,
.hero-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix any grid layouts that might be off-center */
.attorneys-grid,
.practice-areas .areas-grid,
.trust-grid,
.benefits-grid,
.keyword-grid {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure form is centered within its container */
.hero-form-container {
    width: 100%;
    max-width: 100%;
}

/* Fix any text alignment issues */
.section-title,
.section-subtitle {
    text-align: center;
    width: 100%;
}

/* Ensure all cards are properly contained */
.attorney-card,
.area-card,
.benefit,
.keyword-card,
.resource-card,
.blog-preview-card {
    box-sizing: border-box;
}

/* Fix print preview alignment */
@media print {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ensure no elements overflow their containers */
* {
    box-sizing: border-box;
}

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

/* Fix any absolute positioning that might cause misalignment */
.hero {
    position: relative;
    width: 100%;
}

/* Ensure footer is properly aligned */
footer .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   UX-FIXES.CSS
   ======================================== */

/* UX Fixes - November 27, 2025 */

/* Modern 2026 Blog Preview Design */
.blog-preview-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2d0a1a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Add subtle pattern overlay for depth */
.blog-preview-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 198, 39, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 20% 50%, rgba(255, 198, 39, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 198, 39, 0.15) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Style the category badge with gold accent */
/* Blog category on cards (absolute positioned) */
.blog-card .blog-category,
.blog-preview-card .blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 198, 39, 0.3);
    z-index: 10;
}

/* Add gold accent border to blog cards */
.blog-preview-card {
    border: 2px solid transparent;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.blog-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    z-index: 1;
}

.blog-preview-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(255, 198, 39, 0.2), var(--shadow-lg);
}

/* Hide images if they don't exist, show gradient */
.blog-preview-image img {
    display: none;
}

/* Fix: Center "What Sets Us Apart" section */
.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.keyword-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.keyword-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.keyword-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.keyword-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Ensure keyword-targets section is properly centered */
.keyword-targets {
    padding: 4rem 0;
    background: var(--bg-white);
}

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

/* Fix: Center attorneys CTA */
.attorneys-cta {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
}

.attorneys-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Add gold accents throughout */
/* Gold accent on section titles */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Gold hover effect on primary buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 198, 39, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Gold accent on card hover */
.keyword-card:hover h3,
.area-card:hover h3 {
    color: var(--accent-dark);
}

/* Add gold icons to feature checkmarks */
.hero-features .feature svg {
    color: var(--accent);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .keyword-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .keyword-card {
        padding: 1.5rem;
    }
    
    .blog-preview-image {
        height: 200px;
    }
}


/* ========================================
   LANDING-PAGE-OVERHAUL.CSS
   ======================================== */

/* Landing Page Comprehensive Overhaul - November 27, 2025 */
/* Perfect alignment, spacing, and gold accents throughout */

/* ========================================
   FOOTER - Fix Centering & Styling
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0a0f 100%);
    color: #f9fafb;
    padding: 3rem 0 1rem;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.8;
    color: #d1d5db;
}

.footer-section a {
    color: #f9fafb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 198, 39, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: #d1d5db;
    text-decoration: none;
}

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

.cookie-settings-link {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
}

.cookie-settings-link:hover {
    color: var(--accent);
}

.disclaimer {
    font-style: italic;
    opacity: 0.8;
}

/* ========================================
   TRUST METRICS - Better Centering
   ======================================== */

.trust-metrics {
    padding: 3rem 0;
    background: var(--bg-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-grid h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.trust-grid ul {
    list-style: none;
    padding: 0;
}

.trust-grid li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-grid li::before {
    content: '⭐';
    color: var(--accent);
    font-size: 1.2rem;
}

.trust-grid strong {
    color: var(--accent);
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
    font-style: italic;
    line-height: 1.8;
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

.review-highlight {
    margin-top: 1.5rem;
    text-align: center;
}

.review-stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   PRACTICE AREAS - Gold Accents
   ======================================== */

.practice-areas {
    padding: 4rem 0;
    background: var(--bg-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.area-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 198, 39, 0.2), var(--shadow-xl);
}

.area-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.area-card:hover h3 {
    color: var(--accent-dark);
}

/* ========================================
   FAQ SECTION - Better Styling
   ======================================== */

.faq-section {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.faq-container {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--accent-dark);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   OFFICE LOCATION - Better Layout
   ======================================== */

.office-location {
    padding: 4rem 0;
    background: var(--bg-white);
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.office-info {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent);
}

.office-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.office-address,
.office-hours {
    margin-bottom: 2rem;
}

.office-address h4,
.office-hours h4 {
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--accent);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ADDITIONAL GOLD ACCENTS
   ======================================== */

/* Add gold sparkle to stats */
.trust-grid strong::after {
    content: ' ✨';
    font-size: 0.8em;
}

/* Gold accent on "Read More Articles" button */
.blog-preview-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--accent);
}

.blog-preview-cta .btn-primary:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(255, 198, 39, 0.3);
}

/* ========================================
   POLISH & REFINEMENTS
   ======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Improve link hover states */
a {
    transition: color 0.3s ease;
}

/* Add subtle animation to page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
}


/* ========================================
   CENTERING-PERFECTION.CSS
   ======================================== */

/* ========================================
   CENTERING PERFECTION - Fix ALL alignment issues
   ======================================== */

/* Force center all section subtitles */
.section-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px;
}

/* Force center attorneys CTA paragraph */
.attorneys-cta p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px;
}

/* Force center footer bottom text */
.footer-bottom {
    text-align: center !important;
}

.footer-bottom p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Fix paralegal grid - center last item when odd number */
.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* When there's an odd number of items, center the last row */
.attorneys-grid > .attorney-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

/* Alternative: Force 3-column layout for paralegals to avoid 4-1 split */
@media (min-width: 768px) {
    /* For paralegal section specifically, use 3 columns max */
    .attorneys-section .attorneys-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    /* On large screens, force 3 columns for 5 items (2-3 layout) */
    .attorneys-section .attorneys-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure all text content in sections is properly centered */
.hero-content p,
.practice-areas .section-subtitle,
.keywords-section .section-subtitle,
.blog-preview .section-subtitle,
.faq-section .section-subtitle,
.office-location .section-subtitle {
    text-align: center !important;
}

/* Hero phone number - make it stand out with gold color */
.hero-callout {
    color: var(--accent) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.hero-callout:hover {
    color: var(--accent-dark) !important;
    border-bottom-color: var(--accent-dark);
    text-shadow: 0 0 8px rgba(255, 198, 39, 0.5);
}


/* ========================================
   BLOG-VIEWS.CSS
   ======================================== */

/* Blog View Modes & Filtering Styles */

/* View Toggle Controls */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-gray);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle-btn:hover {
    background: white;
    color: var(--primary);
}

.view-toggle-btn.active {
    background: var(--primary);
    color: white;
}

.results-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.results-info strong {
    color: var(--accent-dark);
    font-weight: 600;
}

/* Grid View (Default) */
.posts-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Ensure post cards match homepage blog preview styling */
.posts-grid .post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.posts-grid .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 198, 39, 0.2), var(--shadow-lg);
    border-color: var(--accent);
}

.posts-grid .post-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2d0a1a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Gold category badge styling (matches homepage) */
.posts-grid .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 198, 39, 0.3);
    z-index: 10;
}

.posts-grid .post-content {
    padding: 1.5rem;
}

.posts-grid .post-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.posts-grid .post-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-grid .post-content h2 a:hover {
    color: var(--primary);
}

.posts-grid .post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.posts-grid .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* List View */
.posts-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posts-grid.view-list .post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.posts-grid.view-list .post-image {
    height: 200px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.posts-grid.view-list .post-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.posts-grid.view-list .post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.posts-grid.view-list .post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Compact View */
.posts-grid.view-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.posts-grid.view-compact .post-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.posts-grid.view-compact .post-card:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.posts-grid.view-compact .post-card:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-bottom: none;
}

.posts-grid.view-compact .post-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: var(--radius-md);
    margin: 0;
}

.posts-grid.view-compact .post-category {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.posts-grid.view-compact .post-content {
    flex: 1;
    padding: 0;
}

.posts-grid.view-compact .post-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.posts-grid.view-compact .post-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-grid.view-compact .post-meta {
    font-size: 0.75rem;
}

/* Category Cards - Make them functional */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
}

.category-card.active h4,
.category-card.active p {
    color: white;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--accent) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.active::after {
    opacity: 1;
}

/* Add "All Posts" category card */
.category-card.all-posts {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: 2px solid var(--accent);
}

.category-card.all-posts h4,
.category-card.all-posts p {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .results-info {
        text-align: center;
    }
    
    .posts-grid.view-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid.view-list .post-card {
        grid-template-columns: 1fr;
    }
    
    .posts-grid.view-list .post-image {
        height: 200px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .posts-grid.view-list .post-content {
        padding: 1.5rem;
    }
    
    .posts-grid.view-compact .post-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-grid.view-compact .post-image {
        width: 100%;
        height: 150px;
    }
}

/* Smooth transitions */
.post-card {
    transition: all 0.3s ease;
}

/* Icon styles for view buttons */
.view-icon {
    width: 16px;
    height: 16px;
}


/* ========================================
   CONTENT-PAGES.CSS
   ======================================== */

/* Content Section Styling for Legal Pages */
.content-section {
    padding: 80px 0;
    min-height: 60vh;
}

.content-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.content-section .page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.content-section .section-heading {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: #1f2937;
}

.content-section .subsection-heading {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #1f2937;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

.content-section ul {
    font-size: 1.1rem;
    line-height: 2;
    color: #4b5563;
    margin-bottom: 2rem;
}

.content-section strong {
    color: #1f2937;
}


/* ========================================
   UTILITIES.CSS
   ======================================== */


/* Utility Classes - NO MORE INLINE STYLES! */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.auto-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
}
.paralegal-section { margin-top: 4rem; }
.section-heading { 
    text-align: center; 
    font-size: 1.8rem; 
    margin-bottom: 2rem; 
    color: var(--text-primary); 
}
.cta-text { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
}
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Legal Pages - Centered Content */
.blog-posts {
    padding: 4rem 0;
}

.blog-posts .content-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-posts .content-container p,
.blog-posts .content-container ul,
.blog-posts .content-container h2,
.blog-posts .content-container h3 {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-posts .content-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-posts .content-container h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-posts .content-container ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-posts .content-container li {
    margin-bottom: 0.5rem;
}

/* WordPress Blog - Category Grid (3x2) */
.blog-categories {
    margin-bottom: 4rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--text-primary);
    font-size: 2rem;
}
