/* Ridgeline Auto Service — shared styles */

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

:root {
  --ink: #16233a;
  --ink-muted: #4b586c;
  --ink-muted-2: #5a6678;
  --ink-muted-3: #7d8ca3;
  --ink-muted-4: #93a4bb;
  --blue: #2f5c9e;
  --blue-hover: #1e3f70;
  --blue-active: #23477a;
  --panel: #f4f7fb;
  --line-06: rgba(22, 35, 58, .06);
  --line-10: rgba(22, 35, 58, .1);
  --line-12: rgba(22, 35, 58, .12);
  --line-14: rgba(22, 35, 58, .14);
  --line-18: rgba(22, 35, 58, .18);
  --line-20: rgba(22, 35, 58, .2);
  --dark-bg: #16233a;
  --dark-text: #eef3f9;
  --dark-quote: #9ec1ea;
  --dark-muted: #93a4bb;
}

html, body { margin: 0; }

body {
  background: #fff;
  color: var(--ink);
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-12);
}

.site-header .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 3px;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
}

.main-nav a.nav-link:hover {
  background: var(--line-06);
  color: var(--ink);
}

.main-nav a.nav-link[aria-current="page"] {
  font-weight: 700;
}

.nav-call {
  margin-left: 10px;
  background: var(--ink);
  color: var(--dark-text);
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-call:hover {
  background: var(--blue);
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

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

.btn-outline {
  border: 1px solid var(--line-20);
  background: none;
  color: var(--ink);
}
.btn-outline:hover { background: rgba(22, 35, 58, .05); }

/* Eyebrow label */

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted-3);
}

/* Photo placeholder */

.photo-placeholder {
  border-radius: 14px;
  background-image: repeating-linear-gradient(135deg, #e4ebf4 0 12px, #f0f4f9 12px 24px);
  border: 1px solid var(--line-10);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.photo-placeholder span {
  font-size: 12px;
  color: var(--ink-muted-3);
  background: rgba(255, 255, 255, .92);
  padding: 7px 10px;
  border-radius: 6px;
}

/* Hero */

.hero {
  padding: 76px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow { margin-bottom: 20px; }

.hero h1 {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 24px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 34em;
  text-wrap: pretty;
}

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

.hours-panel {
  margin-top: 40px;
  border: 1px solid var(--line-14);
  border-radius: 12px;
  background: var(--panel);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 34em;
}

.hours-panel-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}

.hours-panel-today {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 4px;
}

.hours-panel-week {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-muted);
  border-left: 1px solid var(--line-14);
  padding-left: 32px;
}

.hours-panel-week .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-width: 190px;
}

.hours-panel-week .row span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.hero-photo { aspect-ratio: 4 / 5; }

/* Stats band */

.stats-band {
  border-top: 1px solid var(--line-12);
  border-bottom: 1px solid var(--line-12);
  background: var(--panel);
}

.stats-band .wrap {
  padding: 44px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.stat-num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.stat-label {
  font-size: 14.5px;
  color: var(--ink-muted-2);
  margin-top: 4px;
}

/* Services grid (home) */

.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line-10);
  border-radius: 12px;
  padding: 22px;
}

.service-card:hover { border-color: var(--blue); }

.service-num { font-size: 11.5px; color: var(--blue); }

.service-name {
  font-size: 17px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: -.01em;
}

.service-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted-2);
  margin-top: 7px;
}

/* Reviews */

.reviews-band {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.reviews-band .wrap {
  padding: 66px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.reviews-band .stars { font-size: 14px; color: var(--dark-quote); letter-spacing: .12em; }
.reviews-band .quote { font-size: 17.5px; line-height: 1.55; margin-top: 14px; text-wrap: pretty; }
.reviews-band .who { font-size: 12px; color: var(--dark-muted); margin-top: 16px; }

.reviews-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line-10);
  border-radius: 12px;
  padding: 24px;
}

