/* Plymouth Car Boutique — preview styles
   Palette: matte black, silver, rose gold.
   Headings: thin elegant serif. Body: clean sans. */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #161616;
  --black-elevated: #1c1c1c;
  --silver: #cfcfcf;
  --silver-bright: #e8e6e3;
  --silver-dim: #8a8680;
  --rose: #c9a07c;
  --rose-bright: #e0c4a8;
  --rose-deep: #9a7359;
  --line: rgba(201, 160, 124, 0.38);
  --line-subtle: rgba(232, 230, 227, 0.1);
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --sold: #8b1e1e;
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.75rem;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-bright);
  text-decoration: none;
}

a:hover {
  color: var(--silver-bright);
}

button,
input,
select {
  font: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--silver-bright);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--rose);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
}

.site-header__inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--silver-bright);
  text-decoration: none;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1;
  min-width: 0;
}

.logo-wordmark__loc {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 0.38em;
  white-space: nowrap;
}

.logo-wordmark__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: var(--rose-bright);
  line-height: 0.95;
  margin-top: 0.08rem;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--silver-bright);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle__bars {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars span { top: 50%; }
.nav-toggle__bars::before { top: 3px; }
.nav-toggle__bars::after { bottom: 3px; }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.4rem;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--silver-bright);
  padding: 0.7rem 0.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-subtle);
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--rose-bright);
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.25rem 3.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 160, 124, 0.1), transparent 55%),
    var(--black);
  overflow: hidden;
}

.hero__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem auto 2.15rem;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
}

.hero__wordmark-loc {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.68rem, 1.7vw, 1.05rem);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 0.48em;
  margin: 0 0 0.15rem;
}

.hero__wordmark-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 11vw, 6.4rem);
  letter-spacing: 0.01em;
  color: var(--rose-bright);
  line-height: 0.92;
  margin: 0;
}

.hero__swoosh {
  display: block;
  width: min(36rem, 92vw);
  height: auto;
  margin: 0.15rem auto 0.85rem;
  color: var(--rose);
}

.hero__wordmark-tag {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.62rem, 1.5vw, 0.82rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 0.36em;
  margin: 0;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(18rem, 70%);
  margin: 0.35rem auto 1.25rem;
  color: var(--rose);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.7;
}

.ornament__diamond {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--rose);
  flex-shrink: 0;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.hero__tagline {
  font-size: clamp(1.85rem, 6.5vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.03em;
  margin: 0 0 0.7rem;
  color: var(--silver-bright);
}

.hero__note {
  margin: 0 0 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__actions--left {
  justify-content: flex-start;
}

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--rose);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  background: transparent;
  color: var(--rose-bright);
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  background: var(--rose);
  color: var(--black);
  border-color: var(--rose);
}

.btn--solid {
  background: var(--rose);
  color: var(--black);
  border-color: var(--rose);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--rose-bright);
  border-color: var(--rose-bright);
  color: var(--black);
}

.btn--ghost {
  border-color: var(--silver-dim);
  color: var(--silver-bright);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--silver-bright);
  background: var(--silver-bright);
  color: var(--black);
}

.btn--small {
  padding: 0.62rem 0.9rem;
  font-size: 0.66rem;
  width: 100%;
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Layout sections
   ------------------------------------------------------------------ */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--black-soft);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.section__lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

/* Smart money / Why Cat N
   ------------------------------------------------------------------ */
.smart-grid {
  display: grid;
  gap: 2.25rem;
}

.smart-points {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.smart-point {
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--line-subtle);
  background: var(--black-card);
}

.smart-point h3 {
  font-size: 1.55rem;
  margin: 0 0 0.7rem;
}

.smart-point p {
  margin: 0 0 0.85em;
  color: var(--text-muted);
}

.smart-point p:last-of-type {
  margin-bottom: 0;
}

.smart-uses {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.smart-uses li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line-subtle);
  color: var(--silver);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.smart-uses svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--rose);
  flex-shrink: 0;
}

.smart-compare-wrap {
  margin: 0 0 2.5rem;
  overflow-x: auto;
}

.smart-compare-wrap figcaption {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--silver-bright);
  margin: 0 0 0.9rem;
}

.smart-compare {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.smart-compare th,
.smart-compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}

.smart-compare thead th {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rose);
  border-bottom: 1px solid var(--line);
}

.smart-compare tbody th {
  font-weight: 500;
  color: var(--silver-bright);
  width: 28%;
}

.smart-compare td {
  color: var(--text-muted);
  width: 36%;
}

.smart-compare tbody tr:last-child th,
.smart-compare tbody tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 860px) {
  .smart-points {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.smart-copy {
  max-width: 42rem;
}

.smart-copy p {
  color: var(--text-muted);
  margin: 0 0 1em;
}

.smart-copy p:last-child {
  margin-bottom: 0;
}


.smart-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.smart-steps li {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line-subtle);
  background: var(--black-card);
}

.smart-steps__num {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.smart-steps h3 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.smart-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .smart-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: start;
  }

  .smart-steps {
    gap: 0.9rem;
  }
}

.preview-note {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--rose-bright);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: rgba(201, 160, 124, 0.06);
}

/* Filters
   ------------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line-subtle);
  background: transparent;
  color: var(--silver);
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--rose);
  color: var(--rose-bright);
}

.filter-btn.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--black);
}

.filter-blurb {
  min-height: 1.5em;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.stock-meta {
  color: var(--silver-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

/* Cards
   ------------------------------------------------------------------ */
.stock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--line);
}

