/* ------------------------------------------------------------------
   Wilsons Automotive
   Core static site styles
   Palette: black, graphite, white, metallic grey and sky blue.
------------------------------------------------------------------ */

:root {
  --black: #07090c;
  --black-soft: #0d1116;
  --graphite: #151a20;
  --graphite-2: #20262e;
  --graphite-3: #2a323c;

  --white: #ffffff;
  --off-white: #f3f5f7;
  --warm-white: #fafafa;
  --text: #171b20;
  --text-soft: #5f6873;
  --muted: #aeb7c2;

  --blue: #75b7de;
  --blue-bright: #9bd7f5;
  --blue-dark: #397fa9;
  --blue-deep: #1d4f6d;

  --border: rgba(255, 255, 255, 0.13);
  --border-dark: rgba(7, 9, 12, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.1);

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  --font-main: Arial, Helvetica, sans-serif;
  --font-heading: Arial Black, Impact, Arial, Helvetica, sans-serif;
}

/* ------------------------------------------------------------------
   Reset / base
------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1,
.h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  text-transform: uppercase;
}

h2,
.h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  text-transform: uppercase;
}

h3,
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--black);
  background: var(--blue-bright);
}

/* ------------------------------------------------------------------
   Utilities
------------------------------------------------------------------ */

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section-tight {
  padding: clamp(42px, 6vw, 72px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: currentColor;
}

.lead,
.hero-lead {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.dark-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(117, 183, 222, 0.1), transparent 34%),
    linear-gradient(140deg, var(--black-soft), var(--black));
}

.dark-section p,
.dark-section .lead,
.dark-section .hero-lead {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: var(--black);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-2px);
  background: var(--blue-bright);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.46);
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-dark:hover {
  background: var(--blue-deep);
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.button-light:hover {
  background: var(--blue-bright);
}

/* ------------------------------------------------------------------
   Accessibility
------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
}

.skip-link:focus {
  left: 12px;
}

/* ------------------------------------------------------------------
   Header / navigation
------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1117;
  font-size: 0.84rem;
}

.top-bar-inner,
.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-inner {
  min-height: 42px;
  gap: 20px;
}

.top-bar-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.top-bar-details a:hover,
.top-quote-link:hover {
  color: var(--white);
}

.top-quote-link {
  color: var(--blue-bright);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav-wrap {
  position: relative;
  background: rgba(7, 9, 12, 0.98);
}

.main-nav-inner {
  min-height: 88px;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  min-width: 170px;
}

.site-logo img {
  width: 180px;
  max-height: 68px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-left: auto;
}

.site-nav > a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 11px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav > a::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-dropdown-toggle:hover {
  color: var(--white);
}

.site-nav > a:hover::after,
.site-nav > a.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--graphite);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 12px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-dropdown-menu a:hover {
  background: var(--graphite-2);
  color: var(--blue-bright);
}

.header-call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-call-button:hover {
  background: var(--blue-bright);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

/* ------------------------------------------------------------------
   Home hero
------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(650px, 84vh, 900px);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(117, 183, 222, 0.18), transparent 35%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.95), rgba(5, 8, 12, 0.7) 48%, rgba(5, 8, 12, 0.2));
}

.hero-content {
  max-width: 920px;
  padding: clamp(78px, 10vw, 135px) 0;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--blue-bright);
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------------
   Page heroes / breadcrumbs
------------------------------------------------------------------ */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 10vw, 145px) 0;
  color: var(--white);
  background: var(--black);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(5, 8, 12, 0.96), rgba(5, 8, 12, 0.72) 52%, rgba(5, 8, 12, 0.24)),
    radial-gradient(circle at 18% 20%, rgba(117, 183, 222, 0.2), transparent 34%);
}

.page-hero-content {
  max-width: 900px;
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: var(--white);
}

/* ------------------------------------------------------------------
   Trust strip
------------------------------------------------------------------ */

.trust-strip {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}

.trust-strip-page {
  margin-top: -32px;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 24px;
  border-right: 1px solid var(--border-dark);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--black);
  font-size: 1.04rem;
  font-weight: 900;
}

.trust-item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------
   Cards
------------------------------------------------------------------ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.process-card,
.upgrade-card,
.form-card,
.split-panel,
.dark-panel,
.about-callout {
  border-radius: var(--radius);
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.service-card-featured {
  color: var(--white);
  background:
    linear-gradient(145deg, var(--blue-deep), var(--black));
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.75);
}

.service-card-dark {
  border-color: var(--border);
  color: var(--white);
  background: var(--graphite);
  box-shadow: none;
}

.service-card-dark p {
  color: var(--muted);
}

.service-card-content {
  padding: 28px;
}

.service-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-soft);
}

.service-card-featured p,
.service-card-dark p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dark-section .card-link,
.service-card-featured .card-link,
.service-card-dark .card-link {
  color: var(--blue-bright);
}

.card-link:hover {
  color: var(--blue-deep);
}

.dark-section .card-link:hover {
  color: var(--white);
}

/* ------------------------------------------------------------------
   Split / image panels
------------------------------------------------------------------ */

