/* ==========================================================================
   Gordon Automotive — landing page
   System fonts only. Mobile-first. Single-file CSS.
   Palette pulled from the Gordon Automotive logo.
   ========================================================================== */

:root {
  /* Brand palette */
  --primary-blue: #1E4166;
  --secondary-blue: #2C4F72;
  --deep-navy: #141C23;
  --black: #030507;
  --bg: #F8F8F5;
  --bg-alt: #EDEDE8;
  --border-gray: #B8BEC2;
  --shadow-gray: #757879;

  /* Derived */
  --primary-hover: #163252;
  --primary-tint: #DDE3EB;
  --line: #DCDDD8;
  --ink: #141C23;
  --ink-soft: #4A5560;
  --danger: #B42318;
  --success: #027A48;

  /* Layout */
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 35, .06), 0 1px 3px rgba(20, 28, 35, .08);
  --shadow-md: 0 4px 6px rgba(20, 28, 35, .04), 0 10px 20px rgba(20, 28, 35, .08);
  --shadow-lg: 0 10px 15px rgba(20, 28, 35, .06), 0 20px 40px rgba(20, 28, 35, .12);
  --container: 1140px;
  --pad: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset --------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--deep-navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.accent { color: #FFFFFF; }

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: 2px; }

.btn-primary { background: var(--primary-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--deep-navy); border-color: var(--deep-navy); }
.btn-secondary:hover { background: var(--deep-navy); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  display: none; animation: spin .8s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header -------------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center;
  color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-text { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  color: #fff;
  display: none;
  align-items: center; gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-weight: 600;
}
.header-phone:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.header-cta { font-size: .95rem; padding: 10px 18px; min-height: 44px; }

@media (min-width: 640px) {
  .header-phone { display: inline-flex; }
}

/* Hero ---------------------------------------------------------------------*/
.hero {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(44, 79, 114, .35) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow {
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--border-gray);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  margin-bottom: 28px;
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero CTA: primary stays primary-blue, but on the dark hero we want a brighter "go" treatment.
   Solution: white button with primary-blue text for the lead CTA on hero, primary-blue stays everywhere else. */
.hero .btn-primary { background: #fff; color: var(--primary-blue); }
.hero .btn-primary:hover { background: var(--bg); color: var(--primary-hover); }
.hero .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-secondary:hover { background: #fff; color: var(--deep-navy); border-color: #fff; }

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 24px);
}
.hero-photo-inner { display: contents; }
.hero-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

/* Trust strip --------------------------------------------------------------*/
.trust { background: var(--bg-alt); padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem;
}
.trust-item strong { display: block; color: var(--deep-navy); font-size: 1rem; }
.trust-item span { color: var(--ink-soft); font-size: .85rem; }
.trust-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary-blue);
  flex: 0 0 auto;
}
.trust-icon svg { width: 18px; height: 18px; }

@media (min-width: 640px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
}

/* Reviews ------------------------------------------------------------------*/
.reviews { padding: clamp(48px, 7vw, 80px) 0; }
.reviews h2 { text-align: center; margin-bottom: 36px; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border-top: 3px solid var(--primary-blue);
}
.stars { color: var(--primary-blue); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote {
  margin: 0 0 16px; padding: 0; border: 0;
  font-size: 1.05rem; color: var(--deep-navy);
  line-height: 1.5;
}
.review-card cite {
  margin-top: auto;
  font-style: normal;
  font-size: .9rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.reviews-link { text-align: center; margin-top: 28px; }
.reviews-link a { font-weight: 700; color: var(--primary-blue); }

@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Services -----------------------------------------------------------------*/
.services { padding: clamp(48px, 7vw, 80px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services h2 { text-align: center; margin-bottom: 36px; }
.services-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.service {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 600;
  color: var(--deep-navy);
  min-height: 60px;
  transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.service:hover {
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.service-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--primary-tint);
  border-radius: var(--radius);
  color: var(--primary-blue);
  flex: 0 0 auto;
}
.service-icon svg { width: 20px; height: 20px; }
.services-foot { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 1.02rem; }
.services-foot a { font-weight: 700; }

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Drop-off -----------------------------------------------------------------*/
.dropoff { padding: clamp(48px, 7vw, 80px) 0; }
.dropoff h2 { text-align: center; margin-bottom: 40px; }
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 22px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--deep-navy); margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--primary-blue); color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: 1.05rem;
  margin-bottom: 12px;
}
.dropoff-note {
  margin-top: 28px; text-align: center;
  background: var(--primary-tint);
  color: var(--deep-navy);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid rgba(30, 65, 102, .15);
}

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* Form ---------------------------------------------------------------------*/
.schedule {
  padding: clamp(48px, 7vw, 96px) 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #DCDED8 100%);
  border-top: 1px solid var(--line);
}
.schedule-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
  border-top: 4px solid var(--primary-blue);
}
.schedule h2 { margin-bottom: 8px; }
.schedule-sub { color: var(--ink-soft); margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-weight: 600; color: var(--deep-navy); font-size: .92rem; margin-bottom: 6px;
}
.field label .optional { color: var(--ink-soft); font-weight: 500; font-size: .82rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--border-gray); border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23141C23' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 65, 102, .2);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background-color: #FFF7F6;
}
.field-error {
  color: var(--danger); font-size: .85rem; min-height: 1em; margin-top: 6px;
}
.textarea-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.textarea-meta .field-error { margin-top: 0; }
.char-count { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.char-count.is-near { color: var(--primary-blue); font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: 24px; }
.form-helper { text-align: center; margin-top: 12px; color: var(--ink-soft); font-size: .9rem; }

.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  display: none; font-weight: 600;
}
.form-status.is-success { display: block; background: #E6F4EE; color: var(--success); border: 1px solid #B7E0CC; }
.form-status.is-error { display: block; background: #FDECEA; color: var(--danger); border: 1px solid #F5C6C0; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

/* Footer -------------------------------------------------------------------*/
.site-footer {
  background: var(--deep-navy); color: rgba(255, 255, 255, .85);
  padding-top: 56px;
}
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: var(--border-gray); font-weight: 600; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 40px;
}
.footer-col address { font-style: normal; line-height: 1.6; }
.hours { display: grid; grid-template-columns: 60px 1fr; gap: 4px 16px; margin: 0; }
.hours dt { font-weight: 700; color: #fff; }
.hours dd { margin: 0; }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.footer-bar { background: var(--black); padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-bar-inner {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  font-size: .88rem;
}
.footer-bar p { margin: 0; }
.footer-by a { color: #fff; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; gap: 48px; }
  .footer-bar-inner { flex-direction: row; justify-content: space-between; }
}

/* Reduced motion -----------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
