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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

*:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* === COLOR VARIABLES === */
:root {
    --primary-white: #ffffff;
    --secondary-white: #f8f9fa;
    --light-gray: #e5e7eb;
    --medium-gray: #9ca3af;
    --dark-gray: #4b5563;
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* === LAYOUT & CONTAINERS === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* === HEADER & NAVIGATION === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 8px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cta-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.75rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-banner a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.cta-banner a:hover,
.cta-banner a:focus {
    color: var(--gold-hover);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* === HERO SECTION === */
.hero-section {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-section p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0 0 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    border: 2px solid white;
}

.cta-button:hover,
.cta-button:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* === CALCULATOR SECTION === */
.calculator-section {
    padding: 80px 0;
    background: var(--secondary-white);
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-blue) 20%, var(--primary-blue) 80%, transparent 100%);
}

.calculator-container h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calculator Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Input Groups */
.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-group input::placeholder,
.input-group select::placeholder {
    color: var(--medium-gray);
}

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

/* Style select arrow */
.input-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    appearance: none;
    cursor: pointer;
}

/* Calculator Controls */
.calculator-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white !important;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    color: white !important;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--secondary-white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Results Display */
.results-section {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.results-section h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-dark);
    border-color: var(--primary-blue);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--light-gray);
    border-radius: 50px;
    padding: 0.5rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    border: 1px solid var(--light-gray);
    gap: 0.5rem;
}

.tab-button {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button.active::before,
.tab-button:hover::before {
    opacity: 1;
}

.tab-button.active,
.tab-button:hover {
    color: white;
    box-shadow: 0 4px 16px var(--shadow);
}

.tab-content {
    display: none;
    background: transparent;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Charts Container */
.chart-container {
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scenario Waterfall */
.waterfall-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.waterfall-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.waterfall-label {
    font-weight: 600;
}

.waterfall-value {
    text-align: right;
    font-weight: 700;
}

/* CTA Boxes */
.cta-box {
    background: var(--secondary-white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 4px 16px var(--shadow);
}

.cta-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-box p {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn,
.cta-box .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
}

.cta-box .btn:hover,
.cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    color: white !important;
}

/* === STATES SECTION === */
.states-section {
    padding: 100px 0;
    background: var(--primary-white);
    position: relative;
}

.states-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-blue) 20%, var(--primary-blue) 80%, transparent 100%);
}

.states-section h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.state-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.state-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px var(--shadow-dark);
    border-color: var(--primary-blue);
}

.state-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.state-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.state-card a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.state-card a:hover,
.state-card a:focus {
    color: var(--secondary-blue);
    transform: translateX(4px);
}

.state-card a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.state-card a:hover::after {
    transform: translateX(4px);
}

/* State Article Styles */
.article-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: -120px;
    padding-top: 200px;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.article-content {
    background: var(--primary-white);
    padding: 4rem 0;
}

.article-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-primary);
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.article-cta h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-cta .btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: var(--primary-black);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ Styles */
.faq-item {
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.faq-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--gold);
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 500px; opacity: 1; }
}

/* === FOOTER === */
footer {
    background: var(--primary-black);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

footer h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

footer p {
    margin-bottom: 2rem;
    opacity: 0.8;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

footer .bottom-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    nav {
        padding: 1rem 0;
        position: relative;
    }

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

    .nav-links {
        display: none;
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 8px 32px var(--shadow-dark);
        border-bottom: 1px solid var(--light-gray);
        z-index: 999;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--light-gray);
        color: var(--text-primary);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .calculator-section {
        padding: 60px 0;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-controls {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .results-section {
        padding: 2rem;
        margin-top: 2rem;
    }

    .results-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .result-item {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .tabs {
        padding: 0.25rem;
        margin-bottom: 2rem;
    }

    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }

    .states-section {
        padding: 80px 0;
    }

    .states-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .state-card {
        padding: 2rem;
    }

    .article-content {
        padding: 3rem 0;
    }

    .article-content h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    footer {
        padding: 3rem 0;
    }

    footer h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    footer p {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 100px 0 40px;
    }

    .hero-section h1 {
        font-size: clamp(1.75rem, 10vw, 2rem);
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: clamp(0.95rem, 5vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
        max-width: 280px;
    }

    .calculator-section {
        padding: 40px 0;
    }

    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .input-group input,
    .input-group select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .calculator-controls {
        margin-bottom: 2rem;
    }

    .results-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .results-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-item {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .result-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .result-value {
        font-size: 1.25rem;
    }

    .tabs {
        padding: 0.25rem;
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .tab-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }

    .states-section {
        padding: 60px 0;
    }

    .states-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .states-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .state-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .state-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .state-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .article-content {
        padding: 2rem 0;
    }

    .article-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    footer {
        padding: 2rem 0;
    }

    footer h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    footer p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .bottom-text {
        font-size: 0.8rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* === PRINT STYLES === */
@media print {
    header,
    footer,
    .tabs,
    .calculator-controls {
        display: none !important;
    }

    .results-section {
        page-break-inside: avoid;
    }

    .data-table {
        font-size: 12px;
    }
}

/* === LOADING STATES === */
.loading-container {
    text-align: center;
    padding: 4rem;
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(251, 191, 36, 0.2);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: black;
        color: white;
        border: 2px solid white;
    }

    .cta-button {
        background: yellow;
        color: black;
    }

    .result-value {
        color: #0066cc;
    }
}

/* == FOCUS MANAGEMENT FOR MODALS/DIALOGS == */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.modal.show {
    display: block;
}

.modal-backdrop.show {
    display: block;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Ensure focus trapping in modals */
.modal:focus-within {
    outline: none;
}

/* === NOTIFICATION SYSTEM === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #000000;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
