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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green, #3A7D44);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* CSS Variables - Savings Tools Color Palette */
:root {
    /* Primary Colors */
    --primary-green: #3A7D44;
    --deep-navy: #1E2D3B;
    
    /* Secondary Colors */
    --soft-mint: #AEE5C8;
    --accent-blue: #4A90E2;
    --cool-gray: #F2F4F6;
    
    /* Semantic Colors */
    --primary-color: #3A7D44;
    --primary-hover: #2d6235;
    --secondary-color: #4A90E2;
    --text-color: #1E2D3B;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #F2F4F6;
    --border-color: #e5e7eb;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: var(--line-height-base);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Content Area */
main#main-content {
    position: relative;
    display: block;
    overflow: visible;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Navigation */
.app-nav {
    background: linear-gradient(135deg, #82bff8 0%, #a7d4ff 50%, #31d67b 100%) !important;
    padding: 0.75rem var(--spacing-lg);
    position: sticky;
    top: 0.75rem;
    z-index: 1000;
    margin: 0 var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 0 1 auto;
    min-width: 0;
}

.logo-wrapper {
    min-height: 40px;
    min-width: 200px;
    height: 40px;
    width: 200px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-right: var(--spacing-md);
    position: relative;
    contain: layout style paint;
    text-decoration: none;
    color: inherit;
}

a.logo-wrapper:hover {
    opacity: 0.9;
}

.logo-fallback-text {
    font-size: 1.125rem;
    font-weight: 900;
    color: white;
    height: 40px;
    min-width: 200px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.2s ease-in;
}

.logo-wrapper .logo {
    width: 200px;
    height: 40px;
    object-fit: contain;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in;
    will-change: opacity;
    will-change: opacity, visibility;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.menu-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-right: var(--spacing-md);
    /* Prevent layout shifts from dynamic content */
    min-height: 44px;
    contain: layout style;
}

.nav-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    flex: 0 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 0 0 auto;
    margin-left: auto;
    /* Prevent layout shifts from dynamic content (currency selector) */
    min-height: 44px;
    min-width: 200px;
    contain: layout style;
    position: relative;
}

.nav-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav-icon:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

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

/* Currency Selector - Reserve space to prevent CLS */
#currency-selector {
    contain: layout style;
    min-width: 60px;
    min-height: 44px;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Prevent LCP measurement - completely hide from layout */
    content-visibility: hidden;
    contain: layout style paint;
    pointer-events: none;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    content-visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--deep-navy);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
}

.nav-dropdown-item:hover {
    background-color: var(--cool-gray);
    color: var(--primary-green);
}

/* Enhanced Currency Dropdown Styles */
.currency-dropdown-menu {
    min-width: 320px;
    max-height: 500px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.currency-search-container {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--cool-gray);
    border-radius: 12px 12px 0 0;
}

.currency-search-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.currency-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.1);
}

.currency-search-input::placeholder {
    color: var(--text-light);
}

.currency-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.currency-list-container::-webkit-scrollbar {
    width: 6px;
}

.currency-list-container::-webkit-scrollbar-track {
    background: var(--cool-gray);
    border-radius: 3px;
}

.currency-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.currency-list-container::-webkit-scrollbar-thumb:hover {
    background: #2d6335;
}

.currency-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.currency-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown-menu::-webkit-scrollbar-track {
    background: var(--cool-gray);
    border-radius: 3px;
}

.currency-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.currency-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2d6335;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.currency-item:hover {
    background-color: rgba(58, 125, 68, 0.08);
    transform: translateX(2px);
}

.currency-item.active {
    background-color: rgba(58, 125, 68, 0.12);
    color: var(--primary-green);
    font-weight: 600;
}

.currency-item.active::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.currency-symbol {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
    color: var(--deep-navy);
}

.currency-item.active .currency-symbol {
    color: var(--primary-green);
}

.currency-name {
    flex: 1;
    font-weight: 500;
    color: var(--deep-navy);
}

.currency-item.active .currency-name {
    color: var(--primary-green);
}

.currency-code {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--cool-gray);
    border-radius: 4px;
    text-transform: uppercase;
}

.currency-item.active .currency-code {
    background: rgba(58, 125, 68, 0.15);
    color: var(--primary-green);
}

.currency-button-symbol {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 1.2rem;
    display: inline-block;
}

