/* =========================================================
   Model 4 (/model4) — Model 3 layout with the home-page brass gold.
   Loads after styles.css. Only colors, layout pieces and the new sections live here.
   ========================================================= */
.m3 {
  --ink: #0b1220; --ink-rgb: 11,18,32; --ink-deep: #070c16; --slate: #121c30;
  --ivory: #f6f7f9; --ivory-rgb: 246,247,249;
  --gold: #b39762; --gold-dark: #a1864f; --gold-ink: #85692f;
  --brass: #b39762; --brass-soft: #cfb98c; --brass-ink: #85692f; --brass-rgb: 179,151,98;
  --paper: #f5f6f8; --line: #e2e5ea; --text: #0f172a; --muted: #5b6474;
}
.m3 body, .m3 { background: var(--ink); }
.m3 body { color: var(--ivory); }

/* Buttons */
.m3 .btn-gold, .m3 .btn-primary, .m3 .form-card .btn-primary, .m3 .section:not(.section-dark) .btn-primary { background: var(--gold); color: #0b1220; border-color: var(--gold); }
.m3 .btn-gold:hover, .m3 .btn-primary:hover, .m3 .form-card .btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.m3 .btn-primary::after { content: none; }
.m3 .btn-ghost { border-color: rgba(var(--ivory-rgb),.55); color: var(--ivory); }
.m3 .btn-ghost:hover { border-color: var(--ivory); background: rgba(var(--ivory-rgb),.08); }
.m3 .nav .btn-gold { background: var(--gold); color: #0b1220; border-color: var(--gold); }
.m3 .nav .btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.m3 .site-header { background: var(--ink); border-bottom-color: rgba(var(--ivory-rgb),.08); }
.m3 .brand-text em { color: var(--gold); }

/* Thin info bar under the menu */
.m3-bar { background: #0e1729; border-bottom: 1px solid rgba(var(--ivory-rgb),.08); font-size: .8rem; color: rgba(var(--ivory-rgb),.85); }
.m3-bar-row { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 9px; padding-bottom: 9px; }
.m3-bar-row > * { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.m3-bar svg { width: 14px; height: 14px; fill: var(--gold); flex: none; }
@media (max-width: 639px) { .m3-bar-row a:last-child { display: none; } }

/* Hero: two columns, photo right */
.m3-hero { background: var(--ink); color: var(--ivory); }
.m3-hero-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 40px; }
.m3-hero h1 { font-size: clamp(2.6rem, 12vw, 5.6rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin: 0 0 10px; }
.m3-hero h1 span { color: var(--gold); font-weight: 800; }
.m3-tagline { font-size: clamp(1.2rem, 5.3vw, 2.2rem); white-space: nowrap; font-weight: 500; font-stretch: var(--wide); line-height: 1.1; color: var(--ivory); margin: 0 0 12px; }
.m3-lead { font-size: 1.02rem; font-weight: 300; max-width: 32em; color: rgba(var(--ivory-rgb),.82); margin: 0; }
.m3-hero .cta-row { margin: 24px 0 0; }
.m3-hero .eyebrow { color: var(--gold); }
.m3-hero .eyebrow::before { background: var(--gold); }
/* Hero: photo behind, faded into the navy on the left (same feel as the home page) */
.m3-hero { position: relative; overflow: hidden; }
.m3-hero-media { position: relative; margin: 8px 0 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.m3-hero-media picture { display: block; }
.m3-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 55%; }

/* Stats bar: 7 cells with icons */
.m3-stats { position: relative; z-index: 3; background: #0e1729; border-top: 1px solid rgba(var(--ivory-rgb),.1); border-bottom: 1px solid rgba(var(--ivory-rgb),.1); }
.m3-stats-row { display: grid; grid-template-columns: 1fr 1fr; }
.m3-stats-row > div { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-bottom: 1px solid rgba(var(--ivory-rgb),.08); border-right: 1px solid rgba(var(--ivory-rgb),.08); }
.m3-stats-row > div:nth-child(2n) { border-right: 0; }
.m3-stats-row svg { width: 26px; height: 26px; fill: var(--gold); flex: none; }
.m3-stats-row strong { display: flex; align-items: baseline; gap: 7px; font-size: 1.35rem; font-weight: 700; line-height: 1; font-stretch: var(--wide); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m3-stats-row strong small { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.m3-stats-row span { display: block; margin-top: 4px; font-size: .68rem; line-height: 1.3; color: rgba(var(--ivory-rgb),.65); }

/* Sections: dark / light rhythm */
.m3 .section { padding: 64px 0; }
.m3-dark { background: var(--ink); color: var(--ivory); }
.m3-dark p { color: rgba(var(--ivory-rgb),.8); }
.m3-dark h2, .m3-dark h3 { color: var(--ivory); }
.m3-light { background: var(--paper); color: var(--text); }
.m3-light h2, .m3-light h3 { color: var(--text); }
.m3-light p, .m3-light .section-intro { color: var(--muted); }
.m3 .kicker { color: var(--gold); }
.m3-light .kicker { color: var(--gold-ink); }
.m3 .section-intro { margin-bottom: 28px; }
.m3-split { display: grid; gap: 28px; align-items: center; }
.m3-photo { border-radius: 14px; overflow: hidden; }
.m3-photo picture { display: block; }
.m3-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Services: 4 photo cards with icons */
.m3-services { background: var(--paper); color: var(--text); }
.m3-services h2 { color: var(--text); }
.m3-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m3-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -24px rgba(11,18,32,.5); }
.m3-card picture { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.m3-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m3-card-body { padding: 14px 14px 18px; }
.m3-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gold); margin: -36px 0 10px; position: relative; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.m3-ico svg { width: 22px; height: 22px; fill: #0b1220; }
.m3-card h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--text); }
.m3-card p { font-size: .82rem; font-weight: 300; margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.m3-card a { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; text-decoration: none; }

/* Info cells (authority) */
.m3-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 0 0 26px; }
.m3-info > div { display: flex; gap: 10px; align-items: flex-start; }
.m3-info svg { width: 26px; height: 26px; fill: var(--gold); flex: none; margin-top: 2px; }
.m3-info strong { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-stretch: var(--wide); }
.m3-info span { display: block; font-size: .82rem; color: rgba(var(--ivory-rgb),.7); }
.m3-dark .cta-row { margin: 0; }
.m3-light .facts { border-top-color: var(--line); }
.m3-light .facts > div { border-bottom-color: var(--line); }
.m3-light .facts dt { color: var(--muted); }
.m3-light .facts dd { color: var(--text); }

/* About values */
.m3-values { display: grid; gap: 12px; margin-top: 28px; }
.m3-values > div { background: #0e1729; border: 1px solid rgba(var(--ivory-rgb),.1); border-radius: 12px; padding: 18px; }
.m3-values svg { width: 28px; height: 28px; fill: var(--gold); margin-bottom: 8px; }
.m3-values h3 { font-size: 1.05rem; margin: 0 0 6px; }
.m3-values p { margin: 0; font-size: .85rem; font-weight: 300; }

/* Gallery on light background */
.m3 .gallery { background: var(--paper); gap: 4px; padding: 0 4px; }
.m3 .gallery picture { display: block; }
.m3 .gallery img { border-radius: 8px; filter: none; }
.m3 .gallery-section { padding-bottom: 32px; }

/* Drive with MAB: two cards */
.m3-drive { display: grid; gap: 16px; }
.m3-drive-card { background: #0e1729; border: 1px solid rgba(var(--ivory-rgb),.12); border-radius: 14px; padding: 22px; }
.m3-drive-card h3 { font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.m3-drive-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.m3-drive-card li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .95rem; }
.m3-drive-card li svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }

/* Quote: photo + form */
.m3-split-form { align-items: start; }
.m3-quote-side .m3-photo { margin-top: 10px; }
.m3 .form-card { border-top: 4px solid var(--gold); }
.m3 .form-status.ok { color: #1f7a3f; }

/* Contact */
.m3-contact { display: grid; gap: 12px; }
.m3-contact > * { display: flex; align-items: center; gap: 14px; color: var(--ivory); text-decoration: none; font-weight: 500; }
.m3-contact svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--gold); fill: #0b1220; flex: none; }

/* Footer + sticky bar */
.m3 .site-footer { background: var(--ink-deep); }
.m3 .authority strong, .m3 .site-footer .brand-text em { color: var(--gold); }
.m3 .action-bar { background: rgba(11,18,32,.97); }
.m3 .action-bar .btn-primary { background: var(--gold); color: #0b1220; }

@media (min-width: 640px) {
  .m3-stats-row { grid-template-columns: repeat(4, 1fr); }
  .m3-stats-row > div:nth-child(2n) { border-right: 1px solid rgba(var(--ivory-rgb),.08); }
  .m3-values { grid-template-columns: repeat(3, 1fr); }
  .m3-drive { grid-template-columns: 1fr 1fr; }
  .m3-hero .cta-row { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .m3 .section { padding: 96px 0; }
  .m3-hero-grid { grid-template-columns: 1fr; align-items: center; min-height: calc(100vh - 205px); padding-top: 96px; padding-bottom: 96px; }
  .m3-hero-text { position: relative; z-index: 2; max-width: 640px; }
  .m3-hero-grid { position: relative; }
  .m3-hero-media { position: absolute; inset: 0 calc(50% - 50vw) 0 38%; margin: 0; z-index: 0; border-radius: 0; box-shadow: none; }
  .m3-hero-media picture, .m3-hero-media img { width: 100%; height: 100%; }
  .m3-hero-media img { aspect-ratio: auto; object-position: 22% 50%; }
  .m3-hero-media::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, var(--ink) 0%, rgba(var(--ink-rgb),.92) 8%, rgba(var(--ink-rgb),.35) 22%, rgba(var(--ink-rgb),0) 36%),
    linear-gradient(0deg, rgba(var(--ink-rgb),.75) 0%, transparent 35%); }
  .m3-hero h1 { font-size: clamp(3.6rem, 5.8vw, 6rem); }
  .m3-tagline { font-size: 2.1rem; }
  .m3-stats-row { grid-template-columns: repeat(7, 1fr); }
  .m3-stats-row > div { border-bottom: 0; padding: 16px 12px; }
  .m3-stats-row > div:last-child { border-right: 0; }
  .m3-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .m3-card-body { padding: 18px 20px 22px; }
  .m3-ico { width: 46px; height: 46px; margin-top: -42px; }
  .m3-split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .m3-split-form { grid-template-columns: 1fr 1.3fr; }
  .m3 .gallery { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 6px; }
  .m3-drive-card { padding: 30px; }
  .m3-values { gap: 20px; }
}

/* Authority: photo as a faded background on wide screens (phones keep the rounded photo) */
@media (min-width: 960px) {
  .m3-fade { position: relative; overflow: hidden; }
  .m3-fade .m3-split { grid-template-columns: 1fr; position: static; }
  .m3-fade .m3-split > div:first-child { position: relative; z-index: 2; max-width: 600px; }
  .m3-fade .m3-photo { position: absolute; inset: 0 0 0 42%; margin: 0; border-radius: 0; z-index: 0; }
  .m3-fade .m3-photo picture, .m3-fade .m3-photo img { width: 100%; height: 100%; }
  .m3-fade .m3-photo img { aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; }
  .m3-fade .m3-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(11,18,32,.92) 10%, rgba(11,18,32,.35) 28%, rgba(11,18,32,0) 45%),
                linear-gradient(0deg, rgba(11,18,32,.6) 0%, rgba(11,18,32,0) 30%),
                linear-gradient(180deg, rgba(11,18,32,.6) 0%, rgba(11,18,32,0) 30%); }
}
.m3-values-section { padding: 0 0 56px; }
.m3-values-section .m3-values { margin-top: 0; }


/* Model 4: About photo shows more of the fleet, short fade */
@media (min-width: 960px) {
  #about .m3-split > div:first-child { max-width: 560px; }
  #about .m3-photo { inset: 0 0 0 44%; }
  #about .m3-photo img { object-position: 0% 50%; }
  #about .m3-photo::after {
    background: linear-gradient(90deg, var(--ink) 0%, rgba(11,18,32,.85) 5%, rgba(11,18,32,.25) 11%, rgba(11,18,32,0) 16%),
                linear-gradient(0deg, rgba(11,18,32,.5) 0%, rgba(11,18,32,0) 25%),
                linear-gradient(180deg, rgba(11,18,32,.5) 0%, rgba(11,18,32,0) 25%); }
}

/* Model 4: uniform stats cells */
.m3-stats-row > div { align-items: flex-start; }
.m3-stats-row svg { margin-top: 2px; }
.m3-stats-row strong { font-size: 1.25rem; }
.m3-stats-row strong small { letter-spacing: .08em; }
.m3-stats-row span { min-height: 2.6em; }
@media (min-width: 960px) {
  .m3-stats-row > div { padding: 16px 10px; }
  .m3-stats-row strong { font-size: 1.2rem; }
}
@media (max-width: 959px) {
  .m3-stats-row > div, .m3-stats-row > div > div { min-width: 0; }
  .m3-stats-row strong { white-space: normal; flex-wrap: wrap; font-size: 1.1rem; gap: 5px; }
  .m3-stats-row span { min-height: 0; }
}
@media (min-width: 960px) { .m3-stats-row { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .m3-stats-row { grid-template-columns: repeat(3, 1fr); } .m3-stats-row > div:nth-child(3n) { border-right: 0; } }

/* Model 4: bigger service cards (row spreads wider than the text column) */
@media (min-width: 960px) {
  .m3-services .m3-cards { width: min(calc(100vw - 48px), 1480px); position: relative; left: 50%; transform: translateX(-50%); gap: 22px; }
  .m3-services .m3-card picture { aspect-ratio: 4 / 3; }
  .m3-services .m3-card-body { padding: 20px 22px 24px; }
}

/* Narrow desktop windows: keep the menu clear of the logo */
@media (min-width: 960px) {
  /* the logo never shrinks, the menu scales with the window, and nothing can overlap */
  .m3 .header-row { gap: 24px; }
  .m3 .brand { flex: none; }
  .m3 .nav { flex: 0 1 auto; margin-left: auto; gap: clamp(10px, 1.5vw, 28px); }
  .m3 .nav a:not(.btn) { font-size: clamp(.62rem, .72vw, .78rem); letter-spacing: clamp(.08em, .12vw, .14em); }
  .m3 .nav .btn-sm { padding-left: clamp(12px, 1.4vw, 22px); padding-right: clamp(12px, 1.4vw, 22px); }
}
@media (min-width: 960px) and (max-width: 1259px) {
  .m3 .brand-text em { display: none; }
}

/* Menu: Drive with MAB in brass */
.m3 .nav a.nav-drive { color: var(--gold); }
.m3 .nav a.nav-drive:hover { color: var(--gold-dark); }
/* Service cards: gentle photo zoom on hover (mouse devices, desktop only) */
@media (hover: hover) and (min-width: 960px) {
  .m3-card img { transition: transform .6s ease; will-change: transform; }
  .m3-card:hover img { transform: scale(1.12); }
}
.m3-card p { margin-bottom: 0; }

/* Contact: full photo as a faded background, truck kept on the right */
@media (min-width: 960px) {
  #contact .m3-photo { inset: 0 0 0 40%; }
  #contact .m3-photo img { object-position: 70% 50%; }
}

.m3-contact small { display: inline-block; margin-left: 8px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* Quote section: shorter and wider form */
#quote.section { padding: 56px 0 64px; }
#quote .form-card { padding: 26px 22px; }
#quote fieldset { margin-bottom: 14px; }
#quote legend { margin-bottom: 10px; }
#quote .fields { gap: 12px 14px; margin-bottom: 14px; }
#quote .field { gap: 5px; }
#quote textarea { min-height: 72px; }
#quote .fine { margin-top: 10px; }
@media (min-width: 960px) {
  .m3-split-form { grid-template-columns: 1fr 1.7fr; gap: 40px; }
  #quote .form-card { padding: 30px 32px; }
  #quote .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #quote .fields .full { grid-column: 1 / -1; }
  #quote .info-fields .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
