/* ==========================================================================
   Danny's Auto Service — Design System
   Palette: warm charcoal base, oxide-red accent (brake-caliper red), brass line work
   Type: Big Shoulders Display (headlines, condensed industrial) + IBM Plex Sans (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --ink-900: #141310;      /* deepest background */
  --ink-800: #1b1a17;      /* base background */
  --ink-700: #242220;      /* raised surface */
  --ink-600: #302d29;      /* card / panel surface */
  --line: #3d3833;         /* hairline borders on dark */
  --line-soft: rgba(239, 233, 223, 0.12);
  --paper: #efe9df;        /* warm white text */
  --paper-dim: #b7ac9c;    /* secondary text on dark */
  --paper-faint: #8a8071;  /* tertiary / meta text on dark */
  --accent: #b6382b;       /* oxide red — the one strong accent */
  --accent-bright: #d1492f;
  --accent-dim: rgba(182, 56, 43, 0.14);
  --on-accent: #f6ede6;
  --shop-floor: #d8d2c4;   /* light surface used for a few contrast sections */
  --shop-floor-ink: #1b1a17;

  /* Type */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --edge: 1.5rem;
  --content-max: 1200px;
  --radius-sm: 2px;
}

@media (min-width: 640px) {
  :root { --edge: 2.5rem; }
}
@media (min-width: 1100px) {
  :root { --edge: 4vw; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.002em;
  margin: 0;
}

p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

button { font-family: inherit; }

/* ---------- Container ---------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 19, 16, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--paper);
}
.brand .tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--paper-faint);
  margin-top: 0.25rem;
}
.brand .name .dot { color: var(--accent-bright); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--paper-dim);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--accent-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-call {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-call { display: inline-flex; }
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-800);
}
.mobile-panel.is-open { display: block; }
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--edge) 1.5rem;
}
.mobile-panel li + li { border-top: 1px solid var(--line-soft); }
.mobile-panel a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
}
.mobile-panel a[aria-current="page"] { color: var(--accent-bright); }
.mobile-panel .mobile-call {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .mobile-panel { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--paper-dim); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(27,26,23,0.25);
  color: var(--shop-floor-ink);
}
.btn-ghost-light:hover { border-color: var(--shop-floor-ink); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section { position: relative; }

.section-pad { padding-block: 5rem; }
@media (min-width: 900px) { .section-pad { padding-block: 7.5rem; } }

.on-floor { background: var(--shop-floor); color: var(--shop-floor-ink); }
.on-floor .meta, .on-floor p.lead { color: #55503f; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--paper-faint);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent-bright);
}
.on-floor .kicker { color: #6b6552; }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .section-head-split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

h2.display {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
h3.display-sm {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

p.lead {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-900);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,19,16,0.55) 0%, rgba(20,19,16,0.35) 35%, rgba(20,19,16,0.92) 92%),
    linear-gradient(90deg, rgba(20,19,16,0.95) 0%, rgba(20,19,16,0.35) 46%, rgba(20,19,16,0.15) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 3rem 3.5rem;
}

.hero-eyebrow {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  max-width: 14ch;
  color: var(--paper);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--paper-dim);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-stat-strip {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  border-top: 1px solid var(--line-soft);
}
.hero-stat-strip div {
  padding: 1.1rem 0 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 1.1rem;
}
.hero-stat-strip div:first-child { border-left: none; padding-left: 0; }
.hero-stat-strip .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--paper);
}
.hero-stat-strip .label {
  font-size: 0.8rem;
  color: var(--paper-faint);
}

/* Page header (non-home pages) */
.page-hero {
  position: relative;
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,16,0.5), var(--ink-900) 88%);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  max-width: 16ch;
}
.page-hero p.lead { margin-top: 1rem; }

/* ==========================================================================
   Editorial split layouts
   ========================================================================== */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4vw; }
  .split.gap-lg { grid-template-columns: 0.9fr 1.1fr; }
  .split-reverse { direction: rtl; }
  .split-reverse > * { direction: ltr; }
}

.media-frame {
  position: relative;
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.ratio-4-5 { aspect-ratio: 4 / 5; }
.media-frame.ratio-16-10 { aspect-ratio: 16 / 10; }
.media-frame.ratio-1-1 { aspect-ratio: 1 / 1; }
.media-frame.ratio-3-2 { aspect-ratio: 3 / 2; }

.media-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(20,19,16,0.85);
  border: 1px solid var(--line-soft);
  color: var(--paper-dim);
  font-size: 0.72rem;
  padding: 0.4rem 0.7rem;
}

