/**
 * Home Cooling Experts — theme layer (used when Vite build not present).
 * Mirrors resources/sass/frontend-landing.scss custom rules + Bootstrap variable tweaks.
 */
:root {
    --bs-primary: #0e9488;
    --bs-primary-rgb: 14, 148, 136;
    --hc-teal: #0e9488;
    --hc-teal-deep: #0f766e;
    --hc-navy: #0b1220;
    --hc-navy-soft: #121b2b;
    --hc-cream: #fdfbf7;
    --hc-muted: #64748b;
    --hc-heading: #0f172a;
    --hc-yellow-accent: #f5d547;
    --hc-radius-lg: 1.5rem;
    --hc-radius-md: 1rem;
    --hc-shadow-soft: 0 0.5rem 2rem rgba(15, 23, 42, 0.06);
    --hc-shadow-btn: 0 0.35rem 1.25rem rgba(11, 18, 32, 0.12);
}

html {
    scroll-behavior: smooth;
}

.landing-body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif;
    color: var(--hc-muted);
    background-color: #fff;
}

.landing-main {
    overflow-x: clip;
}

/* Welcome page layout bands */
.landing-hero-band {
    background:
        radial-gradient(ellipse 120% 90% at 100% 0%, rgba(14, 148, 136, 0.11), transparent 52%),
        linear-gradient(180deg, #f1f5f9 0%, #ffffff 58%);
    padding-bottom: 0.25rem;
}

@media (min-width: 992px) {
    .landing-hero-band {
        padding-bottom: 0.5rem;
    }
}

.landing-panel-stack {
    background-color: var(--hc-cream);
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
    border-top: 1px solid rgba(14, 148, 136, 0.1);
}

.landing-panel-stack .landing-services-section {
    padding-top: 0.25rem;
    padding-bottom: 2rem;
}

.landing-panel-stack .landing-book-service {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.landing-emergency-wrap {
    background: linear-gradient(180deg, #ffffff 0%, var(--hc-cream) 70%);
    padding-bottom: 1.25rem;
}

.landing-section-title {
    color: var(--hc-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-navbar {
    backdrop-filter: saturate(180%) blur(10px);
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.landing-navbar .navbar-brand small {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}

.landing-lang-switch .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: var(--hc-muted);
}

.landing-lang-switch .nav-link.active {
    color: var(--hc-teal);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--hc-teal);
    border-radius: 0;
}

.landing-hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .landing-hero {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

.landing-badge-location {
    background-color: rgba(14, 148, 136, 0.12);
    color: var(--hc-teal-deep);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.landing-hero-title {
    color: var(--hc-teal-deep);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-hero-tagline {
    font-style: italic;
    color: var(--hc-muted);
}

.landing-stat-value {
    color: var(--hc-teal-deep);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.2;
}

.landing-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.landing-hero-media {
    position: relative;
}

.landing-hero-media img {
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-soft);
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.landing-glass-pill {
    backdrop-filter: blur(14px);
    background: rgba(26, 32, 44, 0.72);
    border-radius: var(--hc-radius-md);
    color: #fff;
}

.landing-yellow-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: var(--hc-yellow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-navy);
    font-size: 1.35rem;
}

.btn-landing-navy {
    --bs-btn-bg: var(--hc-navy);
    --bs-btn-border-color: var(--hc-navy);
    --bs-btn-hover-bg: #060b14;
    --bs-btn-hover-border-color: #060b14;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    padding-inline: 1.35rem;
    font-weight: 600;
    box-shadow: var(--hc-shadow-btn);
}

.btn-landing-teal {
    --bs-btn-bg: var(--hc-teal);
    --bs-btn-border-color: var(--hc-teal);
    --bs-btn-hover-bg: var(--hc-teal-deep);
    --bs-btn-hover-border-color: var(--hc-teal-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    padding-inline: 1.25rem;
    font-weight: 600;
}

.btn-landing-outline-teal {
    color: var(--hc-teal-deep);
    border-color: var(--hc-teal);
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
}

.btn-landing-outline-teal:hover {
    background: rgba(14, 148, 136, 0.08);
    color: var(--hc-teal-deep);
}

.btn-landing-muted {
    background: #f1f5f9;
    color: var(--hc-heading);
    border-radius: 999px;
    font-weight: 600;
    border: none;
}

.btn-landing-muted:hover {
    background: #e2e8f0;
    color: var(--hc-navy);
}

.landing-services-section {
    padding-bottom: 4rem;
}

.landing-services-lead {
    max-width: 36rem;
    line-height: 1.55;
}

.letter-spacing-sm {
    letter-spacing: 0.08em;
}

.landing-service-card {
    border: none;
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2.5rem rgba(15, 23, 42, 0.1);
}

.landing-service-media {
    overflow: hidden;
    border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0;
    background: #e2e8f0;
}

/* Badge must sit outside .ratio — Bootstrap .ratio > * fills the frame */
.landing-service-ratio {
    border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0;
    overflow: hidden;
}

.landing-service-img {
    object-fit: cover;
}

.landing-service-badge {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: auto;
    bottom: 1rem;
    width: max-content;
    max-width: min(calc(100% - 2rem), 95%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.landing-service-badge-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-service-badge-icon {
    font-size: 1.1rem;
    color: var(--hc-teal);
}

.landing-service-badge-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hc-heading);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[dir='rtl'] .landing-service-badge {
    left: auto;
    right: 1rem;
}

.landing-service-desc {
    font-size: 0.9rem;
    color: var(--hc-muted);
    line-height: 1.55;
}

.landing-service-cta-row {
    cursor: pointer;
    border-radius: 0.5rem;
    transition: opacity 0.15s ease;
}

.landing-service-cta-row:hover {
    opacity: 0.92;
}

.landing-service-cta-row:focus-visible {
    outline: 2px solid var(--hc-teal);
    outline-offset: 2px;
}

.landing-service-cta-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--hc-teal-deep);
}

.landing-service-cta-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(14, 148, 136, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-teal-deep);
    flex-shrink: 0;
}

.landing-booking-modal {
    border-radius: var(--hc-radius-lg);
}

.landing-section-dark-wrap {
    background: linear-gradient(180deg, #fff 0%, #fff 12%, var(--hc-navy) 12%);
    padding-bottom: 0;
}

.landing-section-dark {
    background-color: var(--hc-navy);
    border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0;
    color: #cbd5e1;
}

.landing-feature-card {
    background-color: var(--hc-navy-soft);
    border: none;
    border-radius: var(--hc-radius-md);
    color: #e2e8f0;
}

.landing-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: rgba(14, 148, 136, 0.18);
    color: #5eead4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.landing-emergency-section {
    background: var(--hc-cream);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-soft);
    position: relative;
    overflow: hidden;
}

.landing-emergency-deco {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.06;
    color: var(--hc-teal);
    pointer-events: none;
}

.landing-footer {
    background-color: var(--hc-navy);
    color: #94a3b8;
}

.landing-footer-brand {
    color: #fff;
    font-weight: 700;
}

.landing-footer-phone {
    color: var(--hc-teal);
    font-weight: 600;
    text-decoration: none;
}

.landing-footer-phone:hover {
    color: #5eead4;
}

.landing-footer-muted {
    color: #94a3b8;
}

.landing-footer-lead {
    color: #cbd5e1;
    line-height: 1.55;
}

.landing-footer-heading {
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.landing-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.landing-footer-link:hover {
    color: #5eead4;
}

.landing-footer-rule {
    border-color: rgba(148, 163, 184, 0.22);
    opacity: 1;
}

.landing-footer-social {
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.landing-footer-social:hover {
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
}

.landing-link-teal {
    color: var(--hc-teal-deep);
    font-weight: 600;
    text-decoration: none;
}

.landing-link-teal:hover {
    color: var(--hc-teal);
}

.landing-nav-link {
    color: var(--hc-muted);
    font-weight: 500;
    text-decoration: none;
}

.landing-nav-link:hover {
    color: var(--hc-teal-deep);
}

[data-bs-theme='dark'] .landing-navbar {
    background-color: rgba(15, 23, 42, 0.92) !important;
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
}

.auth-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-split {
        flex-direction: row;
    }
}

.auth-brand-panel {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(165deg, var(--hc-navy) 0%, #0f172a 48%, var(--hc-teal-deep) 180%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
}

@media (min-width: 992px) {
    .auth-brand-panel {
        display: flex;
    }
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(45, 212, 191, 0.14), transparent 42%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
}

.auth-brand-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: #fff !important;
}

.auth-brand-ar {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.auth-brand-wordmark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ecfdf5 !important;
}

.auth-brand-lead {
    margin-top: 1.25rem;
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.95rem;
    max-width: 22rem;
    line-height: 1.55;
}

.auth-brand-foot {
    position: relative;
    z-index: 1;
}

.auth-brand-points i {
    flex-shrink: 0;
}

.auth-form-panel {
    background: var(--hc-cream);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1rem 2rem;
}

@media (min-width: 576px) {
    .auth-main-inner {
        padding: 2.5rem 1.5rem 3rem;
    }
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--hc-radius-lg);
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.08);
    padding: 2rem 1.5rem;
}

@media (min-width: 576px) {
    .auth-card {
        padding: 2.25rem 2rem;
    }
}

.auth-heading {
    color: var(--hc-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-divider {
    border-color: rgba(148, 163, 184, 0.35);
}

.auth-inline-link {
    color: var(--hc-teal-deep);
    text-decoration: none;
    font-weight: 600;
}

.auth-inline-link:hover {
    color: var(--hc-teal);
}

.auth-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hc-heading);
}

.auth-card .form-control {
    border-radius: 0.65rem;
    padding: 0.65rem 0.95rem;
    border-color: #e2e8f0;
}

.auth-card .form-control:focus {
    border-color: var(--hc-teal);
    box-shadow: 0 0 0 0.2rem rgba(14, 148, 136, 0.18);
}

.password-field.position-relative .passwordToggler {
    position: absolute;
    cursor: pointer;
    right: 0.85rem;
    bottom: 0.65rem;
    z-index: 4;
    color: var(--hc-muted);
    font-size: 1.1rem;
    line-height: 1;
}

[dir='rtl'] .password-field.position-relative .passwordToggler {
    right: auto;
    left: 0.85rem;
}

.password-field.position-relative .form-control {
    padding-inline-end: 2.75rem;
}

[dir='rtl'] .password-field.position-relative .form-control {
    padding-inline-end: 0.95rem;
    padding-inline-start: 2.75rem;
}

.auth-social-row .btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: var(--hc-shadow-soft);
}

.auth-social-row .btn-icon:hover {
    border-color: var(--hc-teal);
    color: var(--hc-teal-deep);
}

.auth-card .form-check-label {
    font-size: 0.875rem;
    color: var(--hc-muted);
}

.auth-card .alert {
    border-radius: var(--hc-radius-md);
}

/* Locale switcher on auth (compact) */
.auth-lang-switch .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: var(--hc-muted);
}

.auth-lang-switch .nav-link.active {
    color: var(--hc-teal);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--hc-teal);
    border-radius: 0;
}

