/* ===================================
   Siuslaw School Bond Website
   Design System & Shared Styles
   =================================== */

:root {
    /* School Colors - Blue and Gold */
    --color-primary: #1e3a5f;
    --color-primary-dark: #0f2744;
    --color-primary-light: #2c5282;
    --color-accent: #d69e2e;
    --color-accent-dark: #b7791f;
    --color-accent-light: #ffffff;

    /* Neutral colors */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;

    /* Text colors */
    --color-text: #1e293b;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-text-inverse: #ffffff;

    /* Semantic colors */
    --color-success: #059669;
    --color-success-bg: #ecfdf5;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.75rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(214, 158, 46, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ===================================
   Base Reset
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-md);
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* ===================================
   Layout
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-inverse);
}

.section-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-text-inverse);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.navbar-logo-text {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.navbar-logo-text span {
    color: var(--color-accent);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.navbar-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-sm) 0;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-link:hover {
    color: var(--color-primary);
}

.navbar-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-text-inverse) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
    transition: transform var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}


.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    color: var(--color-text-inverse);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(214, 158, 46, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text-inverse);
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.hero-stat {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-accent);
    display: block;
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-2xl);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-lg);
}

.hero-image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    min-height: 52px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--color-text-inverse);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-inverse);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-text-inverse);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
    min-height: 60px;
}

/* ===================================
   Cards
   =================================== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-inverse);
}

.card-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-text-muted);
}

/* Feature Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* ===================================
   Stats Section
   =================================== */
.stats-bar {
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    margin-top: calc(-1 * var(--space-3xl));
    position: relative;
    z-index: 10;
    border-radius: var(--radius-2xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
    border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.stat-value span {
    color: var(--color-accent);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===================================
   Image Placeholders
   =================================== */
.image-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-md);
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
    min-height: 300px;
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ===================================
   Map Viewer Section
   =================================== */
.map-section {
    background: var(--color-primary-dark);
}

.map-container {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.map-header {
    padding: var(--space-lg);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-controls {
    display: flex;
    gap: var(--space-sm);
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.map-control-btn:hover {
    background: var(--color-surface-hover);
}

.map-viewer {
    height: 600px;
    overflow: hidden;
    cursor: grab;
    position: relative;
    background: #f0f0f0;
}

.map-viewer:active {
    cursor: grabbing;
}

.map-viewer img {
    max-width: none;
    transform-origin: center center;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-lg);
    color: var(--color-text-light);
}

.map-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-inverse);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-text-inverse);
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
}

.footer-heading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    transition: background var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-disclaimer {
    max-width: 600px;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   FAQ Accordion
   =================================== */
.faq-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--color-surface-hover);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-muted);
}

/* ===================================
   Timeline
   =================================== */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) + 4px);
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg);
}

.timeline-item.highlight::before {
    background: var(--color-accent);
    width: 16px;
    height: 16px;
    left: calc(-1 * var(--space-xl) + 2px);
}

.timeline-date {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.timeline-desc {
    color: var(--color-text-muted);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        max-width: 250px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .map-viewer {
        height: 400px;
    }

    /* Fix: Add space between hero and stats bar */
    .hero {
        padding-bottom: var(--space-3xl);
    }

    /* Fix: Cost breakdown grid - stack vertically on mobile */
    [style*="grid-template-columns: auto 1fr auto"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-md) !important;
        text-align: center;
    }

    /* Fix: Key improvement grid - stack on mobile */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix: Two-column grids in sections */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: var(--space-md) !important;
}

.mb-2 {
    margin-bottom: var(--space-lg) !important;
}

.mb-3 {
    margin-bottom: var(--space-xl) !important;
}

.mb-4 {
    margin-bottom: var(--space-2xl) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: var(--space-md) !important;
}

.mt-2 {
    margin-top: var(--space-lg) !important;
}

.mt-3 {
    margin-top: var(--space-xl) !important;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===================================
   Tax Calculator Styles
   =================================== */
.intro-card,
.calculator-card,
.results-card,
.error-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-xl);
}

.intro-card h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.intro-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.rate-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-info-bg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.rate-label {
    font-weight: 600;
    color: var(--color-primary);
}

.rate-value {
    color: var(--color-text);
    font-weight: 500;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.address-input {
    width: 100%;
    padding: var(--space-lg);
    font-size: var(--font-size-lg);
    font-family: var(--font-family);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.address-input::placeholder {
    color: var(--color-text-light);
}

.address-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.15);
}

.calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--color-text-inverse);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    min-height: 60px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.calculate-btn:disabled .btn-loading {
    display: flex;
}

.calculate-btn:disabled .btn-text {
    display: none;
}

.btn-loading {
    display: none;
    align-items: center;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.input-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.results-card {
    background: linear-gradient(135deg, var(--color-success-bg) 0%, #d1fae5 100%);
    border: 2px solid var(--color-success);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.results-icon {
    width: 32px;
    height: 32px;
    color: var(--color-success);
}

.results-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.results-address {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
}

.result-item.highlight {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.monthly-note {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

.monthly-amount {
    font-weight: 700;
    color: var(--color-primary);
}

.error-card {
    background: var(--color-error-bg);
    border: 2px solid var(--color-error);
}

.error-card.info-card {
    background: var(--color-info-bg);
    border-color: var(--color-primary);
}

.error-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.error-icon {
    width: 28px;
    height: 28px;
    color: var(--color-error);
}

.info-card .error-icon {
    color: var(--color-primary);
}

.error-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-error);
    margin: 0;
}

.info-card .error-title {
    color: var(--color-primary);
}

.error-message {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.error-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}