/* Faith Automotive — design language v2
   Tesla-inspired: minimal, typographic, full-bleed panels,
   fixed-width pill buttons, generous whitespace. */

:root {
  /* Palette drawn from assets/logo.avif */
  --navy: #0c3264;
  --navy-hover: #0a2a54;
  --teal: #01b0aa;
  --teal-hover: #019c96;
  --steel: #7697b8;
  --mint: #99ffd0;

  --ink: #0c3264;
  --ink-soft: #3d5a7d;
  --muted: #5f7690;
  --line: #dfe6ee;
  --paper: #ffffff;
  --paper-soft: #f3f6f9;
  --blue: var(--navy);
  --blue-hover: var(--navy-hover);
  --white-btn: rgba(255, 255, 255, 0.85);
  --dark-btn: rgba(23, 26, 32, 0.8);
  --radius: 4px;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.solid,
body.nav-open .site-header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  height: 20px;
  width: auto;
  /* Over the dark hero: washed toward white but keeping
     soft pastel hints of each segment's color */
  filter: contrast(0.35) brightness(2) saturate(1.5);
  transition: filter 0.3s ease;
}

.site-header.solid .brand img,
body.nav-open .brand img {
  filter: none;
}

.site-nav {
  display: flex;
  gap: 4px;
  justify-self: center;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.site-header:not(.solid):not(:hover) .site-nav a:hover,
.site-nav a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.site-header:not(.solid) .site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-utils {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.header-phone {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.header-phone:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header.solid .header-phone:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 264px;
  max-width: 100%;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-secondary {
  background: var(--white-btn);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #fff;
}

.section-light .btn-secondary,
.section-contact .btn-secondary {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.section-light .btn-secondary:hover,
.section-contact .btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Full-bleed panels ---------- */

.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: calc(var(--header-h) + clamp(40px, 9vh, 96px)) 24px clamp(72px, 12vh, 128px);
  color: #fff;
  background-size: cover;
  background-position: center;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 42, 0.46) 0%, rgba(6, 20, 42, 0.06) 38%, rgba(6, 20, 42, 0.52) 100%);
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.hero {
  background-image: url("assets/hero-FaithAuto.png");
  /* Actions sit right below the copy instead of pinned to the bottom */
  justify-content: flex-start;
  gap: 32px;
}

.panel-copy h1,
.panel-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.panel-sub {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.92;
}

.panel-sub:hover {
  opacity: 1;
  color: var(--mint);
}

.panel-sub-text {
  margin: 14px auto 0;
  max-width: 34rem;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  opacity: 0.92;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) rotate(45deg);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0) rotate(45deg); opacity: 0.9; }
  50% { transform: translate(-50%, 8px) rotate(45deg); opacity: 0.4; }
}

.panel-photo {
  min-height: 88vh;
}

.panel-performance {
  background-image: url("assets/hero-service-bay.png");
  background-position: 70% center;
}

.panel-financing {
  min-height: 62vh;
  background-image: url("assets/diagnostic-detail.png");
}

.panel-financing::after {
  background: rgba(6, 20, 42, 0.66);
}

/* ---------- Light sections ---------- */

.section {
  padding: clamp(72px, 11vh, 128px) clamp(20px, 6vw, 72px);
}

.section-light {
  background: var(--paper);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vh, 64px);
  text-align: center;
}

.section-head h2,
.about-copy h2,
.section-contact h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-head p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

/* Services grid */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-item {
  background: var(--paper);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.service-item:hover {
  background: #eefbf6;
}

.service-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.service-item p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.service-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.service-item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-copy p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 32rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--teal);
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Reviews */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.review-grid figure {
  margin: 0;
  padding-top: 24px;
  border-top: 2px solid var(--teal);
}

.review-grid blockquote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.review-grid figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Contact */

.section-contact {
  background: var(--paper-soft);
  text-align: center;
}

.contact-lede {
  margin: 14px auto 32px;
  font-size: 16px;
  color: var(--muted);
  max-width: 30rem;
}

.contact-actions {
  margin-bottom: clamp(48px, 7vh, 72px);
}

.contact-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-facts span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-facts a,
.contact-facts p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.contact-facts a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.site-footer {
  padding: 28px 24px calc(28px + 76px); /* clears the fixed action bar */
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

/* ---------- Floating action bar ---------- */

.action-bar {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(23, 26, 32, 0.18), 0 0 0 1px var(--line);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.action-bar.hidden {
  transform: translate(-50%, 120%);
  opacity: 0;
}

.action-bar-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s ease;
}

.action-bar-call:hover {
  background: rgba(0, 0, 0, 0.05);
}

.action-bar-call svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-bar-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.action-bar-cta:hover {
  background: var(--blue-hover);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

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

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    gap: 4px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  body.nav-open .site-nav {
    transform: none;
  }

  .site-nav a {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 12px;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header-phone {
    display: none;
  }

  .panel-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .action-bar {
    left: 16px;
    right: 16px;
    transform: none;
    justify-content: space-between;
  }

  .action-bar.hidden {
    transform: translateY(120%);
  }

  .action-bar-call span {
    display: none;
  }

  .action-bar-call {
    padding: 0 12px;
  }

  .action-bar-cta {
    flex: 1;
    justify-content: center;
  }
}
