/* ============================================
   ADVANTAGE TAX LAW - Styles v1
   CSS Variables | Responsive | Maintainable
   ============================================ */

:root {
    /* Color Palette */
    --color-gold: #c9a84c;
    --color-gold-light: #d4b85a;
    --color-gold-dark: #b8963a;
    --color-gold-rgb: 201, 168, 76;

    --color-bg-primary: #0a0f1e;
    --color-bg-secondary: #0f172a;
    --color-bg-tertiary: #1a2744;
    --color-bg-card: rgba(26, 39, 68, 0.5);
    --color-bg-card-hover: rgba(26, 39, 68, 0.8);
    --color-bg-overlay: rgba(10, 15, 30, 0.7);

    --color-text-primary: #ffffff;
    --color-text-secondary: #e8e4db;
    --color-text-muted: #8b95a8;
    --color-text-dark: #565558;

    --color-success: #22c55e;
    --color-success-rgb: 34, 197, 94;
    --color-danger: #dc3232;
    --color-warning: #f39c12;

    --color-border-light: rgba(201, 168, 76, 0.1);
    --color-border: rgba(201, 168, 76, 0.15);
    --color-border-strong: rgba(201, 168, 76, 0.3);

    /* Typography */
    --font-heading: "Playfair Display", serif;
    --font-body:
        "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Courier New", monospace;

    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 28px;
    --text-3xl: 36px;
    --text-4xl: 42px;
    --text-5xl: 48px;
    --text-6xl: 56px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;

    --letter-spacing-tight: 0.5px;
    --letter-spacing-normal: 1px;
    --letter-spacing-wide: 2px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 30px;
    --space-4xl: 40px;
    --space-5xl: 60px;
    --space-6xl: 80px;

    --container-max: 1400px;
    --container-padding: 60px;
    --container-padding-mobile: 20px;

    --section-padding: var(--space-6xl) var(--container-padding);
    --section-padding-mobile: var(--space-5xl) var(--container-padding-mobile);

    /* Borders & Radius */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 20px;
    --radius-full: 9999px;

    --border-width-thin: 1px;
    --border-width-normal: 2px;
    --border-width-thick: 3px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 15px rgba(201, 168, 76, 0.3);
    --shadow-gold-lg: 0 6px 25px rgba(201, 168, 76, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-default: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-header: 1000;
    --z-modal: 2000;
    --z-overlay: 3000;
    --z-chatbot: 99999;
    --z-progress: 9999;

    /* Backdrop */
    --blur-sm: 10px;
    --blur-md: 12px;
    --blur-lg: 20px;
    --blur-xl: 30px;
    --blur-2xl: 40px;
}

/* ============================================
   GLOBAL RESET
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    background: linear-gradient(
        135deg,
        var(--color-bg-primary) 0%,
        var(--color-bg-secondary) 25%,
        #131d35 50%,
        var(--color-bg-secondary) 75%,
        var(--color-bg-primary) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
	animation-play-state: paused;
    line-height: var(--line-height-normal);
    min-height: 100vh;
    overflow-x: hidden;
}

body.home {
	padding-top: 124px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   CONTAINERS
   ============================================ */

.header-container,
.hero,
.stats-bar,
.practice-areas,
.why-section,
.hnw-section,
.process,
.final-cta,
.lookup-container,
.portal-container,
.insights-container,
.footer-content,
.footer-bottom {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

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

.float-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.float-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-gold),
        var(--color-gold-light),
        var(--color-gold)
    );
    z-index: var(--z-progress);
    transition: width 0.1s;
    width: 0%;
}

/* ============================================
   SECTION CARD STYLING
   ============================================ */

.section-card {
    background: rgba(15, 23, 42, 0.6);
    border: var(--border-width-thin) solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    padding: var(--space-5xl) var(--container-padding);
    margin: var(--space-4xl) auto;
    max-width: var(--container-max);
}

/* ============================================
   TAB CONTENT
   ============================================ */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    /* min: 32px, preferred: 5vw + 16px, max: 56px */
}

h2 {
    font-size: clamp(1.75rem, 4vw + 0.75rem, 2.625rem);
    /* min: 28px, preferred: 4vw + 12px, max: 42px */
}

h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 1.75rem);
    /* min: 24px, preferred: 3vw + 8px, max: 28px */
}

h4 {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    /* min: 18px, preferred: 2vw + 8px, max: 24px */
}

h5 {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    /* min: 16px, preferred: 1.5vw + 8px, max: 18px */
}

h6 {
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    /* min: 14px, preferred: 1vw + 8px, max: 16px */
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
}

/* Paragraphs */
p {
    font-size: var(--text-base);
    line-height: var(--line-height-loose);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Links */
a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-default);
}

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

/* Text Utilities */
.text-gold {
    color: var(--color-gold) !important;
}

.text-white {
    color: var(--color-text-primary) !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.text-dark {
    color: var(--color-text-dark) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-xs {
    font-size: var(--text-xs) !important;
}

.text-sm {
    font-size: var(--text-sm) !important;
}

.text-base {
    font-size: var(--text-base) !important;
}

.text-lg {
    font-size: var(--text-lg) !important;
}

.text-xl {
    font-size: var(--text-xl) !important;
}

.text-2xl {
    font-size: var(--text-2xl) !important;
}

.text-3xl {
    font-size: var(--text-3xl) !important;
}

.font-normal {
    font-weight: var(--font-weight-normal) !important;
}

.font-medium {
    font-weight: var(--font-weight-medium) !important;
}

.font-semibold {
    font-weight: var(--font-weight-semibold) !important;
}

.font-bold {
    font-weight: var(--font-weight-bold) !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.letter-spacing {
    letter-spacing: var(--letter-spacing-normal) !important;
}

.letter-spacing-wide {
    letter-spacing: var(--letter-spacing-wide) !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.italic {
    font-style: italic !important;
}

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */

.bg-primary {
    background-color: var(--color-bg-primary) !important;
}

.bg-secondary {
    background-color: var(--color-bg-secondary) !important;
}

.bg-tertiary {
    background-color: var(--color-bg-tertiary) !important;
}

.bg-card {
    background: var(--color-bg-card) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

.bg-gold-light {
    background-color: var(--color-gold-light) !important;
}

.bg-gradient {
    background: linear-gradient(
        135deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-tertiary) 50%,
        var(--color-bg-secondary) 100%
    ) !important;
}

/* ============================================
   SECTION HEADERS (Reusable)
   ============================================ */

.section-subtitle {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-5xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(
        135deg,
        var(--color-gold) 0%,
        var(--color-gold-light) 50%,
        var(--color-gold) 100%
    );
    background-size: 200% 200%;
    color: var(--color-bg-secondary);
    padding: var(--space-lg) var(--space-3xl);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-gold);
    text-decoration: none;
}

.btn-filled:hover {
    background-position: 100% 50%;
    box-shadow: var(--shadow-gold-lg);
    transform: translateY(-2px);
    color: var(--color-bg-secondary);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--color-text-secondary);
    padding: var(--space-lg) var(--space-3xl);
    border: var(--border-width-normal) solid var(--color-gold);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-default);
    text-decoration: none;
}

.btn-outline:hover {
    background-color: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-xs);
}

