/* ============ FONTS: Hyundai Sans (self-hosted) ============ */
@font-face{
  font-family:'Hyundai Sans Head';
  src:url('../assets/fonts/HyundaiSansHead-Regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hyundai Sans Head';
  src:url('../assets/fonts/HyundaiSansHead-Medium.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hyundai Sans Head';
  src:url('../assets/fonts/HyundaiSansHead-Bold.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hyundai Sans Text';
  src:url('../assets/fonts/HyundaiSansText-Regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hyundai Sans Text';
  src:url('../assets/fonts/HyundaiSansText-Medium.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Hyundai Sans Text';
  src:url('../assets/fonts/HyundaiSansText-Bold.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}

/* ============ TOKENS ============ */
:root{
  --navy: #0b2545;
  --navy-deep: #061a34;
  --blue: #1e4d9c;
  --blue-light: #2f6fd6;
  --green: #25c065;
  --gold: #f5b342;
  --ink: #17233a;
  --grey-600: #5b6474;
  --grey-300: #d8dee6;
  --grey-100: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11,37,69,0.12);
  --font: 'Hyundai Sans Text', system-ui, -apple-system, sans-serif;
  --font-head: 'Hyundai Sans Head', 'Hyundai Sans Text', system-ui, -apple-system, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  padding-bottom:52px;
}
a{text-decoration:none;color:inherit;}
h1,h2,h3,h4{margin:0;line-height:1.15;font-family:var(--font-head);}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

/* ============ HEADER ============ */
.site-header{background:#fff;border-bottom:1px solid var(--grey-300);}
.header-inner{
  max-width:1360px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:1rem 1.5rem;
}
.logo-img{height:40px;width:auto;display:block;}
.header-phone{text-align:right;}
.header-phone a.phone-btn{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  color:var(--navy);
  font-weight:600;
  font-size:1rem;
  background:none;
  padding:0;
  border-radius:0;
  white-space:nowrap;
  transition:opacity .15s ease;
}
.header-phone a.phone-btn:hover{
  opacity:.75;
}
.header-phone a.phone-btn svg{
  flex-shrink:0;
}

/* ============ BANNER ============ */
.hero-banner{width:100%;line-height:0;}
.banner-img{width:100%;height:auto;}
.banner-mobile{display:none;}

/* ============ TEST DRIVE FORM ============ */
.testdrive-section{max-width:900px;margin:3rem auto 0;padding:0 1.5rem 3rem;}
.testdrive-head{
  background:var(--navy);color:#fff;
  padding:.7rem 1.3rem;font-weight:700;font-size:1.05rem;
  border-bottom:3px solid var(--blue-light);
  display:inline-block;
}
.testdrive-head-wrap{border-bottom:1px solid var(--grey-300);margin-bottom:1.8rem;text-align:center;}
.testdrive-form{display:flex;flex-direction:column;gap:1.3rem;max-width:600px;margin:0 auto;text-align:left;}
.testdrive-form label{font-weight:600;font-size:.95rem;display:block;margin-bottom:.4rem;}
.testdrive-form input, .testdrive-form select{
  width:100%;padding:.75rem .9rem;border:1px solid var(--grey-300);
  border-radius:6px;font-size:.95rem;font-family:inherit;
}
.testdrive-form input:focus, .testdrive-form select:focus{outline:2px solid var(--blue-light);border-color:var(--blue-light);}
.field-error{color:#d64545;font-size:.8rem;margin-top:.3rem;min-height:1em;}
.terms-row{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-size:.9rem;
  flex-wrap:nowrap;
}
.terms-row input[type="checkbox"]{
  flex-shrink:0;
  margin:0;
  width:16px;
  height:16px;
}
.terms-row a{color:var(--blue);text-decoration:underline;}
.testdrive-submit{
  background:var(--navy);color:#fff;font-weight:700;
  padding:.85rem 2.4rem;border-radius:6px;align-self:flex-start;
  transition:background .15s ease;
}
.testdrive-submit:hover{background:var(--blue);}
.testdrive-submit:disabled{opacity:.6;cursor:not-allowed;}
.form-status{font-size:.9rem;font-weight:600;min-height:1.2em;}
.form-status.success{color:var(--green);}
.form-status.error{color:#d64545;}

/* ============ SHOWROOM / FOOTER ============ */
.showroom-bar{background:var(--navy);color:#fff;padding:.7rem 1.5rem;font-weight:700;}
.showroom-info{background:var(--grey-100);padding:2rem 1.5rem 1.5rem;}
.showroom-info-inner{max-width:1360px;margin:0 auto;}
.showroom-info h3{font-size:1.1rem;margin-bottom:.3rem;}
.showroom-info .addr{color:var(--grey-600);margin-bottom:1.4rem;max-width:640px;}
.showroom-info h4{font-size:1rem;margin-bottom:.3rem;}
.showroom-info .hours{color:var(--grey-600);margin-bottom:1.4rem;}
.get-direction-btn{
  display:inline-block;background:var(--navy);color:#fff;
  font-weight:700;padding:.7rem 1.6rem;border-radius:6px;margin-bottom:2rem;
  transition:background .15s ease;
}
.get-direction-btn:hover{background:var(--blue);}

.footer-grid{
  max-width:1360px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr 1fr;gap:2rem;
  padding:1.6rem 0;border-top:1px solid var(--grey-300);
}
.footer-grid h4{font-size:1rem;margin-bottom:.5rem;}
.footer-grid p{color:var(--grey-600);font-size:.92rem;margin:0;line-height:1.5;}
.ig-review{display:flex;align-items:center;gap:.5rem;color:var(--blue);font-weight:600;}
.ig-review .ig-icon{
  width:28px;height:28px;
  background:linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color:#fff;border-radius:8px;
  display:flex;align-items:center;justify-content:center;font-size:.9rem;
}
.copyright{
  text-align:center;color:var(--grey-600);font-size:.82rem;
  padding-top:1.4rem;border-top:1px solid var(--grey-300);
}
.copyright a{color:var(--grey-600);text-decoration:underline;}

/* ============ ERROR POPUP ============ */
.error-modal-overlay{
  position:fixed;inset:0;background:rgba(6,26,52,.55);
  display:flex;align-items:center;justify-content:center;
  z-index:1000;padding:1.5rem;
}
.error-modal-overlay[hidden]{display:none;}
.error-modal-card{
  background:#fff;border-radius:10px;max-width:400px;width:100%;
  padding:2rem 1.8rem;position:relative;text-align:center;
  box-shadow:0 25px 60px rgba(3,15,32,.4);
}
.error-modal-close{
  position:absolute;top:.9rem;right:1.1rem;
  font-size:1.2rem;color:var(--grey-600);line-height:1;
}
.error-modal-close:hover{color:var(--ink);}
.error-modal-icon{
  width:56px;height:56px;border-radius:50%;background:#fdecea;color:#d64545;
  font-size:1.6rem;display:flex;align-items:center;justify-content:center;
  margin:0 auto 1rem;
}
.error-modal-card h3{font-size:1.15rem;color:var(--ink);margin-bottom:.5rem;}
.error-modal-card p{color:var(--grey-600);font-size:.92rem;margin-bottom:1.4rem;}
.error-modal-ok{
  background:var(--navy);color:#fff;font-weight:700;
  padding:.65rem 2rem;border-radius:6px;transition:background .15s ease;
}
.error-modal-ok:hover{background:var(--blue);}

/* ============ FLOATING BOTTOM CTA BAR (mobile only) ============ */
.floating-cta-bar{
  display:none;
}
.fcta-btn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.9rem 1rem;
  font-weight:700;
  font-size:.95rem;
  font-family:var(--font-head);
  color:#fff;
  line-height:1;
  transition:opacity .15s ease;
}
.fcta-btn:hover{opacity:.9;}
.fcta-btn svg{
  flex-shrink:0;
  display:block;
}
.fcta-enquire{background:var(--navy);}
.fcta-call{background:var(--green);}
.fcta-service{background:var(--blue);}

@media (max-width:640px){
  .floating-cta-bar{
    display:flex;
    position:fixed;left:0;right:0;bottom:0;z-index:200;
    box-shadow:0 -4px 16px rgba(11,37,69,.15);
  }
  .fcta-btn{
  flex-direction:column;
  gap:.2rem;
  padding:.6rem .3rem;
  font-size:.78rem;
  line-height:1.1;
}
body{
  padding-bottom:64px;
}
}

/* ============ RESPONSIVE ============ */
@media (max-width:640px){
  .banner-desktop{display:none;}
  .banner-mobile{display:block;}
  .footer-grid{grid-template-columns:1fr;gap:1.4rem;}
  .logo-img{height:20px;}
  .header-inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    flex-wrap:nowrap;
  }
  .header-phone a.phone-btn{
    background:var(--navy);
    color:#fff;
    padding:.4rem .9rem;
    border-radius:6px;
    font-size:.82rem;
    gap:.35rem;
  }
  .header-phone a.phone-btn:hover{
    background:var(--blue);
    opacity:1;
  }
}

.phone-text-mobile{display:none;}

@media (max-width:640px){
  .phone-text-desktop{display:none;}
  .phone-text-mobile{display:inline;}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;}
}

.benefits-marquee{
  background:var(--navy);
  overflow:hidden;
  white-space:nowrap;
  padding:.7rem 0;
}
.marquee-text{
  display:inline-block;
  color:#fff;
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.02em;
  padding-left:100%;
  animation:marquee-scroll 30s linear infinite;
}
@keyframes marquee-scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-100%);}
}
@media (prefers-reduced-motion:reduce){
  .marquee-text{animation:none;padding-left:1.5rem;}
}

/* ============ HEADER: SERVICE MY CAR BUTTON (desktop only) ============ */
.header-phone{
  display:flex;
  align-items:center;
  gap:1.5rem;
}
.service-btn{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background:var(--navy);
  color:#fff;
  font-family:var(--font-head);
  font-weight:600;
  font-size:.9rem;
  padding:.5rem 1.1rem;
  border-radius:6px;
  white-space:nowrap;
  transition:background .15s ease;
}
.service-btn:hover{background:var(--blue);}
.service-btn svg{flex-shrink:0;display:block;}

@media (max-width:640px){
  .service-btn{display:none;}
}