/* Corvian Collection — site styles. Palette and type per the Corvian Brand Guidelines. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/BodoniModa-opsz.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/BodoniModa-opsz-Italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --black: #0D0C0B;
  --graphite: #1A1918;
  --line: #2A2927;
  --parchment: #F2EDE4;
  --champagne: #B8A07A;
  --bronze: #6E5C3E;
  --smoke: #8E877C;
  --display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--parchment);
  font-family: var(--text); font-weight: 300; font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--champagne); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--champagne); }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }
::selection { background: var(--champagne); color: var(--black); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--parchment); color: var(--black); padding: 10px 16px; }
.skip:focus { left: 12px; }

/* ── Type ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; font-optical-sizing: auto; letter-spacing: -.005em; }
h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--parchment); max-width: 38em; }
.muted { color: var(--smoke); }
.italic { font-family: var(--display); font-style: italic; font-weight: 400; }
.label {
  font-family: var(--text); font-weight: 400; font-size: 12px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--champagne); margin: 0 0 22px; display: block;
}
.label--smoke { color: var(--smoke); }
.rule { width: 56px; height: 1px; background: var(--champagne); border: 0; margin: 28px 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px;
  font: 400 12px/1 var(--text); letter-spacing: .32em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--champagne); color: var(--parchment); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--champagne); color: var(--black); }
.btn--solid { background: var(--champagne); color: var(--black); }
.btn--solid:hover { background: var(--parchment); border-color: var(--parchment); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.link-arrow { font: 400 12px/1 var(--text); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; color: var(--champagne); display: inline-flex; gap: 12px; align-items: center; padding: 14px 0; }
.link-arrow::after { content: ""; width: 34px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.link-arrow:hover::after { width: 54px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(13, 12, 11, .94); border-bottom-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 230px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 44px; align-items: center; }
.nav a { font: 400 12px/1 var(--text); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; padding: 12px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: .32em; bottom: 4px; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--parchment); }
.nav .nav-enquire { color: var(--champagne); }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; color: var(--parchment); cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 7px auto; transition: transform .3s var(--ease), opacity .3s; }
.is-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.is-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header: 72px; }
  .brand { width: 176px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; background: var(--black);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 400 30px/1.2 var(--display); letter-spacing: 0; text-transform: none; padding: 18px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ── Sections ─────────────────────────────────────────── */
