:root {
  --navy: #0b1f5b;
  --blue: #183b8f;
  --red: #e30620;
  --ink: #17213c;
  --muted: #5c6680;
  --surface: #f4f6fb;
  --line: #dce2f0;
  --white: #fff;
  --shadow: 0 18px 45px rgba(11, 31, 91, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: min(470px, 58vw);
}

.brand img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: top center;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 10px 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: var(--navy);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  min-height: 570px;
  margin-top: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  padding: clamp(36px, 7vw, 82px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

h1, h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.035em;
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 12px;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.primary:hover { background: #bd0017; }

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--navy);
}

.hero-art {
  min-height: 570px;
  background: var(--navy);
}

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

.quick-contact,
.location-preview,
.contact-intro,
.map-section {
  margin-top: 36px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(11,31,91,.08);
}

.quick-contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.quick-contact p:not(.eyebrow),
.location-preview p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  color: var(--navy);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-links a:hover {
  color: var(--red);
  border-color: var(--red);
}

.contact-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.location-preview {
  margin-bottom: 36px;
  background:
    linear-gradient(90deg, rgba(11,31,91,.96), rgba(24,59,143,.84)),
    url("assets/ford-detail.jpg") center/cover;
  color: var(--white);
}

.location-preview h2,
.location-preview .eyebrow,
.location-preview p,
.location-preview address {
  color: var(--white);
}

address {
  margin-top: 20px;
  font-size: 1.18rem;
  font-style: normal;
  font-weight: 700;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--white);
  font-weight: 800;
}

.contact-page { padding-bottom: 40px; }

.contact-intro {
  margin-top: 36px;
  text-align: center;
}

.contact-intro .lead { margin-inline: auto; }

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.contact-card {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  overflow-wrap: anywhere;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(11,31,91,.07);
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.card-icon {
  color: var(--red);
  font-size: 2.1rem;
}

.contact-card strong {
  font-size: 1.14rem;
}

.card-note {
  color: var(--muted);
  font-size: .92rem;
}

.map-section { margin-bottom: 0; }

.map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.map-actions { margin-top: 0; }

.map-frame {
  overflow: hidden;
  background: #e7eaf2;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.map-frame iframe { display: block; }

.map-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

footer {
  margin-top: 38px;
  padding: 30px 18px;
  color: var(--white);
  text-align: center;
  background: var(--navy);
}

footer p { margin: 5px 0; }
footer a { color: var(--white); }

@media (max-width: 850px) {
  .site-header {
    position: static;
    flex-direction: column;
    padding: 8px 18px 16px;
  }

  .brand { width: min(100%, 600px); }

  .brand img {
    height: auto;
    max-height: 110px;
    object-fit: contain;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art { min-height: 260px; }

  .quick-contact,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .map-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .map-actions { margin-top: 10px; }
}

@media (max-width: 520px) {
  main { width: min(100% - 22px, 1180px); }

  nav { width: 100%; }
  nav a { flex: 1; text-align: center; }

  .hero,
  .quick-contact,
  .location-preview,
  .contact-intro,
  .map-section {
    border-radius: 18px;
  }

  .hero-copy,
  .quick-contact,
  .location-preview,
  .contact-intro,
  .map-section {
    padding: 26px 22px;
  }

  .hero-actions .button,
  .map-actions .button {
    width: 100%;
  }

  .contact-links a {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-frame iframe { height: 420px; }
}

.coordinate-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
}

.gallery-page { padding-bottom: 42px; }

.gallery-intro {
  margin-top: 36px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(11,31,91,.08);
}

.gallery-intro .lead { margin-inline: auto; }

.gallery-shell {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.gallery-main {
  margin: 0;
  overflow: hidden;
  background: #0d1737;
  border-radius: 18px;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: min(68vw, 720px);
  object-fit: contain;
  background: #0d1737;
  transition: opacity .24s ease, transform .24s ease;
}

.gallery-main img.changing {
  opacity: .35;
  transform: scale(.99);
}

.gallery-main figcaption {
  padding: 13px 16px;
  color: var(--white);
  text-align: center;
  background: var(--navy);
  font-weight: 700;
}

.gallery-arrow {
  width: 52px;
  height: 72px;
  padding: 0;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 14px;
  font-size: 2.6rem;
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible { background: var(--red); }

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.gallery-thumb {
  padding: 4px;
  background: var(--white);
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible { border-color: var(--blue); }

.gallery-thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(227,6,32,.16);
}

@media (max-width: 700px) {
  .gallery-stage { grid-template-columns: 1fr; }

  .gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 60px;
    transform: translateY(-50%);
    background: rgba(11,31,91,.82);
  }

  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }

  .gallery-main img { height: min(118vw, 620px); }
  .gallery-thumbnails { grid-template-columns: repeat(5, 115px); }
}

.contact-phone-group {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-phone-group a,
.phone-number-link {
  color: var(--navy);
  text-decoration: none;
}

.contact-phone-group a:hover,
.phone-number-link:hover {
  color: var(--red);
}

.phone-number-link {
  display: inline-block;
  width: fit-content;
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
}

.footer-contact-links a:hover {
  background: rgba(255,255,255,.12);
}

@media (max-width: 700px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }
}
