/* ============================================================
   Cartrex Rentals — main.css
   Navy #155263 · Gold #FFC93C · Truganina, Melbourne VIC
   ============================================================ */

/* ─── Reset & base ─────────────────────────────────────────── */
:root {
  --navy:       #155263;
  --navy-deep:  #0E3C49;
  --navy-dark:  #0A2C35;
  --gold:       #FFC93C;
  --gold-dark:  #E8AE12;
  --gold-lt:    #FFF8E1;
  --concrete:   #F5F4F0;
  --paper:      #FAFAF8;
  --steel:      #577481;
  --line:       rgba(21,82,99,0.15);
  --line-soft:  rgba(21,82,99,0.08);
  --max:        1180px;
  --radius:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy-dark);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4,h5 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Eyebrow label ────────────────────────────────────────── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width:18px; height:2px; background:currentColor; display:inline-block; }
.eyebrow.on-dark { color: var(--gold); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: var(--navy-dark); font-weight: 600; }
.btn-primary:hover  { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,201,60,.35); }
.btn-navy     { background: var(--navy); color: #fff; }
.btn-navy:hover     { background: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.btn-ghost:hover    { border-color: #fff; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover  { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-block    { width: 100%; justify-content: center; }

/* ─── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ─── SITE HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto; gap: 20px;
}
.site-logo img { height: 40px; width: auto; }
.site-logo .site-title { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy-dark); padding: 8px 12px; border-radius: 4px;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--gold-lt); color: var(--navy); }

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  min-width: 200px; padding: 6px 0; box-shadow: 0 12px 32px rgba(21,82,99,.12);
  z-index: 200;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 9px 16px; font-size: .76rem; border-radius: 0; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  font-family: 'IBM Plex Mono', monospace; font-size: .83rem;
  color: var(--navy); border: 1.5px solid var(--navy);
  padding: 8px 14px; border-radius: 30px;
  display: flex; align-items: center; gap: 6px;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: 72px 0 88px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin: 16px 0 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead {
  font-size: 1.05rem; color: rgba(255,255,255,.78);
  max-width: 480px; margin-bottom: 28px; text-transform: none;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.hero-photo img { width: 100%; height: 380px; object-fit: cover; }
.hero-photo-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(10,44,53,.9), transparent);
  padding: 30px 18px 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem;
  letter-spacing: .05em; color: rgba(255,255,255,.8);
}

/* ─── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip { background: var(--concrete); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-plate {
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: .76rem;
  color: var(--navy-dark); background: #fff;
  border-top: 3px solid var(--gold); padding: 12px 14px;
}

/* ─── GENERIC SECTIONS ─────────────────────────────────────── */
section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 14px; color: var(--navy); }
.section-head p { color: var(--steel); margin-top: 14px; text-transform: none; font-size: 1rem; }

/* ─── VEHICLE GRID ─────────────────────────────────────────── */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -10px rgba(21,82,99,.18); }
.vehicle-card-code {
  background: var(--navy); color: var(--gold);
  font-family: 'IBM Plex Mono', monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 8px 16px;
}
.vehicle-card-body { padding: 20px; }
.vehicle-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.vehicle-card-body p { color: var(--steel); font-size: .92rem; margin-bottom: 14px; text-transform: none; }
.vehicle-card-body .rate {
  font-family: 'Big Shoulders Display', sans-serif; font-size: 1.6rem;
  font-weight: 700; color: var(--navy-dark); margin-bottom: 14px;
}
.vehicle-card-body .rate span { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; font-weight: 400; color: var(--steel); text-transform: none; }

/* ─── DEALS STRIP ──────────────────────────────────────────── */
.deals-strip { background: var(--navy-dark); color: #fff; padding: 0; }
.deals-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.deal-block { padding: 40px 32px; border-right: 1px solid rgba(255,255,255,.1); }
.deal-block:last-child { border-right: none; }
.deal-pct {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 4rem; font-weight: 800; color: var(--gold); line-height: 1;
  margin-bottom: 6px;
}
.deal-block h3 { font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.deal-block p { color: rgba(255,255,255,.68); font-size: .92rem; text-transform: none; margin-bottom: 18px; }

/* ─── WHY CARTREX ──────────────────────────────────────────── */
.why-section { background: var(--navy); color: #fff; }
.why-section .section-head h2 { color: #fff; }
.why-section .section-head p  { color: rgba(255,255,255,.72); }
.why-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.why-photo { border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); }
.why-photo img { width: 100%; height: 380px; object-fit: cover; }
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 18px; }
.why-item svg { flex-shrink: 0; margin-top: 2px; }
.why-item h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; text-transform: none; font-family: 'Inter', sans-serif; font-weight: 700; }
.why-item p  { color: rgba(255,255,255,.68); font-size: .93rem; text-transform: none; }

/* ─── PROCESS STEPS ────────────────────────────────────────── */
.process-section { background: var(--concrete); }
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.process-connector {
  position: absolute; top: 23px; left: 6%; right: 6%;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--steel) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; padding-right: 16px; }
.process-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--navy);
  margin-bottom: 18px; position: relative; z-index: 2;
}
.process-step h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); text-transform: none; font-family: 'Inter',sans-serif; font-weight: 700; }
.process-step p  { color: var(--steel); font-size: .9rem; text-transform: none; }

