/* ============================================================
   Star Cars London - Main Stylesheet
   Design: Premium Used Car Dealership
   ============================================================ */

/* ---- Variables ---- */
:root {
    --primary: #0f2044;
    --primary-light: #1a3464;
    --accent: #e8192c;
    --accent-dark: #c41325;
    --accent-light: #ff3347;
    --teal: #1BC5C7;
    --teal-dark: #0EA5A5;
    --teal-light: #3DD6D8;
    --gold: #f5a623;
    --white: #ffffff;
    --light: #f4f6f9;
    --light2: #e8ecf1;
    --dark: #111827;
    --text: #374151;
    --text-muted: #6b7280;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 4px 24px rgba(15, 32, 68, 0.10);
    --shadow-lg: 0 8px 40px rgba(15, 32, 68, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --font: 'Outfit', sans-serif;
}

/* ---- Keyframe Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse-teal {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27,197,199,0.5); }
    50% { box-shadow: 0 0 0 10px rgba(27,197,199,0); }
}
@keyframes shimmer-slide {
    0% { left: -100%; }
    100% { left: 150%; }
}
@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes badgePop {
    0% { transform: scale(0.7) rotate(-5deg); opacity: 0; }
    70% { transform: scale(1.08) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-15deg) scale(0.8); }
    to   { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes ticker-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(27,197,199,0.6); }
    50% { text-shadow: 0 0 20px rgba(27,197,199,1), 0 0 40px rgba(27,197,199,0.4); }
}
@keyframes borderDraw {
    from { width: 0; }
    to   { width: 60px; }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease both;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 580px;
}

/* ---- Buttons ---- */
.btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,25,44,0.35);
}
.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.nav-btn { padding: 10px 22px; font-size: 14px; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid var(--teal);
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-bar a:hover { color: var(--accent); }
.top-bar i { color: var(--accent); }

/* ---- Navbar ---- */
.main-navbar {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}
.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

/* Logo */
.site-logo { height: 54px; width: auto; object-fit: contain; }
.footer-logo { height: 60px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-star {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white;
    box-shadow: 0 4px 15px rgba(232,25,44,0.35);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
    font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: 1.5px;
}
.logo-sub {
    font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 3px;
}

/* Nav links */
.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 4px; left: 14px; right: 14px;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border: none; padding: 8px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f2044' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero Slider ---- */
.hero-swiper { height: 620px; position: relative; }
.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}
/* Slide 1 – Navy */
.hero-swiper .swiper-slide:nth-child(1) {
    background: linear-gradient(135deg, #08122e 0%, #0f2044 50%, #1a3464 100%);
}
/* Slide 2 – Teal (STAR/LONDON logo color) */
.hero-swiper .swiper-slide:nth-child(2) {
    background: linear-gradient(135deg, #062222 0%, #0a3535 45%, #0EA5A5 140%);
}
/* Slide 3 – Red accent (CARS logo color) */
.hero-swiper .swiper-slide:nth-child(3) {
    background: linear-gradient(135deg, #1a0308 0%, #0f2044 45%, #8b0010 120%);
}
/* Geometric pattern overlay for all slides */
.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(27,197,199,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232,25,44,0.08) 0%, transparent 50%);
}
.hero-slide-img {
    position: absolute; inset: 0; z-index: 2;
    background-size: cover; background-position: center;
    opacity: 0.75;
    transition: transform 7s ease;
}
.swiper-slide-active .hero-slide-img { transform: scale(1.08); }
/* Per-slide overlay tint */
.hero-swiper .swiper-slide:nth-child(1) .hero-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(105deg, rgba(8,18,46,0.96) 0%, rgba(15,32,68,0.75) 55%, rgba(15,32,68,0.30) 100%);
}
.hero-swiper .swiper-slide:nth-child(2) .hero-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(105deg, rgba(6,34,34,0.96) 0%, rgba(10,53,53,0.75) 55%, rgba(14,165,165,0.20) 100%);
}
.hero-swiper .swiper-slide:nth-child(3) .hero-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(105deg, rgba(26,3,8,0.96) 0%, rgba(15,32,68,0.75) 55%, rgba(139,0,16,0.25) 100%);
}
/* Fallback for slides without nth-child match */
.hero-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(105deg, rgba(8,18,46,0.96) 0%, rgba(15,32,68,0.75) 55%, rgba(15,32,68,0.30) 100%);
}
.hero-content {
    position: relative; z-index: 4;
    height: 100%; display: flex; align-items: center;
}
.hero-text { max-width: 560px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(27,197,199,0.15); border: 1px solid rgba(27,197,199,0.5);
    color: var(--teal-light); font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
    animation: badgePop 0.7s 0.3s ease both;
}
.hero-title {
    font-size: clamp(32px, 5vw, 58px); font-weight: 800;
    color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.80); margin-bottom: 32px; }