/* Trust strip + book-service */
.landing-trust-strip {
    background: linear-gradient(180deg, #fff 0%, rgba(253, 251, 247, 0.85) 100%);
    border-bottom: 1px solid rgba(14, 148, 136, 0.12);
}

.landing-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .landing-trust-item {
        flex-direction: row;
        text-align: start;
        align-items: flex-start;
    }
}

.landing-trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 148, 136, 0.12);
    color: var(--hc-teal-deep);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.landing-trust-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hc-heading);
    margin-bottom: 0.2rem;
}

.landing-trust-text {
    font-size: 0.9rem;
    color: var(--hc-muted);
    line-height: 1.45;
}

.landing-book-service {
    background: #fff;
}

.landing-book-shell {
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
}

.landing-book-shell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--hc-teal) 0%, var(--hc-teal-deep) 100%);
    z-index: 1;
}

.landing-book-card {
    padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 992px) {
    .landing-book-card {
        padding: 2.25rem 2rem 2.5rem 2.25rem;
    }
}

.landing-book-heading {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hc-teal-deep);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.form-select-landing {
    border-radius: 0.75rem;
    border-color: #e2e8f0;
    color: var(--hc-heading);
}

.form-select-landing:focus {
    border-color: var(--hc-teal);
    box-shadow: 0 0 0 0.2rem rgba(14, 148, 136, 0.22);
}

.landing-book-aside {
    background: linear-gradient(165deg, var(--hc-navy) 0%, var(--hc-navy-soft) 55%, #0d1729 100%);
    padding: 2rem 1.75rem;
    border-radius: 0 var(--hc-radius-lg) var(--hc-radius-lg) 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .landing-book-aside {
        border-radius: 0 0 var(--hc-radius-lg) var(--hc-radius-lg);
    }
}

.landing-book-aside-accent {
    position: absolute;
    inset-inline-end: -20%;
    bottom: -30%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 62%);
    pointer-events: none;
}

.landing-step-list .landing-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.landing-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-step-title {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}