.nav-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Hero Section - Redesigned */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 5rem var(--spacing-md) 4rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    height: 85vh;
    max-height: 85vh;
    display: flex;
    align-items: center;
    /* Prevent CLS - aggressive containment */
    contain: layout style paint;
    box-sizing: border-box;
    will-change: auto;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Prevent CLS */
    contain: layout style;
}

.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    /* Prevent CLS */
    contain: layout style;
}

.hero-badge {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white; /* Ensure high contrast */
    /* Prevent CLS */
    min-height: 40px;
}

.hero-section h1 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: uppercase;
    /* Prevent CLS from font loading */
    min-height: 10rem;
    font-size-adjust: 0.5;
    contain: layout style;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    min-height: 4rem;
    contain: layout style;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    /* Prevent CLS from font loading */
    min-height: 4rem;
}

.hero-subtitle strong {
    color: white;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    /* Prevent CLS */
    min-height: 56px;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 0.5rem;
    position: relative;
    z-index: 3;
}

.hero-cta .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 3;
    color: white;
}

.hero-cta .primary-button span {
    color: white;
}

.hero-cta .primary-button svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke: white;
    transition: transform 0.2s ease;
}

.hero-cta .primary-button:hover span {
    color: white !important;
}

.hero-cta .primary-button:hover svg {
    transform: translateX(4px);
    color: white !important;
    stroke: white !important;
}

.hero-cta .secondary-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 3;
}

.hero-stats-wrapper {
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 90px;
    contain: layout style;
    max-width: 700px;
    margin: 0 auto;
    /* Prevent CLS */
    min-height: 90px;
    contain: layout style;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: white; /* Full white for better contrast */
    font-weight: 500;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    /* Prevent CLS - use GPU layer */
    will-change: transform;
    contain: layout style paint;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Buttons - Chunky 3D Style */
.primary-button,
.secondary-button {
    display: inline-block;
    font-family: inherit;
    padding: 0.6em 1.3em;
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    /* Use transform only for composited animation */
    transition: transform 0.1s ease;
    min-height: 44px;
    min-width: 120px;
    text-decoration: none;
    border-radius: 0.4em;
    /* Enable GPU layer for smooth animations */
    will-change: transform;
}

.primary-button {
    background: var(--primary-green);
    color: white;
    border: 3px solid var(--deep-navy);
    box-shadow: 0.1em 0.1em;
}

.primary-button:hover {
    color: white;
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em;
}

.primary-button:hover span {
    color: white !important;
}

.primary-button:hover svg {
    color: white !important;
    fill: none;
    stroke: white !important;
}

.primary-button:active {
    transform: translate(0.05em, 0.05em);
    box-shadow: 0.05em 0.05em;
}

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

.secondary-button {
    background-color: white;
    color: #2d6235; /* Darker green for better contrast (4.5:1 ratio) */
    border: 3px solid var(--primary-green);
    box-shadow: 0.1em 0.1em var(--deep-navy);
}

.secondary-button:hover {
    background-color: var(--soft-mint);
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em var(--deep-navy);
}

.secondary-button:active {
    transform: translate(0.05em, 0.05em);
    box-shadow: 0.05em 0.05em var(--deep-navy);
}

.secondary-button:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Tools Showcase Section */
.tools-showcase {
    padding: 5rem var(--spacing-md) 6rem;
    background-color: white;
    contain: layout style paint;
}

.tools-showcase-content {
    max-width: 1200px;
    margin: 0 auto;
    contain: layout style;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    contain: layout style;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    contain: layout style;
}

.tool-card-modern {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    position: relative;
    contain: layout style;
}

.tool-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30, 45, 59, 0.15);
    border-color: var(--primary-green);
}

.tool-card-modern.featured {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(58, 125, 68, 0.03) 0%, rgba(74, 144, 226, 0.03) 100%);
    contain: layout style paint;
}

.tool-card-modern.featured .tool-content {
    contain: layout style paint;
    position: relative;
    display: block;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-lg);
    background: var(--primary-green);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Index: featured wide card (replaces inline styles in index.html) */
.tool-card-modern.tool-card-wide {
    grid-column: 1 / -1;
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
}

.tool-icon.tool-icon--xl {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
}

.featured-badge.featured-badge-inline {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Make highlight link consistent without inline styles */
.nav-dropdown-item--highlight {
    color: var(--primary-green);
    font-weight: 700;
}

/* Slightly more compact primary CTA variant */
.primary-button.primary-button--compact {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
    .tool-card-modern.tool-card-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.tool-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    contain: layout style;
    flex-shrink: 0;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.tool-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--spacing-sm);
}

