/* ═══════════════════════════════════════════════════════════════
   KAASS Services — Global Stylesheet
   Deep Navy (#0A0E1A) + Gold (#D4A017) theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts fallback (loaded in App.razor) ── */
body {
    background: #0A0E1A;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    scroll-behavior: smooth;
}

/* ── Cookie consent banner ── */
.kaass-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 760px;
    background: #141C30;
    border: 1px solid rgba(212,160,23,0.25);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.kaass-cookie-banner--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.kaass-cookie-banner--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
}

.kaass-cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.kaass-cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.kaass-cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Typography helpers ── */
.text-gold-gradient {
    background: linear-gradient(135deg, #F5D78A 0%, #D4A017 50%, #F5D78A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kaass-muted { color: #94A3B8 !important; }

.kaass-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #D4A017;
}

/* ── Logo badge ── */
.kaass-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background: linear-gradient(135deg, #E8C04A, #B8890F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #0A0E1A;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(212,160,23,0.25);
    flex-shrink: 0;
}

.kaass-logo-badge--lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

/* ── Nav link (desktop) ── */
.kaass-nav-link {
    position: relative;
    color: #CBD5E1 !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    text-decoration: none !important;
}

.kaass-nav-link:hover { color: #fff !important; }

.kaass-nav-link.active { color: #D4A017 !important; }

.kaass-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A017;
    transition: width 0.3s ease;
}

.kaass-nav-link:hover::after,
.kaass-nav-link.active::after { width: 100%; }

/* ── Dividers ── */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.4), transparent);
}

.gold-divider--centered {
    width: 80px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.25), transparent);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Gold shimmer on hover ── */
.gold-shimmer {
    position: relative;
    overflow: hidden;
}

.gold-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.06), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.gold-shimmer:hover::before { left: 150%; }

/* ── Generic badge ── */
.kaass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(212,160,23,0.25);
    background: rgba(212,160,23,0.05);
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A017;
}

.kaass-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D4A017;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.kaass-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.kaass-hero__bg {
    position: absolute;
    inset: 0;
    background: #0A0E1A;
}

.kaass-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.kaass-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20,29,56,0.4) 0%, #0A0E1A 70%);
}

.kaass-hero__geo {
    position: absolute;
    border: 1px solid rgba(212,160,23,0.1);
    border-radius: 2px;
    transform: rotate(45deg);
}

.kaass-hero__geo--1 { width: 140px; height: 140px; top: 25%; right: 8%; }
.kaass-hero__geo--2 { width: 70px;  height: 70px;  bottom: 25%; left: 5%; }

.kaass-hero__content {
    position: relative;
    max-width: 900px;
    padding: 0 24px;
    z-index: 2;
}

.kaass-hero__title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    color: #fff !important;
}

.kaass-hero__subtitle {
    color: #94A3B8 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.kaass-hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
}

.kaass-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #D4A017, transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.kaass-hero__scroll-hint span {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #94A3B8;
}

/* ── Stats bar ── */
.kaass-stats-bar {
    background: #0F1628;
    border-top: 1px solid rgba(212,160,23,0.1);
    border-bottom: 1px solid rgba(212,160,23,0.1);
    padding: 40px 0;
}

.kaass-stat { text-align: center; }

.kaass-stat__value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.kaass-stat__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748B;
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.kaass-section {
    padding: 96px 0;
}

.kaass-section--alt {
    background: #0F1628;
}

.kaass-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.kaass-section-title {
    font-family: 'Playfair Display', serif !important;
    color: #fff !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
}

.kaass-section-subtitle {
    color: #94A3B8 !important;
    max-width: 520px;
    margin: 0 auto !important;
    line-height: 1.7 !important;
}

/* ── Cards ── */
.kaass-card {
    background: linear-gradient(135deg, rgba(20,29,56,0.85) 0%, rgba(15,22,40,0.95) 100%) !important;
    border: 1px solid rgba(212,160,23,0.15) !important;
    border-radius: 2px !important;
    padding: 40px !important;
    transition: border-color 0.3s;
}

.kaass-card:hover { border-color: rgba(212,160,23,0.35) !important; }

.kaass-card__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kaass-card__eyebrow-line {
    width: 40px;
    height: 1px;
    background: #D4A017;
    flex-shrink: 0;
}

