:root {
  --dark: #241b12;
  --dark-2: #34271a;
  --brown: #6f4a24;
  --tan: #c6ad7a;
  --tan-light: #ead9b7;
  --cream: #fffaf0;
  --white: #ffffff;
  --black: #17120e;
  --green: #25d366;
  --shadow: 0 12px 30px rgba(35, 25, 15, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tan);
  color: var(--black);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.15;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.7rem, 7vw, 5rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
h3 { font-size: 1.45rem; }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--tan);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 900;
}
.brand span { color: var(--tan-light); }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 800;
}
.main-nav a:hover, .main-nav a.active { color: var(--tan-light); text-decoration: underline; }

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(28,20,13,.9) 0%, rgba(28,20,13,.72) 50%, rgba(28,20,13,.3) 100%),
    url('../images/apex-trailers-hero-1920x1080.jpg') center center / cover no-repeat;
  border-bottom: 4px solid var(--tan);
}
.hero-inner { max-width: 820px; padding: 90px 0; }
.hero h1, .hero p { color: var(--white); text-shadow: 0 3px 14px rgba(0,0,0,.75); }
.hero h1 span { color: var(--tan-light); }
.hero p { font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 800; }
.eyebrow {
  color: #5a3819;
  font-size: .92rem;
  font-weight: 900;
  text-transform: uppercase;
}
.hero .eyebrow, .page-hero .eyebrow, .checkout-card .eyebrow { color: var(--tan-light); }

.section { padding: 68px 0; background: var(--tan); }
.section.alt { background: var(--tan-light); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.section-head p { max-width: 650px; margin: 0; font-size: 1.05rem; }
.notice {
  margin-bottom: 30px;
  padding: 18px 20px;
  color: var(--black);
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 10px;
  font-size: 1.05rem;
}

.fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.trailer-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  border: 3px solid var(--tan-light);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.trailer-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.trailer-media img { width: 100%; height: 100%; object-fit: cover; }
.trailer-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: var(--white);
  background: var(--dark-2);
}
.trailer-placeholder strong { display: block; color: var(--tan-light); font-size: 2.2rem; }
.status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  color: var(--black);
  background: var(--tan-light);
  border: 2px solid var(--white);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 900;
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.card-code { color: var(--tan-light); font-size: 1.05rem; font-weight: 900; }
.card-body h3 { margin: 8px 0 18px; color: var(--white); font-size: 1.75rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.spec { padding: 13px; color: var(--white); background: var(--dark-2); border: 1px solid #766044; border-radius: 8px; }
.spec small { display: block; color: var(--tan-light); font-size: .82rem; font-weight: 700; }
.spec strong { display: block; color: var(--white); font-size: 1rem; }
.price-row { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 17px; border-top: 1px solid #8c7555; }
.price-row div:last-child { text-align: right; }
.price-row small { display: block; color: var(--tan-light); font-size: .88rem; }
.price-row strong { color: var(--white); font-size: 1.35rem; }
.card-body .btn { width: 100%; margin-top: 20px; }

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: var(--black);
  background: var(--tan-light);
  border: 2px solid var(--tan-light);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn.secondary { color: var(--white); background: transparent; border-color: var(--white); }
.btn.secondary:hover { color: var(--black); background: var(--white); }
.btn.dark { color: var(--white); background: var(--dark); border-color: var(--dark); }
.btn.dark:hover { background: var(--brown); border-color: var(--brown); }
.btn.whatsapp { color: #07170c; background: var(--green); border-color: var(--green); }

.price-list-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.55fr); gap: 28px; align-items: start; }
.preview-card, .info-card, .checkout-card {
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  border: 3px solid var(--tan);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.preview-card img { width: 100%; }
.info-card { padding: 28px; }
.info-card h3 { color: var(--white); }
.info-card li { margin-bottom: 8px; color: var(--white); }

.payment-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.payment-item {
  min-height: 150px;
  padding: 20px;
  color: var(--white);
  background: var(--dark);
  border: 2px solid var(--tan-light);
  border-radius: 10px;
}
.payment-item strong { display: block; margin-bottom: 6px; color: var(--tan-light); font-size: 1.05rem; }
.terms-download {
  margin-top: 22px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--black);
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 10px;
}
.terms-download h3 { margin-bottom: 7px; color: var(--black); }
.terms-download p { margin: 0; max-width: 760px; }

.page-hero {
  padding: 76px 0 50px;
  color: var(--white);
  background: var(--dark);
  border-bottom: 4px solid var(--tan);
}
.page-hero h1, .page-hero p { color: var(--white); }
.page-hero p { max-width: 800px; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); gap: 28px; align-items: start; }
.checkout-card { padding: 28px; }
.checkout-card h2, .checkout-card h3, .checkout-card label { color: var(--white); }
.checkout-card p, .summary-row span { color: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 800; }
input, select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--white);
  border: 2px solid #7f6d57;
  border-radius: 7px;
  font: inherit;
}
input:focus, select:focus { outline: 3px solid var(--tan-light); border-color: var(--dark); }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #8c7555; }
.summary-row strong { color: var(--white); }
.checkout-warning { padding: 14px; color: var(--black) !important; background: var(--tan-light); border-radius: 8px; font-weight: 800; }
.checkout-actions { display: grid; gap: 12px; margin-top: 20px; }

.faq { display: grid; gap: 14px; }
.faq details { padding: 18px 20px; color: var(--white); background: var(--dark); border: 2px solid var(--tan-light); border-radius: 9px; }
.faq summary { color: var(--white); cursor: pointer; font-weight: 900; }
.faq p { color: var(--white); margin-top: 12px; }

.site-footer { padding: 46px 0; color: var(--white); background: var(--dark); border-top: 3px solid var(--tan); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 30px; }
.site-footer h3, .site-footer p { color: var(--white); }
.footer-actions {
  display: grid;
  gap: 12px;
  max-width: 280px;
}
.footer-actions .contact-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-size: .95rem;
}
.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #07170c;
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.hidden { display: none !important; }

@media (max-width: 900px) {
  .fleet-grid, .price-list-grid, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
  .payment-strip { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 14px; }
  .terms-download { align-items: stretch; flex-direction: column; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .nav-wrap { min-height: 70px; }
  .main-nav { font-size: .9rem; gap: 10px; }
  .main-nav a:first-child { display: none; }
  .hero { min-height: 540px; }
  .hero-inner { padding: 65px 0; }
  .section { padding: 50px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .specs, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .payment-strip { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; }
  .price-row div:last-child { text-align: left; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .floating-wa { display: none; }
}

/* Business location map */
.location-section {
  padding: 68px 0;
  color: var(--black);
  background: var(--tan-light);
  border-top: 3px solid var(--dark);
}
.location-copy { margin-bottom: 24px; }
.location-copy h2 { color: var(--black); margin-bottom: 10px; }
.location-copy p { margin: 0; color: var(--black); font-size: 1.08rem; font-weight: 700; }
.map-frame {
  overflow: hidden;
  background: var(--cream);
  border: 3px solid var(--dark);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 650px) {
  .location-section { padding: 50px 0; }
  .map-frame iframe { height: 330px; }
}