.tool-card-modern > p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.tool-content {
    contain: layout style paint;
    position: relative;
    display: block;
}

.tool-card-modern.featured .tool-content {
    contain: layout style paint;
    position: relative;
    display: block;
    flex: 1;
}

.tool-icon {
    contain: layout style;
    min-height: 60px;
    min-width: 60px;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.tool-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9375rem;
    position: relative;
    padding-left: 1.5rem;
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-link:hover {
    color: var(--accent-blue);
    gap: 0.75rem;
}

/* Calculator Styles */
.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.calculator-wrapper {
    background-color: var(--cool-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.calculator-form {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    min-height: 44px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.results-display {
    background-color: var(--soft-mint);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border: 2px solid var(--primary-green);
}

.results-display h3 {
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.result-label {
    font-weight: 600;
    color: var(--deep-navy);
}

.result-value {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.content-section h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.content-section ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-section li {
    margin-bottom: var(--spacing-xs);
}

/* Features Section */
.features-section {
    padding: 5rem var(--spacing-md);
    background: var(--cool-gray);
    content-visibility: auto;
    contain-intrinsic-size: 600px;
    contain: layout style paint;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.features-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: var(--spacing-sm);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: searchModalSlideIn 0.3s ease;
}

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

.search-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-close {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.search-close:hover {
    background-color: var(--cool-gray);
    color: var(--text-color);
}

.search-close svg {
    width: 20px;
    height: 20px;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    min-height: 200px;
    max-height: calc(80vh - 120px);
}

.search-results-placeholder {
    text-align: center;
    padding: 3rem var(--spacing-md);
    color: var(--text-light);
}

.search-result-item {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background-color: var(--cool-gray);
    border-color: var(--border-color);
}

.search-result-item-title {
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.search-result-item-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.search-result-item-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--soft-mint);
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-no-results {
    text-align: center;
    padding: 3rem var(--spacing-md);
    color: var(--text-light);
}

.search-no-results-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* Tools Page Specific Styles */

/* Tools Hero Section */
.tools-hero {
    background: linear-gradient(135deg, #4A90E2 0%, #3A7D44 100%);
    color: white;
    padding: 4rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tools-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tools-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tools-hero h1 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tools-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    max-width: 650px;
}

.tools-hero-subtitle strong {
    color: white;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 1.5rem;
    background: white;
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-it-works-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.how-it-works-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px rgba(58, 125, 68, 0.2);
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.step-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 1.5rem;
    background: var(--cool-gray);
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 45, 59, 0.12);
    border-color: var(--primary-green);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Tools CTA Section */
.tools-cta-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    color: white;
    text-align: center;
}

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

.tools-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.tools-cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.tools-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tools-cta-buttons .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tools-cta-buttons .primary-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.tools-cta-buttons .primary-button:hover svg {
    transform: translateY(4px);
}

/* Enhanced Pages Styles */

/* Page Hero (Generic for About, Contact, etc.) */
.page-hero {
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    color: white;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero .hero-badge {
    display: inline-flex;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.page-hero h1 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto;
}

.page-hero-subtitle strong {
    color: white;
    font-weight: 600;
}

/* About Page Specific Styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-mission-section {
    padding: 5rem 1.5rem;
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
}

.mission-text p {
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.stat-box-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-box-label {
    font-size: 1rem;
    font-weight: 500;
}

.about-why-section {
    padding: 5rem 1.5rem;
    background: var(--cool-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 45, 59, 0.12);
    border-color: var(--primary-green);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.why-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-values-section {
    padding: 5rem 1.5rem;
    background: white;
}

.about-values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--cool-gray);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
}

.value-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-cta-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    color: white;
    text-align: center;
}

.about-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.about-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta-buttons .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.about-cta-buttons .primary-button svg {
    width: 20px;
    height: 20px;
}

/* Contact Page Specific Styles */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-methods-section {
    padding: 5rem 1.5rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-method-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 45, 59, 0.12);
    border-color: var(--primary-green);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3A7D44 0%, #4A90E2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.contact-method-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.contact-method-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--accent-blue);
}

.contact-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.contact-faq-section {
    padding: 5rem 1.5rem;
    background: var(--cool-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-quicklinks-section {
    padding: 5rem 1.5rem;
    background: white;
    text-align: center;
}

.contact-quicklinks-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.contact-quicklinks-section p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.quicklinks-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legal Pages Styles */
.legal-hero {
    background: var(--deep-navy);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.legal-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-content-wrapper {
    background: white;
    padding: 3rem 1.5rem;
}

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

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Enhanced 404 Page Styles */
.error-illustration {
    text-align: center;
    margin-bottom: 2rem;
}

.error-404 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    color: var(--cool-gray);
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.error-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--deep-navy);
    transition: all 0.3s ease;
}

.error-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 45, 59, 0.12);
    border-color: var(--primary-green);
}

.error-link-card svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-green);
    stroke-width: 2;
}

.error-link-card span {
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
}

.error-actions .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.error-actions .primary-button svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--deep-navy);
    color: white;
    padding: var(--spacing-md) var(--spacing-md);
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.error-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.error-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.error-links {
    max-width: 600px;
    margin-top: var(--spacing-xl);
}

.error-links ul {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.error-links a {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.error-links a:hover {
    background-color: var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        border-radius: 0 0 16px 16px;
        margin-top: var(--spacing-xs);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
    }
    
    .currency-dropdown-menu {
        min-width: 100%;
        max-height: 400px;
    }
    
    .currency-search-container {
        padding: 0.625rem;
    }
    
    .currency-search-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .currency-list-container {
        max-height: 300px;
    }
    
    .currency-item {
        padding: 0.875rem 1rem;
    }
    
    .currency-symbol {
        min-width: 2rem;
        font-size: 1rem;
    }
    
    .currency-name {
        font-size: 0.875rem;
    }
    
    .currency-code {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 0.5rem 0 0 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-dropdown-item {
        color: var(--deep-navy);
        padding: 0.5rem 0;
    }
    
    .nav-dropdown-divider {
        margin: 0.5rem 0;
    }
    
    .nav-right {
        gap: var(--spacing-sm);
    }
    
    .nav-icon {
        min-width: 40px;
        min-height: 40px;
    }
    
    .hero-section {
        padding: 3rem var(--spacing-md) 2rem;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 3rem;
        letter-spacing: 0.03em;
    }
    
    .hero-title-line {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-cta .primary-button,
    .hero-cta .secondary-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .search-modal.active {
        padding-top: 2rem;
    }
    
    .search-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .search-header {
        padding: var(--spacing-md);
    }
    
    .search-input {
        padding: 0.875rem 2.5rem 0.875rem 2.5rem;
        font-size: 0.9375rem;
    }
    
    .search-results {
        padding: var(--spacing-sm);
        max-height: calc(90vh - 100px);
    }
    
    .search-result-item {
        padding: var(--spacing-sm);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 0;
        width: 100%;
    }
    
    .stat-content {
        align-items: center;
        text-align: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .circle-1,
    .circle-2,
    .circle-3 {
        display: none;
    }
    
    .tools-grid-modern {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .tools-showcase,
    .tools-showcase-content {
        min-height: auto;
    }
    
    .section-header {
        min-height: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .section-header h2,
    .features-content h2 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .footer-section h3 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .primary-button,
    .error-actions .secondary-button {
        width: 100%;
    }
    
    /* Tools Page Mobile Styles */
    .tools-hero h1 {
        font-size: 3rem;
    }
    
    .tools-hero-subtitle {
        font-size: 1rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-it-works-section,
    .benefits-section,
    .tools-cta-section {
        padding: 3rem 1rem;
    }
    
    .how-it-works-section .section-header h2,
    .benefits-content h2,
    .tools-cta-content h2 {
        font-size: 2rem;
    }
    
    .tools-cta-content p {
        font-size: 1rem;
    }
    
    .tools-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .tools-cta-buttons .primary-button,
    .tools-cta-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Enhanced Pages Mobile Styles */
    .page-hero h1 {
        font-size: 3rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-grid,
    .values-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-mission-section,
    .about-why-section,
    .about-values-section,
    .about-cta-section,
    .contact-methods-section,
    .contact-faq-section,
    .contact-quicklinks-section {
        padding: 3rem 1rem;
    }
    
    .about-cta-content h2,
    .contact-quicklinks-section h2 {
        font-size: 2rem;
    }
    
    .about-cta-content p,
    .contact-quicklinks-section p {
        font-size: 1rem;
    }
    
    .legal-hero-content h1 {
        font-size: 2rem;
    }
    
    .legal-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .error-404 {
        font-size: 6rem;
    }
    
    .error-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

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

.hidden {
    display: none;
}

