/* Spring Creek Mobile Mechanic - style.css
   Convention: PascalCase component, -descendant, is-state
   Archetype: clean Houston-suburb service brand, warm and approachable
   Palette: pine #1c4a3a, moss #3f6b4e, amber #e2984a (CTA), cream #f7f2e7, ink #20261f
   Fonts (declared, system-stacked - no external font requests): Sora (heads) + Inter (body)
*/

:root{
  --pine:#1c4a3a;
  --pine-dark:#123328;
  --moss:#3f6b4e;
  --moss-light:#5c8a6c;
  --amber:#e2984a;
  --amber-dark:#c97f34;
  --cream:#f7f2e7;
  --cream-dark:#efe6d2;
  --white:#fffdf8;
  --ink:#20261f;
  --line:#ddd2b6;
  --clay:#a85f3d;
  --font-head:"Sora","Poppins",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-body:"Inter","Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --mobile-bar-h:3.75rem;
  --radius:.6rem;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  padding-bottom:var(--mobile-bar-h);
}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.22;margin:0 0 .55em;color:var(--pine-dark);font-weight:700;letter-spacing:-.01em}
h1{font-size:2.05rem}
h2{font-size:1.45rem}
h3{font-size:1.1rem}
p{margin:0 0 1em}
a{color:var(--moss)}
img{max-width:100%;display:block}
ul,ol{padding-left:1.25rem}

.Wrap{max-width:72rem;margin:0 auto;padding:0 1.25rem}

/* ===== Topbar ===== */
.Topbar{position:sticky;top:0;z-index:50;background:var(--pine);color:var(--cream);box-shadow:0 1px 0 rgba(0,0,0,.08)}
.Topbar-inner{max-width:72rem;margin:0 auto;padding:0 1.25rem;height:3.6rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.Topbar-brand{color:var(--white);font-family:var(--font-head);font-weight:700;font-size:1.05rem;text-decoration:none}
.Topbar-brand span{color:var(--amber)}
.Topbar-right{display:flex;align-items:center;gap:.9rem}
.Topbar-tag{display:none;font-family:var(--font-head);font-size:.72rem;letter-spacing:.02em;color:var(--cream-dark);opacity:.85}
.Topbar-phone{color:var(--amber);font-weight:700;font-size:1rem;text-decoration:none;white-space:nowrap;font-family:var(--font-head)}
@media (min-width:640px){.Topbar-tag{display:inline}}

/* ===== Nav ===== */
.Nav{background:var(--pine-dark);overflow-x:auto}
.Nav-inner{max-width:72rem;margin:0 auto;display:flex;gap:1.15rem;padding:.6rem 1.25rem;white-space:nowrap}
.Nav-inner a{color:var(--cream-dark);text-decoration:none;font-size:.85rem;font-weight:600;font-family:var(--font-head)}
.Nav-inner a:hover,.Nav-inner a.is-active{color:var(--amber)}

/* ===== Breadcrumbs ===== */
.Breadcrumbs{font-family:var(--font-head);font-size:.78rem;color:var(--clay);padding:.9rem 0}
.Breadcrumbs a{color:var(--clay);text-decoration:underline}
.Breadcrumbs-sep{margin:0 .35rem;color:var(--line)}

/* ===== Hero ===== */
.Hero{padding:2.25rem 0 2.5rem;background:linear-gradient(180deg,var(--cream) 0%,var(--cream-dark) 100%)}
.Hero-grid{display:grid;grid-template-columns:1fr;gap:1.6rem}
@media (min-width:900px){.Hero-grid{grid-template-columns:1.15fr .85fr;align-items:center;gap:2.5rem}}
.Hero-eyebrow{font-family:var(--font-head);font-size:.82rem;letter-spacing:.02em;color:var(--clay);margin-bottom:.6rem;font-weight:700}
.Hero h1{margin-bottom:.55rem;max-width:38rem}
.Hero-sub{font-size:1.06rem;color:#3a4238;max-width:36rem}
.Hero-ctas{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.2rem}

/* ===== Hero media (illustrative/honest imagery per DESIGN-PLAYBOOK) ===== */
.Hero-media{position:relative;border-radius:var(--radius);overflow:hidden;max-height:40vh;background:var(--pine-dark);box-shadow:0 8px 24px rgba(28,74,58,.18)}
.Hero-media img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:1600/893}
.Hero-media::before{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,51,40,0) 50%,rgba(18,51,40,.75) 100%),linear-gradient(120deg,rgba(28,74,58,.22),rgba(226,152,74,.10) 70%);
  pointer-events:none}
