/* ==========================================================================
   Spokane Asphalt Paving Co. — shared stylesheet
   Brand tokens: --primary (construction gold) / --dark (asphalt slate blue)
   Signature motif: the dashed gold center line you see on a freshly striped road.
   ========================================================================== */

:root {
  --primary: #FCA311;
  --primary-deep: #E08F00;
  --dark: #14213D;
  --dark-2: #0D1730;
  --ink: #1A1F2B;
  --paper: #F4F3EE;
  --line: #D8D5CB;
  --muted: #4F566A;
  --white: #FFFFFF;
  --font-head: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--dark); padding: .7rem 1rem; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.04; letter-spacing: .005em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-top: 1.7em; letter-spacing: .01em; }
p { margin: 0 0 1.15em; }
.prose { max-width: 72ch; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.lead { font-size: 1.18rem; line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .03em;
  padding: .72rem 1.5rem; border: 2px solid var(--primary); background: var(--primary); color: var(--dark);
  text-decoration: none; border-radius: var(--radius); cursor: pointer; line-height: 1.1; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--white); border-color: var(--white); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--primary); border-color: var(--primary); color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); color: var(--white); box-shadow: 0 2px 0 var(--primary); }
.topbar { background: var(--dark-2); font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #E7EAF2; text-decoration: none; }
.topbar a:hover { color: var(--primary); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.fb-link { display: inline-flex; align-items: center; gap: .45rem; }
.fb-link svg { width: 18px; height: 18px; fill: currentColor; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.55rem; line-height: .95; letter-spacing: .02em; }
.brand-name small { display: block; font-weight: 700; font-size: .95rem; color: var(--primary); letter-spacing: .12em; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); padding: .45rem .8rem; font: 700 1rem var(--font-body); border-radius: var(--radius); cursor: pointer; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: .1rem; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .7rem .8rem; display: block; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: .45rem; width: .38rem; height: .38rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 290px; background: var(--white); border-top: 3px solid var(--primary); box-shadow: 0 14px 30px rgba(10,16,35,.28); padding: .4rem 0; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { color: var(--dark); padding: .55rem 1.1rem; font-weight: 500; }
.sub a:hover { background: var(--paper); color: #000; }
.nav-cta { margin-left: .6rem; padding: .55rem 1.1rem !important; font-family: var(--font-head); font-size: 1.2rem !important; font-weight: 800 !important; background: var(--primary); color: var(--dark) !important; letter-spacing: .03em; }
.nav-cta:hover { background: var(--white); color: var(--dark) !important; }

/* ---------- Lane-stripe motif ---------- */
.stripe { height: 6px; background: repeating-linear-gradient(90deg, var(--primary) 0 38px, transparent 38px 70px); }

/* ---------- Heroes ---------- */
.hero { position: relative; background: var(--dark); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); }
.hero p { color: #E4E8F1; }
.hero a:not(.btn) { color: var(--primary); }
.hero-sub { padding: 3rem 0 3.4rem; }
.hero-sub .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-figure { margin: 0; border-bottom: 6px solid var(--primary); background: var(--dark-2); }
.hero-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.crumbs { font-size: .9rem; margin-bottom: 1.1rem; color: #B9C1D6; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: #7E89A6; }
.crumbs a { color: #DCE2F0 !important; }

.hero-home { background: linear-gradient(105deg, rgba(13,23,48,.96) 0%, rgba(20,33,61,.9) 52%, rgba(20,33,61,.72) 100%), var(--hero-img) center/cover no-repeat; padding: 3.6rem 0 4rem; }
.hero-home .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.2rem; align-items: start; }
.hero-home h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.hero-home .lead { color: #F1F3F8; }
.hero-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.hero-points li { padding-left: 1.6rem; position: relative; color: #E4E8F1; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .9rem; height: 3px; background: var(--primary); }

/* ---------- Estimate form ---------- */
.form-card { background: var(--white); color: var(--ink); border-top: 6px solid var(--primary); padding: 1.7rem 1.6rem 1.8rem; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(5,10,25,.35); }
.form-card h2, .form-card h3 { margin: 0 0 .35rem; font-size: 2.1rem; color: var(--dark); }
.form-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: .25rem; color: var(--dark); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .66rem .75rem; border: 1.5px solid #B7B4A9; border-radius: var(--radius); background: #FCFCFA; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--primary); outline-offset: 0; border-color: var(--dark); }
.field textarea { min-height: 96px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: .4rem; font-size: 1.4rem; }
.form-note { font-size: .82rem !important; margin: .8rem 0 0 !important; }
.hp { position: absolute; left: -9999px; }

/* ---------- Page sections ---------- */
.section { padding: 4rem 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); color: #E4E8F1; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--primary); }
.section h2:first-child { margin-top: 0; }
.section-intro { max-width: 70ch; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.pillar { border-top: 4px solid var(--primary); padding-top: 1rem; }
.pillar h3 { margin-top: 0; font-size: 1.7rem; }
.pillar p { margin: 0; font-size: .98rem; }

/* Services ledger (replaces the generic card grid) */
.ledger { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.ledger li { border-top: 1px solid var(--line); }
.ledger a { display: block; padding: 1.15rem .9rem 1.2rem 1rem; text-decoration: none; border-left: 4px solid transparent; transition: background .15s, border-color .15s; }
.ledger a:hover { background: var(--white); border-left-color: var(--primary); }
.ledger .l-name { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; line-height: 1.05; color: var(--dark); display: block; }
.ledger .l-desc { display: block; color: var(--muted); font-size: .97rem; margin-top: .3rem; line-height: 1.5; }
.section-white .ledger a:hover { background: var(--paper); }

.areas-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 2rem; border: 1px solid rgba(255,255,255,.22); }
.areas-row a { padding: 1.4rem 1.1rem; text-decoration: none; border-right: 1px solid rgba(255,255,255,.22); color: var(--white); display: block; }
.areas-row a:last-child { border-right: 0; }
.areas-row a:hover { background: var(--primary); color: var(--dark); }
.areas-row strong { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.05; margin-bottom: .35rem; }
.areas-row span { font-size: .9rem; line-height: 1.45; display: block; opacity: .9; }

/* Content pages */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 3.5rem; align-items: start; padding: 3.5rem 0 4.5rem; }
.aside { position: sticky; top: 140px; display: grid; gap: 1.4rem; }
.aside-box { background: var(--dark); color: #E4E8F1; padding: 1.5rem; border-top: 6px solid var(--primary); }
.aside-box h2, .aside-box h3 { color: var(--white); margin: 0 0 .5rem; font-size: 1.9rem; }
.aside-box p { font-size: .95rem; }
.aside-box .phone-big { font-family: var(--font-head); font-weight: 900; font-size: 2.3rem; line-height: 1; display: block; color: var(--primary); text-decoration: none; margin: .3rem 0 1rem; }
.aside-box .btn { width: 100%; text-align: center; }
.aside-list { background: var(--white); border: 1px solid var(--line); padding: 1.3rem 1.4rem; }
.aside-list h2, .aside-list h3 { font-size: 1.6rem; margin: 0 0 .6rem; }
.aside-list ul { list-style: none; margin: 0; padding: 0; }
.aside-list li { border-top: 1px solid var(--line); }
.aside-list a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 600; font-size: .96rem; }
.aside-list a:hover { color: #000; padding-left: .3rem; }

.note { border-left: 5px solid var(--primary); background: var(--white); padding: 1.1rem 1.3rem; margin: 1.6rem 0; max-width: 72ch; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--dark); }

.steps { list-style: none; counter-reset: step; margin: 1.6rem 0 2rem !important; padding: 0 0 0 0 !important; max-width: 72ch; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.6rem; margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; background: var(--primary); color: var(--dark); font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; line-height: 2.3rem; text-align: center; border-radius: var(--radius); }
.steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.6rem; bottom: .25rem; border-left: 3px dashed var(--primary); }
.steps li:last-child::after { display: none; }
.steps li strong { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.15; color: var(--dark); margin-bottom: .15rem; }

.spec-table { width: 100%; max-width: 72ch; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: .96rem; background: var(--white); }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); vertical-align: top; }
.spec-table th { background: var(--dark); color: var(--white); font-weight: 600; }
.spec-table td:first-child { font-weight: 700; color: var(--dark); width: 34%; }

.link-list { display: flex; flex-wrap: wrap; gap: .5rem .6rem; list-style: none; margin: 1rem 0 1.6rem; padding: 0 !important; }
.link-list a { display: inline-block; padding: .45rem .85rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: var(--radius); }
.link-list a:hover { border-color: var(--dark); background: var(--dark); color: var(--white); }

/* FAQ */
.faq { max-width: 78ch; margin-top: 1.4rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 2rem 1.2rem 0; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--primary); color: var(--dark); padding: 3rem 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-band p { margin: 0; font-weight: 500; max-width: 60ch; }
.cta-band .btn { background: var(--dark); border-color: var(--dark); color: var(--white); }
.cta-band .btn:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.cta-band .btn-row { margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; padding: 3.5rem 0 4.5rem; }
.contact-list { list-style: none; margin: 1rem 0 2rem; padding: 0; }
.contact-list li { padding: .9rem 0; border-top: 1px solid var(--line); }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--dark); line-height: 1.1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #C9D0E2; padding: 0 0 1.2rem; font-size: .95rem; }
.site-footer .stripe { margin-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.4rem; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.5rem; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #C9D0E2; text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .86rem; color: #93A0BE; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .page-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .areas-row { grid-template-columns: repeat(2, 1fr); }
  .areas-row a { border-bottom: 1px solid rgba(255,255,255,.22); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.2rem; max-height: calc(100vh - 110px); overflow-y: auto; border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 14px 24px rgba(0,0,0,.35); }
  .site-header.nav-open .nav { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub > a::after { display: none; }
  .sub { display: block; position: static; background: transparent; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0; }
  .sub a { color: #CBD3E6; padding: .35rem .6rem; font-size: .92rem; }
  .sub a:hover { background: transparent; color: var(--primary); }
  .nav-cta { margin: .6rem 0 0; text-align: center; }
  .topbar-left span.hide-sm { display: none; }
  .hero-sub .wrap, .hero-home .wrap, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .ledger { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .areas-row { grid-template-columns: 1fr; }
  .areas-row a { border-right: 0; }
  .section { padding: 3rem 0; }
  .topbar-right { display: none; }
  .spec-table { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Additions ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.split-fig { margin: 0; border-bottom: 6px solid var(--primary); background: var(--dark-2); }
.split-fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.link-list span { display: inline-block; padding: .45rem .85rem; background: transparent; border: 1px dashed #A9A599; font-weight: 500; font-size: .94rem; border-radius: var(--radius); }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } }
