:root{
  --ink:#12151A;
  --surface:#1B2027;
  --surface-raised:#20262E;
  --rule:#333A44;
  --brass:#B08D57;
  --brass-dim:#8A6F45;
  --steel:#5C7A99;
  --text:#EDEAE2;
  --text-muted:#9AA0AA;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Source Serif 4', serif;
  font-weight:500;
  letter-spacing:0.01em;
}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
img,svg{display:block; max-width:100%;}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(18,21,26,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rule);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 32px;
  max-width:1180px; margin:0 auto;
  gap:24px;
}
.logo{
  font-family:'Source Serif 4', serif;
  font-size:1.5rem;
  font-weight:600;
  letter-spacing:0.02em;
  white-space:nowrap;
}
.logo span{color:var(--brass);}
.nav-links{display:flex; gap:32px; font-size:0.95rem; flex:1;}
.nav-links a{color:var(--text-muted); transition:color .2s;}
.nav-links a:hover{color:var(--text);}
.nav-right{display:flex; align-items:center; gap:18px;}
.nav-cta{
  border:1px solid var(--brass-dim);
  padding:10px 20px;
  font-size:0.9rem;
  color:var(--brass);
  transition:background .2s, color .2s;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--brass); color:var(--ink);}
.menu-btn{display:none; background:none; border:none; color:var(--text); font-size:1.6rem; cursor:pointer;}

/* Language switcher */
.lang-switch{
  display:flex; border:1px solid var(--rule);
}
.lang-switch button{
  background:none; border:none; color:var(--text-muted);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:0.8rem; padding:8px 11px; cursor:pointer;
  border-left:1px solid var(--rule);
  transition:color .2s, background .2s;
}
.lang-switch button:first-child{border-left:none;}
.lang-switch button.active{color:var(--ink); background:var(--brass);}
.lang-switch button:not(.active):hover{color:var(--text);}

/* ---------- Hero ---------- */
.hero{
  padding:96px 0 80px;
  border-bottom:1px solid var(--rule);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:64px;
  align-items:start;
}
.eyebrow-line{
  display:flex; align-items:center; gap:12px;
  color:var(--text-muted);
  font-size:0.85rem;
  margin-bottom:24px;
}
.eyebrow-line::before{
  content:'';
  width:28px; height:1px;
  background:var(--brass);
}
.hero h1{
  font-size:clamp(2.1rem, 4.2vw, 3.4rem);
  line-height:1.15;
  max-width:15ch;
  color:var(--text);
}
.hero p{
  margin-top:24px;
  max-width:46ch;
  color:var(--text-muted);
  font-size:1.05rem;
}
.hero-actions{
  display:flex; gap:16px;
  margin-top:36px;
  flex-wrap:wrap;
}
.btn-primary{
  background:var(--brass);
  color:var(--ink);
  padding:14px 26px;
  font-size:0.95rem;
  font-weight:500;
  transition:background .2s;
  border:none;
  cursor:pointer;
  font-family:'IBM Plex Sans', sans-serif;
  display:inline-block;
}
.btn-primary:hover{background:#c6a06c;}
.btn-secondary{
  border:1px solid var(--rule);
  padding:14px 26px;
  font-size:0.95rem;
  color:var(--text);
  transition:border-color .2s;
  display:inline-block;
}
.btn-secondary:hover{border-color:var(--text-muted);}

/* Ledger panel */
.ledger{
  background:var(--surface);
  border:1px solid var(--rule);
}
.ledger-head{
  padding:18px 24px;
  border-bottom:1px solid var(--rule);
  font-size:0.8rem;
  color:var(--text-muted);
}
.ledger-row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:20px 24px;
  border-bottom:1px solid var(--rule);
  gap:16px;
}
.ledger-row:last-child{border-bottom:none;}
.ledger-row .label{font-size:0.95rem; color:var(--text);}
.ledger-row .value{
  font-family:'Source Serif 4', serif;
  font-size:1.05rem;
  color:var(--brass);
  text-align:right;
  white-space:nowrap;
}

