/* Professional Mortgage Broker Website - Andrei Pushenko */
/* Modern, conversion-focused design with California compliance */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0a1128 0%, #1e3a8a 25%, #1e40af 50%, #1e3a8a 75%, #0a1128 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #0b3a82;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #e5e7eb;
}

a {
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page System */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1700px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 0 0 auto;
}

.nav-logo:hover {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.nav-link {
    color: #e5e7eb;
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    text-decoration: none;
}

.nav-cta-btn {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    color: #1f2937;
    text-decoration: none;
}

.nav-product-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.65);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    color: #ffffff;
    line-height: 1.05;
    text-decoration: none;
    white-space: nowrap;
}

.nav-product-link span {
    font-size: 0.82rem;
    font-weight: 700;
}

.nav-product-link small {
    margin-top: 0.25rem;
    color: #93c5fd;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.nav-product-link:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.58), rgba(14, 165, 233, 0.3));
    color: #ffffff;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.35rem;
    border: 0;
    background: transparent;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fbbf24;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    text-decoration: none;
    color: #1f2937;
}

.btn-secondary {
    background: transparent;
    color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: #fbbf24;
    color: #1f2937;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

@media (max-width: 1180px) and (min-width: 769px) {
    .nav-link[href="#about"],
    .nav-link[href="#contact"] {
        display: none;
    }

    .nav-container {
        padding-inline: 1rem;
    }
}

.floating-houses {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.house {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatUp 20s linear infinite;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.house.small { 
    font-size: 1.5rem; 
    animation-duration: 25s; 
}

.house.large { 
    font-size: 2.5rem; 
    animation-duration: 15s; 
}

@keyframes floatUp {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(360deg); 
        opacity: 0; 
    }
}

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

.hero-badge {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-rcfe-button span {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
}

.trust-item i {
    color: #fbbf24;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Featured RCFE product */
.rcfe-spotlight {
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    color: #102033;
}

.rcfe-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.rcfe-spotlight-copy {
    max-width: 690px;
}

.product-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-kicker span {
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    background: #155eef;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.rcfe-spotlight h2 {
    max-width: 680px;
    margin-bottom: 1.35rem;
    color: #071a31;
    font-size: clamp(2.35rem, 4.2vw, 4.25rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.rcfe-spotlight-copy > p {
    max-width: 650px;
    color: #526275;
    font-size: 1.08rem;
}

.product-proof-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.7rem 0 2rem;
    padding: 0;
    list-style: none;
    color: #24384f;
}

.product-proof-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
}

.product-proof-list i {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 1.4rem;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: #dff7ef;
    color: #08765d;
    font-size: 0.7rem;
}

.rcfe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.rcfe-primary-action,
.rcfe-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.85rem 1.15rem;
    border-radius: 0.65rem;
    font-weight: 750;
    text-decoration: none;
}

.rcfe-primary-action {
    background: #155eef;
    box-shadow: 0 14px 34px rgba(21, 94, 239, 0.24);
    color: #ffffff;
}

.rcfe-primary-action:hover {
    transform: translateY(-2px);
    background: #0d46be;
    color: #ffffff;
    text-decoration: none;
}

.rcfe-secondary-action {
    border: 1px solid #c4d4e8;
    background: rgba(255, 255, 255, 0.7);
    color: #17314f;
}

.rcfe-secondary-action:hover {
    border-color: #155eef;
    color: #155eef;
    text-decoration: none;
}

.rcfe-spotlight-copy .product-footnote {
    margin: 1.15rem 0 0;
    color: #6b7888;
    font-size: 0.82rem;
}

.rcfe-preview-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(143, 181, 230, 0.5);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #071a31 0%, #0d2e55 100%);
    box-shadow: 0 32px 70px rgba(8, 36, 68, 0.2);
    color: #ffffff;
}

.rcfe-preview-card::before {
    content: "";
    position: absolute;
    inset: -25% -20% auto 25%;
    height: 230px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.22);
    filter: blur(10px);
}

.preview-card-head,
.preview-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-card-head {
    padding: 0.2rem 0.2rem 1rem;
}

.preview-card-head span {
    color: #7fb0ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preview-card-head strong {
    color: #d8e8ff;
    font-size: 0.88rem;
}

.preview-metric {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border: 1px solid rgba(181, 207, 238, 0.16);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
}

.preview-metric span,
.preview-metric small {
    display: block;
    color: #aebfd4;
    font-size: 0.76rem;
}

.preview-metric strong {
    display: block;
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: 1.03rem;
}

.preview-metric-main {
    margin-bottom: 0.75rem;
    padding: 1.35rem;
    background: linear-gradient(135deg, rgba(21, 94, 239, 0.34), rgba(24, 214, 172, 0.11));
}

.preview-metric-main strong {
    margin: 0.3rem 0 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -0.04em;
}

.preview-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.preview-card-footer {
    margin-top: 1rem;
    padding: 0.8rem 0.2rem 0.1rem;
    color: #aebfd4;
    font-size: 0.72rem;
}

.preview-card-footer i {
    margin-right: 0.25rem;
    color: #18d6ac;
}

.secondary-tool-strip {
    padding: 2.3rem 0;
    background: #071a31;
}

.secondary-tool-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.secondary-tool-label {
    color: #7fb0ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.secondary-tool-strip h2 {
    margin: 0.3rem 0 0.25rem;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.secondary-tool-strip p {
    margin: 0;
    color: #aebfd4;
    font-size: 0.9rem;
}

.secondary-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(174, 191, 212, 0.35);
    border-radius: 0.6rem;
    color: #d8e8ff;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.secondary-tool-link:hover {
    border-color: #7fb0ff;
    color: #ffffff;
    text-decoration: none;
}

.footer-product-link {
    color: #fbbf24 !important;
    font-weight: 700;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* Programs Preview */
.programs-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-preview-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.program-highlight {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.program-preview-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.program-preview-card li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.program-preview-card li:before {
    content: '✓';
    color: #fbbf24;
    margin-right: 0.5rem;
}

.programs-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Quick Contact */
.quick-contact {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.contact-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #e5e7eb;
    min-width: 160px;
}

.contact-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-5px);
    color: #fbbf24;
    text-decoration: none;
}

.contact-btn i {
    font-size: 2rem;
    color: #fbbf24;
}

/* About Page */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
}