.overlap-card {
  position: relative;
  z-index: 2;
  background: var(--ink-700);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-top: -3.5rem;
  margin-inline: var(--edge);
}
@media (min-width: 900px) {
  .overlap-card { margin-top: -4.5rem; max-width: 20rem; }
}

/* ==========================================================================
   Services overview grid (home)
   ========================================================================== */
.service-list {
  display: grid;
  border-top: 1px solid var(--line-soft);
}
.service-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
@media (min-width: 700px) {
  .service-row { grid-template-columns: 3.5rem 1fr auto; align-items: center; }
}
.service-row .idx {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--paper-faint);
}
.service-row h4 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--paper);
}
.service-row p {
  color: var(--paper-dim);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  max-width: 52ch;
}
.service-row .go {
  display: none;
  color: var(--paper-faint);
  font-size: 0.85rem;
}
@media (min-width: 700px) { .service-row .go { display: inline; } }
.service-row:hover { background: var(--ink-700); }
.service-row:hover .idx, .service-row:hover .go { color: var(--accent-bright); }

/* ---------- Why us ---------- */
.reason-grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (min-width: 700px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .reason-grid { grid-template-columns: repeat(4, 1fr); }
}
.reason-card {
  background: var(--ink-800);
  padding: 2rem 1.75rem;
}
.reason-card .num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 1.25rem;
}
.reason-card h4 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.reason-card p { color: var(--paper-dim); font-size: 0.92rem; }

/* ---------- Reviews strip ---------- */
.review-scroller {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .review-scroller { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card .stars { color: var(--accent-bright); letter-spacing: 0.15em; font-size: 0.9rem; }
.review-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--paper);
  font-style: italic;
}
.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--paper-faint);
}
.review-placeholder-note {
  border: 1px dashed var(--line);
  padding: 1.25rem 1.5rem;
  color: var(--paper-faint);
  font-size: 0.88rem;
}

/* ---------- Service area ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--paper-dim);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: var(--on-accent);
}
.cta-band .kicker::before { background: rgba(246,237,230,0.6); }
.cta-band .kicker { color: rgba(246,237,230,0.75); }
.cta-band h2 { color: var(--on-accent); }
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .cta-band-inner { flex-direction: row; align-items: center; }
}
.cta-band .btn-primary { background: var(--ink-900); color: var(--paper); }
.cta-band .btn-primary:hover { background: var(--ink-800); }
.cta-band .btn-outline { border-color: rgba(246,237,230,0.5); color: var(--on-accent); }
.cta-band .btn-outline:hover { border-color: var(--on-accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--line-soft);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper-faint);
  margin-bottom: 1.1rem;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--paper);
}
.footer-brand p {
  color: var(--paper-dim);
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.92rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-links a { color: var(--paper-dim); font-size: 0.92rem; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--paper-faint);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.field label {
  font-size: 0.85rem;
  color: var(--paper-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--ink-700);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  border-color: var(--accent-bright);
}
.field-row {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 600px) {
  .field-row-2 { grid-template-columns: 1fr 1fr; }
}
.form-note {
  font-size: 0.82rem;
  color: var(--paper-faint);
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-bright);
  display: none;
}
.form-status.is-visible { display: block; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
}
.gallery-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.gallery-tab.is-active,
.gallery-tab:hover {
  border-color: var(--accent-bright);
  color: var(--paper);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.gallery-item { position: relative; overflow: hidden; background: var(--ink-700); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(20,19,16,0.85), transparent);
}
.gallery-item.hidden-item { display: none; }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.ba-pair figure { margin: 0; background: var(--ink-700); }
.ba-pair figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: var(--paper-faint);
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   Misc components
   ========================================================================== */
.tag-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--paper-faint);
  border: 1px dashed var(--line);
  padding: 0.5rem 0.85rem;
}

.map-frame {
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  overflow: hidden;
  filter: grayscale(0.4) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-block {
  display: grid;
  gap: 1.75rem;
}
.contact-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
}
.contact-item .ic {
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright);
}
.contact-item .ic svg { width: 1.15rem; height: 1.15rem; }
.contact-item h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { color: var(--paper-dim); font-size: 0.95rem; }
.contact-item a:hover { color: var(--paper); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--paper-dim);
}
.trust-strip svg { width: 1.15rem; height: 1.15rem; color: var(--accent-bright); flex-shrink: 0; }

/* Reveal-on-load (single orchestrated entrance for hero only) */
.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in {
  animation: revealUp 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Click-to-call floating button (mobile) */
.mobile-call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  background: var(--accent);
  color: var(--on-accent);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mobile-call-fab svg { width: 1.4rem; height: 1.4rem; }
@media (min-width: 900px) { .mobile-call-fab { display: none; } }