.card--sold {
  opacity: 0.92;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0d0d;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__ribbon {
  position: absolute;
  top: 1.1rem;
  left: -2.1rem;
  background: var(--sold);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 2.6rem;
  transform: rotate(-45deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.badge-catn[hidden] {
  display: none !important;
}

.badge-catn {
  display: inline-block;
  border: 1px solid var(--rose);
  color: var(--rose-bright);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.28rem 0.5rem;
  background: rgba(201, 160, 124, 0.08);
  line-height: 1.3;
}

.card__media .badge-catn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  background: rgba(10, 10, 10, 0.82);
}

.card__body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.card__title {
  font-size: 1.45rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.card__title-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--silver-bright);
}

.card__title-btn:hover,
.card__title-btn:focus-visible {
  color: var(--rose-bright);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs li:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
  color: var(--rose-deep);
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.price-block {
  border-top: 1px solid var(--line-subtle);
  padding-top: 0.85rem;
}

.price-block__ask {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--silver-bright);
  line-height: 1;
}

.badge-save {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--rose);
  background: rgba(201, 160, 124, 0.14);
  color: var(--rose-bright);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}

.price-block__forecourt {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.price-block__forecourt strong {
  color: var(--silver);
  font-weight: 500;
}

.card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sold-note {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-subtle);
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--silver-dim);
}

.viewing-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.viewing-note a {
  color: var(--rose-bright);
}

.viewing-note a:hover {
  color: var(--silver-bright);
}

/* Empty state
   ------------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  color: var(--text-muted);
}

/* About / contact
   ------------------------------------------------------------------ */
.split {
  display: grid;
  gap: 2rem;
}

.about p,
.contact-panel p {
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-subtle);
}

.contact-list .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-list a,
.contact-list address,
.contact-list span:not(.label):not(.placeholder-missing) {
  font-style: normal;
  color: var(--silver-bright);
  font-size: 1.05rem;
}

.visit-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.placeholder-missing {
  color: var(--silver-dim);
  font-style: italic;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 320px;
  border: 1px solid var(--line);
  background: var(--black-card);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}

.map-frame iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.map-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p.site-footer__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 1.25rem;
  line-height: 1;
}

.site-footer__wordmark-loc {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 0.44em;
}

.site-footer__wordmark-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.15rem;
  letter-spacing: 0.01em;
  color: var(--rose-bright);
  line-height: 0.95;
  margin-top: 0.12rem;
}

.site-footer__wordmark-tag {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 0.34em;
  margin-top: 0.55rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.3rem;
}

.site-footer__legal {
  margin-top: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--silver-dim);
}

/* Modal
   ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.modal__dialog {
  position: relative;
  width: min(1080px, calc(100% - 1.25rem));
  max-height: calc(100vh - 1.5rem);
  margin: 0.75rem auto;
  background: var(--black-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.8);
  color: var(--silver-bright);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--black);
  background: var(--rose);
  border-color: var(--rose);
}

.gallery {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 10;
  touch-action: pan-y;
}

.gallery__main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.7);
  color: var(--silver-bright);
  cursor: pointer;
}

.gallery__nav:hover,
.gallery__nav:focus-visible {
  background: var(--rose);
  color: var(--black);
  border-color: var(--rose);
}

.gallery__nav--prev { left: 0.6rem; }
.gallery__nav--next { right: 0.6rem; }

.gallery__thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  background: #000;
  overflow-x: auto;
}

.gallery__thumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: #111;
  cursor: pointer;
  width: 4.5rem;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
}

.gallery__thumbs button.is-active,
.gallery__thumbs button:hover,
.gallery__thumbs button:focus-visible {
  border-color: var(--rose);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__body {
  padding: 1.25rem 1.2rem 1.75rem;
}

.modal__body .badge-catn {
  margin-bottom: 0.7rem;
}

.modal__body .card__title {
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}

.modal__enquire {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.modal__enquire .btn {
  flex: 1 1 10rem;
}

body.modal-open {
  overflow: hidden;
}

/* Focus
   ------------------------------------------------------------------ */
:focus-visible {
  outline: 1px solid var(--rose-bright);
  outline-offset: 3px;
}

/* Desktop
   ------------------------------------------------------------------ */
@media (min-width: 760px) {
  .logo-wordmark__loc {
    font-size: 0.58rem;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }

  .logo-wordmark__name {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav a {
    padding: 0;
    border: 0;
  }

  .hero {
    padding: 3.5rem 1.5rem 5rem;
    min-height: calc(100vh - var(--header-h));
    justify-content: center;
  }

  .hero__wordmark {
    margin: 0 auto 0.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .map-frame {
    height: 380px;
  }

  .modal__dialog {
    margin: 2.5rem auto;
    max-height: calc(100vh - 5rem);
    height: min(40rem, calc(100vh - 5rem));
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .modal__close {
    grid-column: 2;
    grid-row: 1;
  }

  .modal__media {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    background: #000;
    position: relative;
  }

  .gallery {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .gallery__thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
  }

  .modal__body {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    padding: 1.6rem 3.4rem 1.8rem 1.8rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__body .card__title,
  .modal__body .specs,
  .modal__body .stock-meta,
  .modal__body #modal-desc,
  .modal__body #modal-price,
  .modal__enquire {
    align-self: stretch;
    width: 100%;
  }

  .modal__enquire {
    margin-top: auto;
    padding-top: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .stock-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 4th card (sold example) sits neatly on its own row without stretching */
  .stock-grid .card:nth-child(4):last-child {
    grid-column: 1;
  }
}

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