.btn-large {
    padding: var(--space-xl) var(--space-4xl);
    font-size: var(--text-base);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    color: var(--color-gold);
    padding: var(--space-sm) var(--space-lg);
    border: var(--border-width-thin) solid var(--color-border-strong);
    border-radius: var(--radius-3xl);
}

.badge-dot {
    width: var(--space-sm);
    height: var(--space-sm);
    background-color: var(--color-success);
    border-radius: var(--radius-full);
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
    height: var(--border-width-thin);
    background: var(--color-border);
    margin: var(--space-4xl) 0;
}

.divider-light {
    background: var(--color-border-light);
}

.divider-gold {
    background: var(--color-gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border-bottom: var(--border-width-thin) solid var(--color-border);
    transition: var(--transition-default);
    will-change: backdrop-filter;
}

.header-container {
    padding: 0 var(--container-padding);
}

/* Header Top Nav - Flexbox */
.header-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: var(--border-width-thin) solid var(--color-border-light);
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-advantage {
    color: var(--color-text-primary);
}

.logo-tax {
    color: var(--color-gold);
}

/* Header Navigation - Flexbox */
.header-nav {
    display: flex;
    gap: 50px;
    align-items: center;
}

.header-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: color var(--transition-default);
}

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

/* CTA Button */
.header-nav .cta-button {
    background-color: var(--color-gold);
    color: var(--color-bg-secondary);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-default);
    white-space: nowrap;
}

.header-nav .cta-button:hover {
    background-color: var(--color-gold-light);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 280px;
    padding: var(--space-md) 0;
    display: none;
    flex-direction: column;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-xl);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: none;
    white-space: nowrap;
    transition: var(--transition-default);
}

.nav-dropdown-menu a:hover {
    background: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: calc(var(--z-header) + 1);
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-default);
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Tool Navigation - Flexbox */
.tool-nav {
    display: flex;
    gap: 0;
    padding-top: 0;
}

.tab-button {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
    background: none;
    border: none;
    border-bottom: var(--border-width-thick) solid transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-default);
}

.tab-button:hover {
    color: var(--color-gold);
}

.tab-button.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

/* ============================================
   HEADER - RESPONSIVE (Mobile-First Overrides)
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .header-nav {
        gap: var(--space-3xl);
    }

    .tab-button {
        font-size: var(--text-xs);
        padding: var(--space-md) var(--space-sm);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0 var(--container-padding-mobile);
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .header-top-nav {
        padding: var(--space-lg) 0;
    }

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

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(var(--blur-lg));
        -webkit-backdrop-filter: blur(var(--blur-lg));
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-3xl) var(--space-3xl);
        transition: right var(--transition-default);
        gap: var(--space-xl);
        border-left: var(--border-width-thin) solid var(--color-border);
        overflow-y: auto;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav a,
    .nav-dropdown-toggle {
        font-size: var(--text-base);
        padding: var(--space-sm) 0;
        width: 100%;
        border-bottom: var(--border-width-thin) solid var(--color-border-light);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 0 0 0 var(--space-xl);
        width: 100%;
        box-shadow: none;
        display: flex;
    }

    .nav-dropdown-menu a {
        font-size: var(--text-sm);
        padding: var(--space-sm) 0;
        white-space: normal;
    }

    .header-nav .cta-button {
        margin-top: var(--space-xl);
        width: 100%;
        justify-content: center;
    }

    .tool-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100vw;
        padding: 0;
        margin: 0;
    }

    .tool-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        font-size: 11px;
        padding: var(--space-md) var(--space-sm);
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .tab-button {
        font-size: 10px;
        padding: var(--space-sm) var(--space-xs);
    }
}

/* ============================================
   HOME TAB - HERO SECTION
   ============================================ */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
    padding: var(--section-padding);
    background: linear-gradient(
        135deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-tertiary) 50%,
        var(--color-bg-secondary) 100%
    );
    overflow: hidden;
}

/* Hero Background Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(var(--color-gold-rgb), 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(var(--color-gold-rgb), 0.05) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 60% 80%,
            rgba(var(--color-gold-rgb), 0.06) 0%,
            transparent 45%
        );
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Hero Left */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.hero-left .badge {
    width: fit-content;
}

.hero h1 {
    font-size: var(--text-6xl);
    margin: 0;
}

.hero h1 em {
    font-style: italic;
    color: var(--color-gold);
    display: block;
}

.hero p {
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* Hero Right - Attorney Card */
.hero-right {
    display: flex;
    justify-content: center;
}

.attorney-card {
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.8) 0%,
        rgba(15, 23, 42, 0.9) 100%
    );
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(var(--color-gold-rgb), 0.1);
    transition: var(--transition-default);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.attorney-card:hover {
    border-color: rgba(var(--color-gold-rgb), 0.4);
    box-shadow:
        var(--shadow-xl),
        0 0 40px rgba(var(--color-gold-rgb), 0.08);
}

.attorney-card h3 {
    font-size: var(--text-xl);
    margin: 0;
}

.attorney-field {
    border-top: var(--border-width-thin) solid var(--color-border);
    padding-top: var(--space-lg);
}

