/* ============================================
   CASCADE MOBILE AUTO REPAIR — design tokens
   ============================================ */
:root{
  --bg: #0d110e;
  --bg-panel: #161811;
  --bg-panel-2: #1c1e16;
  --cream: #ede5da;
  --cream-dim: #cdc6b8;
  --line: #34362b;
  --orange: #e68a00;
  --orange-hi: #ffab29;
  --text-muted: #a6a397;
  --radius: 2px;
  --maxw: 1280px;
  --display: "Anton", "Archivo Black", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3{
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.02;
  margin: 0;
  color: var(--cream);
}
p{ margin:0; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

::selection{ background: var(--orange); color:#100c00; }

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

/* ============ topographic line signature ============ */
.ridge-divider{ display:block; width:100%; height:auto; }
.ridge-divider path{
  fill:none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1);
}
.ridge-divider.in-view path{ stroke-dashoffset: 0; }

/* ============ header ============ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(13,17,14,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
  gap: 24px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 54px; width:auto; }
.brand:focus-visible{ outline-offset:6px; }

.main-nav{ display:flex; align-items:center; gap: 32px; }
.main-nav ul{ list-style:none; display:flex; gap:28px; margin:0; padding:0; }
.main-nav a{
  font-size: 15px; color: var(--cream-dim); position:relative; padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background: var(--orange); transition: width .25s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--cream); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ width:100%; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--body); font-weight:600; font-size:14px;
  letter-spacing:.3px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{ background: var(--orange); color:#160f00; }
.btn-primary:hover{ background: var(--orange-hi); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,138,0,.25); }
.btn-ghost{ background:transparent; color:var(--cream); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--orange); color: var(--orange-hi); transform: translateY(-2px); }
.btn-block{ width:100%; }

.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.hamburger span{ width:24px; height:2px; background: var(--cream); transition: transform .25s ease, opacity .25s ease; }
.nav-scrim{ display:none; }

/* ============ hero ============ */
.hero{
  position:relative;
  min-height: 88vh;
  display:flex; align-items:flex-end;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-size: cover; background-position: center 60%;
  transform: scale(1.08);
  animation: hero-settle 1.8s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes hero-settle{ to{ transform: scale(1); } }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,17,14,.92) 0%, rgba(13,17,14,.35) 42%, rgba(13,17,14,.15) 60%, rgba(13,17,14,.85) 100%);
}
.hero-content{ position:relative; z-index:1; padding: 120px 0 72px; width:100%; }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; letter-spacing: 2.5px; text-transform:uppercase;
  color: var(--orange-hi); margin-bottom: 22px;
  opacity:0; animation: rise .7s ease .15s forwards;
}
.eyebrow::before{ content:""; width:28px; height:1px; background: var(--orange-hi); }
.hero h1{
  font-size: clamp(46px, 7.4vw, 110px);
  max-width: 16ch;
  opacity:0; animation: rise .8s ease .3s forwards;
}
.hero-sub{
  margin-top:22px; max-width: 46ch; font-size:18px; color: var(--cream-dim);
  opacity:0; animation: rise .8s ease .5s forwards;
}
.hero-actions{
  margin-top:34px; display:flex; gap:16px; flex-wrap:wrap;
  opacity:0; animation: rise .8s ease .65s forwards;
}
@keyframes rise{ from{ opacity:0; transform: translateY(22px);} to{opacity:1; transform:translateY(0);} }

/* ============ sections ============ */
section{ position:relative; }
.section-pad{ padding: 96px 0; }
.section-head{ margin-bottom: 56px; max-width: 62ch; }
.section-head .eyebrow{ opacity:1; animation:none; }
.section-head h2{ font-size: clamp(32px, 4.4vw, 56px); margin-top:10px; }
.section-head p{ margin-top:16px; color: var(--cream-dim); font-size:17px; }

.dotted{ border:none; border-top: 2px dashed var(--line); margin:0; }

/* ============ services grid ============ */
.services-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.service-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  overflow:hidden;
  display:flex; flex-direction:column;
  opacity:0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease, border-color .25s ease;
}
.service-card.in-view{ opacity:1; transform:translateY(0); }
.service-card:hover{ border-color: var(--orange); }
.service-card .photo{ aspect-ratio: 4/3; overflow:hidden; }
.service-card .photo img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.service-card:hover .photo img{ transform: scale(1.06); }
.service-card .info{ padding: 22px 24px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.service-card h3{ font-size: 22px; }
.service-time{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; color: var(--orange-hi); letter-spacing:.5px;
  margin-top:auto; padding-top:12px; border-top:1px dashed var(--line);
}
.service-desc{ color: var(--cream-dim); font-size:14.5px; }

/* ============ why go mobile ============ */
.why-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:48px; }
.why-card{
  border: 1px dashed var(--line);
  padding: 34px 28px;
  text-align:center;
  transition: border-color .25s ease, transform .25s ease;
  opacity:0; transform: translateY(24px);
}
.why-card.in-view{ opacity:1; transform:translateY(0); }
.why-card:hover{ border-color: var(--orange); transform: translateY(-4px); }
.why-card .num{ font-family: var(--display); color: var(--orange); font-size:14px; letter-spacing:2px; margin-bottom:14px; display:block; }
.why-card h3{ font-size:20px; margin-bottom:12px; }
.why-card p{ color: var(--cream-dim); font-size:15px; }