.Hero-media-tag{position:absolute;left:.75rem;bottom:.65rem;background:var(--amber);color:var(--pine-dark);
  font-family:var(--font-head);font-weight:700;font-size:.72rem;padding:.32rem .6rem;border-radius:.4rem;z-index:1}
@media (min-width:900px){.Hero-media{max-height:none}}

.Btn{display:inline-block;font-family:var(--font-head);font-weight:700;text-decoration:none;
  padding:.85rem 1.4rem;border-radius:.5rem;font-size:.98rem;
  border:2px solid transparent}
.Btn.is-primary{background:var(--amber);color:var(--pine-dark);border-color:var(--amber)}
.Btn.is-primary:hover{background:var(--amber-dark);border-color:var(--amber-dark)}
.Btn.is-outline{background:transparent;color:var(--pine-dark);border-color:var(--pine-dark)}
.Btn.is-outline:hover{background:var(--pine-dark);color:var(--cream)}

/* ===== Trust bar ===== */
.TrustBar{background:var(--pine-dark);color:var(--cream);padding:1rem 0}
.TrustBar-inner{display:grid;grid-template-columns:1fr;gap:.75rem;text-align:left}
@media (min-width:640px){.TrustBar-inner{grid-template-columns:repeat(4,1fr)}}
.TrustBar-item{font-size:.87rem;border-left:3px solid var(--amber);padding-left:.65rem;border-radius:2px}
.TrustBar-item strong{display:block;color:var(--amber);font-family:var(--font-head);font-size:.72rem;margin-bottom:.2rem}

/* ===== Sections ===== */
section{padding:2.6rem 0}
.Section--tight{padding:1.8rem 0}
.SectionTitle{max-width:44rem}
.SectionTitle-eyebrow{font-family:var(--font-head);font-size:.78rem;color:var(--clay);font-weight:700;letter-spacing:.02em}
.Band--olive{background:var(--pine);color:var(--cream)}
.Band--olive h2,.Band--olive h1{color:var(--white)}
.Band--tan{background:var(--cream-dark)}
.Band--coyote{background:var(--clay);color:var(--white)}
.Band--coyote h2{color:var(--white)}

/* ===== Spec sheet block, numbered 01/02/03 ===== */
.SpecSheet{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem}
.SpecSheet-num{font-family:var(--font-head);font-size:2.2rem;font-weight:700;color:var(--cream-dark);line-height:1;margin-bottom:.3rem}
.SpecSheet dl{display:grid;grid-template-columns:1fr;gap:.9rem;margin:1rem 0 0}
@media (min-width:640px){.SpecSheet dl{grid-template-columns:1fr 1fr}}
.SpecSheet dt{font-family:var(--font-head);font-size:.78rem;color:var(--clay);font-weight:700}
.SpecSheet dd{margin:.2rem 0 0;font-size:.95rem}

/* ===== ServiceRow: task | includes | time ===== */
.ServiceRow-list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--white)}
.ServiceRow{display:grid;grid-template-columns:2.6rem 1fr;gap:0;border-bottom:1px solid var(--line)}
.ServiceRow:last-child{border-bottom:none}
.ServiceRow-num{background:var(--pine);color:var(--amber);font-family:var(--font-head);font-weight:700;
  display:flex;align-items:flex-start;justify-content:center;padding:.9rem .3rem;font-size:.85rem}