.attorney-field-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.attorney-field-value {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.attorney-credential-icon {
    width: 40px;
    height: 40px;
    border: var(--border-width-normal) solid var(--color-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
    background: rgba(var(--color-gold-rgb), 0.05);
}

/* ============================================
   HERO - RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-4xl);
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-left .badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: var(--section-padding-mobile);
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero p {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-filled,
    .hero-cta .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .attorney-card {
        padding: var(--space-2xl);
    }

    .attorney-card h3 {
        font-size: var(--text-lg);
        text-align: center;
    }

    .attorney-field-label {
        font-size: 10px;
    }

    .attorney-field-value {
        font-size: var(--text-sm);
    }

    .attorney-credential-icon {
        width: 32px;
        height: 32px;
        font-size: var(--text-base);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }

    .attorney-card {
        padding: var(--space-xl);
    }
}

/* ============================================
   HOME TAB - STATS BAR SECTION
   ============================================ */

.stats-bar {
    background-color: var(--color-bg-tertiary);
    border-top: var(--border-width-normal) solid var(--color-gold);
    padding: var(--section-padding);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4xl);
    text-align: center;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.stat-bar-value {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: 1;
}

.stat-bar-value.gold {
    color: var(--color-gold);
}

.stat-bar-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ============================================
   HOME TAB - PRACTICE AREAS SECTION
   ============================================ */

.practice-areas {
    background-color: var(--color-bg-secondary);
    padding: var(--section-padding);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3xl);
}

.practice-card {
    position: relative;
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    transition: var(--transition-bounce);
    overflow: hidden;
}

.practice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--color-gold-rgb), 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-default);
    pointer-events: none;
}

.practice-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-6px);
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(var(--color-gold-rgb), 0.1);
    border-color: var(--color-border-strong);
}

.practice-card:hover::before {
    opacity: 1;
}

.practice-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.practice-card-icon.teal {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.practice-card-icon.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.practice-card-icon.gold {
    background-color: rgba(var(--color-gold-rgb), 0.2);
    color: var(--color-gold);
}

.practice-card-icon.cyan {
    background-color: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.practice-card-icon.amber {
    background-color: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.practice-card-icon.red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.practice-card h4 {
    font-size: var(--text-lg);
    margin: 0;
    font-weight: var(--font-weight-bold);
}

.practice-card p {
    font-size: var(--text-sm);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.practice-tag {
    display: inline-block;
    background-color: rgba(var(--color-gold-rgb), 0.15);
    color: var(--color-gold);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    margin-top: var(--space-sm);
    width: fit-content;
}

/* ============================================
   STATS BAR & PRACTICE AREAS - RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3xl);
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-bar-value {
        font-size: var(--text-4xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .stats-bar {
        padding: var(--section-padding-mobile);
    }

    .practice-areas {
        padding: var(--section-padding-mobile);
    }

    .practice-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-description {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4xl);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats-bar-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .stat-bar-value {
        font-size: var(--text-3xl);
    }

    .practice-card {
        padding: var(--space-2xl);
    }

    .practice-card h4 {
        font-size: var(--text-base);
    }
}

/* ============================================
   HOME TAB - WHY SECTION
   ============================================ */

.why-section {
    background-color: var(--color-bg-secondary);
    padding: var(--section-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: start;
}

.why-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.why-left .section-subtitle {
    text-align: left;
}

.why-left h2 {
    font-size: var(--text-4xl);
    margin: 0;
    line-height: var(--line-height-tight);
    text-align: left;
}

.why-left h2 em {
    font-style: italic;
    color: var(--color-gold);
}

.why-left > p {
    font-size: var(--text-base);
    margin: 0;
    text-align: left;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.checklist-icon {
    width: var(--space-2xl);
    height: var(--space-2xl);
    flex-shrink: 0;
    color: var(--color-success);
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist-content {
    flex: 1;
}

.checklist-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-xs) 0;
}

.checklist-content p {
    font-size: var(--text-sm);
    margin: 0;
}

/* Why Right */
.why-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

/* Quote Card */
.quote-card {
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4xl);
    position: relative;
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.quote-mark {
    font-size: var(--text-5xl);
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.quote-text {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: var(--line-height-loose);
    margin: 0 0 var(--space-xl) 0;
}

.quote-attribution {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    margin: 0;
}

/* Stats Box Row */
.stats-box-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.stat-small-box {
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.stat-small-box-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.stat-small-box-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ============================================
   HOME TAB - HNW SECTION
   ============================================ */

.hnw-section {
    background-color: var(--color-bg-tertiary);
    padding: var(--section-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: start;
}

.hnw-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.hnw-left .section-subtitle {
    text-align: left;
}

.hnw-left h2 {
    font-size: var(--text-4xl);
    margin: 0;
    line-height: var(--line-height-tight);
    text-align: left;
}

.hnw-left h2 em {
    font-style: italic;
    color: var(--color-gold);
}

.hnw-left > p {
    font-size: var(--text-base);
    margin: 0;
    text-align: left;
}

/* Numbered Items */
.numbered-item {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.numbered-item-num {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gold);
    min-width: 40px;
}

.numbered-item-content {
    flex: 1;
}

.numbered-item-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-xs) 0;
}

.numbered-item-content p {
    font-size: var(--text-sm);
    margin: 0;
}

/* HNW Right - Feature Cards */
.hnw-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.feature-card h3 {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-gold);
    margin: 0 0 var(--space-md) 0;
    font-weight: var(--font-weight-semibold);
}

.feature-card p {
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   WHY & HNW SECTIONS - RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .why-section,
    .hnw-section {
        grid-template-columns: 1fr;
        gap: var(--space-4xl);
    }

    .why-left .section-subtitle,
    .why-left h2,
    .why-left > p,
    .hnw-left .section-subtitle,
    .hnw-left h2,
    .hnw-left > p {
        text-align: center;
    }

    .why-left {
        align-items: center;
    }

    .checklist-item {
        max-width: 600px;
    }

    .hnw-left {
        align-items: center;
    }

    .numbered-item {
        max-width: 600px;
    }

    .why-left h2,
    .hnw-left h2 {
        font-size: var(--text-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .why-section,
    .hnw-section {
        padding: var(--section-padding-mobile);
    }

    .checklist-item {
        gap: var(--space-md);
    }

    .checklist-content h4 {
        font-size: var(--text-sm);
    }

    .quote-card {
        padding: var(--space-2xl);
    }

    .quote-text {
        font-size: var(--text-sm);
    }

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

    .numbered-item {
        gap: var(--space-md);
    }

    .numbered-item-num {
        font-size: var(--text-lg);
        min-width: 30px;
    }

    .numbered-item-content h4 {
        font-size: var(--text-sm);
    }

    .feature-card {
        padding: var(--space-2xl);
    }

    .feature-card h3 {
        font-size: var(--text-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .why-left h2,
    .hnw-left h2 {
        font-size: var(--text-xl);
    }

    .quote-card {
        padding: var(--space-xl);
    }

    .feature-card {
        padding: var(--space-xl);
    }
}

/* ============================================
   HOME TAB - PROCESS SECTION
   ============================================ */

.process {
    background-color: #f5f3f0;
    padding: var(--section-padding);
}

.process-subtitle {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.process-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-bg-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.process-description {
    font-size: var(--text-base);
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: var(--space-5xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3xl);
    position: relative;
}

.process-grid::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: var(--border-width-normal);
    background: repeating-linear-gradient(
        90deg,
        var(--color-gold) 0px,
        var(--color-gold) 15px,
        transparent 15px,
        transparent 30px
    );
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: transparent;
    color: var(--color-bg-secondary);
    border: var(--border-width-normal) solid var(--color-gold);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 auto;
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-bg-secondary);
    margin: 0;
    font-weight: var(--font-weight-bold);
}

.process-step p {
    font-size: var(--text-sm);
    color: var(--color-text-dark);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* ============================================
   HOME TAB - FINAL CTA SECTION
   ============================================ */

.final-cta {
    background-color: var(--color-bg-tertiary);
    padding: var(--section-padding);
    text-align: center;
}

.final-cta-subtitle {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.final-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.final-cta p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-buttons {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.final-cta-phone {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    letter-spacing: var(--letter-spacing-normal);
}

/* ============================================
   PROCESS & FINAL CTA - RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4xl) var(--space-3xl);
    }

    .process-grid::before {
        display: none;
    }

    .process-title,
    .final-cta h2 {
        font-size: var(--text-3xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .process,
    .final-cta {
        padding: var(--section-padding-mobile);
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .process-title,
    .final-cta h2 {
        font-size: var(--text-2xl);
    }

    .process-description,
    .final-cta p {
        font-size: var(--text-sm);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }

    .process-step h4 {
        font-size: var(--text-base);
    }

    .final-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .final-cta-buttons .btn-filled {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .process-title,
    .final-cta h2 {
        font-size: var(--text-xl);
    }
}

/* ============================================
   CODE & FORM LOOKUP TAB
   ============================================ */

.lookup-container {
    padding: var(--section-padding);
}

.search-section {
    background-color: var(--color-bg-tertiary);
    padding: var(--space-4xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4xl);
}

.search-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    margin-bottom: var(--space-2xl);
}

.search-box {
    display: flex;
    gap: var(--space-md);
}

#taxCodeSearch {
    flex: 1;
    padding: var(--space-lg) var(--space-xl);
    background-color: var(--color-bg-secondary);
    border: var(--border-width-normal) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color var(--transition-default);
}

#taxCodeSearch:focus {
    outline: none;
    border-color: var(--color-gold);
}

#taxCodeSearch::placeholder {
    color: var(--color-text-muted);
}

.search-btn {
    padding: var(--space-lg) var(--space-3xl);
    background-color: var(--color-gold);
    color: var(--color-bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color var(--transition-default);
}

.search-btn:hover {
    background-color: var(--color-gold-light);
}

#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.search-result {
    background: rgba(26, 39, 68, 0.5);
    border-left: var(--border-width-thick) solid var(--color-gold);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-default);
}

.search-result:hover {
    background: rgba(26, 39, 68, 0.8);
    transform: translateX(4px);
}

#codeDetail {
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.8) 0%,
        rgba(15, 23, 42, 0.9) 100%
    );
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    margin-top: var(--space-4xl);
    display: none;
}

#codeDetail.active {
    display: block;
}

.code-detail-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.code-detail-code {
    font-family: var(--font-mono);
    color: var(--color-gold);
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
}

.code-detail-content {
    color: var(--color-text-muted);
    line-height: var(--line-height-loose);
    font-size: var(--text-base);
}

.code-detail-content h5 {
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.code-detail-content ul {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.code-detail-content li {
    margin-bottom: var(--space-sm);
}

/* ============================================
   TAX COURT PORTAL TAB
   ============================================ */

.portal-container {
    padding: var(--section-padding);
}

.portal-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    margin-bottom: var(--space-4xl);
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: var(--space-5xl);
}

.dashboard-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4xl);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.chart-container {
    background: rgba(15, 23, 42, 0.6);
    border: var(--border-width-thin) solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.chart-container h4 {
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
}

.chart-container canvas {
    max-height: 300px;
    width: 100% !important;
}

/* Triggers Section */
.triggers-section {
    margin-bottom: var(--space-5xl);
}

.triggers-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3xl);
}

.trigger-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.trigger-card {
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.7) 0%,
        rgba(15, 23, 42, 0.8) 100%
    );
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
}

