/* Small visual refinements that preserve the existing Velix theme and page logic. */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dashboard-polish {
    padding-bottom: 2rem;
}

.dashboard-polish > .row:first-child h1,
.dashboard-polish > .d-flex:first-child h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-polish .card {
    overflow: hidden;
}

.dashboard-polish .card-header {
    padding: 1rem 1.25rem;
}

.dashboard-polish .card-header h5,
.dashboard-polish .card-header .card-title {
    margin-bottom: 0;
}

.dashboard-polish .card-body {
    padding: 1.25rem;
}

.dashboard-polish .row.mb-4 > [class*="col-"] > .card .card-title {
    font-size: 0.95rem;
    line-height: 1.35;
}

.dashboard-polish .row.mb-4 > [class*="col-"] > .card h2,
.dashboard-polish .row.mb-4 > [class*="col-"] > .card h3,
.dashboard-polish .row.mb-4 > [class*="col-"] > .card h4 {
    margin: 0.45rem 0 0;
    font-variant-numeric: tabular-nums;
}

.dashboard-polish .btn:not(.btn-sm) {
    min-height: 44px;
}

.dashboard-polish .btn-sm {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.dashboard-polish .btn:focus-visible,
.hero-section-modern .btn-modern:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    box-shadow: none !important;
}

.dashboard-polish .table {
    margin-bottom: 0;
}

.dashboard-polish .table th {
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.015em;
}

.dashboard-polish .table td {
    line-height: 1.4;
}

.client-dashboard-polish .welcome-banner {
    isolation: isolate;
}

.client-dashboard-polish .action-card:hover {
    transform: translateY(-2px) !important;
}

.admin-dashboard-polish {
    max-width: 1440px;
}

.admin-dashboard-polish .table-responsive {
    border-radius: 0 0 12px 12px;
}

.washer-dashboard-polish .col-md-6 > .card {
    height: 100%;
}

.washer-dashboard-polish .border-bottom:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Landing page: remove decorative noise while retaining the current layout and palette. */
.hero-section-modern {
    /* The desktop navbar is 68px tall. Keep the complete hero inside the
       remaining viewport instead of allowing min-height/content to extend it. */
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    min-height: 0;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
}

.hero-section-modern .hero-content {
    max-width: 680px;
    padding-top: clamp(1.5rem, 5vh, 4rem);
    padding-bottom: clamp(1.5rem, 5vh, 4rem);
}

.hero-section-modern > .container,
.hero-section-modern > .container > .row {
    height: 100%;
}

.hero-section-modern .hero-badge.mb-4,
.hero-section-modern .hero-trust-bar.mb-4,
.hero-section-modern .hero-title-modern.mb-4 {
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem) !important;
}

.hero-section-modern .hero-description.mb-5 {
    margin-bottom: clamp(1rem, 3vh, 3rem) !important;
}

.hero-section-modern .hero-stats.mt-5 {
    margin-top: clamp(1rem, 3vh, 3rem) !important;
}

.hero-section-modern .hero-cta-group {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.hero-section-modern .hero-cta-group .btn-modern {
    min-width: 0;
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.feature-card-modern,
.step-card-modern,
.plan-card,
.testimonial-card {
    transition-duration: 180ms !important;
}

.feature-card-modern:hover,
.step-card-modern:hover,
.plan-card:hover,
.testimonial-card:hover {
    transform: translateY(-2px) !important;
}

.hero-section-modern .hero-visual {
    height: 100%;
    min-height: 0;
}

.hero-section-modern .hero-image-main {
    position: static;
    width: min(100%, 620px);
    transform: none;
}

.hero-section-modern .hero-image-main img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.16));
}

.section-header,
.faq-section > .container > .text-center {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.btn-modern {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .dashboard-polish {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .dashboard-polish .card-body {
        padding: 1rem;
    }

    .dashboard-polish .d-flex.justify-content-between {
        gap: 0.75rem;
    }

    .hero-section-modern .hero-content {
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }

    .hero-section-modern .hero-cta-group {
        display: flex;
        width: auto;
    }

    .hero-section-modern .hero-stats {
        gap: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .hero-section-modern .hero-cta-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section-modern .hero-cta-group .btn-primary-modern {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .hero-section-modern {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-section-modern > .container,
    .hero-section-modern > .container > .row {
        height: auto;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .hero-section-modern .hero-title-modern {
        font-size: clamp(2rem, 5.5vh, 2.7rem);
    }

    .hero-section-modern .hero-description {
        font-size: clamp(1rem, 2.4vh, 1.25rem);
        line-height: 1.6;
    }

    .hero-section-modern .stat-number {
        font-size: 1.5rem;
    }
}

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

    .dashboard-polish *,
    .hero-section-modern *,
    .feature-card-modern,
    .step-card-modern,
    .plan-card,
    .testimonial-card {
        animation: none !important;
        transition: none !important;
    }
}
