﻿/* =====================================================================
   Model / content page sections.
   Loaded after styles.css, which owns the palette, header and footer.
   Metrics and colours taken from the live model-page stylesheet:
   sections sit on #f7f7f7, copy is the warm brown #756659, and the
   sticky in-page navbar is #756659 with white text.
   ===================================================================== */

:root {
  --m-brown: var(--ink);      /* kept as an alias; section copy is ink now */
  --m-section: var(--paper);
  --m-card: #fff;
}

/* ---------- Hero ---------- */

.m-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.m-hero > img { width: 100%; height: auto; display: block; }
.m-hero-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 150px 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.m-hero-tagline { height: 30px; padding-top: 15px; margin-bottom: 10px; }
.m-hero-tagline img { width: auto; height: 100%; }
.m-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 54px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.03;
  max-width: 18ch;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}
.m-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* Award badge (white artwork) in the lower right, opposite the copy. */
.m-hero-award {
  position: absolute;
  right: 150px;
  bottom: 70px;
  width: clamp(200px, 20vw, 320px);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .5));
}
.m-hero-award img { display: block; width: 100%; height: auto; }

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 2.6rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: normal;
  white-space: nowrap;
  background: var(--signal);
  color: #fff;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  border: 2px solid var(--signal);
}
.m-btn:hover { background: var(--signal-deep); border-color: var(--signal-deep); transform: translateY(-2px); }
.m-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .65); }
.m-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Sticky model navbar ---------- */

.m-navbar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  width: 100%;
  position: sticky;
  top: calc(var(--header-h) + 3px);
  height: 62px;
  display: flex;
  align-items: center;
  z-index: 20;
}
.m-navbar .container { width: 100%; }
.m-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Hard-capped so an oversized nameplate can never spill out of the sticky
   bar and follow the reader down the page. */
.m-navbar-name {
  flex: 0 0 auto;
  max-width: 190px;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.m-navbar-name img,
.m-navbar-name svg {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.m-navbar-name svg path { fill: #fff; }
.m-navbar-name-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.m-navbar-menu { display: flex; align-items: center; }
.m-navbar-menu a {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
  transition: opacity .2s;
  padding: 20px 16px;
  position: relative;
}
.m-navbar-menu a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 12px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform .2s;
}
.m-navbar-menu a:hover, .m-navbar-menu a.active { opacity: 1; }
.m-navbar-menu a.active::after { transform: scaleX(1); }
.m-navbar-price {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.m-navbar-price b { font-weight: 600; font-size: 17px; letter-spacing: 0; color: var(--signal); }
.m-navbar-select { display: none; }
.m-navbar-select select {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}
.m-navbar-select select option { color: #1e1e1e; }

/* ---------- Section shell ---------- */

/* Sections carry the background so banners can run full-bleed while the
   text blocks inside stay inset, matching the live layout. */
.m-section { width: 100%; background-color: var(--m-section); padding-bottom: 100px; }
.m-block { width: 100%; position: relative; padding: 100px 150px 0; }
.m-block + .m-block { padding-top: 0; }

/* Section head: mono tag with a signal rule, then a signage-scale line. */
.m-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.m-eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--signal); }
.m-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  max-width: 20ch;
}
.m-text { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 70ch; line-height: 1.65; }

/* ---------- Stat callouts ---------- */

.m-stats { display: flex; align-items: center; margin-top: 60px; flex-wrap: wrap; }
/* Spec ledger: label above, mono figure below, signal rule on top. */
.m-stat {
  margin-right: 70px;
  padding-top: 16px;
  border-top: 3px solid var(--signal);
  min-width: 200px;
}
.m-stat-title { font-size: 14px; color: var(--muted); }
.m-stat-content { display: flex; align-items: baseline; margin-top: 10px; gap: 6px; }
.m-stat-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.m-stat-unit { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- Block media ---------- */

.m-media { margin-top: 60px; width: 100%; }
.m-media img, .m-media video {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  border-radius: 0;
}

/* ---------- Full-bleed banner ---------- */

.m-banner { position: relative; width: 100%; overflow: hidden; margin-top: 60px; }
.m-banner > img { width: 100%; height: auto; display: block; }
.m-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 100px 150px 60px;
  /* Tall, strong ramp so specs stay legible over bright imagery. */
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .78));
  color: #fff;
}
.m-banner-specs { display: flex; gap: 20px 60px; flex-wrap: wrap; }
.m-banner-specs .spec { min-width: 0; }
.m-banner-specs .spec-value {
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.m-banner-specs .spec-label { font-size: 14px; opacity: .82; margin-top: 6px; }

.m-ping { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.m-ping i {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .3);
}
.m-ping::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  animation: mPing 2.2s ease-out infinite;
}
@keyframes mPing {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Feature carousel ---------- */

.m-carousel { margin-top: 90px; }
.m-carousel-viewport { overflow: hidden; }
.m-carousel-track { display: flex; gap: 26px; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.m-slide { flex: 0 0 calc((100% - 52px) / 3); min-width: 0; }
.m-slide-media { width: 100%; }
.m-slide-media img, .m-slide-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 767 / 593;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  border-radius: 0;
  display: block;
}
.m-slide-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-top: 18px;
  line-height: 1.25;
  padding-left: 14px;
  border-left: 3px solid var(--signal);
  color: var(--ink);
}