.trigger-rank {
    position: absolute;
    top: -12px;
    left: var(--space-xl);
    background-color: var(--color-gold);
    color: var(--color-bg-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--text-lg);
}

.trigger-header {
    padding-top: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.trigger-title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.risk-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: uppercase;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xs);
}

.risk-high {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: var(--border-width-thin) solid rgba(239, 68, 68, 0.4);
}

.risk-medium {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: var(--border-width-thin) solid rgba(245, 158, 11, 0.4);
}

.risk-low {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: var(--border-width-thin) solid rgba(34, 197, 94, 0.4);
}

.trigger-content {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.trigger-case {
    font-size: var(--text-xs);
    color: var(--color-gold);
    border-top: var(--border-width-thin) solid var(--color-border-light);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    font-style: italic;
}

/* Cases Section */
.cases-section {
    margin-bottom: var(--space-5xl);
}

.cases-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3xl);
}

.cases-filters {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.cases-filters input,
.cases-filters select {
    flex: 1;
    min-width: 200px;
    background: rgba(26, 39, 68, 0.5);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.cases-filters input::placeholder {
    color: var(--color-text-muted);
}

.cases-filters select option {
    background-color: var(--color-bg-secondary);
}

.cases-count {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.cases-accordion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.case-item {
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.65) 0%,
        rgba(15, 23, 42, 0.75) 100%
    );
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: var(--border-width-thin) solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-3xl);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-default);
}

.case-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--color-gold-rgb), 0.35);
}

.case-item-inner {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 260px;
}

.case-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.case-cat-pill {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(var(--color-gold-rgb), 0.12);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-3xl);
    white-space: nowrap;
}

.case-year-pill {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-3xl);
    white-space: nowrap;
}

.case-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    line-height: var(--line-height-tight);
}

.case-issue-text {
    font-size: var(--text-sm);
    color: #a0aec0;
    line-height: var(--line-height-normal);
    flex: 1;
}

.case-verdict {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: auto;
}