.ServiceRow-body{padding:.9rem 1.1rem;display:grid;grid-template-columns:1fr;gap:.35rem}
@media (min-width:760px){.ServiceRow-body{grid-template-columns:1.4fr 1.8fr .9fr;gap:1rem;align-items:center}}
.ServiceRow-task{font-family:var(--font-head);font-weight:700;font-size:1rem}
.ServiceRow-task a{color:var(--pine-dark);text-decoration:none}
.ServiceRow-task a:hover{color:var(--moss);text-decoration:underline}
.ServiceRow-includes{font-size:.9rem;color:#3c4436}
.ServiceRow-time{font-family:var(--font-head);font-size:.8rem;color:var(--clay);font-weight:700}
.ServiceRow-time::before{content:"Time: "}
.ServiceRow.is-onsite{background:#fbf8f0}

/* ===== Table (pricing / cadence) ===== */
.TableWrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}
table{border-collapse:collapse;width:100%;min-width:32rem;background:var(--white);font-size:.92rem}
caption{font-family:var(--font-head);font-size:.78rem;text-align:left;color:var(--clay);padding:.5rem .75rem}
th,td{text-align:left;padding:.65rem .9rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:var(--pine);color:var(--amber);font-family:var(--font-head);font-size:.78rem}
tbody tr:nth-child(even){background:var(--cream)}

/* ===== Tiles (service grid on home) ===== */
.TileGrid{display:grid;grid-template-columns:1fr;gap:1.1rem}
@media (min-width:640px){.TileGrid{grid-template-columns:1fr 1fr}}
@media (min-width:1024px){.TileGrid{grid-template-columns:repeat(3,1fr)}}
.Tile{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;display:flex;flex-direction:column}
.Tile-tag{display:inline-block;font-family:var(--font-head);font-size:.7rem;font-weight:700;color:var(--pine-dark);background:var(--amber);padding:.2rem .5rem;margin-bottom:.6rem;width:fit-content;border-radius:.35rem}
.Tile h3{margin-bottom:.4rem}
.Tile p{font-size:.92rem;color:#3c4436;flex-grow:1}
.Tile a{font-weight:700;font-size:.86rem;text-decoration:none;color:var(--moss)}
.Tile a:hover{text-decoration:underline}

/* ===== FAQ ===== */
.Faq details{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:.95rem 1.15rem;margin-bottom:.7rem}
.Faq summary{font-family:var(--font-head);font-weight:700;cursor:pointer;font-size:1rem}
.Faq details[open] summary{color:var(--moss);margin-bottom:.5rem}
.Faq p{margin:0;font-size:.93rem;color:#3c4436}

/* ===== Quote form ===== */
.QuoteBand{background:var(--pine-dark);color:var(--cream)}
.QuoteBand .SectionTitle-eyebrow{color:var(--amber)}
.QuoteBand h2{color:var(--white)}
.QuoteBand p{color:var(--cream-dark)}
.QuoteForm{display:grid;grid-template-columns:1fr;gap:.9rem;max-width:34rem;margin-top:1.25rem}
.QuoteForm label{font-family:var(--font-head);font-size:.8rem;color:var(--cream);display:block;font-weight:700}
.QuoteForm input,.QuoteForm select,.QuoteForm textarea{
  display:block;width:100%;margin-top:.35rem;padding:.7rem .8rem;font-size:1rem;
  border:1px solid var(--line);border-radius:.4rem;background:var(--white);color:var(--ink);font-family:var(--font-body)}
.QuoteForm textarea{min-height:5rem;resize:vertical}
.QuoteForm button{
  font-family:var(--font-head);font-weight:700;background:var(--amber);color:var(--pine-dark);
  border:none;border-radius:.5rem;padding:.85rem 1.2rem;font-size:1rem;cursor:pointer}
.QuoteForm button:hover{background:var(--amber-dark)}
.QuoteForm-note{font-size:.82rem;margin-top:.75rem;color:var(--cream-dark)}

/* ===== CTA band ===== */
.CtaBand{background:var(--clay);color:var(--white);text-align:center}
.CtaBand h2{color:var(--white)}
.CtaBand .Btn.is-outline{border-color:var(--white);color:var(--white)}
.CtaBand .Btn.is-outline:hover{background:var(--white);color:var(--clay)}

/* ===== Content pages ===== */
.Prose{max-width:46rem}
.Prose h2{margin-top:1.75rem}
.Prose h3{margin-top:1.25rem}
.LimitNote{background:var(--white);border:1px dashed var(--clay);border-radius:var(--radius);padding:1rem 1.2rem;font-size:.92rem}
.LimitNote strong{color:var(--clay);font-family:var(--font-head)}
.ProcessList{list-style:none;padding:0;counter-reset:step}
.ProcessList li{counter-increment:step;position:relative;padding-left:2.6rem;margin-bottom:1rem}
.ProcessList li::before{
  content:counter(step,decimal-leading-zero);position:absolute;left:0;top:-.1rem;
  width:2rem;height:2rem;background:var(--pine);color:var(--amber);border-radius:.4rem;
  font-family:var(--font-head);font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center}

/* ===== Area / roll-out band ===== */
.RollBand{background:var(--cream-dark);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.GateGrid{display:grid;grid-template-columns:1fr;gap:.85rem;margin-top:1.2rem}
@media (min-width:640px){.GateGrid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.GateGrid{grid-template-columns:repeat(3,1fr)}}
.GateCard{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}
.GateCard-name{font-family:var(--font-head);font-weight:700;font-size:.97rem;margin-bottom:.3rem;color:var(--pine-dark)}
.GateCard-hours{font-family:var(--font-head);font-size:.76rem;color:var(--clay);font-weight:700}

/* ===== Footer ===== */
.Footer{background:var(--pine);color:var(--cream);padding:2.3rem 0 1.5rem}
.Footer-inner{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media (min-width:640px){.Footer-inner{grid-template-columns:repeat(3,1fr)}}
.Footer-brand{color:var(--white);font-family:var(--font-head);font-weight:700;font-size:1.05rem;margin-bottom:.4rem}
.Footer-heading{font-family:var(--font-head);font-size:.78rem;color:var(--white);margin-bottom:.5rem}
.Footer a{color:var(--cream-dark)}
.Footer ul{list-style:none;padding:0;margin:0}
.Footer li{margin-bottom:.35rem;font-size:.88rem}
.Footer-legal{max-width:72rem;margin:1.75rem auto 0;padding:1rem 1.25rem 0;border-top:1px solid #2e5c48;font-size:.8rem;color:var(--cream-dark)}

/* ===== Sticky mobile bar ===== */
.MobileBar{position:fixed;bottom:0;left:0;right:0;z-index:60;display:flex;height:var(--mobile-bar-h);box-shadow:0 -2px 10px rgba(0,0,0,.12)}
.MobileBar-call,.MobileBar-quote{flex:1;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-head);font-weight:700;font-size:1rem;text-decoration:none;min-height:48px}
.MobileBar-call{background:var(--amber);color:var(--pine-dark)}
.MobileBar-quote{background:var(--pine-dark);color:var(--cream)}
@media (min-width:900px){.MobileBar{display:none}body{padding-bottom:0}}

/* ===== Utility ===== */
.u-text-center{text-align:center}
.u-mt-0{margin-top:0}
.BadgeRow{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.Badge{font-family:var(--font-head);font-size:.72rem;font-weight:700;background:var(--amber);color:var(--pine-dark);padding:.28rem .55rem;border-radius:.4rem}

/* Mobile table fit: prevent right-edge cutoff on phones */
@media (max-width: 40rem) {
  table { min-width: 0 !important; width: 100% !important; font-size: 0.82rem !important; display: table !important; }
  table th, table td { padding: 0.45rem 0.4rem !important; white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; }
  .tableScroll, .table-wrap, .table-scroll, [class*="table"] { overflow-x: visible !important; }
}
