@import url("../shared/required-fields.css");

@import url("site-header.css");
@import url("footer.css");
@import url("finance-calculator.css");

:root {
  color-scheme: light;
  --ink: #14242a;
  --ink-deep: #102027;
  --muted: #57656a;
  --paper: #f7f6f2;
  --white: #fff;
  --line: #dce0dc;
  --amber: #f2bb69;
  --amber-hover: #ffd491;
  --wrap: 1200px;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #9a5a06; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--amber); }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 4; padding: 10px 14px; background: var(--amber); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; gap: 15px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: .92rem; font-weight: 700; white-space: nowrap; }
.button span, .text-button span, .car-link span { font-size: 1.08em; line-height: 1; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #294149; }
.button-amber { background: var(--amber); color: #1d2525; }
.button-amber:hover { background: var(--amber-hover); }
.button-outline { border-color: #d5dedc90; background: #13232b62; color: #fff; }
.button-outline:hover { background: #334a52b0; }

.hero { position: relative; isolation: isolate; background: #15252d; color: #fff; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(90deg, #14252dfc 2%, #14252de9 26%, #14252d45 58%, #14252d00 85%),
    linear-gradient(0deg, #13242b71, transparent 38%),
    url("assets/hero.png"),
    url("assets/land-rover-discovery-sport-l550.webp");
  background-size: cover;
  background-position: center, center, center 56%, center 50%;
}
.hero-inner { min-height: 504px; display: flex; align-items: center; padding-block: 60px 116px; }
.hero-content { max-width: 690px; position: relative; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 4.45vw, 4.65rem); line-height: 1.05; font-weight: 700; letter-spacing: -.057em; }
.hero h1 span { color: #ffd294; }
.hero p { color: #eef0ed; margin: 23px 0 28px; font-size: clamp(1rem, 1.4vw, 1.16rem); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.journey { margin-top: -66px; position: relative; z-index: 1; scroll-margin-top: 18px; }
.journey-panel { background: var(--white); border: 1px solid #e6e7e0; border-radius: 13px; box-shadow: 0 12px 30px #172b2110, 0 2px 4px #172b2107; }
.tabs { display: flex; align-items: stretch; padding: 0 26px; gap: 17px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 3px solid transparent; padding: 17px 14px 13px; background: transparent; color: var(--muted); font-weight: 700; }
.tabs button[aria-selected="true"] { border-color: #bb7625; color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.tabs button:focus-visible { outline-offset: -4px; }
.journey-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 16px; padding: 22px 26px 26px; }
.journey-form .field, .stock-filter-grid .field { min-width: 0; display: grid; gap: 7px; color: var(--ink); font-weight: 680; font-size: .84rem; }
:is(.journey-form, .stock-filter-grid) :is(select, input) { width: 100%; min-width: 0; height: 49px; border: 1px solid #cfd5d1; border-radius: 7px; background: #fcfcfb; color: var(--ink); padding: 0 12px; font-size: .93rem; font-weight: 540; }
.search-select { position: relative; }
.search-select input { padding-right: 30px; }
.search-select input::placeholder { color: var(--ink); opacity: 1; }
.search-select::after { content: ""; position: absolute; top: 18px; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.search-select-popup { position: absolute; top: calc(100% + 5px); inset-inline: 0; z-index: 2; max-height: min(16rem, 42dvh); overflow-y: auto; overscroll-behavior: contain; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 26px #172b2126; }
.search-select-popup [role="option"], .search-select-empty { padding: 9px 8px; overflow-wrap: anywhere; font-size: .88rem; font-weight: 540; }
.search-select-popup [role="option"] { cursor: pointer; border-radius: 4px; }
.search-select-popup [role="option"]:is(:hover, [aria-selected="true"]) { background: #f7ecd8; }
.search-select-empty { color: var(--muted); }
.journey-form button { min-height: 49px; }
.booking-panel-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px 26px; }
.booking-panel-content p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }

.stock-section { padding-block: 57px 62px; }
.vehicle-page.stock-page { padding-block: 16px 36px; }
.stock-page .vehicle-heading { margin-bottom: 12px; }
.stock-page .vehicle-heading h1 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
.stock-page .journey-form { gap: 10px 12px; padding: 12px 16px; }
.stock-page .journey-form :is(select, input, button) { height: 44px; min-height: 44px; }
.stock-page .journey-form .search-select::after { top: 16px; }
.stock-page .stock-section { padding-block: 20px 0; }
.stock-page .stock-heading { margin-bottom: 14px; }
.stock-page .stock-heading h2 { font-size: clamp(1.25rem, 2.3vw, 1.85rem); }
.stock-extra-filters { padding: 0 16px 12px; }
.stock-extra-filters summary { width: fit-content; cursor: pointer; font-size: .89rem; font-weight: 700; }
.stock-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); align-items: end; gap: 14px; padding-top: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { margin: 0; font-size: clamp(1.85rem, 3.2vw, 2.78rem); line-height: 1.07; letter-spacing: -.046em; }
.section-heading p { margin: 9px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.text-button { border: 0; background: transparent; padding: 5px 0; color: inherit; font-weight: 700; font-size: .89rem; text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.text-button:hover { color: #885309; }
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.car-card { background: var(--white); border: 1px solid #e1e4dd; border-radius: 11px; overflow: hidden; }
.car-card img { width: 100%; aspect-ratio: 1.7; height: auto; object-fit: cover; object-position: center 53%; background: #e2e5e3; }
.vehicle-photo-frame { position: relative; }
.vehicle-stamp {
  position: absolute;
  inset-block-start: .9rem;
  inset-inline-end: .85rem;
  border: 3px double currentColor;
  border-radius: 4px;
  padding: .25rem .5rem;
  color: #9b1c23;
  background: #fffaf6;
  font-size: clamp(.68rem, 1.1vw, .92rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}
.vehicle-stamp-available { color: #1b633c; background: #f5fff7; }
.car-body { padding: 18px; }
.car-body h3 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.31rem); line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.car-specs { margin: 8px 0 17px; color: var(--muted); font-size: .85rem; }
.car-specs span { margin-inline: 3px; }
.car-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid #e8eae6; }
.car-bottom strong { font-size: 1.39rem; letter-spacing: -.035em; }
.car-link { color: var(--ink); background: #f3f3ee; font-size: .8rem; font-weight: 700; border: 0; padding: 9px 10px; border-radius: 6px; white-space: nowrap; }
.car-link:hover { background: #efe0c5; }
.empty-state { padding: 24px; border: 1px dashed #a8b2ad; border-radius: 8px; }
#empty-stock:has(img) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 32px); background: #fff; border: 1px solid var(--line); padding: clamp(12px, 3vw, 24px); text-align: center; }
#empty-stock img { width: min(100%, 18rem); height: auto; border-radius: 6px; }
#empty-stock:has(img) span { max-width: 32ch; font-weight: 680; }

.service-section { background: #e8ede8; border-block: 1px solid #dae3dc; }
.service-content { padding-block: 44px 48px; }
.service-content .section-heading { display: block; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-grid a { background: #fff; display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 17px; gap: 12px; border-radius: 8px; border: 1px solid #d9dfd8; }
.service-grid a:hover { border-color: #9a744a; }
.service-grid strong, .service-grid small { display: block; }
.service-grid strong { font-size: 1rem; }
.service-grid small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.service-arrow { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; background: #fbedd6; color: #674014; border-radius: 6px; }
.service-actions { margin-top: 20px; }
.service-actions .inline-link { margin-inline-start: 14px; }
.service-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.service-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d9dfd8;
  border-radius: 6px;
  background: #fff;
  font-size: .85rem;
  font-weight: 650;
}
.service-categories a:hover { border-color: #9a744a; }
.catalogue-group { margin-top: 24px; }
.catalogue-group h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.service-catalogue .service-grid a { min-width: 0; gap: 10px; padding: 13px; }
.service-catalogue .service-grid img { flex: none; object-fit: contain; }
.catalogue-service-copy { flex: 1; min-width: 0; }
.tyre-brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.tyre-brand-list img { display: block; width: 100%; height: auto; border: 1px solid #d9dfd8; }
@media (min-width: 681px) and (max-width: 1050px) {
  .service-catalogue .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .service-actions .inline-link { display: inline-block; margin: 10px 0 0; }
}
.finance-section { padding-block: 54px; }
.finance-section .section-heading { margin: 0; align-items: center; }
.inline-link { font-size: .89rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: #885309; }

.company-sections { padding-block: 34px 48px; border-top: 1px solid var(--line); }
.company-sections h2 { margin: 0; font-size: 1.48rem; letter-spacing: -.03em; }
.company-sections p, .company-sections address { margin: 9px 0 12px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.company-sections address { font-style: normal; }
.vehicle-page { min-height: 62vh; padding-block: 29px 54px; }
.vehicle-back { display: inline-block; margin-bottom: 17px; }
.vehicle-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.vehicle-heading h1 { margin: 0; font-size: clamp(2rem, 4.7vw, 3.65rem); line-height: 1.06; letter-spacing: -.055em; }
.vehicle-heading p { margin: 7px 0 0; color: var(--muted); }
.vehicle-price { display: grid; text-align: right; }
.vehicle-price strong { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.vehicle-price span { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.vehicle-image { margin: 0; overflow: hidden; background: #e8ede8; border-radius: 10px; }
.vehicle-image img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.vehicle-image figcaption { padding: 10px 14px; color: var(--muted); font-size: .82rem; }
.vehicle-sections {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  margin: 0 -6px 14px;
  padding: 6px;
  overflow-x: auto;
}
.vehicle-sections > a { display: inline-flex; flex: none; align-items: center; min-height: 44px; white-space: nowrap; }
.vehicle-sections > a:focus-visible { outline-offset: 2px; }
.vehicle-sections > a:not(.button) {
  font-size: .89rem;
  font-weight: 700;
  text-decoration: underline #ad6b1d;
  text-underline-offset: 4px;
}
.vehicle-sections > a:not(.button):hover { color: #885309; }
.vehicle-panel { min-width: 0; padding: clamp(15px, 2.1vw, 25px); background: var(--white); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 18px; }
.vehicle-information :is(.vehicle-image, .vehicle-panel) + .vehicle-panel { margin-top: 16px; }
.vehicle-panel h2 { margin: 0; font-size: clamp(1.25rem, 2.25vw, 1.8rem); line-height: 1.12; letter-spacing: -.035em; }
.vehicle-panel h3 { margin: 18px 0 0; font-size: 1rem; }
.vehicle-panel p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.vehicle-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 15px 0 0; }
.vehicle-specs div { border-top: 1px solid var(--line); padding-top: 9px; }
.vehicle-specs dt { color: var(--muted); font-size: .81rem; }
.vehicle-specs dd { margin: 3px 0 0; font-size: .91rem; font-weight: 650; }

dialog { width: min(450px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 29px; box-shadow: 0 14px 55px #10202758; }
dialog::backdrop { background: #0c1c24b0; }
dialog h2 { margin: 0 40px 10px 0; letter-spacing: -.035em; }
dialog p { color: var(--muted); line-height: 1.55; }
dialog p:last-child { margin-bottom: 0; }
.dialog-close { position: absolute; right: 15px; top: 13px; width: 36px; height: 36px; border: 0; border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 1.4rem; line-height: 1; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { min-height: 468px; }
  .journey-form { gap: 10px; }
  .journey-form button { padding-inline: 13px; }
  .stock-grid { gap: 12px; }
  .car-body { padding: 13px; }
  .car-bottom strong { font-size: 1.2rem; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { align-items: start; min-height: 460px; padding-block: 38px 185px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.45rem); }
  .hero p { margin-block: 15px 22px; }
  .hero::before {
    background-image:
      linear-gradient(180deg, #14252dfc, #14252de8 35%, #14252d56 59%, transparent 80%),
      linear-gradient(0deg, #13242b7b, transparent 34%),
      url("assets/hero.png"),
      url("assets/land-rover-discovery-sport-l550.webp");
    background-position: center, center, 66% bottom, 59% bottom;
  }
  .hero-actions .button { min-height: 43px; padding-inline: 11px; gap: 8px; font-size: .81rem; }
  .journey { margin-top: -37px; }
  .tabs { gap: 6px; padding: 0 10px; }
  .tabs button { padding: 14px 10px 11px; font-size: .86rem; }
  .journey-form { grid-template-columns: 1fr 1fr; padding: 15px; gap: 11px; }
  .search-select input { font-size: 1rem; }
  .booking-panel-content { flex-direction: column; align-items: stretch; padding: 15px; }
  #search-form .field:nth-child(3) { grid-column: 1 / -1; }
  #budget + .search-select .search-select-popup { top: auto; bottom: calc(100% + 5px); }
  .journey-form button { grid-column: 1 / -1; }
  .stock-section { padding-block: 38px 38px; }
  .stock-heading { gap: 12px; align-items: start; }
  .stock-heading .text-button { white-space: normal; text-align: right; }
  .stock-grid, .service-grid { grid-template-columns: 1fr; }
  .car-body { padding: 16px; }
  .service-content { padding-block: 32px; }
  .service-grid a { min-height: 74px; }
  .finance-section { padding-block: 37px; }
  .finance-section .section-heading { align-items: start; flex-direction: column; }
  .company-sections { padding-block: 28px 36px; }
  .vehicle-heading { align-items: start; flex-direction: column; margin-bottom: 16px; }
  .vehicle-price { text-align: left; }
  .vehicle-layout { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-actions { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.car-no-photo { display: grid; min-height: 150px; place-content: center; background: #e8ede8; color: var(--muted); }
.vehicle-image + .vehicle-image { margin-top: 12px; }
.service-page { max-width: 780px; }
.service-page .vehicle-heading { align-items: start; }
.service-page .about-location { margin-top: 18px; }
.service-detail .service-lead { margin-top: 0; font-size: 1.05rem; }
.service-detail h2 { margin-top: 24px; font-size: 1.22rem; letter-spacing: -.02em; }
.service-detail p, .service-detail :is(ul, ol) { font-size: .96rem; line-height: 1.6; }
.service-detail :is(ul, ol) { margin: 8px 0 0; padding-left: 1.4em; color: var(--muted); }
.service-detail li + li { margin-top: 7px; }
.service-detail li strong { color: var(--ink); }
.booking-request { display: grid; gap: 14px; margin: 20px 0 0; }
.booking-request label { display: block; margin-bottom: 5px; font-weight: 700; }
.booking-request .helptext { margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.booking-request input, .booking-request select { width: 100%; padding: 9px 10px; min-height: 44px; border: 1px solid #cfd5d1; border-radius: 6px; background: #fcfcfb; color: var(--ink); }
.booking-request .search-select input { padding-right: 30px; }
.booking-request .errorlist { margin: 3px 0 6px; padding-left: 20px; color: #901b13; }
.booking-request button { justify-self: start; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-layout { display: flex; flex-direction: column; min-height: 100vh; background: var(--white); }
.contact-page {
  flex: 1;
  width: min(1570px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 22px 34px;
  min-height: 62vh;
}
.contact-intro {
  margin: 0 0 clamp(26px, 4vw, 53px);
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #49544e;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
}
.contact-tab {
  width: fit-content;
  margin: 0;
  padding: 9px 54px 9px 20px;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
  background: #253849;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.contact-panel { padding: 12px 15px; border: 1px solid #dfdfdf; }
.contact-details { padding-block: 18px 32px; }
.contact-company { margin: 0 0 12px; font-size: 1.05rem; font-weight: 750; }
.contact-details dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 16px;
  margin: 0;
}
.contact-details dt { margin-bottom: 8px; font-weight: 700; }
.contact-details dd { margin: 0; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.contact-details address { font-style: normal; }
.contact-details a { color: #163f82; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-phone { display: block; white-space: nowrap; }
.contact-detail-wide { grid-column: 1 / -1; border-top: 1px solid #ccc; padding-top: 17px; }
.contact-map { padding: 0; }
.contact-map iframe { display: block; width: 100%; height: 450px; border: 0; background: #edf2ef; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(10px, 2vw, 30px); }
.contact-field-wide, .contact-form > .errorlist { grid-column: 1 / -1; }
.contact-form :where(input:not([type="hidden"]), textarea) {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d8d8d8;
  background: #fdfdfd;
  color: var(--ink);
  font: inherit;
}
.contact-form :is(input, textarea)::placeholder { color: #696969; }
.contact-form textarea { min-height: 154px; padding: 14px; resize: vertical; }
.contact-form .errorlist { margin: 6px 0 0; padding-left: 18px; color: #901b13; font-size: .88rem; }
.contact-submit {
  justify-self: start;
  min-height: 41px;
  margin-top: 11px;
  padding-inline: 26px;
  border-radius: 4px;
  background: #2f762d;
  color: #fff;
  text-transform: uppercase;
}
.contact-submit:hover { background: #205820; }
.contact-confirmation { margin: 0 0 12px; padding: 10px; background: #ebf4e9; color: #205820; }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
  #contact-enquiry { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .contact-page { width: calc(100% - 32px); padding-top: 16px; }
  .contact-intro { text-align: start; font-size: 1rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-map iframe { height: 300px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}