.case-verdict.win {
    background: rgba(39, 174, 96, 0.1);
    border: var(--border-width-thin) solid rgba(39, 174, 96, 0.25);
}

.case-verdict.loss {
    background: rgba(231, 76, 60, 0.1);
    border: var(--border-width-thin) solid rgba(231, 76, 60, 0.25);
}

.case-verdict.mixed {
    background: rgba(243, 156, 18, 0.1);
    border: var(--border-width-thin) solid rgba(243, 156, 18, 0.25);
}

.case-verdict.pending {
    background: rgba(139, 149, 168, 0.1);
    border: var(--border-width-thin) solid rgba(139, 149, 168, 0.25);
}

.case-verdict-icon {
    font-size: var(--text-xl);
    line-height: 1;
}

.case-verdict-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.case-verdict.win .case-verdict-label {
    color: #27ae60;
}
.case-verdict.loss .case-verdict-label {
    color: #e74c3c;
}
.case-verdict.mixed .case-verdict-label {
    color: var(--color-warning);
}
.case-verdict.pending .case-verdict-label {
    color: var(--color-text-muted);
}

.case-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xs);
}

.case-court-badge {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.case-amount-badge {
    font-size: var(--text-xs);
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
}

/* Case Detail Overlay */
.case-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-default);
}

.case-detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.case-detail-card {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(var(--blur-xl));
    -webkit-backdrop-filter: blur(var(--blur-xl));
    border: var(--border-width-thin) solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-2xl);
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-4xl);
    position: relative;
    animation: caseSlideUp 0.35s ease;
}

@keyframes caseSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.case-detail-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-text-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.case-detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.case-detail-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.case-detail-issue {
    font-size: var(--text-base);
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-normal);
}

.case-detail-summary {
    font-size: var(--text-sm);
    color: #a0aec0;
    line-height: var(--line-height-loose);
    margin-bottom: var(--space-xl);
}

/* ============================================
   LOOKUP & PORTAL - RESPONSIVE
   ============================================ */

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

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

    .cases-accordion {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lookup-container,
    .portal-container {
        padding: var(--section-padding-mobile);
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .cases-accordion {
        grid-template-columns: 1fr;
    }

    .case-item-inner {
        min-height: auto;
    }

    .case-detail-card {
        padding: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: var(--space-2xl);
    }

    .search-section h2,
    .portal-title {
        font-size: var(--text-2xl);
    }

    .chart-container {
        padding: var(--space-lg);
    }
}

/* ============================================
   INSIGHTS TAB
   ============================================ */

.insights-container {
    padding: 0 var(--container-padding) var(--space-5xl);
}

.insights-header {
    position: sticky;
    top: 130px;
    z-index: 50;
    background: linear-gradient(
        180deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-secondary) 85%,
        transparent 100%
    );
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.insights-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.insights-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    margin: 0;
}

.insights-search {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex: 1;
    max-width: 500px;
}

.insights-search input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: rgba(26, 39, 68, 0.6);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.25);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.insights-search input::placeholder {
    color: var(--color-text-muted);
}

.insights-search input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.insights-search select {
    padding: var(--space-md) var(--space-lg);
    background: rgba(26, 39, 68, 0.6);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.25);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    cursor: pointer;
}

.insights-search select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.insight-card {
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: var(--transition-default);
    cursor: pointer;
}

.insight-card:hover {
    border-color: rgba(var(--color-gold-rgb), 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.insight-card-category {
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: var(--font-weight-semibold);
}

.insight-card h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    line-height: var(--line-height-normal);
    margin: 0;
}

.insight-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
    flex: 1;
}

.insight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: var(--border-width-thin) solid var(--color-border-light);
}

.insight-card-author {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.insight-card-read {
    font-size: var(--text-xs);
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insights-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-5xl);
    flex-wrap: wrap;
    max-width: 100%;
}

.insights-pagination button {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-default);
}

.insights-pagination button:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.insights-pagination button.active {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
    border-color: var(--color-gold);
    font-weight: var(--font-weight-bold);
}

.insights-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .insights-pagination {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .insights-pagination button {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
        min-width: 36px;
    }
}

/* Mobile Pagination Fix */
@media (max-width: 600px) {
    .insights-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 0 10px;
    }

    .insights-pagination button {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 32px;
        white-space: nowrap;
    }

    /* Hide "First" and "Last" buttons on small screens */
    .insights-pagination button:first-of-type,
    .insights-pagination button:last-of-type {
        display: none;
    }

    /* Make Prev/Next smaller */
    .insights-pagination button:nth-of-type(2),
    .insights-pagination button:nth-last-of-type(2) {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .insights-pagination {
        gap: 4px;
    }

    .insights-pagination button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 32px;
    }

    /* Hide First/Last on very small screens */
    .insights-pagination button:first-child,
    .insights-pagination button:last-child {
        display: none;
    }
}

.insights-cta {
    text-align: center;
    padding: var(--space-5xl) var(--space-4xl);
    background: rgba(26, 39, 68, 0.4);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-xl);
}

.insights-cta h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.insights-cta p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.insights-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-5xl) var(--space-xl);
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ============================================
   ARTICLE OVERLAY
   ============================================ */

.article-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-bg-overlay);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
    animation: overlayFadeIn var(--transition-default);
}

.article-overlay.active {
    display: flex;
}

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

.article-overlay-card {
    background: rgba(26, 39, 68, 0.85);
    backdrop-filter: blur(var(--blur-2xl));
    -webkit-backdrop-filter: blur(var(--blur-2xl));
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.25);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-5xl);
    position: relative;
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(var(--color-gold-rgb), 0.06);
    animation: cardSlideUp 0.35s ease;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.article-overlay-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-2xl);
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    transition: color var(--transition-default);
    z-index: 1;
}

.article-overlay-close:hover {
    color: var(--color-text-primary);
}

.article-overlay-cat {
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
}

.article-overlay-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

.article-overlay-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: var(--border-width-thin) solid var(--color-border);
}

.article-overlay-body {
    font-size: var(--text-base);
    color: #d4cfc4;
    line-height: 1.85;
}

.article-overlay-body h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-gold);
    margin: var(--space-3xl) 0 var(--space-lg);
}

.article-overlay-body p {
    margin-bottom: var(--text-lg);
}

.article-overlay-body ul,
.article-overlay-body ol {
    margin: var(--space-lg) 0 var(--space-lg) var(--space-2xl);
    color: #d4cfc4;
}