.m-carousel-nav { display: flex; align-items: center; margin-top: 50px; gap: 22px; }
.m-nav-btn {
  width: 56px; height: 56px;
  border: 1px solid #000;
  border-radius: 50%;
  background: none;
  display: flex; align-items: center; justify-content: center;
  transition: all .5s;
  color: #000;
}
.m-nav-btn:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.m-nav-btn[disabled] { opacity: .25; cursor: default; }
.m-nav-btn[disabled]:hover { background: none; border-color: #000; color: #000; }
.m-dots { display: flex; gap: 8px; margin-left: auto; }
.m-dot { width: 30px; height: 2px; background: var(--ink); opacity: .3; transition: all .3s; padding: 0; }
.m-dot.active { width: 60px; opacity: 1; }

/* ---------- Grids ---------- */

.m-grid-wrap { padding: 100px 150px 0; }
.m-grid-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  max-width: 24ch;
  margin-bottom: 50px;
}
.m-grid { display: grid; gap: 26px; }
.m-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-grid-item {
  position: relative;
  background: #ececec;
  border-radius: 0;
  padding: 34px 30px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.m-grid-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-grid-item.has-img { color: #fff; }
.m-grid-item.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .65));
}
.m-grid-item > *:not(img) { position: relative; z-index: 1; }
.m-grid-item h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; text-transform: capitalize; }
.m-grid-stats { display: flex; flex-wrap: wrap; gap: 20px 38px; }
.m-grid-stat-value { font-size: 24px; font-weight: 600; line-height: 1.1; }
.m-grid-stat-label { font-size: 13px; opacity: .8; margin-top: 3px; }

/* ---------- Colour picker ---------- */

