/* ==========================================
   VARIABLES
   ========================================== */
:root {
    --primary: #ed1c24;
    --black: #111111;
    --white: #ffffff;
    --text-main: #333333;
    --text-sub: #888888;
    --text-dim: #666666;
    --bg-light: #f9f9f9;
    --bg-gray: #f7f7f7;
    --bg-stock: #f4f4f4;
    --border-color: #e2e2e2;
    --transition: all 0.3s ease-in-out;

    --primary-color: var(--primary);
    --brand-red: #dc3545;
    --byd-red: #db141c;
    --detail-dark: #151515;
    --detail-text: #5f5f5f;
    --detail-border: #e9e9e9;
    --detail-soft: #f7f7f7;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    font-size: 0.95rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 80px 40px;
    background-color: var(--bg-light);
    position: relative;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.35s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

#mainHeader {
    width: 100%;
    z-index: 1000;
    transition: background-color 0.35s ease;
}

.top-bar {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.top-contact {
    display: flex;
    gap: 25px;
}

.top-contact i {
    color: var(--white);
    opacity: 0.7;
    margin-right: 6px;
}

.main-nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-side {
    display: flex;
    gap: 25px;
    width: 40%;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.main-nav a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.logo-center {
    text-align: center;
    width: 20%;
}

.logo-center .brand {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: 2px;
}

.logo-center .slogan {
    font-size: 0.6rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
    opacity: 0.7;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 28px 36px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.mobile-menu-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-nav a {
    font-size: clamp(1.2rem, 4.8vw, 1.8rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.3;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s, padding-left 0.25s;
}

.mobile-nav a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 36px;
    width: 100%;
    transition: background 0.3s;
}

.mobile-cta-btn:hover {
    background: #c8151c;
}

.mobile-menu-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}

.mobile-menu-phone {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.mobile-menu-socials {
    display: flex;
    gap: 20px;
}

.mobile-menu-socials a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    transition: color 0.2s;
}

.mobile-menu-socials a:hover {
    color: #fff;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 14px 35px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--white) !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-cta-primary:hover {
    background-color: #d11a21;
    transform: translateY(-2px);
}

.btn-cta-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-cta-outline:hover {
    background-color: var(--white);
    color: #000;
}

.btn-cta i {
    font-size: 0.8rem;
}

.btn-red {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-red:hover {
    background-color: #bb2d3b !important;
    transform: translateY(-2px);
}

.btnredhover {
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
}

.btnredhover:hover,
.btnredhover:focus {
    transform: translateY(-1px);
    color: #ed1c24;
}

.btn-primary {
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c8161d !important;
    border-color: #c8161d !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: #ed1c24 !important;
    border-color: #ed1c24 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #fff !important;
}

/* ==========================================
   COMMON HELPERS
   ========================================== */
.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 6px;
}

.checkbox-group + .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 8px;
}

.contact-input.is-invalid,
.td-form-input.is-invalid,
.td-form-select.is-invalid,
.flatpickr-input.is-invalid,
.flatpickr-alt-input.is-invalid {
    border-color: #dc3545 !important;
}

.scroll-top-fixed {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.scroll-top-fixed.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-fixed:hover {
    background: #c8151c;
    transform: translateY(-2px);
}

.scroll-top-fixed i {
    font-size: 0.95rem;
    pointer-events: none;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes heroBgZoom {
    from { transform: translateZ(0) scale(1.07); }
    to { transform: translateZ(0) scale(1); }
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes heroLabelIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
        letter-spacing: 6px;
    }
    to {
        opacity: 1;
        transform: translateX(0);
        letter-spacing: 3px;
    }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(40px) skewY(1.5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
    }
}

@keyframes heroParaIn {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroBtnsIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes testdriveZoom {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
}

@keyframes tdFadeRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tdFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tdBgZoom {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
}

@keyframes sdBgZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}