.article-overlay-body li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

.article-overlay-body .callout {
    background: rgba(var(--color-gold-rgb), 0.08);
    border-left: var(--border-width-thick) solid var(--color-gold);
    padding: var(--space-lg) var(--space-xl);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: var(--space-2xl) 0;
}

.article-overlay-body .callout-label {
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.article-overlay-cta {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: var(--border-width-thin) solid var(--color-border);
    text-align: center;
}

.article-overlay-cta p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

/* ============================================
   CONSULTATION MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-bg-tertiary);
    padding: var(--space-4xl);
    border-radius: var(--radius-xl);
    border: var(--border-width-thin) solid var(--color-border);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    right: var(--space-xl);
    top: var(--space-xl);
    font-size: var(--text-2xl);
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-gold-light);
}

.modal-content h2 {
    color: var(--color-gold);
    margin-bottom: var(--space-2xl);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.modal-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: var(--space-md);
    background: rgba(15, 23, 42, 0.8);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

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

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: var(--color-text-muted);
}

.modal-content select option {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
}

.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--line-height-normal);
    margin-top: calc(var(--space-xs) * -1);
}

.modal-submit-btn {
    width: 100% !important;
    justify-content: center !important;
}

/* ============================================
   INSIGHTS & MODALS - RESPONSIVE
   ============================================ */

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

@media (max-width: 768px) {
    .insights-container {
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }

    .insights-header {
        position: relative;
        top: 0;
        background: transparent;
        padding: var(--space-xl) 0;
        margin-bottom: var(--space-xl);
    }

    .insights-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        width: 100%;
        max-width: 100%;
    }

    .insights-title {
        text-align: center;
    }

    .insights-search {
        max-width: 100%;
        flex-direction: column;
        width: 100%;
    }

    .insights-search input,
    .insights-search select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

    .article-overlay {
        padding: var(--space-lg);
    }

    .article-overlay-card {
        padding: var(--space-2xl) var(--space-xl);
        max-height: 90vh;
    }

    .article-overlay-title {
        font-size: var(--text-xl);
    }

    .modal-content {
        padding: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: var(--space-xl);
        width: 90%;
    }

    .modal-content h2 {
        font-size: clamp(1.25rem, 4vw + 0.5rem, 1.75rem);
    }

    .modal-name-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .modal-content input,
    .modal-content select,
    .modal-content textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: var(--space-md);
    }

    .insights-cta {
        padding: var(--space-3xl) var(--space-xl);
    }

    .insights-cta h3 {
        font-size: var(--text-xl);
    }

    .article-overlay-card {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
/*     background-color: var(--color-bg-tertiary); */
    border-top: var(--border-width-thin) solid var(--color-border);
    padding: var(--space-5xl) var(--container-padding) var(--space-3xl);
    color: var(--color-text-muted);
	background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 25%, #131d35 50%, var(--color-bg-secondary) 75%, var(--color-bg-primary) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
}

.footer-logo-advantage {
    color: var(--color-text-primary);
}

.footer-logo-tax {
    color: var(--color-gold);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

.footer-section h4 {
    color: var(--color-text-primary);
    font-family: var(--font-body) !important;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-default);
}

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

.footer-contact {
    font-size: var(--text-sm);
    line-height: var(--line-height-loose);
}

.footer-contact a {
    color: var(--color-gold);
    text-decoration: none;
}

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

.footer-contact-item + .footer-contact-item {
    margin-top: 12px;
}

.footer-contact-item {
    color: var(--color-text-muted);
}

.footer-contact-label {
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-3xl);
    border-top: var(--border-width-thin) solid var(--color-border-light);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* No Results */
.no-results {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-5xl) 0;
    font-size: var(--text-base);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */

#atl-chat-btn {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    z-index: var(--z-chatbot);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: var(--border-width-normal) solid rgba(var(--color-gold-rgb), 0.4);
    background: linear-gradient(135deg, #1a2332 0%, #0f1620 100%);
    color: var(--color-gold);
    font-size: var(--text-2xl);
    cursor: pointer;
    box-shadow:
        var(--shadow-lg),
        0 0 20px rgba(var(--color-gold-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
}

#atl-chat-btn:hover {
    transform: scale(1.1);
    box-shadow:
        var(--shadow-xl),
        0 0 30px rgba(var(--color-gold-rgb), 0.25);
}

#atl-chat-panel {
    position: fixed;
    bottom: 100px;
    right: var(--space-2xl);
    z-index: var(--z-chatbot);
    width: 420px;
    max-width: calc(100vw - 32px);
    height: 580px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    font-family: var(--font-body);
}

#atl-chat-panel.open {
    display: flex;
}

.atl-header {
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-secondary) 100%
    );
    color: var(--color-text-primary);
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-width-thin) solid var(--color-border);
}

.atl-header-left {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.atl-header-icon {
    font-size: var(--text-xl);
}

.atl-header-title {
    font-weight: var(--font-weight-bold);
    font-size: var(--text-sm);
}

.atl-header-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.atl-close-btn {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-default);
}

.atl-close-btn:hover {
    color: var(--color-gold-light);
}

.atl-disclaimer {
    background-color: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
    border-bottom: var(--border-width-thin) solid var(--color-border);
    line-height: var(--line-height-normal);
}

.atl-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: #f8f6f1;
}

.atl-msg {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
}

.atl-msg.assistant {
    align-items: flex-start;
}

.atl-msg.user {
    align-items: flex-end;
}

.atl-msg-content {
    background-color: rgba(26, 39, 68, 0.1);
    color: var(--color-text-muted);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: var(--line-height-normal);
    max-width: 85%;
}

.atl-msg.user .atl-msg-content {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.atl-msg-time {
    font-size: var(--text-xs);
    color: #999;
    padding: 0 var(--space-md);
}

.atl-typing {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    align-items: center;
}

.atl-typing span {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: var(--radius-full);
    animation: bounce 1.4s infinite;
}

.atl-typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.atl-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%,
    80%,
    100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

.atl-quick-prompts {
    padding: var(--space-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

.atl-quick-prompts button {
    background: linear-gradient(135deg, #f5f1eb 0%, #eae5dd 100%);
    border: var(--border-width-thin) solid #ddd;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: var(--transition-default);
    color: #2c3e50;
    font-weight: var(--font-weight-medium);
}

.atl-quick-prompts button:hover {
    background: linear-gradient(
        135deg,
        var(--color-gold) 0%,
        var(--color-gold-light) 100%
    );
    color: var(--color-bg-secondary);
    border-color: var(--color-gold);
}

.atl-input-area {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

#atl-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width-thin) solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #2c3e50;
    background-color: #ffffff;
}

#atl-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

#atl-send {
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-bg-tertiary);
    color: var(--color-gold);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-default);
}

#atl-send:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-secondary);
}