.hero-stats {
    display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 32px; font-weight: 800; color: var(--teal-light); line-height: 1; animation: ticker-glow 3s ease-in-out infinite; }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.5); width: 8px; height: 8px; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ---- Search Bar ---- */
.search-bar-section {
    background: var(--primary);
    padding: 28px 0;
    position: relative;
    z-index: 5;
}
.search-bar-wrap {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 24px 28px;
}
.search-bar-wrap .form-control,
.search-bar-wrap .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--dark);
    background: var(--light);
    transition: border-color 0.2s;
}
.search-bar-wrap .form-control:focus,
.search-bar-wrap .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,25,44,0.10);
    background: var(--white);
}
.searchable-select { position: relative; }
.searchable-select-native {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.searchable-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}
.searchable-select-toggle-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.searchable-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid rgba(15,32,68,0.12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15,32,68,0.18);
    overflow: hidden;
}
.searchable-select-menu[hidden] { display: none !important; }
.searchable-select-search {
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.searchable-select-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}
.searchable-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    color: var(--text-dark);
    transition: background 0.2s ease, color 0.2s ease;
}
.searchable-select-option:hover,
.searchable-select-option.is-active {
    background: rgba(232,25,44,0.08);
    color: var(--primary);
}
.searchable-select-empty {
    padding: 12px;
    color: var(--text-muted);
    font-size: 14px;
}
.search-bar-wrap label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.search-bar-wrap .btn-search {
    background: var(--accent); color: white; border: none;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px; width: 100%;
    transition: all 0.3s;
}
.search-bar-wrap .btn-search:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,25,44,0.3);
}

/* ---- Sections ---- */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.bg-light-section { background: var(--light); }
.bg-dark-section { background: var(--primary); color: white; }
.bg-dark-section h2, .bg-dark-section h3 { color: white; }

/* ---- Stat Banner ---- */
.stats-banner {
    background: linear-gradient(270deg, var(--accent), var(--accent-dark), #8b0000, var(--teal-dark), var(--teal), var(--accent));
    background-size: 400% 400%;
    animation: gradientPan 10s ease infinite;
    padding: 50px 0;
}
.stat-item { text-align: center; color: white; }
.stat-item .stat-number { font-size: 48px; font-weight: 800; line-height: 1; }
.stat-item .stat-label { font-size: 14px; opacity: 0.85; margin-top: 6px; font-weight: 500; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.3); height: 60px; margin: auto; }

/* ---- Car Card ---- */
.car-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex; flex-direction: column;
    position: relative;
}
.car-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}
.car-card:hover::after {
    animation: shimmer-slide 0.6s ease forwards;
}
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(27,197,199,0.18), var(--shadow-lg);
    border-color: var(--teal);
}
.car-card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-card-img img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.5s ease;
}
.car-card:hover .car-card-img img { transform: scale(1.02); }
.car-card-brand-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 50px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 2;
}
.car-card-brand-name {
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    color: #ea1d2c;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.car-card-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
}
.car-card-brand-copy span {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    color: #49c2d8;
    white-space: nowrap;
}
.car-card-badges {
    position: absolute; top: 56px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 3;
}
.badge-fuel {
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 50px;
    background: rgba(15,32,68,0.85); color: white;
    backdrop-filter: blur(4px);
}
.badge-featured {
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 50px;
    background: var(--accent); color: white;
}
.car-card-brand-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    z-index: 2;
}
.car-card-brand-aa {
    width: 44%;
    background: #f6c739;
    color: #111;
    padding: 7px 10px 8px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.car-card-brand-aa span {
    font-size: 8px;
    font-weight: 700;
}
.car-card-brand-aa strong {
    font-size: 10px;
    font-weight: 900;
}
.car-card-brand-phone {
    flex: 1;
    background: #49c2d8;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
}
.car-card-price {
    position: absolute; bottom: 0; right: 0;
    background: var(--accent);
    color: white; font-weight: 800; font-size: 20px;
    padding: 8px 18px;
    border-radius: var(--radius) 0 0 0;
    z-index: 3;
}
.car-card-body {
    padding: 20px; flex: 1; display: flex; flex-direction: column;
}
.car-card-title {
    font-size: 18px; font-weight: 700; color: var(--primary);
    margin-bottom: 4px; line-height: 1.3;
}
.car-card-variant { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.car-card-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 16px;
}
.car-spec-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text);
}
.car-spec-item i {
    color: var(--accent); width: 16px; text-align: center; font-size: 12px;
}
.car-card-footer {
    display: flex; gap: 10px; margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--border);
}
.car-card-footer .btn { flex: 1; font-size: 13px; padding: 10px; }
.btn-view { background: var(--primary); color: white; border-color: var(--primary); }
.btn-view:hover { background: var(--primary-light); color: white; }
.btn-enquire { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-enquire:hover { background: var(--accent); color: white; }

/* ---- No Image Placeholder ---- */
.car-no-img {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8ecf1, #d1d9e4);
    color: var(--text-muted);
}
.car-no-img i { font-size: 48px; opacity: 0.4; margin-bottom: 10px; }
.car-no-img span { font-size: 13px; font-weight: 600; opacity: 0.6; }

/* ---- Why Choose Us ---- */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    height: 100%;
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(232,25,44,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: float 3s ease-in-out infinite;
}
/* Alternate icons use teal */
.col-lg-4:nth-child(even) .feature-icon,
.col-md-6:nth-child(even) .feature-icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 8px 24px rgba(27,197,199,0.28);
    animation: float-delayed 3.5s ease-in-out infinite;
}
.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 12px 32px rgba(232,25,44,0.38);
}
.col-lg-4:nth-child(even) .feature-card:hover .feature-icon {
    box-shadow: 0 12px 32px rgba(27,197,199,0.38);
}
.feature-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Testimonials ---- */
.testimonial-swiper { padding-bottom: 50px !important; }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 80px; line-height: 0.8;
    color: var(--accent); opacity: 0.15;
    position: absolute; top: 20px; left: 24px;
    font-family: Georgia, serif;
}
.testimonial-stars { color: var(--gold); margin-bottom: 14px; font-size: 15px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: white; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.testimonial-car { font-size: 13px; color: var(--text-muted); }

/* ---- Finance Banner ---- */
.finance-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    padding: 60px 50px;
}
.finance-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.finance-banner h2 { color: white; }
.finance-banner p { color: rgba(255,255,255,0.8); }
.finance-steps { display: flex; flex-direction: column; gap: 20px; }
.finance-step { display: flex; align-items: flex-start; gap: 18px; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.finance-step h5 { color: white; margin-bottom: 4px; font-size: 16px; }
.finance-step p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }

/* ---- Makes Grid ---- */
.make-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 14px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    display: block;
}
.make-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(27,197,199,0.2);
    transform: translateY(-4px);
    color: var(--teal);
}
.make-card .make-name { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.make-card:hover .make-name { color: var(--teal); }
.make-card .make-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.make-card i { font-size: 32px; color: var(--primary-light); transition: color 0.3s, transform 0.4s; }
.make-card:hover i { color: var(--teal); transform: scale(1.15) rotate(-8deg); }

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 70px 0;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; right: -100px; top: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(232,25,44,0.08);
}
.page-header::after {
    content: '';
    position: absolute; right: 100px; bottom: -150px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.page-header h1 { color: white; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.page-header .breadcrumb { background: none; padding: 0; margin: 12px 0 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item { color: var(--accent); font-size: 14px; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Stock Filters ---- */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.filter-header {
    background: var(--primary);
    color: white;
    padding: 18px 22px;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.filter-body { padding: 22px; }
.filter-group { margin-bottom: 22px; }
.filter-group label {
    display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 8px;
}
.filter-group .form-control,
.filter-group .form-select {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 14px; font-family: var(--font); font-size: 14px;
    color: var(--dark);
}
.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,25,44,0.08);
}
.filter-group .searchable-select-menu { border-radius: 14px; }
.filter-group .price-range { display: flex; gap: 8px; align-items: center; }
.filter-group .price-range span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.btn-filter-apply {
    width: 100%; padding: 13px; background: var(--accent); border: none;
    color: white; font-weight: 700; border-radius: var(--radius-sm);
    font-family: var(--font); cursor: pointer; transition: background 0.3s;
    font-size: 15px;
}
.btn-filter-apply:hover { background: var(--accent-dark); }
.btn-filter-clear {
    display: block; width: 100%; padding: 10px; background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); font-weight: 600; border-radius: var(--radius-sm);
    font-family: var(--font); cursor: pointer; transition: all 0.3s; margin-top: 8px;
    font-size: 14px; text-align: center;
}
.btn-filter-clear:hover { border-color: var(--accent); color: var(--accent); }

/* Stock list top bar */
.stocklist-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 24px;
}
.stocklist-count { font-weight: 700; color: var(--primary); font-size: 15px; }
.stocklist-count span { color: var(--accent); }
.sort-select {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 8px 14px; font-family: var(--font); font-size: 14px;
    cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--accent); }