/* ============ testimonials ============ */
.testimonials{ background: var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:0; }
.testi-card{
  padding: 40px 34px; border-left:1px solid var(--line);
  opacity:0; transform: translateY(20px);
}
.testi-card.in-view{ opacity:1; transform:translateY(0); }
.testi-card:first-child{ border-left:none; }
.quote-mark{ font-family: var(--display); font-size:44px; color: var(--orange); line-height:1; display:block; margin-bottom: 8px;}
.testi-card p.quote{ font-size:17px; font-weight:600; color:var(--cream); margin-bottom:20px; }
.testi-card .who{ font-size:13px; color: var(--text-muted); letter-spacing:.4px; }

/* ============ CTA banner ============ */
.cta-banner{
  padding: 88px 0; text-align:center; position:relative; overflow:hidden;
}
.cta-banner h2{ font-size: clamp(30px,5vw,52px); max-width: 20ch; margin: 0 auto; }
.cta-banner p{ color: var(--cream-dim); margin: 18px auto 32px; max-width:52ch; }

/* ============ estimate form ============ */
.form-shell{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 48px;
  max-width: 780px; margin: 0 auto;
}
.field{ margin-bottom: 20px; }
.field label{ display:block; font-size:13px; letter-spacing:.4px; margin-bottom:8px; color: var(--cream-dim); }
.field .req{ color: var(--orange-hi); }
.field input, .field select, .field textarea{
  width:100%; background: var(--bg); border:1px solid var(--line); color: var(--cream);
  font-family: var(--body); font-size:15px; padding: 13px 14px; border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(230,138,0,.15); outline:none;
}
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
textarea{ resize: vertical; min-height:110px; }
.form-note{ font-size:13px; color: var(--text-muted); margin-top:16px; text-align:center; }
.form-success{
  display:none; text-align:center; padding: 40px 20px;
}
.form-success.show{ display:block; }
.form-success h3{ font-size:26px; color: var(--orange-hi); margin-bottom:10px; }

/* ============ about page specifics ============ */
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 0; align-items:stretch;
}
.split .copy{ padding: 96px 64px; display:flex; flex-direction:column; justify-content:center; }
.split .art{ position:relative; min-height:520px; overflow:hidden; }
.split .art img{ width:100%; height:100%; object-fit:cover; }
.split .copy p{ color: var(--cream-dim); margin-top:20px; max-width:52ch; }
.split .copy .tag-line{ margin-top:26px; font-weight:700; color:var(--cream); }

.value-strip{ text-align:center; padding: 40px 0 0; }

/* ============ terms page ============ */
.legal-list{ counter-reset: legal; list-style:none; margin: 40px 0 0; padding:0; max-width: 900px; }
.legal-list li{
  counter-increment: legal;
  position:relative; padding: 22px 0 22px 56px; border-top: 1px dashed var(--line);
  color: var(--cream-dim); font-size:16px;
}
.legal-list li:last-child{ border-bottom: 1px dashed var(--line); }
.legal-list li::before{
  content: counter(legal, decimal-leading-zero);
  position:absolute; left:0; top:20px;
  font-family: var(--display); color: var(--orange); font-size:18px; letter-spacing:1px;
}
.legal-list strong{ color: var(--cream); }
.legal-list b{ color: var(--orange-hi); }

/* ============ footer ============ */
.site-footer{ padding: 72px 0 40px; }
.footer-cta{ text-align:center; max-width: 700px; margin: 0 auto 64px; }
.footer-cta h2{ font-size: clamp(28px,4vw,44px); }
.footer-cta p{ color:var(--cream-dim); margin-top:14px; }
.footer-cta .btn{ margin-top:28px; }
.footer-grid{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
  padding-top: 40px; border-top: 1px dashed var(--line);
}
.footer-brand img{ height:60px; }
.social-row{ display:flex; gap:14px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.social-row svg{ width:16px; height:16px; fill: var(--cream-dim); transition: fill .2s ease; }
.social-row a:hover{ border-color: var(--orange); transform: translateY(-3px); background: rgba(230,138,0,.08); }
.social-row a:hover svg{ fill: var(--orange-hi); }
.footer-fine{ text-align:right; }
.footer-fine p{ font-size:13px; color: var(--text-muted); }

/* ============ reveal utility ============ */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

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

/* ============ responsive ============ */
@media (max-width: 980px){
  .services-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .testi-grid{ grid-template-columns:1fr; }
  .testi-card{ border-left:none; border-top:1px solid var(--line); }
  .testi-card:first-child{ border-top:none; }
  .split{ grid-template-columns:1fr; }
  .split .art{ min-height:340px; order:-1; }
  .split .copy{ padding: 56px 28px; }
  .field-row{ grid-template-columns:1fr; }
  .form-shell{ padding: 32px 22px; }
}

@media (max-width: 760px){
  .main-nav ul{ display:none; }
  .main-nav .btn-primary{ display:none; }
  .hamburger{ display:flex; }
  .main-nav.open{
    position:fixed; inset:0 0 0 auto; top:0; height:100vh; width: min(78vw, 320px);
    background: var(--bg-panel); border-left:1px solid var(--line);
    flex-direction:column; align-items:flex-start; padding: 100px 32px 32px;
    transform: translateX(0); z-index:120;
  }
  .main-nav{ transform: translateX(100%); transition: transform .3s ease; position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px); flex-direction:column; align-items:flex-start; padding:100px 32px 32px; background:var(--bg-panel); border-left:1px solid var(--line); z-index:120; }
  .main-nav ul{ display:flex; flex-direction:column; gap:22px; }
  .main-nav .btn-primary{ display:inline-flex; margin-top:28px; }
  .nav-scrim.open{ display:block; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:110; }
  .hero-content{ padding: 100px 0 56px; }
  .hero{ min-height: 78vh; }
  .footer-grid{ flex-direction:column; align-items:flex-start; }
  .footer-fine{ text-align:left; }
  .value-strip{ display:none; }
}