#atl-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.atl-footer {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
    color: #999;
    text-align: center;
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

.atl-footer a {
    color: var(--color-bg-tertiary);
    text-decoration: none;
}

.atl-consult-form {
    padding: var(--space-lg);
    background: #f8f7f4;
    border-top: var(--border-width-normal) solid var(--color-gold);
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
    max-height: 400px;
}

.atl-consult-form.visible {
    display: flex;
}

.atl-consult-form h4 {
    margin: 0;
    color: var(--color-bg-tertiary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
}

.atl-consult-form input,
.atl-consult-form select,
.atl-consult-form textarea {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width-thin) solid #ddd;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: inherit;
    color: #333;
    background: #fff;
}

.atl-consult-form input:focus,
.atl-consult-form select:focus,
.atl-consult-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(var(--color-gold-rgb), 0.15);
}

.atl-consult-form textarea {
    min-height: 60px;
    resize: vertical;
}

.atl-consult-form .atl-submit-btn {
    padding: var(--space-md);
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary),
        var(--color-bg-secondary)
    );
    color: var(--color-gold);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-default);
}

.atl-consult-form .atl-submit-btn:hover {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
}

.atl-consult-toggle {
    display: block;
    width: calc(100% - var(--space-2xl));
    margin: var(--space-sm) var(--space-md);
    padding: var(--space-sm);
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary),
        var(--color-bg-secondary)
    );
    color: var(--color-gold);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-default);
    text-align: center;
}

.atl-consult-toggle:hover {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
}

/* ============================================
   FINAL RESPONSIVE BREAKPOINTS
   ============================================ */

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    footer {
        padding: var(--space-4xl) var(--container-padding-mobile)
            var(--space-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    #atl-chat-panel {
        width: calc(100vw - 16px);
        bottom: 80px;
        right: 8px;
        height: 500px;
    }

    #atl-chat-btn {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 56px;
        height: 56px;
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 120px;
    }

    .footer-bottom {
        font-size: var(--text-xs);
    }
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */

#atl-chat-btn {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    z-index: var(--z-chatbot);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: var(--border-width-normal) solid rgba(var(--color-gold-rgb), 0.4);
    background: linear-gradient(135deg, #1a2332 0%, #0f1620 100%);
    color: var(--color-gold);
    font-size: var(--text-2xl);
    cursor: pointer;
    box-shadow:
        var(--shadow-lg),
        0 0 20px rgba(var(--color-gold-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
}

#atl-chat-btn:hover {
    transform: scale(1.1);
    box-shadow:
        var(--shadow-xl),
        0 0 30px rgba(var(--color-gold-rgb), 0.25);
}

#atl-chat-panel {
    position: fixed;
    bottom: 100px;
    right: var(--space-2xl);
    z-index: var(--z-chatbot);
    width: 420px;
    max-width: calc(100vw - 32px);
    height: 580px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    font-family: var(--font-body);
}

#atl-chat-panel.open {
    display: flex;
}

.atl-header {
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-secondary) 100%
    );
    color: var(--color-text-primary);
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-width-thin) solid var(--color-border);
}

.atl-header-left {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.atl-header-icon {
    font-size: var(--text-xl);
}

.atl-header-title {
    font-weight: var(--font-weight-bold);
    font-size: var(--text-sm);
}

.atl-header-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.atl-close-btn {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-default);
}

.atl-close-btn:hover {
    color: var(--color-gold-light);
}

.atl-disclaimer {
    background-color: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
    border-bottom: var(--border-width-thin) solid var(--color-border);
    line-height: var(--line-height-normal);
}

.atl-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: #f8f6f1;
}

.atl-msg {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
}

.atl-msg.assistant {
    align-items: flex-start;
}

.atl-msg.user {
    align-items: flex-end;
}

.atl-msg-content {
    background-color: rgba(26, 39, 68, 0.1);
    color: var(--color-text-muted);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: var(--line-height-normal);
    max-width: 85%;
}

.atl-msg.user .atl-msg-content {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.atl-msg-time {
    font-size: var(--text-xs);
    color: #999;
    padding: 0 var(--space-md);
}

.atl-typing {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    align-items: center;
}

.atl-typing span {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: var(--radius-full);
    animation: bounce 1.4s infinite;
}

.atl-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.atl-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%,
    80%,
    100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

.atl-quick-prompts {
    padding: var(--space-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

.atl-quick-prompts button {
    background: linear-gradient(135deg, #f5f1eb 0%, #eae5dd 100%);
    border: var(--border-width-thin) solid #ddd;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: var(--transition-default);
    color: #2c3e50;
    font-weight: var(--font-weight-medium);
}

.atl-quick-prompts button:hover {
    background: linear-gradient(
        135deg,
        var(--color-gold) 0%,
        var(--color-gold-light) 100%
    );
    color: var(--color-bg-secondary);
    border-color: var(--color-gold);
}

.atl-input-area {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

#atl-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width-thin) solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #2c3e50;
    background-color: #ffffff;
}

#atl-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

#atl-send {
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-bg-tertiary);
    color: var(--color-gold);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-default);
}

#atl-send:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-secondary);
}

#atl-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.atl-footer {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
    color: #999;
    text-align: center;
    border-top: var(--border-width-thin) solid #ddd;
    background: #ffffff;
}

.atl-footer a {
    color: var(--color-bg-tertiary);
    text-decoration: none;
}

.atl-consult-form {
    padding: var(--space-lg);
    background: #f8f7f4;
    border-top: var(--border-width-normal) solid var(--color-gold);
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
    max-height: 400px;
}

.atl-consult-form.visible {
    display: flex;
}

.atl-consult-form h4 {
    margin: 0;
    color: var(--color-bg-tertiary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
}

.atl-consult-form input,
.atl-consult-form select,
.atl-consult-form textarea {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width-thin) solid #ddd;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: inherit;
    color: #333;
    background: #fff;
}

.atl-consult-form input:focus,
.atl-consult-form select:focus,
.atl-consult-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(var(--color-gold-rgb), 0.15);
}

.atl-consult-form textarea {
    min-height: 60px;
    resize: vertical;
}