main { display: block; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--parchment { background: var(--parchment); color: var(--black); }
.section--parchment .label { color: var(--bronze); }
.section--parchment .muted { color: #5E594F; }
.section--parchment .btn { color: var(--black); border-color: var(--black); }
.section--parchment .btn:hover { background: var(--black); color: var(--parchment); }
.section--parchment a:hover { color: var(--bronze); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }

/* ── Home hero ─────────────────────────────────────────── */
.hero { padding: calc(var(--header) + clamp(48px, 8vw, 110px)) 0 0; }
.hero h1 { max-width: 11ch; }
.hero-figure { margin: clamp(48px, 7vw, 96px) 0 0; position: relative; }
.hero-figure picture, .hero-figure img { width: 100%; }
.hero-figure img { aspect-ratio: 1200 / 797; object-fit: cover; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.hero-caption .label { margin: 0; }
.hero-caption .car { font-family: var(--display); font-size: 22px; }
.hero-caption .meta { color: var(--smoke); font-size: 15px; letter-spacing: .04em; }

/* ── Feature (currently offered) ─────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 11px/1.4 var(--text); letter-spacing: .32em; text-transform: uppercase; color: var(--smoke); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 18px; }

/* ── Image strip ─────────────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 700px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip img { aspect-ratio: 3 / 2; } }

/* ── Principles ─────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.principles article { border-top: 1px solid var(--champagne); padding-top: 28px; }
.principles h3 { margin-bottom: 14px; }
.principles p { color: var(--smoke); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ── Contact band ─────────────────────────────────────────── */
.contact-lines { display: grid; gap: 6px; margin-top: 8px; }
.contact-lines a { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); text-decoration: none; width: fit-content; }

/* ── Page header ─────────────────────────────────────────── */
.page-head { padding: calc(var(--header) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { max-width: 14ch; }
.page-head .lead { margin-top: 28px; }
.crumbs { font: 400 11px/1.4 var(--text); letter-spacing: .32em; text-transform: uppercase; color: var(--smoke); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 10px; color: var(--line); }

/* ── Collection cards ─────────────────────────────────────────── */
.card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; text-decoration: none; color: inherit; }
.card:hover { color: inherit; }
.card .media { overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.025); }
.card h2 { font-size: clamp(32px, 3.6vw, 52px); }
.card .meta { color: var(--smoke); margin: 14px 0 0; }
@media (max-width: 860px) { .card { grid-template-columns: minmax(0, 1fr); } }

/* ── Car page ─────────────────────────────────────────── */
.car-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 40px; }
.car-head .sub { color: var(--smoke); font-size: 17px; letter-spacing: .04em; margin: 18px 0 0; }
.car-lead { margin-top: clamp(32px, 4vw, 56px); }
.car-lead img { width: 100%; }
.car-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.car-body .prose p { color: var(--parchment); }
.panel { background: var(--graphite); padding: 32px; position: sticky; top: calc(var(--header) + 24px); }
.panel .price { font-family: var(--display); font-size: 30px; margin: 2px 0 6px; }
.panel .facts { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.panel .facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.panel .facts dt { margin: 3px 0 0; }
.panel .facts dd { text-align: right; font-size: 16px; }
.panel .btn { width: 100%; }
.panel .btn-row { margin-top: 28px; gap: 12px; }
@media (max-width: 960px) { .car-body { grid-template-columns: minmax(0, 1fr); } .panel { position: static; } }

.spec { width: 100%; border-collapse: collapse; margin-top: 28px; }
.spec th, .spec td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font: 400 11px/1.6 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--smoke); width: 42%; padding-right: 20px; }
.spec td { font-size: 17px; }
.note { font-size: 14px; color: var(--smoke); margin-top: 16px; }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.options h3 { font: 400 11px/1.6 var(--text); letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); margin-bottom: 16px; }
.options ul { list-style: none; margin: 0; padding: 0; }
.options li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.options li span { color: var(--smoke); }
@media (max-width: 960px) { .options { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ── Gallery ─────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
.gallery button { padding: 0; border: 0; background: var(--graphite); cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(13, 12, 11, .97); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(92vw, 1200px); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--smoke); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; text-align: center; margin-top: 18px; }
.lb-btn { position: absolute; width: 56px; height: 56px; border: 1px solid var(--line); background: rgba(13,12,11,.6); color: var(--parchment); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--champagne); color: var(--champagne); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* ── Forms ─────────────────────────────────────────── */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 400 11px/1.4 var(--text); letter-spacing: .32em; text-transform: uppercase; color: var(--smoke); }
.field input, .field select, .field textarea {
  font: 300 18px/1.5 var(--text); color: var(--parchment); background: transparent; border: 0; border-bottom: 1px solid #4A4743;
  padding: 10px 0 12px; border-radius: 0; width: 100%; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--champagne) 50%), linear-gradient(135deg, var(--champagne) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.field select option { background: var(--graphite); color: var(--parchment); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--champagne); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--smoke); grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--champagne); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: 16px; }
.form-status.is-error { color: #E0A28A; }
.form-status.is-ok { color: var(--champagne); }
.form .btn { justify-self: start; }
@media (max-width: 700px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ── Prose pages ─────────────────────────────────────────── */
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 56px 0 18px; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--champagne); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-brand { width: 210px; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { font: 400 11px/1 var(--text); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; color: var(--smoke); padding: 8px 0; }
.footer-nav a:hover { color: var(--champagne); }
.footer-contact { margin-top: 32px; display: flex; gap: 8px 32px; flex-wrap: wrap; }
.footer-contact a { text-decoration: none; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--smoke); font-size: 12px; letter-spacing: .08em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
.legal a { color: var(--smoke); }
@media (max-width: 700px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ── Motion ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Refinements ─────────────────────────────────────────── */
.split--feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split--feature { grid-template-columns: minmax(0, 1fr); } }
.gallery { grid-auto-flow: dense; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.contact-lines a, .footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 520px) { .contact-lines a { font-size: 19px; } }