/* ---- Car Detail ---- */
.car-detail-gallery { margin-bottom: 30px; }
.car-detail-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light2);
    box-shadow: var(--shadow-lg);
}
.car-detail-main img { width: 100%; height: 100%; object-fit: contain; }
.car-detail-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #edf3fb, #dbe6f5);
    border: 0;
    padding: 0;
    cursor: zoom-in;
}
.car-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.car-gallery-main .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 32, 68, 0.88);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 32, 68, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.car-gallery-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.06);
}
.car-gallery-prev { left: 18px; }
.car-gallery-next { right: 18px; }
.car-gallery-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 32, 68, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}
.car-gallery-current {
    color: #fff;
    min-width: 10px;
    text-align: center;
}
.car-gallery-total,
.car-gallery-separator {
    color: rgba(255,255,255,0.72);
}
.car-detail-thumbs {
    margin-top: 14px;
    padding-bottom: 2px;
}
.car-gallery-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.car-gallery-thumbs-wrap .car-detail-thumbs {
    flex: 1;
    margin-top: 0;
    min-width: 0;
}
.car-detail-thumbs .swiper-slide { width: 92px; }
.car-thumb-arrow {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 32, 68, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(15, 32, 68, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.car-thumb-arrow:hover {
    background: var(--accent);
    transform: scale(1.06);
}
.car-thumb-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}
.car-detail-thumb {
    width: 100%;
    height: 66px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: transparent;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.car-detail-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 32, 68, 0.02), rgba(15, 32, 68, 0.2));
    pointer-events: none;
}
.car-detail-thumb:hover,
.car-detail-thumb.active {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232,25,44,0.14);
}
.car-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.car-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.car-lightbox.is-open {
    display: flex;
}
.car-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 28, 0.88);
    backdrop-filter: blur(8px);
}
.car-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 56px));
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    background: #fff;
}
.car-lightbox-close,
.car-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #fff;
    background: rgba(15, 32, 68, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease, background 0.2s ease;
}
.car-lightbox-close:hover,
.car-lightbox-nav:hover {
    background: var(--accent);
    transform: scale(1.06);
}
.car-lightbox-close {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.car-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}
.car-lightbox-prev {
    left: 0;
    transform: translateY(-50%);
}
.car-lightbox-next {
    right: 0;
    transform: translateY(-50%);
}
.car-lightbox-prev:hover,
.car-lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}
.car-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 32, 68, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
body.car-lightbox-open {
    overflow: hidden;
}

.car-detail-price {
    font-size: 40px; font-weight: 800; color: var(--accent);
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 20px;
}
.car-detail-price .vat { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.detail-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 22px 12px 18px;
    background: #fff;
    border-right: 1px solid #f0f1f4;
    border-bottom: 1px solid #f0f1f4;
    transition: background 0.2s;
}
.detail-spec:hover { background: #f7f8fc; }
.detail-spec:nth-child(4n) { border-right: none; }
.detail-spec-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef1ff 0%, #e4e9ff 100%);
    border-radius: 14px;
    color: var(--primary);
}
.detail-spec-icon svg {
    width: 26px;
    height: 26px;
}
.detail-spec-icon svg * {
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.detail-spec-icon-fa i {
    font-size: 24px;
    color: var(--primary);
}
.detail-spec-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; line-height: 1.2; }
.detail-spec-value { font-size: 14px; font-weight: 800; color: var(--primary); line-height: 1.2; }

.car-features-list {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.car-feature-tag {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 50px; padding: 5px 14px;
    font-size: 13px; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.car-feature-tag i { color: var(--success); font-size: 11px; }

/* Enquiry form */
.enquiry-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: sticky; top: 100px;
}
.enquiry-form-header {
    background: var(--primary);
    padding: 22px 24px;
    color: white;
}
.enquiry-form-header h4 { color: white; margin: 0; font-size: 18px; }
.enquiry-form-body { padding: 24px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 11px 14px; font-family: var(--font); font-size: 14px;
    color: var(--dark);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,25,44,0.08);
}
textarea.form-control { resize: vertical; }

/* ---- Halal Finance ---- */
.halal-highlight {
    background: linear-gradient(135deg, #0f2044, #1e3a6e);
    border-radius: var(--radius);
    padding: 48px 40px;
    color: white;
    position: relative; overflow: hidden;
}
.halal-highlight::after {
    content: '';
    position: absolute; right: -40px; bottom: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 40px solid rgba(232,25,44,0.12);
}
.halal-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4);
    color: #10b981; font-size: 13px; font-weight: 700;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
}
.finance-table {
    background: white; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.finance-table thead th {
    background: var(--primary); color: white;
    font-weight: 700; font-size: 14px; padding: 14px 16px;
}
.finance-table tbody td { padding: 12px 16px; font-size: 14px; border-color: var(--border); }
.finance-table tbody tr:hover { background: var(--light); }

/* ---- About ---- */
.about-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.about-img-overlay {
    position: absolute; bottom: 24px; right: 24px;
    background: var(--accent); color: white;
    border-radius: var(--radius-sm);
    padding: 20px 24px; text-align: center;
}
.about-img-overlay .big-num { font-size: 42px; font-weight: 800; line-height: 1; }
.about-img-overlay .big-label { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.value-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(232,25,44,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 18px; flex-shrink: 0;
}
.value-item h5 { font-size: 16px; margin-bottom: 4px; }
.value-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---- Warranty ---- */
.warranty-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}
.warranty-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent);
}
.warranty-card.popular { border: 2px solid var(--accent); position: relative; }
.warranty-popular-badge {
    position: absolute; top: -1px; right: 24px;
    background: var(--accent); color: white;
    font-size: 12px; font-weight: 700; padding: 4px 14px;
    border-radius: 0 0 8px 8px;
}
.warranty-header {
    background: var(--light);
    padding: 28px 28px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.warranty-card.popular .warranty-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.warranty-card.popular .warranty-header h3 { color: white; }
.warranty-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.warranty-price { font-size: 36px; font-weight: 800; color: var(--accent); }
.warranty-price .period { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.warranty-features { padding: 28px; }
.warranty-features li {
    padding: 8px 0; font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--light2);
}
.warranty-features li:last-child { border-bottom: none; }
.warranty-features li i { color: var(--success); font-size: 14px; flex-shrink: 0; }

/* ---- Jobs ---- */
.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}
.job-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); transform: translateY(-2px); }
.job-header {
    background: var(--light);
    padding: 24px 28px;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 16px;
}
.job-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag {
    font-size: 12px; font-weight: 700; padding: 4px 12px;
    border-radius: 50px; background: rgba(232,25,44,0.1); color: var(--accent);
}
.job-body { padding: 24px 28px; }
.job-requirements { margin-top: 16px; }
.job-requirements li {
    font-size: 14px; color: var(--text); padding: 6px 0;
    display: flex; align-items: center; gap: 8px;
}
.job-requirements li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}