.review-card .stars { font-size: 13.5px; color: var(--blue); letter-spacing: .12em; }
.review-card .quote { font-size: 16.5px; line-height: 1.55; margin-top: 12px; color: #334055; text-wrap: pretty; }
.review-card .who { font-size: 12px; color: var(--ink-muted-3); margin-top: 14px; }

/* Drop-by split section */

.split-section {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.split-section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.split-section p {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 30em;
}

.split-section .btn { margin-top: 26px; }

.storefront-photo { aspect-ratio: 16 / 10; }

/* Appointment section */

.appointment-section {
  border-top: 1px solid var(--line-12);
  background: var(--panel);
}

.appointment-section .wrap {
  padding: 64px 32px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.appointment-section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.appointment-section .intro-text {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.appointment-section .hours-line {
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted-2);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line-10);
  border-radius: 14px;
  padding: 28px;
}

.form-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.form-card .form-sub {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-muted-2);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 { grid-column: span 2; }

.form-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15.5px;
  padding: 13px 14px;
  border: 1px solid var(--line-18);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-field textarea { resize: vertical; }

.form-submit {
  margin-top: 16px;
  width: 100%;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted-3);
}

.honeypot { display: none; }

/* Page hero (About / Contact) */

.page-hero {
  padding: 64px 0 0;
}

.page-hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  margin-top: 16px;
}

.page-body { padding-bottom: 80px; }

/* About page */

.about-sub {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34ch;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-14);
  border: 1px solid var(--line-14);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 40px;
}

.facts-strip .fact {
  background: #fff;
  padding: 26px 24px;
}

.facts-strip .fact-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.facts-strip .fact-label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted-2);
  margin-top: 6px;
}

.how-we-work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.how-we-work-label {
  grid-column: span 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted-3);
  padding-top: 4px;
}

.how-we-work-list {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.how-we-work-list div {
  font-size: 16.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line-14);
  padding: 14px 0;
}

.about-section { margin-top: 64px; }

.about-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.shop-photos {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 16px;
  margin-top: 24px;
}

.shop-photos .photo-placeholder { padding: 16px; border-radius: 12px; }
.shop-photos .photo-placeholder span { font-size: 11.5px; padding: 6px 9px; }
.shop-photos .tall { grid-row: span 2; }
.shop-photos .wide { grid-column: span 2; }

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-block {
  border-top: 1px solid var(--line-14);
  padding-top: 22px;
}

.contact-block:first-child { border-top: 0; padding-top: 0; }

.contact-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted-3);
}

.contact-phone-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.contact-phone-link:hover { color: var(--blue); }

.hours-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16.5px;
}

.hours-list .row {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
}

.hours-list .row span:last-child { color: var(--ink-muted-2); }

.contact-email { margin-top: 8px; font-size: 17px; }

.contact-address { margin-top: 8px; font-size: 18px; line-height: 1.5; }

.map-placeholder {
  margin-top: 16px;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background-image: repeating-linear-gradient(135deg, #dbe5f1 0 14px, #e9f0f7 14px 28px);
  border: 1px solid var(--line-10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder span {
  font-size: 12.5px;
  color: var(--ink-muted-3);
  background: rgba(255, 255, 255, .94);
  padding: 9px 13px;
  border-radius: 7px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-12);
  background: var(--panel);
}

.site-footer .wrap {
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-shop { font-size: 15px; color: var(--ink-muted-2); }
.footer-copy { font-size: 12.5px; color: var(--ink-muted-3); }

/* Responsive */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16 / 9; }
  .appointment-section .wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section .storefront-photo { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-we-work { grid-template-columns: 1fr; }
  .how-we-work-list { grid-column: span 1; grid-template-columns: 1fr; }
  .shop-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .shop-photos .tall { grid-row: span 1; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 38px; }
  .section-head h2, .split-section h2, .appointment-section h2 { font-size: 28px; }
  .reviews-band .wrap, .reviews-grid-light { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: span 1; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; padding-bottom: 12px; }
  .main-nav { flex-wrap: wrap; }
}
