@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #f5f2ea;
  --paper: #fcfaf4;
  --forest: #243b32;
  --deep: #182d25;
  --moss: #4f6156;
  --sand: #d4b58c;
  --sage: #e6ebe2;
  --line: #cbd2c7;
  --gutter: clamp(1rem, 4vw, 4.25rem);
  --shell: 81rem;
  --display: Manrope, Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font: 400 1rem/1.6 var(--body);
}
[hidden] { display: none !important; }
img { display: block; width: 100%; }
figure, dl, dd, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: .16rem solid #925c29; outline-offset: .23rem; }
section:focus { outline: none; }

.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 6.5vw, 6.5rem); }
.section[id] { scroll-margin-top: 4.75rem; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  background: var(--paper);
}
.skip-link:focus { transform: none; }

h1, h2, h3, .wordmark {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.055em;
}
h1 { font-size: clamp(3.25rem, 5.7vw, 5.75rem); }
h2 { font-size: clamp(2.45rem, 4.35vw, 4.5rem); }
h3 { font-size: clamp(1.45rem, 2.35vw, 2.1rem); line-height: 1.15; letter-spacing: -.042em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .22rem;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  transition: background-color .18s, color .18s;
}
.button-green { background: var(--forest); color: var(--paper); }
.button-green:not(:disabled):hover { background: #39574b; }
.button-sand { background: var(--sand); color: var(--deep); }
.button-sand:hover { background: #eccaa0; }
.button:disabled { opacity: .55; }
.text-link, .hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .27em;
}
.text-link:hover, .hero-link:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.65rem;
}
.wordmark { width: fit-content; font-size: clamp(1.125rem, 1.8vw, 1.52rem); white-space: nowrap; }
.wordmark span { font-weight: 650; }
#main-nav, .header-actions, .footer-layout nav { display: flex; align-items: center; }
#main-nav { gap: clamp(1rem, 2.6vw, 2.6rem); }
#main-nav a, .footer-layout nav a { font-size: .9375rem; font-weight: 600; }
#main-nav a:hover, .footer-layout nav a:hover { text-decoration: underline; text-underline-offset: .24em; }
.header-actions { justify-content: flex-end; gap: .45rem; }
.header-quote { min-height: 2.75rem; padding-inline: .9rem; white-space: nowrap; }
.menu-toggle, #main-nav .mobile-quote { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.24fr);
  align-items: stretch;
  margin-top: 1.05rem;
  background: var(--forest);
  color: var(--paper);
}
.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5.15vw, 5.15rem) clamp(2rem, 4.6vw, 4.8rem);
}
.hero-copy p {
  max-width: 32ch;
  margin-block: 1.4rem 1.7rem;
  color: #dbe5d9;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
}
.hero-actions, .model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.25rem; }
.hero-link { text-decoration-color: #dfc6a3; }
.hero :focus-visible { outline-color: #ffe1b6; }
.hero-photo { display: flex; flex-direction: column; background: var(--deep); }
.hero-photo img {
  flex: 1;
  height: auto;
  aspect-ratio: 1.21;
  object-fit: cover;
  object-position: 50% 54.8%;
}
.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .9rem;
  padding: .68rem 1.05rem;
  color: var(--paper);
  font-size: .875rem;
  line-height: 1.4;
}
.hero-photo figcaption span:last-child { flex: none; color: #e4c9a7; }

.models { padding-top: clamp(2.8rem, 5vw, 4.6rem); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .64fr);
  align-items: end;
  gap: .75rem clamp(1.4rem, 4vw, 4rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.65rem);
}
.section-heading p { max-width: 34ch; color: var(--moss); }
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.5vw, 2.25rem);
}
.model { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.model-photo { aspect-ratio: 1.21; background: #dddacf; overflow: hidden; }
.model-photo img { height: 100%; object-fit: cover; }
.low-exterior img { object-position: 50% 54%; }
.pop-exterior img { object-position: 50% 54.8%; }
.model-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: .62rem;
  padding-block: 1.1rem 1.45rem;
}
.model-body p { max-width: 52ch; color: var(--moss); }
.model-actions { margin-top: auto; padding-top: .52rem; }
.model-actions .button { min-height: 2.75rem; }
.model-actions .text-link { text-decoration-color: #947853; }

.comparison { background: var(--sage); }
.comparison h2 { max-width: 13ch; }
.compare-table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.compare-table col:first-child { width: 31%; }
.compare-table th, .compare-table td {
  padding: .82rem clamp(.65rem, 2.35vw, 1.85rem);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.compare-table thead th {
  background: var(--forest);
  color: var(--paper);
  font: 760 clamp(1rem, 2vw, 1.75rem)/1.25 var(--display);
  letter-spacing: -.025em;
}
.compare-table thead th:first-child { font: 650 .9375rem/1.35 var(--body); letter-spacing: 0; }
.compare-table small { display: block; margin-top: .25rem; color: #dce5d8; font: 500 .875rem/1.3 var(--body); }
.compare-table tbody tr:not(:last-child) > * { border-bottom: 1px solid var(--line); }
.compare-table tbody th { font-weight: 620; color: var(--moss); }
.compare-table .battery-row { background: #ece3d1; }
.compare-table strong { font-weight: 700; white-space: nowrap; }

.interiors { background: var(--paper); }
.gallery-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: .3rem;
  padding: .27rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  background: var(--ivory);
}
.gallery-switch button {
  min-height: 2.75rem;
  padding: .38rem .9rem;
  border: 0;
  border-radius: .22rem;
  background: transparent;
  font-weight: 650;
}
.gallery-switch button:hover { background: var(--sage); }
.gallery-switch button[aria-selected="true"] { background: var(--forest); color: var(--paper); }
.interior-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .72fr);
  border: 1px solid var(--line);
  background: var(--ivory);
}
.interior-main img {
  height: auto;
  aspect-ratio: 1.52;
  object-fit: cover;
  object-position: 50% 50%;
  background: #d9d6cb;
}
.interior-main figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .7rem;
  padding: clamp(1.05rem, 3.6vw, 3.8rem);
}
#photo-model { color: var(--moss); font-size: .875rem; font-weight: 650; }
#photo-title { font: 800 clamp(1.65rem, 3vw, 2.8rem)/1.12 var(--display); letter-spacing: -.045em; }
#photo-description { max-width: 34ch; color: var(--moss); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; }
.thumb {
  display: grid;
  grid-template-columns: minmax(3.2rem, 6rem) 1fr;
  align-items: center;
  gap: .65rem;
  padding: .32rem .5rem .32rem .32rem;
  border: 1px solid var(--line);
  border-radius: .23rem;
  background: var(--paper);
  text-align: left;
  font-size: .9375rem;
  font-weight: 630;
  line-height: 1.26;
}
.thumb:hover { background: var(--sage); }
.thumb[aria-pressed="true"] { border-color: var(--forest); background: var(--sage); }
.thumb img { aspect-ratio: 1.56; object-fit: cover; }

.export { padding-block: clamp(3.5rem, 5.4vw, 5.4rem); }
.export h2 { max-width: 15ch; }
.export-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem clamp(1rem, 2vw, 1.85rem);
}
.export-list div { padding-top: .9rem; border-top: 1px solid #99a89b; }
.export-list dt { margin-bottom: .28rem; font: 750 1.12rem/1.3 var(--display); }
.export-list dd { max-width: 40ch; color: var(--moss); }

.quote { background: var(--forest); color: var(--paper); }
.quote-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(1.5rem, 5vw, 5.8rem); }
.quote-intro { align-self: start; padding-block: .6rem; }
.quote-intro p { max-width: 31ch; margin-top: 1rem; color: #dce5d8; }
.quote-form { min-width: 0; padding: clamp(1.1rem, 3.4vw, 3rem); background: var(--paper); color: var(--forest); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.fields label { min-width: 0; font-size: .9375rem; font-weight: 650; }
.fields .wide { grid-column: 1 / -1; }
.optional { font-size: .875rem; font-weight: 400; color: var(--moss); }
.fields input, .fields select, .fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  margin-top: .35rem;
  padding: .55rem .67rem;
  border: 1px solid #a7b2a7;
  border-radius: .16rem;
  background-color: #fffefd;
  color: var(--deep);
  font-size: 1rem;
  font-weight: 400;
}
.fields select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: right 1rem center, right .7rem center;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
}
.fields textarea { resize: vertical; }
.form-action { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.15rem; }
.form-action p { color: var(--moss); font-size: .875rem; }