.split-panel {
  padding: clamp(28px, 5vw, 54px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dark-panel {
  padding: clamp(28px, 5vw, 54px);
  color: var(--white);
  background:
    linear-gradient(145deg, var(--graphite), var(--black));
}

.dark-panel p {
  color: var(--muted);
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-panel-tall img {
  min-height: 560px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.61em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(117, 183, 222, 0.16);
}

.dark-section .check-list li,
.dark-panel .check-list li {
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Upgrade cards
------------------------------------------------------------------ */

.section-upgrades {
  background: #e8edf1;
}

.upgrade-grid {
  align-items: stretch;
}

.upgrade-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.upgrade-card-image {
  overflow: hidden;
  background: var(--graphite);
}

.upgrade-card-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.upgrade-card:hover .upgrade-card-image img {
  transform: scale(1.03);
}

.upgrade-card-content {
  padding: 30px;
}

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

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--graphite);
}

.gallery-preview-item-wide {
  grid-column: span 2;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

.gallery-preview-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.42));
}

.gallery-preview-item:hover img {
  transform: scale(1.04);
  filter: contrast(1.04);
}

/* ------------------------------------------------------------------
   About callout
------------------------------------------------------------------ */

.about-callout {
  display: grid;
  justify-items: start;
  padding: clamp(32px, 5vw, 58px);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 12%, rgba(117, 183, 222, 0.22), transparent 34%),
    linear-gradient(145deg, var(--graphite), var(--black));
  box-shadow: var(--shadow);
}

.about-callout img {
  width: 220px;
  max-height: 160px;
  margin-bottom: 24px;
  object-fit: contain;
}

.about-callout blockquote {
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
}

.about-callout strong {
  color: var(--blue-bright);
  font-size: 1.05rem;
}

.about-callout span {
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Process / location
------------------------------------------------------------------ */

.section-process {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  padding: 26px;
  border: 1px solid var(--border-dark);
  background: var(--off-white);
}

.process-card > span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.process-card p {
  color: var(--text-soft);
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.location-list span {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

/* ------------------------------------------------------------------
   Contact band / forms
------------------------------------------------------------------ */

.contact-band {
  padding-top: 0;
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 6vw, 66px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(130deg, var(--blue-deep), var(--black));
  box-shadow: var(--shadow);
}

.contact-band-inner > div:first-child {
  max-width: 760px;
}

.contact-band-inner p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-band-actions,
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.contact-phone {
  color: var(--blue-bright);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 900;
  white-space: nowrap;
}

.form-card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 900;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(7, 9, 12, 0.18);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--text);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid rgba(117, 183, 222, 0.26);
  border-color: var(--blue-dark);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */

.footer-cta {
  padding: clamp(50px, 7vw, 86px) 0;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--blue-deep), #0b1f2b 58%, var(--black));
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-cta-inner > div:first-child {
  max-width: 760px;
}

.footer-cta h2 {
  margin-bottom: 12px;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-cta .eyebrow {
  color: var(--blue-bright);
}

.site-footer {
  padding: 64px 0 0;
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1fr;
  gap: 34px;
  padding-bottom: 48px;
}

.footer-logo img {
  width: 220px;
  max-height: 150px;
  margin-bottom: 18px;
  object-fit: contain;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

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

@media (max-width: 1120px) {
  .header-call-button {
    display: none;
  }

  .site-nav > a,
  .nav-dropdown-toggle {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1020px) {
  .main-nav-wrap {
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 22px;
    border-top: 1px solid var(--border);
    background: var(--black);
  }

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

  .site-nav > a,
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav > a::after,
  .nav-dropdown-toggle::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 8px 0 8px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-menu a {
    padding: 11px 10px;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-dark);
  }

  .gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .top-bar-details span {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .top-quote-link {
    display: none;
  }

  .main-nav-inner {
    min-height: 74px;
  }

  .site-logo img {
    width: 145px;
    max-height: 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 82px 0 96px;
  }

  .page-hero {
    padding: 74px 0 88px;
  }

  .hero-actions,
  .footer-cta-inner,
  .footer-bottom,
  .contact-band-inner,
  .contact-band-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .service-grid,
  .process-grid,
  .trust-strip-inner,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .trust-strip-page {
    margin-top: 0;
  }

  .trust-strip-inner {
    border-radius: 0;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .image-panel img,
  .image-panel-tall img {
    min-height: 300px;
  }

  .gallery-preview {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-preview-item-wide {
    grid-column: auto;
  }

  .upgrade-card-image img {
    height: 260px;
  }

  .contact-phone {
    text-align: center;
  }

  .form-field.full {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  h1,
  .h1 {
    font-size: 2.4rem;
  }

  h2,
  .h2 {
    font-size: 2rem;
  }

  .hero-proof {
    display: grid;
  }

  .hero-proof span {
    border-radius: var(--radius-sm);
  }

  .service-card-content,
  .upgrade-card-content,
  .process-card {
    padding: 23px;
  }
}

/* ------------------------------------------------------------------
   Motion preferences
------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ------------------------------------------------------------------
   Wilsons Automotive - image-backed cards / full gallery additions
------------------------------------------------------------------ */

.service-card-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--graphite);
}

.service-card-featured .service-card-image {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  margin: 0;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: var(--shadow-soft);
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 20px 18px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .service-card-image {
    height: 210px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 280px;
  }
}