/* ---- Sell Car ---- */
.sell-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 80px 0; }
.sell-hero h1, .sell-hero h2 { color: white; }
.sell-step {
    text-align: center; padding: 30px 20px;
}
.sell-step-num {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--accent); color: white;
    font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}

/* ---- Find Us ---- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.contact-info-header {
    background: var(--primary);
    padding: 22px 28px;
}
.contact-info-header h4 { color: white; margin: 0; }
.contact-info-body { padding: 24px 28px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(232,25,44,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 16px; flex-shrink: 0;
}
.contact-info-item h6 { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--primary); font-weight: 600; margin: 0; }
.contact-info-item a { color: var(--primary); font-weight: 600; }
.contact-info-item a:hover { color: var(--accent); }

/* ---- Footer ---- */
.site-footer { background: #080f1e; }
.footer-top { padding: 80px 0 60px; }
.footer-brand { color: white; }
.footer-brand .logo-main { color: white; }
.footer-brand .logo-star { background: var(--accent); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.8; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-item {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 50px;
}
.badge-item i { color: var(--accent); }
.footer-heading {
    font-size: 14px; font-weight: 800; color: white;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6); font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.25s;
}
.footer-links a i { font-size: 10px; color: var(--accent); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li {
    display: flex; gap: 14px;
    color: rgba(255,255,255,0.65); font-size: 14px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
    align-items: flex-start;
}
.footer-contact li:last-child { border-bottom: none; }
.footer-contact li i { color: var(--accent); margin-top: 3px; width: 14px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
/* legacy — kept for backward compat */
.social-btn {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: white; transition: all 0.3s;
}
.social-btn.whatsapp { background: #25D366; }
.social-btn.whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.social-btn.facebook { background: #1877f2; }
.social-btn.facebook:hover { background: #0d65d8; transform: translateY(-2px); }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.instagram:hover { opacity: 0.85; transform: translateY(-2px); }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-inner { width: 100%; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-legal a {
    color: rgba(255,255,255,0.82);
    font-size: 13.5px;
    text-decoration: none;
    padding: 0 16px;
    transition: color var(--transition);
}
.footer-legal a + a { border-left: 1px solid rgba(255,255,255,0.18); }
.footer-legal a:hover { color: var(--accent); }
.footer-bottom-copy {
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
}
.footer-dev-link {
    color: var(--accent) !important;
    font-weight: 700;
}
.footer-bottom-meta {
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    word-break: break-word;
}
.footer-bottom-meta a {
    color: rgba(255,255,255,0.88);
}
.footer-bottom-meta a:hover {
    color: var(--accent);
}

/* ---- Footer Financial Disclosure ---- */
.footer-disclosure {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-disclosure-title {
    color: rgba(255,255,255,0.78);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 6px;
}
.footer-disclosure-text {
    color: rgba(255,255,255,0.5);
    font-size: 11.5px;
    line-height: 1.7;
    margin: 0;
}

/* ---- Footer Contact Actions (Social + APK) ---- */
.footer-contact-actions { margin-top: 20px; }

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.ftr-social-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-right: 4px;
    white-space: nowrap;
}
.ftr-social-link {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}
.ftr-social-link:hover { transform: translateY(-2px); opacity: 0.85; color: #fff; }
.ftr-social-link.whatsapp  { background: #25D366; }
.ftr-social-link.facebook  { background: #1877f2; }
.ftr-social-link.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* APK / Play Store Button */
.apk-store-label {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.apk-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    width: 100%;
}
.apk-store-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.apk-store-left { flex-shrink: 0; }
.apk-playstore-badge {
    display: block;
    height: 38px;
    width: auto;
    border-radius: 6px;
}
.apk-store-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.apk-store-app-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apk-store-app-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    white-space: nowrap;
}
.apk-store-dl-icon {
    width: 34px; height: 34px;
    background: #3ddc84;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

/* ---- Car Section Header ---- */
.car-section-header {
    background: var(--primary);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.car-section-header i { color: var(--accent); font-size: 16px; }

/* ---- Technical Specs Table ---- */
.tech-specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.tech-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f1f4;
    border-right: 1px solid #f0f1f4;
    gap: 12px;
}
.tech-spec-row:nth-child(2n) { border-right: none; }
.tech-spec-row:nth-last-child(-n+2) { border-bottom: none; }
.tech-spec-key {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.tech-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/* ---- Features Accordion ---- */
.features-accordion { display: flex; flex-direction: column; gap: 8px; }
.feat-cat-item {
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
}
.feat-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f9fc;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.feat-cat-toggle:hover,
.feat-cat-toggle.open { background: #eef1ff; }
.feat-cat-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}
.feat-cat-toggle.open .feat-cat-icon { background: var(--accent); }
.feat-cat-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.feat-cat-count {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 9px;
    min-width: 28px;
    text-align: center;
}
.feat-cat-toggle.open .feat-cat-count { background: var(--accent); }
.feat-cat-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.feat-cat-toggle.open .feat-cat-arrow { transform: rotate(180deg); }
.feat-cat-body {
    display: none;
    background: white;
    border-top: 1px solid #e8eaf0;
}
.feat-cat-body.show { display: block; }
.feat-cat-list {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.feat-cat-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}
.feat-cat-list li i {
    color: #22c55e;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}
@media (max-width: 576px) {
    .tech-specs-table { grid-template-columns: 1fr; }
    .tech-spec-row { border-right: none; }
    .tech-spec-row:nth-last-child(-n+2) { border-bottom: 1px solid #f0f1f4; }
    .tech-spec-row:last-child { border-bottom: none; }
    .feat-cat-list { grid-template-columns: 1fr; }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    animation: wa-pulse 2.5s infinite;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-tooltip {
    position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
    background: var(--dark); color: white; font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 6px; white-space: nowrap;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--primary); border: 1.5px solid var(--border);
    font-weight: 600; font-family: var(--font);
    padding: 8px 14px; font-size: 14px;
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
}
.pagination .page-link:hover { background: var(--light); border-color: var(--accent); color: var(--accent); }
.pagination .page-item.active .page-link {
    background: var(--accent); border-color: var(--accent); color: white;
}

/* ---- Utility ---- */
.text-accent { color: var(--accent); }
.text-primary-brand { color: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-primary-brand { background: var(--primary); }
.divider {
    width: 60px; height: 4px; border-radius: 2px; margin: 16px 0;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    animation: borderDraw 0.8s ease both;
}
.divider.center { margin: 16px auto; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-swiper { height: 480px; }
    .hero-stats { gap: 20px; }
    .filter-sidebar { position: static; }
    .section-pad { padding: 60px 0; }
}

/* --- Tablet / large mobile --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 12px 0 16px;
        margin-top: 8px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-link { padding: 10px 20px !important; border-radius: 0; }
    .nav-link::after { display: none; }
    .nav-item.ms-lg-2 { margin: 8px 16px 0 !important; }
    .nav-btn { display: block; text-align: center; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    /* Navbar */
    .site-logo { height: 44px; }

    /* Hero */
    .hero-swiper { height: auto; min-height: 420px; }
    .hero-stats { display: none; }
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev { display: none; }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,32,68,0.55) 0%, rgba(15,32,68,0.92) 100%);
    }
    .hero-content { align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
    .hero-text { max-width: 100%; }
    .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }
    .hero-title { font-size: clamp(24px, 6.5vw, 40px); margin-bottom: 12px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
    .hero-text .d-flex { gap: 10px !important; }
    .hero-text .btn-lg { padding: 11px 20px; font-size: 14px; }
    .hero-content .container { padding-left: 20px; padding-right: 20px; }

    /* Search bar */
    .search-bar-section { padding: 20px 0; }
    .search-bar-wrap { padding: 16px; }
    .search-bar-wrap .row > div { min-width: 0; }

    /* Stats banner */
    .stats-banner { padding: 36px 0; }
    .stat-divider { display: none; }
    .stat-item .stat-number { font-size: 38px; }

    /* Reduce large row gaps on mobile */
    .row.g-5 { --bs-gutter-y: 2rem; --bs-gutter-x: 1rem; }

    /* Sections */
    .section-pad { padding: 50px 0; }
    .section-pad-sm { padding: 40px 0; }
    .section-subtitle { max-width: 100% !important; }

    /* Finance banner */
    .finance-banner { padding: 36px 24px; }
    .finance-banner h2 { font-size: 24px; }
    .finance-banner .d-flex.flex-wrap { flex-direction: column; gap: 10px !important; }
    .finance-banner .btn { width: 100%; text-align: center; }
    .finance-steps { gap: 16px; }
    .finance-step { gap: 14px; }
    .step-num { width: 38px; height: 38px; font-size: 16px; flex-shrink: 0; }

    /* Car detail */
    .car-detail-price { font-size: 32px; }
    .detail-spec-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-spec:nth-child(4n) { border-right: 1px solid #f0f1f4; }
    .detail-spec:nth-child(2n) { border-right: none; }
    .detail-spec-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 11px; }
    .detail-spec-icon svg { width: 22px; height: 22px; }

    /* About overlay */
    .about-img-overlay { padding: 14px 18px; }
    .about-img-overlay .big-num { font-size: 32px; }

    /* Map */
    .map-wrap iframe { height: 300px; }

    /* Page header */
    .page-header { padding: 50px 0; }

    /* Footer */
    .footer-top { padding: 50px 0 40px; }
    .footer-bottom-inner { flex-wrap: wrap; gap: 4px; }
    .footer-bottom-meta { font-size: 11.5px; }
}

/* --- Small mobile --- */
@media (max-width: 576px) {
    /* Top bar */
    .top-bar .top-bar-left { display: none !important; }
    .top-bar .d-flex { justify-content: center !important; }

    /* Navbar */
    .site-logo { height: 38px; }
    .main-navbar { padding: 10px 0; }

    /* Hero */
    .hero-swiper { min-height: 400px; }
    .hero-content { padding-top: 36px; padding-bottom: 36px; }
    .hero-badge { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; letter-spacing: 1px; }
    .hero-title { font-size: clamp(22px, 7vw, 32px); margin-bottom: 10px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 14px; }
    .hero-text .d-flex { flex-direction: column; gap: 8px !important; }
    .hero-text .btn-lg { width: 100%; text-align: center; padding: 12px 16px; font-size: 14px; }

    /* Search bar */
    .search-bar-wrap { padding: 14px 12px; }
    .search-bar-wrap label { font-size: 11px; }

    /* Buttons */
    .btn-lg { padding: 12px 20px; font-size: 14px; }

    /* Car cards */
    .car-card-specs { grid-template-columns: 1fr 1fr; }

    /* Stats */
    .stats-banner { padding: 30px 0; }
    .stat-item .stat-number { font-size: 32px; }
    .stat-item .stat-label { font-size: 12px; }

    /* Sections */
    .section-pad { padding: 40px 0; }
    .section-pad-sm { padding: 32px 0; }
    .section-title { font-size: clamp(22px, 6vw, 32px); }

    /* Page header */
    .page-header { padding: 40px 0; }

    /* Finance banner */
    .finance-banner { padding: 24px 16px; }
    .finance-banner h2 { font-size: 20px; }
    .finance-step h5 { font-size: 14px; }
    .finance-step p { font-size: 13px; }

    /* Halal */
    .halal-highlight { padding: 28px 16px; }
    .halal-highlight h2 { font-size: 22px !important; }
    .halal-highlight .d-flex.gap-3 { gap: 12px !important; flex-wrap: wrap; }
    .halal-highlight .ms-4 { margin-left: 0 !important; }
    .halal-highlight .text-center { flex: 1; min-width: 60px; }

    /* Warranty */
    .warranty-header { padding: 24px 20px 20px; }
    .warranty-features { padding: 20px; }

    /* Footer */
    .footer-top { padding: 40px 0 30px; }
    .footer-badges { gap: 6px; }
    .badge-item { font-size: 11px; padding: 4px 10px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
    .footer-bottom-meta { font-size: 11px; }

    /* Stocklist bar */
    .stocklist-bar { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Car detail */
    .car-gallery-arrow {
        width: 40px;
        height: 40px;
    }
    .car-gallery-prev { left: 12px; }
    .car-gallery-next { right: 12px; }
    .car-gallery-status {
        left: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .car-gallery-thumbs-wrap {
        gap: 8px;
    }
    .car-thumb-arrow {
        width: 34px;
        height: 34px;
    }
    .car-detail-thumbs .swiper-slide { width: 78px; }
    .car-detail-thumb {
        height: 58px;
        border-radius: 10px;
    }
    .car-lightbox {
        padding: 16px;
    }
    .car-lightbox-dialog {
        height: calc(100vh - 32px);
    }
    .car-lightbox-img {
        border-radius: 12px;
    }
    .car-lightbox-close {
        width: 40px;
        height: 40px;
        top: 8px;
        right: 8px;
    }
    .car-lightbox-nav {
        width: 42px;
        height: 42px;
    }
    .car-lightbox-prev {
        left: 8px;
    }
    .car-lightbox-next {
        right: 8px;
    }
    .car-lightbox-count {
        bottom: 8px;
    }
    .car-detail-price { font-size: 28px; }

    /* Enquiry form sticky off on mobile */
    .enquiry-form-card { position: static; }

    /* WhatsApp float */
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 16px; right: 16px; }

    /* Back to top */
    .back-to-top { bottom: 76px !important; right: 16px !important; width: 38px !important; height: 38px !important; font-size: 14px !important; border-radius: 8px !important; }
}

/* ============================================================
   Finance Calculator – Car Detail Page
   ============================================================ */

.finance-product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}
.finance-product-card:hover {
    box-shadow: var(--shadow-lg);
}
.finance-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}
.finance-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.finance-product-body {
    padding: 0 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.finance-monthly-big {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}
.finance-breakdown {
    margin-top: 4px;
}
.fb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    gap: 8px;
}
.fb-row:last-child {
    border-bottom: none;
}
.fb-row span {
    color: var(--text-muted);
    flex: 1;
}
.fb-row strong {
    color: var(--dark);
    text-align: right;
    white-space: nowrap;
}
.fb-row.fw-bold span { color: var(--primary); font-weight: 700; }
.fb-row.fw-bold strong { color: var(--primary); font-size: 14px; }

/* Finance apply page */
.finance-step-badge {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================================
   Legal / CMS content pages (privacy, cookies, terms, complaints)
   ============================================================ */
.legal-card { overflow: hidden; }

.legal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.legal-sidebar-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 18px 40px rgba(12, 24, 48, 0.08);
    border-radius: 24px;
    padding: 22px 22px 20px;
    backdrop-filter: blur(10px);
}

.legal-sidebar-card--accent {
    background: linear-gradient(145deg, rgba(16,32,67,0.96), rgba(11,18,34,0.96));
    color: rgba(255,255,255,0.88);
}

.legal-sidebar-card--accent h2 {
    color: white;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
    font-weight: 800;
}

.legal-sidebar-card--accent p { color: rgba(255,255,255,0.72); margin-bottom: 0; }

.legal-sidebar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.legal-sidebar-card .legal-toc-title { margin-bottom: 14px; }

.legal-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-page-hero__copy { max-width: 780px; }

.legal-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-page-lead {
    margin: 14px 0 0;
    max-width: 720px;
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.7;
}

.legal-page-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    flex: 0 1 420px;
}

.legal-page-meta-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 16px 18px;
    color: white;
    backdrop-filter: blur(10px);
}

.legal-page-meta-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    margin-bottom: 6px;
}

.legal-page-meta-card strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.legal-breadcrumb-wrap {
    margin-top: 18px;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.legal-intro {
    font-size: 16.5px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

/* Contents box */
.legal-toc {
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 20px;
    padding: 22px 26px;
    margin-bottom: 0;
}
.legal-toc-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 12px;
}
.legal-toc-list {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}
.legal-toc-list--plain { list-style: none; padding-left: 0; }
.legal-toc-list li {
    margin-bottom: 6px;
    break-inside: avoid;
    color: var(--text-muted);
    font-size: 14.5px;
}
.legal-toc-list a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.legal-toc-list a:hover { color: var(--accent); }

/* Sections */
.legal-section { scroll-margin-top: 130px; }
.legal-section + .legal-section {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(20, 30, 50, 0.08);
}

.legal-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
    line-height: 1.35;
}
.legal-heading .legal-num { color: var(--accent); }

/* Section body */
.legal-content { line-height: 1.8; color: var(--text); font-size: 15.5px; }
.legal-content > *:last-child { margin-bottom: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 7px; }
.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul { margin: 8px 0 4px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-dark); }
.legal-content strong { color: var(--dark); font-weight: 600; }
.legal-content code {
    background: var(--light2);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.legal-content table {
    width: 100%;
    margin-bottom: 8px;
    font-size: 14.5px;
    border-collapse: collapse;
}
.legal-content table th,
.legal-content table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
}
.legal-content table th {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* See-also strip */
.legal-related {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.legal-related-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}
.legal-related-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--transition);
}
.legal-related-link:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 767.98px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidebar { position: static; top: auto; }
    .legal-page-hero__meta { grid-template-columns: 1fr; flex-basis: 100%; }
    .legal-page-lead { font-size: 15px; }
    .legal-toc-list { columns: 1; }
    .legal-toc { padding: 18px 20px; }
    .legal-heading { font-size: 18px; }
    .legal-content { font-size: 15px; }
}

/* Footer legal bar: stack cleanly rather than wrapping into ragged dividers. */
@media (max-width: 575.98px) {
    .footer-legal { flex-direction: column; gap: 10px; }
    .footer-legal a { padding: 0; font-size: 13px; }
    .footer-legal a + a { border-left: 0; }
}