.site-footer { background: var(--deep); color: var(--paper); }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5.9rem; }
.footer-layout nav { flex-wrap: wrap; gap: .7rem 1.4rem; }
.site-footer :focus-visible { outline-color: #ffe1b6; }

#quote-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--forest);
}
#quote-dialog::backdrop { background: rgb(12 25 19 / 62%); }
.dialog-inner { padding: clamp(1.25rem, 5vw, 2.25rem); }
.dialog-inner h2 { font-size: clamp(1.85rem, 5.5vw, 2.6rem); }
.dialog-inner > p { margin-top: .6rem; color: var(--moss); }
#enquiry-summary { display: grid; grid-template-columns: minmax(5rem, .58fr) minmax(0, 1fr); gap: .45rem .75rem; margin-block: 1.05rem 1.35rem; }
#enquiry-summary dt { font-weight: 650; }
#enquiry-summary dd { overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 830px) {
  .header-layout { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; min-height: 4rem; }
  .section[id] { scroll-margin-top: 4.1rem; }
  #main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem var(--gutter) .9rem;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 .65rem 1rem rgb(24 45 37 / 10%);
  }
  #main-nav.is-open { display: flex; }
  #main-nav a { padding: .72rem .25rem; border-bottom: 1px solid var(--line); }
  #main-nav .mobile-quote { display: block; }
  .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .32rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .22rem;
    background: transparent;
  }
  .menu-toggle span { display: block; width: 1.1rem; height: 2px; background: var(--forest); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(.22rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.22rem) rotate(-45deg); }
}