.kaass-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.65;
}

/* ── Service cards ── */
.kaass-service-card {
    background: linear-gradient(135deg, rgba(20,29,56,0.85) 0%, rgba(15,22,40,0.95) 100%) !important;
    border: 1px solid rgba(212,160,23,0.15) !important;
    border-radius: 2px !important;
    padding: 40px !important;
    height: 100%;
    transition: border-color 0.3s;
}

.kaass-service-card:hover { border-color: rgba(212,160,23,0.4) !important; }

.kaass-service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.kaass-link-arrow {
    font-size: 0.875rem;
    font-weight: 500;
    transition: gap 0.2s;
}

.kaass-link-arrow:hover { gap: 8px !important; }

/* ── Why choose cards ── */
.kaass-why-card {
    position: relative;
    background: rgba(10,14,26,0.6);
    border: 1px solid rgba(212,160,23,0.1);
    border-radius: 2px;
    padding: 32px;
    height: 100%;
    transition: border-color 0.3s;
    overflow: hidden;
}

.kaass-why-card:hover { border-color: rgba(212,160,23,0.35); }

.kaass-why-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.kaass-why-card__underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.5s ease;
}

.kaass-why-card:hover .kaass-why-card__underline { width: 100%; }

/* ── Core value rows ── */
.kaass-value-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, rgba(20,29,56,0.8), rgba(15,22,40,0.9));
    border: 1px solid rgba(212,160,23,0.12);
    border-radius: 2px;
    padding: 24px 28px;
    transition: border-color 0.3s;
}

.kaass-value-row:hover { border-color: rgba(212,160,23,0.3); }

.kaass-value-row__num {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(212,160,23,0.35);
    margin-top: 4px;
    width: 24px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.kaass-value-row:hover .kaass-value-row__num { color: rgba(212,160,23,0.7); }

/* ── Mission section ── */
.kaass-mission-section {
    position: relative;
    padding: 96px 0;
    text-align: center;
}

.kaass-mission-bg {
    position: absolute;
    inset: 0;
    background: #0F1628;
}

.kaass-mission-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,160,23,0.04) 0%, transparent 70%);
}

.kaass-mission-content { position: relative; z-index: 1; }

.kaass-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 500;
    color: #fff;
    line-height: 1.65;
    border: none;
    padding: 0;
    margin: 0;
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.kaass-page-hero {
    position: relative;
    padding: 160px 0 96px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.kaass-page-hero--short { min-height: 340px; }

.kaass-page-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
}

.kaass-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,26,0.5) 0%, #0A0E1A 100%);
}

.kaass-page-hero__geo {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(212,160,23,0.08);
    border-radius: 2px;
    transform: rotate(45deg);
    top: 40px;
    right: 64px;
}

.kaass-page-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
}

/* ══════════════════════════════════════════
   VEHICLE CARDS
══════════════════════════════════════════ */
.kaass-vehicle-card {
    background: linear-gradient(135deg, rgba(20,29,56,0.85), rgba(15,22,40,0.95)) !important;
    border: 1px solid rgba(212,160,23,0.15) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    transition: border-color 0.3s;
}

.kaass-vehicle-card:hover { border-color: rgba(212,160,23,0.4) !important; }

.kaass-vehicle-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.kaass-vehicle-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.kaass-vehicle-card:hover .kaass-vehicle-card__img { transform: scale(1.05); }

.kaass-vehicle-card__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #D4A017;
    color: #0A0E1A;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 2px;
}

.kaass-vehicle-card__body { padding: 24px; }

.kaass-vehicle-card__price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   CONTACT INFO ROW
══════════════════════════════════════════ */
.kaass-contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kaass-contact-info-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: rgba(212,160,23,0.08);
    border: 1px solid rgba(212,160,23,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
.login-page {
    display: flex;
    min-height: 100vh;
    background: #0A0E1A;
}

.login-brand-panel {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 56px;
    overflow: hidden;
}

.login-brand-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F1628 0%, #141D38 100%);
    border-right: 1px solid rgba(212,160,23,0.15);
}

.login-brand-bg::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.brand-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-value-chip {
    padding: 6px 14px;
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(212,160,23,0.7);
    background: rgba(212,160,23,0.04);
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.login-form-container {
    width: 100%;
    max-width: 440px;
}

/* Centered single-card auth pages (Forgot Password, OTP verify, etc.) */
.kaass-auth-centered-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #0A0E1A;
    padding: 32px 16px;
}

