/* ================================
   MORAN SERVICE - BMW M Specialist
   Main Stylesheet
   ================================ */

:root {
    --m-blue: #0066B1;
    --m-light-blue: #00A6E6;
    --m-purple: #6A2DA0;
    --m-red: #E22718;
    --m-dark: #0a0a0a;
    --m-darker: #050505;
    --m-gray: #1a1a1a;
    --m-gray-2: #222;
    --m-gray-3: #2a2a2a;
    --m-text: #ffffff;
    --m-text-mute: #b3b3b3;
    --m-border: rgba(255,255,255,0.08);
    --m-gradient: linear-gradient(90deg, var(--m-blue) 0%, var(--m-light-blue) 33%, var(--m-purple) 66%, var(--m-red) 100%);
    --m-gradient-stripes: linear-gradient(90deg,
        var(--m-blue) 0%, var(--m-blue) 33.33%,
        var(--m-red) 33.33%, var(--m-red) 66.66%,
        var(--m-purple) 66.66%, var(--m-purple) 100%);
    --radius: 12px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
    --font: 'Heebo', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font);
    background: var(--m-darker);
    color: var(--m-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--m-light-blue); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--m-border);
    transition: all .3s;
}
.navbar.scrolled { background: rgba(5,5,5,0.97); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
}
.logo-stripes {
    width: 56px; height: 14px;
    background: var(--m-gradient-stripes);
    transform: skewX(-20deg);
    border-radius: 2px;
}
.logo-text strong { color: #fff; }
.logo-text span { color: var(--m-red); font-weight: 700; }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
}
.nav-links > li { display: flex; align-items: center; }
.nav-links a:not(.nav-cta) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    display: inline-block;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--m-gradient);
    transition: width .3s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--m-red);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    transition: all .3s;
    box-shadow: 0 4px 18px rgba(226,39,24,0.4);
    white-space: nowrap;
}
.nav-cta i { font-size: 0.95rem; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(226,39,24,0.6);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,102,177,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(226,39,24,0.12) 0%, transparent 60%),
                var(--m-darker);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: var(--m-gradient-stripes);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,102,177,0.15);
    border: 1px solid rgba(0,102,177,0.4);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--m-light-blue);
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.hero-tag::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--m-light-blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--m-light-blue);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.hero h1 .gradient {
    background: var(--m-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero p {
    font-size: 1.2rem;
    color: var(--m-text-mute);
    max-width: 620px;
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all .3s;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary {
    background: var(--m-red);
    color: #fff;
    box-shadow: 0 8px 30px rgba(226,39,24,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(226,39,24,0.6);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    border-color: var(--m-light-blue);
    color: var(--m-light-blue);
    background: rgba(0,166,230,0.08);
}
.btn-block { width: 100%; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

.hero-stats {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid var(--m-border);
    max-width: 800px;
}
.stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--m-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { white-space: nowrap;
    font-size: 0.9rem;
    color: var(--m-text-mute);
    margin-top: 6px;
}

/* ========== SECTIONS ========== */
.section { padding: 110px 0; }
.section-title {
    text-align: center;
    margin-bottom: 70px;
}
.section-title .eyebrow {
    display: inline-block;
    color: var(--m-red);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.section-title h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.5px;
}
.section-title p {
    color: var(--m-text-mute);
    font-size: 1.1rem;
    margin-top: 16px;
    max-width: 620px;
    margin-inline: auto;
}

/* ========== SERVICES ========== */
.services-section { background: var(--m-dark); position: relative; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: linear-gradient(180deg, var(--m-gray) 0%, var(--m-darker) 100%);
    border: 1px solid var(--m-border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: all .35s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 70px; height: 3px;
    background: var(--m-gradient-stripes);
    transform: skewX(-20deg);
    transition: width .35s;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,166,230,0.3);
    box-shadow: var(--shadow-md);
}
.service-card:hover::before { width: 100%; }
.service-icon {
    width: 60px; height: 60px;
    background: rgba(0,166,230,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m-light-blue);
    font-size: 1.6rem;
    margin-bottom: 22px;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 800;
}
.service-card p {
    color: var(--m-text-mute);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--m-border);
    font-size: 0.85rem;
}
.service-duration { color: var(--m-text-mute); }
.service-price { color: var(--m-light-blue); font-weight: 700; }

/* ========== ABOUT / FEATURES ========== */
.about-section { background: var(--m-darker); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.feature {
    text-align: center;
    padding: 30px 20px;
}
.feature-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: var(--m-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,102,177,0.3);
}
.feature h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 800;
}
.feature p {
    color: var(--m-text-mute);
    font-size: 0.92rem;
}

/* ========== BOOKING ========== */
.booking-section {
    background: linear-gradient(180deg, var(--m-darker) 0%, var(--m-dark) 100%);
    position: relative;
}
.booking-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--m-gray);
    border-radius: 20px;
    border: 1px solid var(--m-border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.booking-header {
    background: var(--m-gradient-stripes);
    height: 6px;
}
.booking-body { padding: 50px; }
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px; left: 18px;
    height: 2px;
    background: var(--m-border);
    z-index: 0;
}
.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}
.step-circle {
    width: 36px; height: 36px;
    background: var(--m-gray-3);
    border: 2px solid var(--m-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    transition: all .3s;
}
.step.active .step-circle {
    background: var(--m-red);
    border-color: var(--m-red);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(226,39,24,0.2);
}
.step.done .step-circle {
    background: var(--m-light-blue);
    border-color: var(--m-light-blue);
    color: #fff;
}
.step-label {
    font-size: 0.85rem;
    color: var(--m-text-mute);
}
.step.active .step-label { color: #fff; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.92rem;
}
.form-control {
    width: 100%;
    background: var(--m-darker);
    border: 1.5px solid var(--m-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all .25s;
}
.form-control:focus {
    outline: none;
    border-color: var(--m-light-blue);
    background: #000;
    box-shadow: 0 0 0 4px rgba(0,166,230,0.12);
}
.form-control::placeholder { color: #555; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.service-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.service-pick {
    background: var(--m-darker);
    border: 1.5px solid var(--m-border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.service-pick:hover { border-color: rgba(0,166,230,0.4); }
.service-pick.selected {
    border-color: var(--m-red);
    background: rgba(226,39,24,0.08);
    box-shadow: 0 0 0 3px rgba(226,39,24,0.12);
}
.service-pick input { display: none; }
.service-pick-icon {
    width: 42px; height: 42px;
    background: rgba(0,166,230,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m-light-blue);
    flex-shrink: 0;
}
.service-pick-info { flex: 1; min-width: 0; }
.service-pick-name { font-weight: 700; font-size: 0.95rem; }
.service-pick-meta {
    font-size: 0.8rem;
    color: var(--m-text-mute);
    margin-top: 2px;
}

.calendar-wrap {
    background: var(--m-darker);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--m-border);
}
.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.calendar-title { font-weight: 800; font-size: 1.05rem; }
.cal-nav {
    background: var(--m-gray-2);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all .2s;
}
.cal-nav:hover { background: var(--m-red); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-day-name {
    text-align: center;
    font-size: 0.78rem;
    color: var(--m-text-mute);
    font-weight: 700;
    padding: 8px 0;
}
.cal-day {
    aspect-ratio: 1;
    background: var(--m-gray-2);
    border: 1.5px solid transparent;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all .2s;
    font-family: inherit;
}
.cal-day:hover:not(:disabled) {
    border-color: var(--m-light-blue);
    background: rgba(0,166,230,0.12);
}
.cal-day:disabled {
    color: #444;
    cursor: not-allowed;
    background: transparent;
}
.cal-day.selected {
    background: var(--m-red);
    border-color: var(--m-red);
    box-shadow: 0 4px 14px rgba(226,39,24,0.4);
}
.cal-day.today { border-color: var(--m-light-blue); }
.cal-day.empty { background: transparent; cursor: default; }

.time-slots {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
}
.time-slot {
    background: var(--m-gray-2);
    border: 1.5px solid transparent;
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .2s;
    font-family: inherit;
}
.time-slot:hover { border-color: var(--m-light-blue); }
.time-slot.selected {
    background: var(--m-red);
    border-color: var(--m-red);
    box-shadow: 0 4px 14px rgba(226,39,24,0.4);
}
.no-slots {
    color: var(--m-text-mute);
    text-align: center;
    padding: 30px;
    grid-column: 1/-1;
}

.summary {
    background: var(--m-darker);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--m-border);
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--m-border);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--m-text-mute); font-size: 0.92rem; }
.summary-value { font-weight: 700; }

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-right: 4px solid;
}
.alert-success {
    background: rgba(16,185,129,0.1);
    color: #34d399;
    border-color: #10b981;
}
.alert-error {
    background: rgba(226,39,24,0.1);
    color: #f87171;
    border-color: var(--m-red);
}
.alert-info {
    background: rgba(0,166,230,0.1);
    color: var(--m-light-blue);
    border-color: var(--m-light-blue);
}

/* ========== CONTACT ========== */
.contact-section { background: var(--m-dark); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info-list { list-style: none; }
.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--m-border);
}
.contact-info-icon {
    width: 50px; height: 50px;
    background: rgba(0,166,230,0.12);
    color: var(--m-light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-info-content h4 { margin-bottom: 14px; font-size: 1rem; }
.contact-info-content p, .contact-info-content a {
    color: var(--m-text-mute);
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--m-darker);
    padding: 70px 0 30px;
    border-top: 1px solid var(--m-border);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--m-gradient-stripes);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer h4 {
    font-size: 1rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.footer p, .footer a, .footer li {
    color: var(--m-text-mute);
    font-size: 0.92rem;
    line-height: 2;
}
.footer ul { list-style: none; }
.footer a:hover { color: var(--m-light-blue); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 42px; height: 42px;
    background: var(--m-gray-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .3s;
}
.footer-social a:hover {
    background: var(--m-red);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--m-border);
    color: var(--m-text-mute);
    font-size: 0.88rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 78px; right: -100%;
        flex-direction: column;
        background: var(--m-darker);
        width: 280px;
        height: calc(100vh - 78px);
        padding: 40px 30px;
        gap: 24px;
        transition: right .3s;
        border-right: 1px solid var(--m-border);
    }
    .nav-links.open { right: 0; }
    .menu-toggle { display: block; }
    .hero-stats {
    text-align: center; grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .booking-body { padding: 30px 22px; }
    .section { padding: 70px 0; }
    .step-label { font-size: 0.72rem; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .btn { padding: 13px 24px; font-size: 0.92rem; }
    .cal-day { font-size: 0.78rem; }
}
/* Hero stats - clean override */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin: 110px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--m-border);
    max-width: 800px;
    text-align: center;
}
.hero-stats > div { padding: 10px 0; }
.stat-num {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--m-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--m-text-mute);
    white-space: nowrap;
}
@media (max-width: 900px) {
    .hero-stats { grid-template-columns: 1fr; gap: 40px; }
}

/* Extra breathing room between hero stats and the bottom M stripes */
.hero { padding-bottom: 80px; }
.hero-stats { margin-bottom: 40px; }