/* ─── BOOKING EMBED ────────────────────────────────────────── */
.booking-section { background: var(--paper); }
.booking-hero-strip {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; text-align: center;
  padding: 3rem 2rem 2.5rem;
}
.booking-hero-strip h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.booking-hero-strip p  { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto; text-transform: none; }
.booking-trust {
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
  padding: 1rem 2rem;
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: .74rem;
  color: var(--navy); letter-spacing: .04em;
}
#rcm-booking-wrapper { max-width: 1180px; margin: 0 auto; padding: 0 0 2rem; }
.rcm-loading-state { text-align: center; padding: 3rem 1rem; color: var(--steel); font-size: .95rem; }
.rcm-spinner {
  width: 40px; height: 40px; border: 3px solid var(--concrete);
  border-top-color: var(--navy); border-radius: 50%;
  animation: rcm-spin .7s linear infinite; margin: 0 auto 1rem;
}
@keyframes rcm-spin { to { transform: rotate(360deg); } }
#rcm-frame { width: 100%; border: none; display: block; }

/* ─── REVIEWS ──────────────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 80px 1fr; position: relative;
}
.review-card::before { content: ""; position: absolute; left: 80px; top: 0; bottom: 0; border-left: 1.5px dashed var(--line); }
.review-card::after  { content: ""; position: absolute; left: 80px; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); transform: translate(-50%, -50%); }
.review-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 6px; font-family: 'IBM Plex Mono', monospace; font-size: .62rem;
  text-align: center; color: var(--steel); letter-spacing: .04em; gap: 4px;
}
.review-stub strong { color: var(--navy); font-size: .9rem; font-family: 'Inter', sans-serif; }
.review-body { padding: 20px 22px 20px 28px; }
.review-body blockquote { font-size: .94rem; margin-bottom: 12px; }
.review-body cite { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; color: var(--steel); font-style: normal; }

/* ─── B2B BAND ─────────────────────────────────────────────── */
.biz-band {
  background: var(--gold); color: var(--navy-dark);
  border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 0.7fr;
}
.biz-text { padding: 48px; }
.biz-text h2 { color: var(--navy-dark); font-size: 1.8rem; margin-bottom: 14px; }
.biz-text p  { color: rgba(14,44,53,.8); text-transform: none; font-size: 1rem; margin-bottom: 22px; }
.biz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.biz-photo { position: relative; min-height: 280px; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 18px 0; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--navy-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: 'IBM Plex Mono', monospace; font-size: 1.3rem; color: var(--gold-dark); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 20px; color: var(--steel); max-width: 680px; text-transform: none; }

/* ─── FINAL CTA ────────────────────────────────────────────── */
.final-cta { background: var(--navy-dark); color: #fff; text-align: center; padding: 84px 0; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.final-cta p  { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 28px; text-transform: none; }
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── SITE FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #0A1E25; color: rgba(255,255,255,.62);
  padding: 56px 0 28px; font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 14px; }
.footer-blurb { color: rgba(255,255,255,.5); font-size: .88rem; max-width: 270px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem;
  flex-wrap: wrap; gap: 8px;
}

/* ─── MOBILE STICKY BAR ────────────────────────────────────── */
.mobile-call-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy-dark); padding: 10px 16px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.2);
}
.mobile-call-bar .mcb-inner { display: flex; gap: 10px; }
.mobile-call-bar a { flex: 1; text-align: center; }

/* ─── INNER PAGE (Elementor) overrides ─────────────────────── */
.elementor-page .site-content { padding: 0; }
.elementor-page.page-booking-template header.site-header { display: none; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner, .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-inner  { grid-template-columns: 1fr; }
  .deal-block   { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust-row    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .biz-band     { grid-template-columns: 1fr; }
  .biz-photo    { min-height: 220px; }
  .review-grid  { grid-template-columns: 1fr; }
  .process-row  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .process-connector { display: none; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 6px;
    transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto; border-top: 1px solid var(--line);
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: .9rem; padding: 10px 8px; width: 100%; }
  .main-nav .sub-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: block; }
  .hamburger { display: block; }
  .header-phone, .header-cta .btn { display: none; }
  section { padding: 52px 0; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .process-row  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 64px; }
}
