/* ================================================================
   mercedes.css — Mercedes brand landing page
   Prefix: hnd- (shared markup pattern with hyundai.php and the other
   15 brand pages, but this is its own dedicated stylesheet — editing
   this file does NOT affect hyundai.php or any sibling brand page)
   Tokens: aliases the sitewide --gv-* tokens (header.css)
   ================================================================ */

:root {
    --black:          var(--gv-black, #0A0A0A);
    --gray-900:       var(--gv-gray-900, #1A1A1A);
    --gray-800:       var(--gv-gray-800, #222222);
    --gray-700:       var(--gv-gray-700, #2C2C2C);
    --gray-600:       var(--gv-gray-600, #3A3A3A);
    --gray-500:       var(--gv-gray-500, #4A4A4A);
    --gray-400:       var(--gv-gray-400, #6A6A6A);
    --gray-300:       var(--gv-gray-300, #9A9A9A);
    --gray-200:       var(--gv-gray-200, #CCCCCC);
    --gray-100:       var(--gv-gray-100, #E8E8E8);
    --gray-50:        #161616;
    --white:          var(--gv-white, #FFFFFF);
    --bg-muted:       #141414;
    --bg-brand:       var(--gv-gray-800, #222222);
    --text-primary:   var(--gv-white, #FFFFFF);
    --text-secondary: var(--gv-gray-300, #9A9A9A);
    --border:         var(--gv-gray-700, #2C2C2C);
    --font-body:      var(--gv-font, 'Poppins', sans-serif);
    --font-display:   var(--gv-font-display, 'Poppins', sans-serif);
    --gold:           var(--gv-gold, #C9A84C);
    --gold-light:     var(--gv-gold-light, #E0C978);
    --ease:           cubic-bezier(.4,0,.2,1);
    --ease-spring:    cubic-bezier(.34,1.56,.64,1);
    --r:              var(--gv-radius, 8px);
    --r-lg:           16px;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }
html,body { overflow-x:hidden; scroll-behavior:smooth }
body { font-family:var(--font-body); background:var(--black); color:var(--text-primary); -webkit-font-smoothing:antialiased }
img { max-width:100%; height:auto; display:block }
a { text-decoration:none; color:inherit }
button { font-family:var(--font-body); cursor:pointer }
.wrap { max-width:1380px; margin:0 auto; padding:0 32px }

/* ══════════════════════════════════════════════════════════
   BANNER — Ken Burns hero
   ══════════════════════════════════════════════════════════ */
.hnd-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hnd-hero-img-wrap { position: absolute; inset: 0; }
.hnd-hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 82%;
    animation: hndHeroZoom 9s ease-out forwards;
}
@keyframes hndHeroZoom {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
}
.hnd-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    animation: hndHeroFade 1.2s var(--ease) both;
}
@keyframes hndHeroFade { from { opacity:0; } to { opacity:1; } }
.hnd-hero-inner { position: relative; z-index: 2; width: 100%; }
.hnd-hero-caption { animation: hndHeroSlide 1.3s var(--ease) .15s both; }
@keyframes hndHeroSlide {
    from { opacity:0; transform:translateY(22px); }
    to   { opacity:1; transform:none; }
}

/* Breadcrumb */
.hnd-crumb {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px; flex-wrap: wrap;
}
.hnd-crumb a { color:rgba(255,255,255,.7); transition:color .2s; }
.hnd-crumb a:hover { color:var(--gold); }
.hnd-crumb-sep { color:rgba(255,255,255,.4); }

/* Eyebrow */
.hnd-hero-eyebrow {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 10px;
}

/* H1 */
h1.hnd-hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(28px,5vw,64px);
    font-weight: 700; color: #fff;
    line-height: 1.05;
    margin: 0 0 24px;
}

/* Stats strip */
.hnd-hero-stats {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hnd-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hnd-hero-stat-val { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.hnd-hero-stat-lbl { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: .5px; }
.hnd-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.2); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   FLEET SECTION
   ══════════════════════════════════════════════════════════ */
.hnd-fleet {
    padding: 36px 0 72px;
    background: var(--black);
}

.hnd-fleet-header {
    text-align: center;
    margin-bottom: 28px;
}

/* Shared section labels */
.hnd-section-label {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 10px;
}
h2.hnd-section-title {
    font-family: var(--font-display);
    font-size: clamp(26px,3.5vw,48px);
    font-weight: 700; line-height: 1.15;
    color: var(--white);
    margin: 0 0 12px;
}
.hnd-section-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.7;
}

.hnd-count-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    margin-top: 14px; letter-spacing: .5px;
}

/* Grid */
.hnd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ══════════════════════════════════════════════════════════
   CARD — matches .ac-card (all-cars.css) / .av-fleet-card exactly
   ══════════════════════════════════════════════════════════ */
.hnd-card {
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.hnd-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

/* Image outer */
.hnd-img-outer {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-800);
    flex-shrink: 0;
}
.hnd-img-wrap {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.hnd-gallery-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .22s var(--ease);
}
.hnd-card:hover .hnd-gallery-img { transform: scale(1.06); }

/* Deal badge */
.hnd-deal-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--gold); color: var(--black);
    font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 4px 10px; border-radius: 5px;
}

/* Gallery arrows */
.hnd-arr {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.52); color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s var(--ease), background .2s;
    padding: 0; line-height: 1;
}
.hnd-arr svg { width: 16px; height: 16px; pointer-events: none; }
.hnd-arr:hover { background: rgba(0,0,0,.8); }
.hnd-arr-prev { left: 10px; }
.hnd-arr-next { right: 10px; }
.hnd-card:hover .hnd-arr { opacity: 1; }
@media (hover: none) { .hnd-arr { opacity: 1; width: 30px; height: 30px; } }

/* Gold name bar (matches .ac-namebar / .av-fleet-namebar) */
.hnd-namebar {
    background: var(--gold);
    padding: 12px 14px;
    display: flex; align-items: center;
    gap: 10px;
}
.hnd-title-link { text-decoration: none; flex: 1; min-width: 0; }
h3.hnd-card-title {
    font-size: 14.5px; font-weight: 700;
    color: var(--black); line-height: 1.4; margin: 0;
    font-family: var(--font-body);
    text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hnd-brand-badge {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hnd-brand-logo {
    width: 22px; height: 22px;
    object-fit: contain;
}

/* Card body */
.hnd-body {
    background: var(--gray-900);
    padding: 14px;
    display: flex; flex-direction: column;
    gap: 12px; flex: 1;
}

/* Specs strip — 2-column grid, 4 fixed marketing claims (matches .ac-specs-strip) */
.hnd-specs-strip {
    background: var(--black);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hnd-si {
    display: flex; align-items: flex-start;
    gap: 7px;
    font-size: 10.5px; font-weight: 500;
    color: var(--gray-200);
    line-height: 1.3;
}
.hnd-si svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }

.hnd-actions { display: flex; gap: 8px; margin-top: auto; }
.hnd-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 8px;
    border-radius: 8px;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    transition: opacity .25s ease, transform .25s ease;
    font-family: var(--font-body);
    border: 1px solid transparent;
}
.hnd-btn:hover { opacity: .88; transform: translateY(-1px); }
.hnd-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.hnd-btn-call { background: var(--gold); color: var(--black); }
.hnd-btn-wa   { background: #25D366; color: var(--white); }

/* Empty state */
.hnd-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
}
.hnd-empty-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: transparent; border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.hnd-empty-icon svg { width: 36px; height: 36px; color: var(--gold); }
.hnd-empty h3 { font-family: var(--font-display); font-size: 26px; color: var(--white); margin-bottom: 8px; }
.hnd-empty p  { font-size: 14px; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════
   SHARED SECTION HEADINGS (center-aligned sections)
   ══════════════════════════════════════════════════════════ */
.hnd-section-header {
    text-align: center;
    margin-bottom: 52px;
}
.hnd-section-header .hnd-section-sub {
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   FAQ — matches .ac-faq exactly
   ══════════════════════════════════════════════════════════ */
.hnd-faq {
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; z-index: 1;
    overflow: hidden;
    padding: 88px 0 72px;
}
.hnd-faq::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.7) 50%, rgba(10,10,10,.88) 100%);
    pointer-events: none;
    z-index: 0;
}
.hnd-faq > .wrap { position: relative; z-index: 1; }

.hnd-faq-header { text-align: center; margin-bottom: 52px; }

h2.hnd-faq-title {
    font-family: var(--font-display);
    font-size: clamp(26px,3.5vw,48px);
    font-weight: 700; line-height: 1.15;
    color: var(--white);
    margin: 0 0 12px;
}
.hnd-faq-sub {
    font-size: 15px; color: var(--text-secondary);
    max-width: 520px; margin: 0 auto; line-height: 1.7;
}

.hnd-faq-list {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 10px;
}
.hnd-faq-item {
    background: var(--gray-800);
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hnd-faq-item.open { background: var(--gray-900); border-color: var(--gold); }

.hnd-faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 18px 20px;
    background: none; border: none; cursor: pointer; text-align: left;
}
.hnd-faq-q-text {
    font-size: 14px; font-weight: 600;
    color: var(--text-primary); line-height: 1.45;
    transition: color .25s;
}
.hnd-faq-item.open .hnd-faq-q-text { color: var(--white); }

.hnd-faq-icon {
    flex-shrink: 0; width: 40px; height: 40px; position: relative;
    border: 1px solid var(--gold); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.hnd-faq-icon svg {
    position: absolute; width: 18px; height: 18px;
    color: var(--gold);
    transition: opacity .2s;
}
.hnd-icon-plus  { opacity: 1; }
.hnd-icon-minus { opacity: 0; }
.hnd-faq-item.open .hnd-icon-plus  { opacity: 0; }
.hnd-faq-item.open .hnd-icon-minus { opacity: 1; }

.hnd-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.hnd-faq-a-inner {
    padding: 0 20px 20px;
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.7; transition: color .25s;
}
.hnd-faq-item.open .hnd-faq-a-inner { color: var(--gray-200); }

/* ══════════════════════════════════════════════════════════
   SEO CONTENT — plain editorial block (H2 / p / ul)
   matches all-cars.css's own .suv-seo-content/.suv-seo-body
   ══════════════════════════════════════════════════════════ */
.hnd-seo-content {
    background: var(--black);
    padding: 40px 0;
}
.hnd-seo-body {
    max-width: 100%;
}
.hnd-seo-body > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}
.hnd-seo-body h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    margin: 44px 0 14px;
}
.hnd-seo-body h2:first-of-type { margin-top: 28px; }

.hnd-seo-body h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
    margin: 44px 0 14px;
}

.hnd-seo-body ul {
    margin: 0 0 20px 0;
    padding-left: 22px;
    display: flex; flex-direction: column; gap: 10px;
}
.hnd-seo-body ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — matches all-cars breakpoints
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .hnd-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .wrap { padding: 0 20px; }
    .hnd-fleet       { padding: 36px 0 68px; }
    .hnd-seo-content { padding: 60px 0; }
    .hnd-faq         { padding: 68px 0; }
    .hnd-grid { grid-template-columns: repeat(2, 1fr); }
    .hnd-hero { height: 360px; }
}

@media (max-width: 600px) {
    .hnd-grid        { grid-template-columns: 1fr; }
    .hnd-fleet       { padding: 28px 0 52px; }
    .hnd-seo-content { padding: 44px 0; }
    .hnd-faq         { padding: 52px 0 56px; }
    .hnd-hero      { height: 300px; }
    .hnd-faq-q     { padding: 16px 20px; }
    .hnd-faq-q-text { font-size: 13px; }
    .hnd-hero-stats { gap: 14px; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .hnd-stat-sep { display: none; }
    .hnd-hero-stat-val { font-size: 15px; }
    h2.hnd-section-title { font-size: 24px; }
    h2.hnd-faq-title     { font-size: 24px; }
}

.custom-link{
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: color .3s ease;
    text-decoration: underline;

}

.custom-link:hover{
    color: var(--gold-light);
}