/* ---------- Pillars ---------- */
.pillars{border-bottom:1px solid var(--rule);}
.pillar{
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:48px;
  padding:64px 0;
}
.pillar + .pillar{border-top:1px solid var(--rule);}
.pillar-index{font-family:'Source Serif 4', serif; font-style:italic; color:var(--text-muted); font-size:1rem;}
.pillar h2{font-size:1.9rem; margin-top:8px; max-width:12ch;}
.pillar-body p{color:var(--text-muted); max-width:52ch; margin-bottom:18px;}
.pillar-list{display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:20px;}
.pillar-list div{font-size:0.9rem; color:var(--text); padding-left:14px; position:relative;}
.pillar-list div::before{content:''; position:absolute; left:0; top:0.5em; width:6px; height:1px; background:var(--brass);}

/* ---------- Inventory ---------- */
.inventory{padding:80px 0; border-bottom:1px solid var(--rule);}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:40px; flex-wrap:wrap; gap:16px;}
.section-head h2{font-size:1.9rem;}
.section-head p{color:var(--text-muted); max-width:40ch; font-size:0.95rem;}

.car-table{width:100%; border-collapse:collapse;}
.car-table thead th{
  text-align:left; font-weight:500; font-size:0.78rem; color:var(--text-muted);
  padding:0 16px 14px; border-bottom:1px solid var(--rule);
}
.car-table tbody td{padding:20px 16px; border-bottom:1px solid var(--rule); font-size:0.95rem; vertical-align:middle;}
.car-table tbody tr{cursor:pointer; transition:background .15s;}
.car-table tbody tr:hover{background:var(--surface);}
.car-name{font-family:'Source Serif 4', serif; font-size:1.1rem; color:var(--text);}
.car-tag{display:inline-block; font-size:0.72rem; color:var(--steel); border:1px solid var(--steel); padding:2px 8px; margin-top:6px;}
.car-price{font-family:'Source Serif 4', serif; color:var(--brass); font-size:1.05rem; text-align:right;}
.car-table td:last-child, .car-table th:last-child{text-align:right;}
.car-link{color:var(--brass); font-size:0.85rem; white-space:nowrap;}

.inventory-note{margin-top:28px; font-size:0.85rem; color:var(--text-muted); font-style:italic;}

/* ---------- Trust ---------- */
.trust{padding:80px 0; border-bottom:1px solid var(--rule);}
.trust-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:0; border-top:1px solid var(--rule);}
.trust-item{padding:32px; border-right:1px solid var(--rule); border-bottom:1px solid var(--rule);}
.trust-item:last-child{border-right:none;}
.trust-item h3{font-size:1.15rem; margin-bottom:10px; font-weight:500;}
.trust-item p{color:var(--text-muted); font-size:0.92rem;}

/* ---------- Contact ---------- */
.contact{padding:80px 0;}
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
.contact h2{font-size:1.9rem; margin-bottom:20px;}
.contact p{color:var(--text-muted); max-width:42ch; margin-bottom:32px;}
.contact-detail{padding:16px 0; border-top:1px solid var(--rule);}
.contact-detail:last-child{border-bottom:1px solid var(--rule);}
.contact-detail .k{font-size:0.78rem; color:var(--text-muted); margin-bottom:4px;}
.contact-detail .v{font-size:1rem; color:var(--text);}

