/* Bangkok Car Rentals — Managed by HAUP. Brand tokens from HAUP. */
:root {
  --haup-blue: #0043a1;
  --haup-blue-deep: #0a2777;
  --mint: #bdf3df;
  --ink: #1d1d1f;
  --ink-soft: #2a2826;
  --muted: #6b6560;
  --line: #e6e8ec;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --font-th: "Prompt", system-ui, sans-serif;
  --font-en: "Poppins", system-ui, sans-serif;
  --font: var(--font-th);
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 18, 51, 0.08);
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html:lang(en) body { font-family: var(--font-en), var(--font-th), system-ui, sans-serif; }
html:lang(th) body { font-family: var(--font-th); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--haup-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 0.5em; color: var(--ink-soft); }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 0.75em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: var(--haup-blue); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 88px; height: 18px; flex: none; }
.brand-name {
  font-size: 12px; font-weight: 600; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--haup-blue);
}
.managed { margin: 0; flex: none; }
.managed a, .managed-footer a, .managed-link {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--haup-blue);
  border: 1px solid #c9d7ee;
  background: #edf3fb;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.managed a:hover, .managed-footer a:hover, .managed-link:hover { text-decoration: none; background: #e0ebf8; }
.managed-link-on-dark {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.managed-link-on-dark:hover { background: rgba(255,255,255,0.26); }

.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: grid; place-items: center; gap: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-links {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute; left: 0; right: 0; top: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav-links.is-open { display: flex; }
.nav-links a { display: block; padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-links a:hover, .lang a:hover { color: var(--haup-blue); text-decoration: none; }
.lang { display: flex; align-items: center; gap: 8px; padding: 8px 4px; font-size: 13px; font-weight: 600; }
.lang a[aria-current="page"] { color: var(--haup-blue); text-decoration: underline; text-underline-offset: 3px; }
.nav-cta { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--haup-blue); color: #fff; }
.btn-primary:hover { background: var(--haup-blue-deep); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: #fff; color: var(--haup-blue); border-color: #c9d7ee; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-on-dark:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hero {
  position: relative; color: #fff;
  min-height: 520px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--haup-blue-deep);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,39,119,0.35) 0%, rgba(0,24,70,0.82) 70%, rgba(0,18,51,0.92) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 48px 0 40px; }
.hero .eyebrow { margin: 0 0 12px; }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; max-width: 36rem; color: #eaf0fa; }
.hero-place { font-size: 0.9rem; color: var(--mint); font-weight: 500; }
.inventory, .price-note { font-size: 0.9rem; color: #d5deee; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.section { padding: 48px 0; scroll-margin-top: 80px; }
.section h2 { margin-bottom: 10px; }
.lead { color: var(--muted); max-width: 40rem; margin-bottom: 24px; }

.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.car-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.car-media { display: block; background: #e8edf4; aspect-ratio: 16/10; overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car-title { font-size: 1rem; margin: 0; }
.car-title a { color: var(--ink); }
.car-loc, .car-meta, .car-reviews { margin: 0; font-size: 13px; color: var(--muted); }
.car-foot {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; margin-top: 12px;
}
.car-foot .btn { width: 100%; }
.car-price { margin: 0; color: var(--haup-blue); font-weight: 700; }
.car-price .num { font-size: 1.15rem; }
.car-price .unit { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

.see-all { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.text-link { font-weight: 600; font-size: 14px; }

.how-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.how-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
}
.how-card h3 { color: var(--haup-blue); margin-bottom: 8px; }
.how-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.contact-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.contact-list a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--haup-blue);
}
.contact-list a:hover { border-color: var(--haup-blue); text-decoration: none; background: #edf3fb; }
.award { font-size: 14px; font-weight: 600; }
.award a { color: var(--haup-blue-deep); }

.pickup { background: #fff; border-block: 1px solid var(--line); }

.site-footer {
  background: var(--haup-blue-deep);
  color: #d7e0f0;
  padding: 40px 0 24px;
  margin-top: 8px;
}
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 13px; letter-spacing: 0; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { margin: 0 0 10px; }
.managed-footer { margin: 0 0 12px; }
.managed-footer a {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.footer-org { font-weight: 600; color: #fff; margin: 0 0 6px; }
.footer-address { font-size: 13px; max-width: 22rem; }
.footer-grid ul li { margin: 8px 0; }
.footer-meta { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 16px; font-size: 12px; }
.footer-meta p { margin: 0; }

.page-404 { min-height: 50vh; padding: 80px 0; }
.page-404 .btn { margin-right: 8px; margin-top: 8px; }

@media (max-width: 719px) {
  .brand-name { display: none; }
}
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; flex-direction: row; align-items: center;
    position: static; border: 0; padding: 0; margin-left: auto; gap: 18px; background: transparent;
  }
  .nav-links a { padding: 0; font-size: 14px; }
  .lang { padding: 0; }
  .nav-cta { display: inline-flex; margin-left: 8px; }
  .managed { margin-right: auto; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero { min-height: 600px; align-items: center; }
  .hero-inner { padding: 80px 0; }
}
@media (min-width: 1024px) {
  .car-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-name { font-size: 13px; }
}

/* Keep header booking CTA off small screens (.btn must not override this). */
a.nav-cta { display: none; }
@media (min-width: 720px) {
  a.nav-cta { display: inline-flex; }
}
