/* ============================================
   HOUZZHUNT MORTGAGE - RESPONSIVE STYLESHEET
   Mobile-First Premium Responsive Design
   ============================================ */

/* ============================================
   EXTRA LARGE DEVICES (1400px and below)
   ============================================ */
@media (max-width: 1400px) {
    .hero-stat-value {
        font-size: 2.25rem;
    }

    .step-title {
        font-size: 2rem;
    }

    .step-visual {
        height: 320px;
    }
}

/* ============================================
   LARGE DEVICES (1200px and below)
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat {
        padding-right: 2rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .step-content-inner {
        gap: 2rem;
    }

    .step-title {
        font-size: 1.875rem;
    }

    .step-visual {
        height: 300px;
    }

    .process-wrapper {
        padding: 2.5rem;
    }

    .step-circle {
        width: 60px;
        height: 60px;
    }

    .step-number {
        font-size: 1.25rem;
    }

    .cta-card {
        padding: 3rem 2rem;
    }

    .cta-stat-value {
        font-size: 2rem;
    }
}

/* ============================================
   MEDIUM DEVICES / TABLETS (992px and below)
   ============================================ */
@media (max-width: 992px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Navigation */
    .navbar-collapse {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(26, 10, 46, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        text-align: center;
        border-radius: var(--radius-md);
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Process Section */
    .steps-list {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .step-item {
        flex: 0 0 calc(25% - 1.25rem);
    }

    .steps-progress {
        display: none;
    }

    .step-circle {
        width: 56px;
        height: 56px;
    }

    .step-number {
        font-size: 1.125rem;
    }

    .step-icon-inner svg {
        width: 24px;
        height: 24px;
    }

    .step-label {
        font-size: 0.75rem;
        max-width: 70px;
    }

    .step-content-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-visual {
        order: -1;
        height: 280px;
    }

    .step-text {
        padding: 0;
        text-align: center;
    }

    .step-features {
        text-align: left;
    }

    .step-cta {
        display: inline-flex;
    }

    /* Calculator Section */
    .calculator-wrapper {
        padding: 1.5rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    /* CTA Section */
    .cta-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ============================================
   SMALL TABLETS (768px and below)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Typography */
    h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
    h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

    .section-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.875rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar.scrolled {
        padding: 0.5rem 0;
    }

    .navbar-brand .logo-icon {
        width: 42px;
        height: 42px;
    }

    .navbar-brand .logo-icon svg {
        width: 22px;
        height: 22px;
    }

    .navbar-brand .brand-text {
        font-size: 1.25rem;
    }

    .navbar-collapse {
        top: 66px;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-stat {
        padding-right: 0;
        text-align: center;
    }

    .hero-stat::after {
        display: none;
    }

    .hero-stat-value {
        font-size: 2.5rem;
    }

    .hero-card {
        padding: 1.75rem;
    }

    .hero-form-title {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Features Section */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Services Section */
    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-top: -40px;
    }

    .service-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Process Section */
    .process-wrapper {
        padding: 1.75rem;
    }

    .step-item {
        flex: 0 0 calc(33.333% - 1rem);
    }

    .step-circle {
        width: 50px;
        height: 50px;
    }

    .step-number {
        font-size: 1rem;
    }

    .step-icon-inner svg {
        width: 20px;
        height: 20px;
    }

    .step-label {
        font-size: 0.6875rem;
        margin-top: 0.75rem;
        max-width: 60px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-visual {
        height: 240px;
    }

    .step-visual-icon svg {
        width: 70px;
        height: 70px;
    }

    .step-visual-number {
        font-size: 140px;
    }

    .step-feature-icon {
        width: 36px;
        height: 36px;
    }

    .step-feature-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Calculator Section */
    .calculator-section {
        padding: 60px 0;
    }

    .calculator-card-header h3 {
        font-size: 1.25rem;
    }

    .toggle-group {
        gap: 0.5rem;
    }

    .toggle-btn {
        padding: 0.75rem 0.75rem;
        font-size: 0.8125rem;
    }

    .toggle-btn svg {
        width: 16px;
        height: 16px;
    }

    .currency-input {
        font-size: 1rem;
        padding-left: 3rem;
    }

    .result-card {
        padding: 1.25rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-icon {
        width: 42px;
        height: 42px;
    }

    .result-icon svg {
        width: 20px;
        height: 20px;
    }

    .breakdown-card {
        padding: 1.25rem;
    }

    .breakdown-item {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    /* Why Section */
    .why-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .why-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-stat-value {
        font-size: 2rem;
    }

    /* Contact Section */
    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Floating Buttons */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   MOBILE DEVICES (576px and below)
   ============================================ */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }

    /* Container Override */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }

    p {
        font-size: 0.9375rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.875rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stat-value {
        font-size: 2.25rem;
    }

    .hero-stat-label {
        font-size: 0.8125rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-form-title {
        font-size: 1.125rem;
    }

    .hero-form-subtitle {
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Features */
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .feature-icon svg {
        width: 26px;
        height: 26px;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    /* Services */
    .service-image {
        height: 160px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.125rem;
    }

    .service-description {
        font-size: 0.875rem;
    }

    .service-features li {
        font-size: 0.8125rem;
        padding: 0.375rem 0;
    }

    /* Process */
    .process-wrapper {
        padding: 1.25rem;
    }

    .steps-nav {
        margin-bottom: 2rem;
    }

    .step-item {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .step-circle {
        width: 46px;
        height: 46px;
    }

    .step-number {
        font-size: 0.9375rem;
    }

    .step-icon-inner svg {
        width: 18px;
        height: 18px;
    }

    .step-label {
        font-size: 0.625rem;
        max-width: 55px;
    }

    .step-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.75rem;
    }

    .step-title {
        font-size: 1.375rem;
    }

    .step-desc {
        font-size: 0.9375rem;
    }

    .step-visual {
        height: 200px;
    }

    .step-visual-icon svg {
        width: 60px;
        height: 60px;
    }

    .step-visual-number {
        font-size: 100px;
    }

    .step-features li {
        font-size: 0.875rem;
        padding: 0.625rem 0;
    }

    .step-feature-icon {
        width: 32px;
        height: 32px;
    }

    .step-feature-icon svg {
        width: 14px;
        height: 14px;
    }

    .step-cta {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .process-hint {
        font-size: 0.75rem;
    }

    /* Calculator */
    .calculator-wrapper {
        padding: 1rem;
    }

    .calculator-card {
        padding: 1rem;
    }

    .calculator-card-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .calculator-card-header h3 {
        font-size: 1.125rem;
    }

    .input-group-label {
        font-size: 0.75rem;
    }

    .toggle-btn {
        padding: 0.625rem;
        font-size: 0.75rem;
    }

    .toggle-btn svg {
        width: 14px;
        height: 14px;
    }

    .currency-symbol {
        font-size: 0.8125rem;
    }

    .currency-input {
        padding-left: 2.75rem;
        font-size: 0.9375rem;
    }

    .range-value {
        font-size: 1rem;
    }

    .info-box {
        padding: 1rem;
    }

    .info-box h4 {
        font-size: 0.8125rem;
    }

    .info-box li {
        font-size: 0.75rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0.75rem;
    }

    .result-icon svg {
        width: 18px;
        height: 18px;
    }

    .result-label {
        font-size: 0.75rem;
    }

    .result-value {
        font-size: 1.375rem;
    }

    .breakdown-card {
        padding: 1rem;
    }

    .breakdown-title {
        font-size: 1rem;
    }

    .breakdown-item {
        font-size: 0.8125rem;
        padding: 0.625rem 0;
    }

    .download-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Why Section */
    .why-card {
        padding: 1.25rem;
    }

    .why-icon {
        width: 50px;
        height: 50px;
    }

    .why-icon svg {
        width: 24px;
        height: 24px;
    }

    .why-content h3 {
        font-size: 1.125rem;
    }

    .why-content p {
        font-size: 0.875rem;
    }

    /* CTA */
    .cta-card {
        padding: 2rem 1rem;
    }

    .cta-badge {
        font-size: 0.6875rem;
        padding: 0.5rem 1rem;
    }

    .cta-card p {
        font-size: 1rem;
    }

    .cta-stat-value {
        font-size: 1.75rem;
    }

    .cta-stat-label {
        font-size: 0.8125rem;
    }

    /* Contact */
    .contact-card {
        padding: 1.25rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        margin-bottom: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.25rem;
        text-align: center;
    }

    .footer-brand .logo-icon {
        margin: 0 auto 0.75rem;
    }

    .footer-brand h3 {
        font-size: 1.375rem;
    }

    .footer-description {
        margin: 0 auto;
        font-size: 0.875rem;
    }

    .footer-title {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }

    .footer-social svg {
        width: 18px;
        height: 18px;
    }

    .footer-copyright,
    .footer-legal a {
        font-size: 0.8125rem;
    }

    /* Floating */
    .scroll-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-top svg {
        width: 18px;
        height: 18px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (400px and below)
   ============================================ */
@media (max-width: 400px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.5rem; }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .toggle-group {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .step-circle {
        width: 42px;
        height: 42px;
    }

    .step-number {
        font-size: 0.875rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .cta-stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   LANDSCAPE MODE ADJUSTMENTS
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-stats {
        margin-bottom: 0;
    }

    .preloader {
        display: none;
    }
}

/* ============================================
   HIGH DPI SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-toggler-icon {
        background-size: 22px 22px;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-shape {
        animation: none;
    }

    .preloader-spinner {
        animation: none;
    }

    .step-visual-icon svg {
        animation: none;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --white: #0f0f0f;
        --off-white: #1a1a1a;
        --light-gray: #2a2a2a;
        --medium-gray: #3a3a3a;
        --text-dark: #f5f5f5;
        --dark-gray: #a0a0a0;
    }
    */
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .preloader,
    .scroll-top,
    .whatsapp-float,
    .hero-bg-shapes,
    .calculator-section,
    .cta-section {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: #fff;
        color: #000;
    }

    .hero-title,
    .hero-description {
        color: #000;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    .btn {
        display: none;
    }
}
