/* ==========================================================================
   South Austin Mobile Detailing — demo site
   Design tokens
   ink      #14161A  asphalt black (dark sections, headlines)
   concrete #E4E1D8  pale warm-grey (light section bg)
   paper    #F7F6F2  near-white (cards on light bg)
   steel    #5C6670  mid grey-blue (secondary text on dark)
   teal     #1F7A73  primary accent (hoses, water, precision)
   brass    #C9922F  secondary accent (hardware, sun)
   Type: Oswald (display, condensed/industrial) + Work Sans (body)
   ========================================================================== */

:root {
  --ink: #14161a;
  --ink-soft: #1d2026;
  --concrete: #e4e1d8;
  --paper: #f7f6f2;
  --steel: #5c6670;
  --steel-light: #8c94a0;
  --teal: #1f7a73;
  --teal-light: #2f9c93;
  --brass: #c9922f;
  --line: rgba(20, 22, 26, 0.12);
  --line-dark: rgba(247, 246, 242, 0.14);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { position: relative; }

.section-pad { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0.95em 1.6em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: var(--paper);
}
.btn-primary:hover { background: var(--teal-light); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(247,246,242,0.4);
  color: var(--paper);
}
.btn-outline-light:hover { border-color: var(--paper); }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(20,22,26,0.3);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--ink); }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: #d9a445; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 22, 26, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
  padding: 1.1rem 0;
}
.site-header.is-scrolled {
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--steel-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.nav-links a:hover { opacity: 1; }

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

.nav-phone {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-links { 
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-outline-light { display: none; }
}
@media (min-width: 881px) {
  .nav-phone { display: inline-flex; }
  .only-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding-top: 5.5rem;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--steel-light);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-light);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-bottom: 0.55em;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-light);
}
.hero-lede {
  font-size: 1.08rem;
  color: rgba(247,246,242,0.78);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.hero-meta div span {
  font-size: 0.78rem;
  color: var(--steel-light);
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 16/11;
  object-fit: cover;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 60%;
  height: 60%;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  z-index: -1;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- Section headers ---------- */
.kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--teal);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.section-head {
  max-width: 620px;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.section-head p {
  color: var(--steel);
  font-size: 1.02rem;
  margin: 0;
}
.section-head.on-dark p { color: var(--steel-light); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
}
.service-row h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.service-row p { margin: 0; color: var(--steel); font-size: 0.96rem; }
.service-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
}
.service-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--steel);
  font-weight: 400;
}
@media (max-width: 720px) {
  .service-row { grid-template-columns: 50px 1fr; }
  .service-price { grid-column: 2; text-align: left; margin-top: 0.4rem; }
}

.services-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--steel);
  border-left: 2px solid var(--brass);
  padding-left: 0.9rem;
}

/* ---------- About ---------- */
.about { background: var(--concrete); }
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media img { border-radius: 4px; }
.about-body p { color: var(--ink); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.6rem;
  margin-top: 2rem;
}
.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.about-stats span {
  font-size: 0.78rem;
  color: var(--steel);
}
@media (max-width: 820px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); color: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 0.6rem;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figure:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-grid figure:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-grid figure:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery-grid figure:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.gallery-grid figure:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.gallery-grid figure:nth-child(6) { grid-column: span 2; grid-row: span 1; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.gallery-cta { margin-top: 2rem; }

/* ---------- Why us ---------- */
.why { background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.why-item { padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--steel); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--concrete); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  background: var(--paper);
  padding: 1.7rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.review-stars { color: var(--brass); font-size: 0.95rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.review-card p { font-size: 0.96rem; color: var(--ink); margin-bottom: 1rem; }
.review-name { font-family: var(--font-display); font-size: 0.9rem; }
.review-meta { font-size: 0.78rem; color: var(--steel); }
@media (max-width: 820px) { .review-grid { grid-template-columns: 1fr; } }

.reviews-source {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- Service area ---------- */
.area { background: var(--ink); color: var(--paper); }
.area .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.area-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.7rem 2.2rem;
  list-style: none;
  padding: 0; margin: 1.6rem 0 0;
}
.area-list li {
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding-left: 1.1rem;
  position: relative;
  color: rgba(247,246,242,0.9);
}
.area-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--teal-light);
}
.area-note { color: var(--steel-light); font-size: 0.92rem; margin-top: 1.6rem; max-width: 42ch; }
@media (max-width: 780px) { .area .wrap { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.process-step { position: relative; padding-top: 1rem; }
.process-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--concrete);
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--steel); font-size: 0.92rem; margin: 0; }
@media (max-width: 820px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  color: var(--paper);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: clamp(2.6rem, 5vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 5vw, 3.4rem);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 0.3rem; }
.cta-band p { margin: 0; color: rgba(247,246,242,0.85); }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--concrete); }
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease;
}
.contact-card:hover { border-color: var(--teal); }
.contact-card .ico {
  width: 40px; height: 40px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.contact-card span { font-size: 0.85rem; color: var(--steel); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.contact-form > p { color: var(--steel); font-size: 0.9rem; margin-bottom: 1.4rem; }
.form-row { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.form-row label { font-size: 0.82rem; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 780px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-two { grid-template-columns: 1fr; } }

.form-status {
  font-size: 0.88rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 2.6rem 0 1.6rem;
  font-size: 0.86rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { color: var(--paper); font-size: 0.82rem; margin-bottom: 0.7rem; font-family: var(--font-body); font-weight: 600;}
.footer-col a { display: block; text-decoration: none; color: var(--steel-light); margin-bottom: 0.45rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.4rem;
}
.footer-social { display: flex; gap: 0.9rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--paper);
}
.footer-social a:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.mobile-bar .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}
.mobile-bar a {
  text-align: center;
  padding: 0.95rem 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--paper);
}
.mobile-bar a:first-child { border-right: 1px solid var(--line-dark); background: var(--teal); }
@media (max-width: 640px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 54px; }
}

/* visually hidden util */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