.kaass-auth-card {
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    background: #0F1628;
    border: 1px solid rgba(212,160,23,0.12);
    border-radius: 4px;
}

@media (max-width: 600px) {
    .kaass-auth-card {
        padding: 32px 20px;
    }
}

/* ══════════════════════════════════════════
   INPUT OVERRIDES
   (MudBlazor outlined inputs — dark themed)
══════════════════════════════════════════ */
.kaass-input .mud-input-outlined .mud-notch { border-color: rgba(212,160,23,0.2) !important; }
.kaass-input .mud-input-outlined:hover .mud-notch { border-color: rgba(212,160,23,0.4) !important; }
.kaass-input .mud-input-outlined.mud-input-focused .mud-notch { border-color: #D4A017 !important; }
.kaass-input .mud-input-outlined .mud-input-slot { color: #fff !important; }
.kaass-input label { color: #94A3B8 !important; }
.kaass-input .mud-input-focused label { color: #D4A017 !important; }

/* ══════════════════════════════════════════
   404
══════════════════════════════════════════ */
.kaass-404-geo {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 2px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.kaass-404-geo > span {
    transform: rotate(-45deg);
    display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0A0E1A; }
::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,160,23,0.6); }

/* ── Reveal safety net ──────────────────────────────────────────────────────
   If JS is slow or fails, force all .reveal elements visible after 1.5s.
   This prevents blank pages on navigation. The JS path still wins when fast.
───────────────────────────────────────────────────────────────────────────── */
@keyframes forceVisible {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: forceVisible 0.01s 1.5s forwards;
}

.reveal.visible {
    animation: none;
}

/* ══════════════════════════════════════════
   FOOTER (override for MudBlazor layout and lists)
══════════════════════════════════════════ */
.kaass-footer {
    background: #0F1628;
    border-top: 1px solid rgba(212,160,23,0.1);
    padding: 96px 0 32px; /* increased top padding so footer content has more space */
    margin-top: 0;
}

/* keep grid placeholder but let MudGrid handle layout */
.kaass-footer__grid { display: block; }

.kaass-footer__heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #D4A017;
    margin-bottom: 20px;
}

/* use div stacks instead of ul/li to avoid MudBlazor list resets */
.kaass-footer__link-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kaass-footer__link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: #94A3B8 !important;
    transition: color 0.2s;
    text-decoration: none !important;
}

.kaass-footer__link:hover { color: #fff !important; }

/* ══════════════════════════════════════════
   DEALER DASHBOARD
══════════════════════════════════════════ */

/* ── Page header band ── */
.kaass-dashboard-header {
    background: linear-gradient(135deg, #0F1628 0%, #141D38 100%);
    border-bottom: 1px solid rgba(212,160,23,0.15);
    position: relative;
    overflow: hidden;
}

.kaass-dashboard-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(212,160,23,0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Listing status badge (Active / Inactive) ── */
.kaass-listing-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
}

.kaass-listing-status--active {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #4ade80;
}

.kaass-listing-status--inactive {
    background: rgba(148,163,184,0.1);
    border: 1px solid rgba(148,163,184,0.25);
    color: #94A3B8;
}

/* ── Admin dealer badge on listing card ── */
.kaass-dealer-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(212,160,23,0.75);
    letter-spacing: 0.03em;
}

/* ── Image upload zone ── */
.kaass-image-upload-zone {
    background: rgba(15,22,40,0.6);
    border: 1px dashed rgba(212,160,23,0.25);
    border-radius: 2px;
    padding: 16px;
    transition: border-color 0.2s;
}

.kaass-image-upload-zone:hover {
    border-color: rgba(212,160,23,0.5);
}

.kaass-image-preview-wrap {
    border-radius: 2px;
    overflow: hidden;
    max-height: 180px;
}

.kaass-image-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.kaass-file-input {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: #94A3B8;
    cursor: pointer;
}

.kaass-file-input::file-selector-button {
    background: rgba(212,160,23,0.1);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 2px;
    color: #D4A017;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    margin-right: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.kaass-file-input::file-selector-button:hover {
    background: rgba(212,160,23,0.18);
}

