/* ============================================================
   SWFL'S MOBILE MECHANIC — demo site
   Palette sampled directly from the business's real logo:
   oxide red #7c231d, ink navy #12203d, cream #f5ead0
   ============================================================ */

:root {
  --oxide: #7c231d;
  --oxide-dark: #591813;
  --oxide-bright: #a8362c;
  --ink: #12203d;
  --ink-deep: #0b1526;
  --cream: #f5ead0;
  --cream-dim: #e8dbb8;
  --asphalt: #17181a;
  --asphalt-2: #232426;
  --steel: #4d5560;
  --hazard: #e8a93b;
  --paper: #faf7ee;
  --success-line: #2f5d3a;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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 {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--ink-deep);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxide);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--oxide);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-whatsapp {
  background: #25d366;
  color: #06210f;
  box-shadow: 0 4px 0 #128c42;
}
.btn-whatsapp:hover { background: #2ee273; }
.btn-whatsapp:active { box-shadow: 0 2px 0 #128c42; }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(245,234,208,0.1); }

.btn-oxide {
  background: var(--oxide);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--oxide-dark);
}
.btn-oxide:hover { background: var(--oxide-bright); }
.btn-oxide:active { box-shadow: 0 2px 0 var(--oxide-dark); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-deep);
  border-bottom: 3px solid var(--oxide);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hazard);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover { color: var(--cream); border-color: var(--oxide-bright); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call {
  display: none;
  font-family: var(--font-mono);
  color: var(--cream);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(11,21,38,0.55) 0%, rgba(11,21,38,0.75) 55%, rgba(11,21,38,0.97) 100%), url('../images/gallery-garage-1.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 64px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--paper);
  max-width: 820px;
  margin: 18px 0 10px;
}
.hero h1 em {
  font-style: normal;
  color: var(--hazard);
}
.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--cream-dim);
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(245,234,208,0.25);
  padding-top: 22px;
}
.hero-strip-item {
  flex: 1 1 200px;
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid rgba(245,234,208,0.2);
}
.hero-strip-item:last-child { border-right: none; }
.hero-strip-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  display: block;
}
.hero-strip-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 12px;
}
.section-head p {
  margin-top: 14px;
  color: var(--steel);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--ink-deep);
  color: var(--cream);
}
.section-dark .section-head h2 { color: var(--paper); }
.section-dark .section-head p { color: var(--cream-dim); }

/* ---------- Services: work-order tags ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.tag-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink-deep);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tag-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--oxide); }
.tag-card::before {
  /* punch hole like a shop tag */
  content: '';
  position: absolute;
  top: -10px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border: 2px solid var(--ink-deep);
  border-radius: 50%;
}
.tag-card .tag-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--oxide);
  letter-spacing: 0.08em;
}
.tag-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 12px;
}
.tag-card p {
  color: var(--steel);
  font-size: 0.95rem;
}
.tag-card .tag-dash {
  margin-top: 16px;
  border-top: 1px dashed var(--steel);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--oxide);
  letter-spacing: 0.06em;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.02) contrast(1.03);
}
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { margin-bottom: 16px; color: var(--ink-deep); font-size: 1.02rem; }
.about-copy p.lead {
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.5rem;
  color: var(--oxide);
  line-height: 1.3;
}
.about-list { list-style: none; margin-top: 22px; }
.about-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--cream-dim);
  font-size: 0.98rem;
}
.about-list li:first-child { border-top: none; }
.about-list li strong { font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; color: var(--oxide); min-width: 150px; }

.about-photo {
  position: relative;
  border: 6px solid var(--paper);
  outline: 2px solid var(--ink-deep);
  box-shadow: 10px 10px 0 var(--hazard);
}
.about-photo img { border-radius: 2px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.testi-card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-left: 4px solid var(--hazard);
}
.testi-card p.quote {
  font-size: 1.02rem;
  color: var(--paper);
  margin-bottom: 16px;
}
.testi-card .author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hazard);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.testi-card .author span { color: var(--cream-dim); text-transform: none; letter-spacing: 0; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--paper);
  border: 2px solid var(--ink-deep);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-card p.small { color: var(--steel); margin-bottom: 24px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--cream-dim);
}
.contact-row:first-of-type { border-top: none; }
.contact-row .ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.contact-row a, .contact-row span.val { font-family: var(--font-mono); font-size: 0.98rem; }
.contact-row .label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); font-family: var(--font-body); }

.contact-cta {
  background: var(--oxide);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-cta h3 { color: var(--paper); font-size: 1.6rem; margin-bottom: 12px; }
.contact-cta p { color: var(--cream-dim); margin-bottom: 26px; }

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink-deep);
  border-radius: 30px;
  padding: 6px 14px;
  color: var(--ink-deep);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink-deep);
  color: var(--cream-dim);
  padding: 40px 0;
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer a.footer-wa { color: var(--hazard); font-family: var(--font-mono); }

/* ---------- WhatsApp floating button (mobile convenience) ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .header-call { display: inline-flex; }
}

@media (max-width: 940px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

@media (max-width: 760px) {
  .site-header .container { height: 66px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 0.88rem; }
  .brand-tag { font-size: 0.58rem; }
  .header-actions .btn-whatsapp { display: none; }
  nav.main-nav {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: var(--ink-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    border-bottom: 3px solid var(--oxide);
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(245,234,208,0.12); }
  .nav-toggle { display: block; }
  .hero-strip-item { flex: 1 1 45%; margin-bottom: 16px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .g-wide, .gallery-grid .g-tall { grid-column: span 1; grid-row: span 1; }
}