.m-colours { padding: 100px 150px 0; text-align: center; }
.m-colours h2 {
  font-size: 39px;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
  margin-bottom: 10px;
}
.m-colour-name { font-size: 20px; color: var(--ink); margin-bottom: 30px; min-height: 26px; }
.m-colour-car { max-width: 1200px; margin: 0 auto 36px; }
.m-colour-car img { width: 100%; height: auto; }
.m-swatches { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.m-swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.m-swatch i { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.m-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color .3s, transform .3s;
}
.m-swatch.active::after { border-color: var(--accent); transform: scale(1.1); }

/* ---------- Tabbed features ---------- */

.m-tabs { padding: 60px 150px 0; }
.m-tabs-media { position: relative; border-radius: 0; overflow: hidden; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.m-tabs-media img { width: 100%; height: auto; display: block; }
.m-tab-strip { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 30px; border-top: 1px solid #ddd; }
.m-tab {
  padding: 22px 34px;
  font-size: 18px;
  color: var(--ink);
  opacity: .5;
  background: none;
  position: relative;
  transition: opacity .3s;
}
.m-tab::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s ease;
}
.m-tab.active { opacity: 1; }
.m-tab.active::after { width: 100%; }

/* ---------- Gallery ---------- */

.m-gallery { padding: 60px 150px 0; }
.m-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.m-gallery-grid a {
  display: block;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e9e7e4;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
}
.m-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.m-gallery-grid a:hover img { transform: scale(1.06); }

.m-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.m-lightbox.open { display: flex; }
.m-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.m-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.m-lightbox .lb-close { top: 24px; right: 24px; }
.m-lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.m-lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Pricing ---------- */

.m-pricing { width: 100%; padding: 100px 150px 0; }
.m-pricing .m-title { margin-bottom: 80px; }
.m-pricing-cards { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.m-card { flex: 1 1 30%; max-width: 30%; min-width: 280px; position: relative; }
.m-card-img { margin-bottom: -80px; position: relative; z-index: 1; }
.m-card-img img { width: 100%; height: auto; }
.m-card-body {
  background-color: var(--m-card);
  border-top: 4px solid var(--signal);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .08);
  padding: 92px 32px 34px;
  text-align: left;
}
.m-card-variant {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.m-card-price {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.m-card .m-btn { width: 100%; }

/* ---------- Reveal on scroll (class added by model.js) ---------- */

.m-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.m-reveal.m-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1450px) {
  .m-block, .m-grid-wrap, .m-pricing, .m-colours, .m-tabs, .m-gallery { padding-left: 70px; padding-right: 70px; }
  .m-hero-inner, .m-banner-overlay { padding-left: 70px; padding-right: 70px; }
  .m-hero-award { right: 70px; }
  .m-stat { margin-right: 120px; }
  .m-stat::after { right: -60px; }
}

@media (max-width: 1200px) {
  .m-slide { flex: 0 0 calc((100% - 26px) / 2); }
  .m-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-card { max-width: 46%; }
  .m-title, .m-grid-title { font-size: 30px; }
  .m-text { font-size: 20px; }
  .m-eyebrow { font-size: 15px; }
}

@media (max-width: 1005px) {
  .m-navbar-menu { display: none; }
  .m-navbar-select { display: block; flex: 1; max-width: 300px; }
}

@media (max-width: 767px) {
  .m-hero > img { min-height: 420px; object-fit: cover; }
  .m-hero-inner { padding: 0 25px 34px; gap: 12px; }
  .m-hero h1 { font-size: 22px; }
  .m-hero-ctas { width: 100%; flex-direction: column; }
  .m-btn { padding: 1.4rem 2rem; width: 100%; }
  /* The copy fills the bottom on phones, so the badge moves to the top —
     over sky, so it gets an ink backing to stay legible. */
  .m-hero-award {
    top: 16px;
    right: 16px;
    bottom: auto;
    width: 172px;
    padding: 8px 10px;
    background: rgba(20, 17, 24, .62);
    filter: none;
  }

  .m-navbar { height: auto; padding: 10px 0; }
  .m-navbar-inner { gap: 12px; }
  .m-navbar-name { max-width: 120px; }
  .m-navbar-price { font-size: 13px; }

  .m-block, .m-grid-wrap, .m-pricing, .m-colours, .m-tabs, .m-gallery { padding: 50px 25px 0; }
  .m-block:last-child, .m-grid-wrap, .m-pricing, .m-colours, .m-tabs, .m-gallery { padding-bottom: 50px; }
  .m-banner-overlay { padding: 24px 25px; }
  .m-banner-specs { gap: 22px; }

  .m-title, .m-grid-title { font-size: 24px; margin-top: 20px; }
  .m-eyebrow { font-size: 14px; }
  .m-text { font-size: 16px; margin-top: 10px; }
  .m-media, .m-banner { margin-top: 30px; }

  .m-stats { margin-top: 30px; gap: 20px; }
  .m-stat { margin-right: 30px; }
  .m-stat::after { right: -13px; height: 72%; }
  .m-stat-title { font-size: 12px; }
  .m-stat-num { font-size: 22px; }
  .m-stat-unit { font-size: 13px; margin-left: 4px; }

  .m-carousel { margin-top: 40px; }
  .m-slide { flex: 0 0 100%; }
  .m-slide-title { font-size: 14px; margin-top: 15px; padding-left: 7px; }
  .m-carousel-nav { margin-top: 26px; }
  .m-nav-btn { width: 44px; height: 44px; }

  .m-grid.cols-2, .m-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .m-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-tab { padding: 14px 18px; font-size: 14px; }

  .m-pricing .m-title { margin-bottom: 40px; }
  .m-card { max-width: 100%; flex: 1 1 100%; }
  .m-card-body { padding: 90px 24px 30px; }
  .m-card-price { font-size: 28px; }
  .m-card-variant { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-carousel-track { transition: none; }
  .m-ping::after { animation: none; }
  .m-reveal { opacity: 1; transform: none; transition: none; }
}