.form{display:flex; flex-direction:column; gap:18px;}
.form label{font-size:0.8rem; color:var(--text-muted); margin-bottom:6px; display:block;}
.form input, .form textarea{
  width:100%; background:var(--surface); border:1px solid var(--rule); color:var(--text);
  padding:13px 14px; font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem;
}
.form input:focus, .form textarea:focus{outline:none; border-color:var(--brass);}
.form textarea{resize:vertical; min-height:100px;}
.form button{align-self:flex-start; margin-top:6px;}
.form-status{font-size:0.88rem; color:var(--text-muted); min-height:1.2em;}
.form-status.success{color:var(--brass);}
.form-status.error{color:#c17a6a;}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--rule); padding:32px 0;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:0.82rem; color:var(--text-muted);}

/* ---------- Car detail page ---------- */
.detail-hero{padding:56px 0 48px; border-bottom:1px solid var(--rule);}
.back-link{font-size:0.85rem; color:var(--text-muted); display:inline-flex; align-items:center; gap:8px; margin-bottom:28px;}
.back-link:hover{color:var(--brass);}
.detail-head{display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap;}
.detail-head h1{font-size:clamp(1.9rem, 3.5vw, 2.6rem);}
.detail-meta{color:var(--text-muted); margin-top:10px; font-size:0.95rem;}
.detail-price{font-family:'Source Serif 4', serif; font-size:2rem; color:var(--brass); text-align:right; white-space:nowrap;}

.detail-body{padding:64px 0;}
.detail-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:64px; align-items:start;}
.detail-desc p{color:var(--text-muted); margin-bottom:18px; max-width:58ch;}
.spec-table{width:100%; border-top:1px solid var(--rule); margin-top:32px;}
.spec-row{display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--rule); font-size:0.92rem;}
.spec-row .k{color:var(--text-muted);}
.spec-row .v{color:var(--text);}

.inquire-panel{background:var(--surface); border:1px solid var(--rule); padding:28px;}
.inquire-panel h3{font-size:1.2rem; margin-bottom:8px;}
.inquire-panel p{color:var(--text-muted); font-size:0.9rem; margin-bottom:20px;}

.booking-bar{
  background:var(--surface);
  border:1px solid var(--rule);
  border-top:2px solid var(--brass);
  padding:28px 32px;
  margin-top:-1px;
  position:relative;
  z-index:5;
}
.booking-head{margin-bottom:20px;}
.booking-head h2{font-size:1.4rem;}
.booking-head p{color:var(--text-muted); font-size:0.9rem; margin-top:6px;}

.booking-toggle{display:flex; gap:8px; margin-bottom:20px;}
.booking-toggle .pill{padding:8px 16px;}

.booking-fields{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:16px;
  align-items:end;
}
.booking-field{display:flex; flex-direction:column; gap:6px;}
.booking-field label{font-size:0.78rem; color:var(--text-muted);}
.booking-field input,
.booking-field select{
  background:var(--ink);
  border:1px solid var(--rule);
  color:var(--text);
  padding:11px 12px;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:0.9rem;
}
.booking-field input:focus,
.booking-field select:focus{outline:none; border-color:var(--brass);}
.booking-diff-location{
  grid-column:1 / -1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.booking-diff-toggle{
  background:none; border:none;
  color:var(--brass);
  font-size:0.82rem;
  cursor:pointer;
  text-align:left;
  padding:0;
  grid-column:1 / -1;
}
.booking-diff-toggle:hover{text-decoration:underline;}
.booking-contact-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
}
.booking-submit-row{
  margin-top:20px;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.booking-submit-row button{
  border:none; cursor:pointer;
}
.booking-status{font-size:0.85rem; color:var(--text-muted);}
.booking-status.success{color:var(--brass);}
.booking-status.error{color:#c17a6a;}

@media (max-width:900px){
  .booking-fields{grid-template-columns:1fr 1fr;}
  .booking-contact-row{grid-template-columns:1fr;}
}
@media (max-width:600px){
  .booking-fields{grid-template-columns:1fr;}
}

@media (max-width:860px){
  .nav-links{display:none;}
  .menu-btn{display:block;}
  .hero-grid{grid-template-columns:1fr;}
  .pillar{grid-template-columns:1fr; gap:20px;}
  .trust-grid{grid-template-columns:1fr;}
  .trust-item{border-right:none;}
  .contact-grid{grid-template-columns:1fr;}
  .car-table{font-size:0.85rem;}
  .car-table thead th:nth-child(3), .car-table tbody td:nth-child(3){display:none;}
  .detail-grid{grid-template-columns:1fr;}
  .detail-head{flex-direction:column;}
  .detail-price{text-align:left;}
}
