/* ================================================================
   hyundai.css — Hyundai brand landing page
   Prefix: hnd-
   Theme: black / white / neutral-gray (consistent with site)
   ================================================================ */

:root {
    --black:          #0A0A0A;
    --gray-900:       #111111;
    --gray-800:       #1A1A1A;
    --gray-700:       #2B2B2B;
    --gray-600:       #3D3D3D;
    --gray-500:       #555555;
    --gray-400:       #888888;
    --gray-300:       #AAAAAA;
    --gray-200:       #CCCCCC;
    --gray-100:       #E8E8E8;
    --gray-50:        #F5F5F5;
    --white:          #FFFFFF;
    --bg-muted:       #F5F5F5;
    --bg-brand:       #E8E8E8;
    --text-primary:   #111111;
    --text-secondary: #555555;
    --border:         #E0E0E0;
    --font-body:      'Inter', sans-serif;
    --font-display:   'Playfair Display', serif;
    --ease:           cubic-bezier(.4,0,.2,1);
    --ease-spring:    cubic-bezier(.34,1.56,.64,1);
    --r:              10px;
    --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(--white); 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;
    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(--white); }
.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: rgba(255,255,255,.65);
    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(--white);
}

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

/* Shared section labels — matches ac-section-label exactly */
.hnd-section-label {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--gray-400);
    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(--text-primary);
    margin: 0 0 12px;
}
.hnd-section-sub {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

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

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

/* ══════════════════════════════════════════════════════════
   CARD — mirrors ac-card exactly
   ══════════════════════════════════════════════════════════ */
.hnd-card {
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    display: flex; flex-direction: column;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .32s var(--ease);
}
.hnd-card.hnd-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s !important;
}
.hnd-card.hnd-in:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.12);
}

.hnd-d1 { transition-delay: .08s; }
.hnd-d2 { transition-delay: .17s; }
.hnd-d3 { transition-delay: .26s; }
.hnd-d4 { transition-delay: .35s; }

/* Image outer */
.hnd-img-outer {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
    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 .55s var(--ease), opacity .22s var(--ease);
}
.hnd-card.hnd-in:hover .hnd-gallery-img { transform: scale(1.06); }

/* Deal badge */
.hnd-deal-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--black); color: var(--white);
    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.hnd-in:hover .hnd-arr { opacity: 1; }
@media (hover: none) { .hnd-arr { opacity: 1; width: 30px; height: 30px; } }

/* Dark name bar */
.hnd-namebar {
    background: #111111;
    padding: 13px 14px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}
.hnd-title-link { text-decoration: none; flex: 1; min-width: 0; }
h3.hnd-card-title {
    font-size: 13px; font-weight: 700;
    color: var(--white); line-height: 1.4; margin: 0;
    font-family: var(--font-body);
    text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hnd-brand-logo {
    width: 36px; height: 36px;
    object-fit: contain; flex-shrink: 0;
    border-radius: 6px; padding: 3px;
    background: rgba(255,255,255,.92);
}

/* Card body */
.hnd-body {
    background: #f7f7f7;
    padding: 14px;
    display: flex; flex-direction: column;
    gap: 10px; flex: 1;
}

.hnd-specs-strip {
    background: var(--white);
    border-radius: 10px;
    padding: 9px;
    display: flex; align-items: center;
    gap: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,.09);
}
.hnd-si {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 2px;
    font-size: 8px; font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap; min-width: 0;
}
.hnd-si span { overflow: hidden; text-overflow: ellipsis; }
.hnd-si svg { width: 11px; height: 11px; flex-shrink: 0; color: var(--gray-700); }

.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 6px;
    border-radius: 4px;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s var(--ease-spring);
    font-family: var(--font-body);
}
.hnd-btn:hover { opacity: .88; transform: translateY(-1px); }
.hnd-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.hnd-btn-call { background: var(--black); color: var(--white); }
.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: var(--gray-100); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.hnd-empty-icon svg { width: 36px; height: 36px; color: var(--gray-400); }
.hnd-empty h3 { font-family: var(--font-display); font-size: 26px; color: var(--text-primary); 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: #e8e8e8;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative; z-index: 1;
    overflow: hidden;
    padding: 88px 0 72px;
}
.hnd-faq::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(235,235,235,0.78);
    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(--text-primary);
    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;
}
.hnd-faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    transition: background .25s var(--ease);
}
.hnd-faq-item:first-child { border-top: 1px solid var(--border); }
.hnd-faq-item.open { background: var(--black); border-bottom-color: rgba(255,255,255,.1); }
.hnd-faq-item:first-child.open { border-top-color: rgba(255,255,255,.1); }

.hnd-faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 22px 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: 24px; height: 24px; position: relative; }
.hnd-faq-icon svg {
    position: absolute; inset: 0;
    width: 24px; height: 24px;
    color: var(--text-primary);
    transition: opacity .2s, color .25s;
}
.hnd-faq-item.open .hnd-faq-icon svg { color: var(--white); }
.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 24px;
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.85; transition: color .25s;
}
.hnd-faq-item.open .hnd-faq-a-inner { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════
   SEO CONTENT — plain editorial block (H2 / p / ul)
   ══════════════════════════════════════════════════════════ */
.hnd-seo-content {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.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(--text-primary);
    line-height: 1.2;
    margin: 44px 0 14px;
}
.hnd-seo-body h2:first-of-type { margin-top: 28px; }
.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;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════ */
.hnd-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.hnd-reveal.hnd-in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════
   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; }
}