@media (max-width: 700px) {
  .hero { width: 100%; grid-template-columns: 1fr; margin-top: 0; }
  .hero-copy { padding: 2.25rem var(--gutter) 1.85rem; }
  h1 { font-size: clamp(3rem, 10vw, 4.65rem); }
  .hero-copy p { margin-block: .95rem 1.06rem; }
  .hero-photo img { flex: auto; aspect-ratio: 1.17; }
  .hero-photo figcaption { padding-inline: var(--gutter); }
  .section-heading, .model-grid, .interior-main, .quote-layout { grid-template-columns: 1fr; }
  .section-heading p { max-width: 40ch; }
  .model-grid { gap: 1.65rem; }
  .model-body { padding-bottom: 1.25rem; }
  .compare-table thead th:first-child, .compare-table th, .compare-table td { font-size: .875rem; }
  .compare-table thead th { font-size: 1rem; }
  .compare-table small { font-size: .8125rem; }
  .compare-table th, .compare-table td { padding: .66rem .55rem; }
  .interior-main figcaption { gap: .38rem; }
  .thumbs { gap: .42rem; }
  .thumb { grid-template-columns: 1fr; align-content: start; gap: .38rem; padding: .28rem; font-size: .85rem; }
  .thumb span { padding: 0 .1rem .15rem; }
  .export-list { grid-template-columns: 1fr; }
  .footer-layout { flex-direction: column; align-items: flex-start; padding-block: 1.45rem; }
}

@media (max-width: 430px) {
  .fields { grid-template-columns: 1fr; }
  .header-quote { padding-inline: .6rem; font-size: .8125rem; }
}

@media (max-width: 350px) {
  .header-quote { display: none; }
  .hero-actions { column-gap: .85rem; }
  .compare-table th, .compare-table td { padding-inline: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