.about-bio {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.professional-avatar {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #1f2937;
    margin: 0 auto;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credential-item i {
    font-size: 2rem;
    color: #fbbf24;
}

.mission-statement {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 4rem;
}

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

.reason {
    text-align: center;
    padding: 1.5rem;
}

.reason i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

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

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.program-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.program-card h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.program-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.program-card li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.program-card li:before {
    content: '✓';
    color: #fbbf24;
    margin-right: 0.5rem;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-weight: 600;
    margin-top: 1rem;
}

/* Calculator */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fbbf24;
    font-weight: 600;
}

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

.input-prefix,
.input-suffix {
    position: absolute;
    color: #9ca3af;
    font-weight: 600;
}

.input-prefix {
    left: 1rem;
}

.input-suffix {
    right: 1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    padding-left: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.input-note {
    display: block;
    margin-top: 0.45rem;
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.35;
}

.input-percentage {
    position: absolute;
    right: -60px;
    color: #fbbf24;
    font-weight: 600;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-card {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid #fbbf24;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.result-card h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
}

.payment-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.payment-breakdown h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.loan-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item .value {
    font-weight: 600;
    color: #fbbf24;
}

.calculator-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Pre-Approval Form */
.preapproval-header {
    text-align: center;
    margin-bottom: 3rem;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #10b981;
    margin-top: 1rem;
}

.preapproval-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.step-indicator {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #fbbf24;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
}

.form-review {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.review-section h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-item span:first-child {
    color: #d1d5db;
}

.review-item span:last-child {
    font-weight: 600;
    color: #ffffff;
}

.form-consent {
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    color: #d1d5db;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    position: relative;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #fbbf24;
    border-color: #fbbf24;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #1f2937;
    font-weight: bold;
}

.privacy-assurance {
    text-align: center;
    margin-top: 3rem;
}

.assurance-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.assurance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.contact-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.contact-link {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 1rem 0;
}

.response-time {
    font-size: 0.9rem;
    color: #10b981;
}

.contact-form-section h2 {
    color: #fbbf24;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-areas {
    text-align: center;
    margin-top: 4rem;
}

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

.area-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.area-item:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.response-guarantee {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.guarantee-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.guarantee-item i {
    font-size: 2rem;
    color: #fbbf24;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
}

.next-steps ol {
    color: #d1d5db;
    margin-left: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-section h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: #fbbf24;
}

.footer-logo p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.equal-housing {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.housing-logo {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    border: 2px solid #fbbf24;
    position: relative;
    flex-shrink: 0;
}

.housing-logo span {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 1rem;
}

.housing-text {
    flex: 1;
}

.housing-text strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: #fbbf24;
    margin-right: 0.5rem;
    width: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-copyright {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin-bottom: 0.5rem;
}

/* Program Detail Pages */
.program-detail .container {
    max-width: 800px;
}

.program-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.program-hero h1 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.program-hero .program-highlight {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.program-content {
    display: grid;
    gap: 3rem;
}

.program-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
}

.program-section h3 {
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.requirement-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.requirement-item strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
}

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

.rate-item {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.rate-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.rate-label {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding: 5rem 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .about-bio {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .guarantee-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-preview {
        grid-template-columns: 1fr;
    }

    .rcfe-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rcfe-spotlight h2 {
        font-size: clamp(2.2rem, 10vw, 3.35rem);
    }

    .product-kicker {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-tool-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .hero-cta,
    .hero-cta > * {
        width: 100%;
    }

    .preview-metric-grid {
        grid-template-columns: 1fr;
    }

    .rcfe-actions,
    .rcfe-actions > * {
        width: 100%;
    }

    .rcfe-preview-card {
        padding: 0.9rem;
    }
}

/* Realtor Section Responsive Styles */
@media (max-width: 768px) {
    .realtor-section {
        padding: 40px 0 !important;
    }

    .realtor-section .section-title {
        font-size: 2rem !important;
    }

    .realtor-section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .realtor-section div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    .realtor-section div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }

}

@media (max-width: 480px) {
    .realtor-section {
        padding: 30px 0 !important;
    }

    .realtor-section .section-title {
        font-size: 1.8rem !important;
    }

    .realtor-section h3 {
        font-size: 1.1rem !important;
    }

    .realtor-section div[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }

    .realtor-section div[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
}

/* Conversion paths, language control, and lead forms */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.nav-link.active {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.language-toggle {
    position: relative;
    width: 30px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font: inherit;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.language-toggle::after {
    content: "";
    position: absolute;
    inset: -9px;
}

.language-toggle:hover,
.language-toggle:focus-visible {
    border-color: #fbbf24;
    color: #fbbf24;
    outline: none;
}

/* Stable language control: the compact switch stays reachable in every locale. */
.nav-container > .language-toggle {
    flex: 0 0 30px;
    margin-left: 0.35rem;
    z-index: 1002;
}

@media (max-width: 1580px) {
    .nav-container > .language-toggle {
        margin-left: auto;
        margin-right: 0.35rem;
    }

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

@media (max-width: 1580px) and (min-width: 769px) {
    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1.25rem 1.25rem 2.5rem;
        overflow-y: auto;
        background: rgba(10, 17, 40, 0.99);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-115%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

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

    .nav-menu .nav-link,
    .nav-menu .nav-product-link,
    .nav-menu .nav-cta-btn {
        display: flex;
        width: min(560px, 100%);
        min-height: 48px;
        margin-inline: auto;
        justify-content: center;
        text-align: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
.hero-content {
    width: min(1120px, 100%);
    max-width: 1120px;
}

.hero-title {
    max-width: 930px;
    margin-inline: auto;
    font-size: clamp(2.8rem, 5.3vw, 4.6rem);
    line-height: 1.02;
}

.hero-subtitle {
    max-width: 760px;
    margin-inline: auto;
}

.hero-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem auto 2.25rem;
    text-align: left;
}

.hero-path-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(10, 17, 40, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.hero-path-card.rcfe-path {
    border-color: rgba(96, 165, 250, 0.44);
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.5), rgba(10, 17, 40, 0.78));
}

.path-kicker {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rcfe-path .path-kicker {
    color: #93c5fd;
}

.hero-path-card h2 {
    margin: 0.65rem 0 0.6rem;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.12;
}

.hero-path-card p {
    flex: 1;
    margin-bottom: 1.25rem;
    color: #d1d5db;
}

.hero-path-card .btn-primary,
.hero-path-card .btn-secondary {
    justify-content: center;
}

.hero-rcfe-button b {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-kicker b {
    font: inherit;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #d1d5db;
    line-height: 1.5;
}

.lead-consent input {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    flex: 0 0 auto;
    accent-color: #fbbf24;
}

.consent-note,
.form-status {
    margin-top: 0.85rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

.form-status {
    min-height: 1.5rem;
    text-align: center;
}

.form-status.success {
    color: #34d399;
}

.form-status.error {
    color: #fca5a5;
}

button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
}

.mobile-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1.25rem 1.25rem calc(6rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: rgba(10, 17, 40, 0.99);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-115%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

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

    .nav-menu .nav-link,
    .nav-menu .nav-product-link,
    .nav-menu .nav-cta-btn,
    .nav-menu .language-toggle {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        text-align: center;
    }

    .nav-menu .language-toggle {
        width: 30px;
        min-height: 28px;
        align-self: center;
    }

    body.menu-open .mobile-cta-bar {
        transform: translateY(120%);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 3.25rem 1rem 3.75rem;
    }

    .hero-title {
        font-size: clamp(2.15rem, 10vw, 3.25rem);
    }

    .hero-paths {
        grid-template-columns: 1fr;
    }

    .hero-path-card {
        padding: 1.25rem;
    }

    .hero-path-card .btn-primary,
    .hero-path-card .btn-secondary {
        width: 100%;
    }

    .mobile-cta-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
        background: rgba(10, 17, 40, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
        transition: transform 0.2s ease;
    }

    .mobile-cta-bar a,
    .mobile-cta-bar button {
        display: flex;
        min-width: 0;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        border: 0;
        background: transparent;
        color: #ffffff;
        font: inherit;
        font-size: 0.72rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-cta-bar i {
        color: #fbbf24;
        font-size: 1rem;
    }

    .form-navigation .btn-primary,
    .form-navigation .btn-secondary {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-path-card h2 {
        font-size: 1.35rem;
    }

    .form-navigation {
        flex-wrap: wrap;
    }

    .form-navigation > * {
        flex: 1 1 140px;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-cta-bar,
    .floating-houses,
    .modal,
    .realtor-section {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .page {
        display: block !important;
        padding-top: 0 !important;
    }
}