.atl-consult-form .atl-submit-btn {
    padding: var(--space-md);
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary),
        var(--color-bg-secondary)
    );
    color: var(--color-gold);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-default);
}

.atl-consult-form .atl-submit-btn:hover {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
}

.atl-consult-toggle {
    display: block;
    width: calc(100% - var(--space-2xl));
    margin: var(--space-sm) var(--space-md);
    padding: var(--space-sm);
    background: linear-gradient(
        135deg,
        var(--color-bg-tertiary),
        var(--color-bg-secondary)
    );
    color: var(--color-gold);
    border: var(--border-width-thin) solid rgba(var(--color-gold-rgb), 0.3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--transition-default);
    text-align: center;
}

.atl-consult-toggle:hover {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
}

/* ============================================
   CHATBOT MOBILE FIXES
   ============================================ */

@media (max-width: 480px) {
    /* Smaller chat trigger button for mobile */
    #atl-chat-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: var(--space-lg);
        right: var(--space-lg);
    }

    /* Keep quick prompts in 2 columns with smaller buttons */
    .atl-quick-prompts {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
        padding: 8px;
    }

    .atl-quick-prompts button {
        padding: 8px 4px;
        font-size: 10px;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Smaller consultation toggle */
    .atl-consult-toggle {
        padding: 8px;
        font-size: 11px;
        margin: 6px 12px;
    }

    /* Smaller chat button */
    #atl-chat-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: var(--space-lg);
        right: var(--space-lg);
    }

    /* Compact input area */
    .atl-input-area {
        padding: 8px;
    }

    #atl-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    #atl-send {
        padding: 8px 12px;
    }

    /* Adjust panel height */
    #atl-chat-panel {
        height: 500px;
        max-height: calc(100vh - 100px);
    }

    /* Slightly smaller form fields */
    .atl-consult-form {
        padding: 12px;
        max-height: 320px;
    }

    .atl-consult-form input,
    .atl-consult-form select,
    .atl-consult-form textarea {
        padding: 8px 10px;
        font-size: 14px;
    }

    .atl-consult-form .atl-submit-btn {
        padding: 10px;
        font-size: 12px;
    }
}

/* ============================================
   DEFAULT TEMPLATES (Single, Page, Archive, 404)
   ============================================ */

/* Container */
.default-page-container,
.single-post-container,
.page-container,
.error-404-container,
.archive-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px var(--container-padding) var(--space-5xl);
}

.single-post-container {
    max-width: 900px;
}

.error-404-container {
    max-width: 700px;
    text-align: center;
    padding: 160px var(--container-padding) 100px;
}

/* Error 404 */
.error-404-number {
    font-family: var(--font-heading);
    font-size: 120px;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-xl);
}

.error-404-container h1 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
}

.error-404-container p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4xl);
}

.error-404-actions {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards Grid */
.default-grid,
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
}

.default-card,
.archive-card {
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    transition: var(--transition-default);
}

.default-card:hover,
.archive-card:hover {
    border-color: rgba(var(--color-gold-rgb), 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.default-card h3,
.archive-card h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-md);
}

.default-card h3 a,
.archive-card h3 a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-default);
}

.default-card h3 a:hover,
.archive-card h3 a:hover {
    color: var(--color-gold);
}

.card-meta {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.card-excerpt {
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.card-link {
    display: inline-block;
    margin-top: var(--space-xl);
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: color var(--transition-default);
}

.card-link:hover {
    color: var(--color-gold-light);
}

/* Single Post */
.post-category {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.single-post-container h1,
.page-container h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-tight);
}

.post-meta {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4xl);
    padding-bottom: var(--space-xl);
    border-bottom: var(--border-width-thin) solid var(--color-border);
}

.post-content,
.page-content {
    color: var(--color-text-secondary);
    line-height: var(--line-height-loose);
    font-size: var(--text-base);
}

.post-content h2 {
    font-size: var(--text-2xl);
    margin: var(--space-4xl) 0 var(--space-lg);
}

.post-content h3 {
    font-size: var(--text-xl);
    margin: var(--space-3xl) 0 var(--space-md);
}

.post-content p {
    margin-bottom: var(--space-lg);
}

.post-content ul,
.post-content ol {
    margin: var(--space-lg) 0 var(--space-lg) var(--space-2xl);
}

.post-content li {
    margin-bottom: var(--space-sm);
}

/* Post CTA */
.post-cta {
    margin-top: var(--space-5xl);
    padding: var(--space-4xl);
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.post-cta h3 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.post-cta p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

/* Pagination */
.pagination {
    margin-top: var(--space-5xl);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.pagination .page-numbers {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-default);
}

.pagination .page-numbers:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.pagination .page-numbers.current {
    background: var(--color-gold);
    color: var(--color-bg-secondary);
    border-color: var(--color-gold);
    font-weight: var(--font-weight-bold);
}

/* Archive Title */
.archive-container .section-subtitle {
    text-align: center;
}

.archive-container h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4xl);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .default-page-container,
    .single-post-container,
    .page-container,
    .error-404-container,
    .archive-container {
        padding: 100px var(--container-padding-mobile) var(--space-4xl);
    }

    .single-post-container h1,
    .page-container h1,
    .archive-container h1 {
        font-size: var(--text-2xl);
    }

    .error-404-number {
        font-size: 80px;
    }

    .error-404-container h1 {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   FINAL RESPONSIVE BREAKPOINTS
   ============================================ */

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    footer {
        padding: var(--space-4xl) var(--container-padding-mobile)
            var(--space-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    #atl-chat-panel {
        width: calc(100vw - 16px);
        bottom: 80px;
        right: 8px;
        height: 500px;
    }

    #atl-chat-btn {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 56px;
        height: 56px;
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        font-size: var(--text-xs);
    }
}

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

@media print {
    header,
    footer,
    .tool-nav,
    #atl-chat-btn,
    #atl-chat-panel,
    .scroll-progress,
    .modal,
    .article-overlay,
    .case-detail-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .tab-content {
        display: block !important;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}


/* ============================================
   CHATBOT STYLES
   ============================================ */

#atl-chat-btn img.emoji {
  display: none !important;
}

#atl-chat-btn::before {
  content: "⚖️";
  font-family: "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  color: #d4af37;
}

#atl-chat-panel .atl-header-icon img.emoji {
  display: none !important;
}

#atl-chat-panel .atl-header-icon::before {
  content: "⚖️";
  font-family: "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  color: #d4af37;
}

