/* Skotzke Basement Repair — shared styles */
:root{
  --slab:#E4E6E5;      /* cured concrete */
  --slab-2:#D3D7D6;
  --ink:#1B2730;       /* wet concrete / slate */
  --ink-2:#3E4C56;
  --caution:#F2B705;   /* caution-tape yellow */
  --caution-dk:#C99600;
  --water:#2F6F8F;
  --soil:#6B5641;
  --white:#FFFFFF;
  --line:#B9BFBF;
  --radius-sm:3px;
  --radius-lg:10px;
  --wrap:1120px;
  --font-display:"Archivo", "Arial Narrow", sans-serif;
  --font-body:"Public Sans", system-ui, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--slab);color:var(--ink);font-family:var(--font-body);font-size:1.0625rem;line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;display:block}
a{color:var(--water)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--caution);outline-offset:2px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}

h1,h2,h3{font-family:var(--font-display);line-height:1.05;letter-spacing:-.01em;margin:0 0 .5em}
h1{font-size:clamp(2.2rem,5.5vw,4rem);font-weight:800;font-stretch:80%}
h2{font-size:clamp(1.6rem,3.4vw,2.4rem);font-weight:800;font-stretch:85%}
h3{font-size:1.25rem;font-weight:700}
p{margin:0 0 1em;max-width:68ch}
.lede{font-size:1.2rem;color:var(--ink-2);max-width:60ch}

/* Header */
.site-header{background:var(--ink);color:var(--white);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{color:var(--white);text-decoration:none;display:flex;align-items:center;gap:10px;line-height:1.1}
.brand img{width:52px;height:52px;flex:none}
.brand-text{display:flex;flex-direction:column}
.brand strong{font-family:var(--font-display);font-stretch:80%;font-weight:800;font-size:1.35rem}
.brand-text span{font-size:.8rem;color:#AEB9C0;white-space:nowrap}
.nav{display:flex;gap:2px;align-items:center}
.nav a{color:#D7DEE2;text-decoration:none;font-size:.92rem;padding:8px 8px;white-space:nowrap;border-radius:var(--radius-sm)}
.nav a:hover,.nav a[aria-current="page"]{color:var(--white);background:rgba(255,255,255,.08)}
.header-call{background:var(--caution);color:var(--ink)!important;font-weight:700;white-space:nowrap;margin-left:6px;padding:8px 12px!important}
.header-call:hover{background:var(--caution-dk)!important}
.nav-toggle{display:none;background:none;border:1px solid #56656F;color:var(--white);padding:8px 12px;border-radius:var(--radius-sm);font:inherit}
@media (max-width:1240px){
  .nav-toggle{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--ink);flex-direction:column;align-items:stretch;padding:8px 20px 16px;border-top:1px solid #2E3D47}
  .nav.open{display:flex}
  .nav a{padding:12px 8px}
}

/* Buttons */
.btn{display:inline-block;font-family:var(--font-display);font-weight:800;font-stretch:90%;font-size:1.1rem;text-decoration:none;padding:14px 22px;border-radius:var(--radius-sm);border:2px solid transparent;cursor:pointer}
.btn-primary{background:var(--caution);color:var(--ink)}
.btn-primary:hover{background:var(--caution-dk)}
.btn-ghost{border-color:currentColor;color:inherit;background:transparent}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}

/* Hero */
.hero{background:var(--ink);color:var(--white);padding:56px 0 0;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:end}
.hero p.lede{color:#C9D3D8}
.hero-copy{padding-bottom:56px}
.hero-since{display:inline-block;border-left:4px solid var(--caution);padding-left:10px;color:#C9D3D8;margin-bottom:18px;font-size:.95rem}
.hero-figure{align-self:end}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr}.hero-copy{padding-bottom:16px}}

/* Page hero (problem pages) */
.page-hero{background:var(--ink);color:var(--white);padding:48px 0 44px}
.page-hero p.lede{color:#C9D3D8}
.crumb{font-size:.9rem;color:#AEB9C0;margin-bottom:12px}
.crumb a{color:#D7DEE2}

/* Sections */
section{padding:64px 0}
.band-white{background:var(--white)}
.band-ink{background:var(--ink);color:var(--white)}
.band-ink p{color:#C9D3D8}
.split{display:grid;grid-template-columns:1fr 340px;gap:48px;align-items:start}
@media (max-width:900px){.split{grid-template-columns:1fr}}

/* Symptom checklist */
.symptoms{list-style:none;padding:0;margin:20px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--line);border:2px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.symptoms li{background:var(--white)}
.symptoms label{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;cursor:pointer;min-height:100%}
.symptoms input{width:22px;height:22px;accent-color:var(--ink);flex:none;margin-top:2px}
.symptoms label:has(input:checked){background:#FFF6D6}
@media (max-width:640px){.symptoms{grid-template-columns:1fr}}
.symptom-result{border-left:6px solid var(--caution);background:var(--white);padding:18px 20px;border-radius:0 var(--radius-lg) var(--radius-lg) 0;display:none}
.symptom-result.show{display:block}

/* Problem tiles: each a doorway into one problem page */
.problems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.problem{display:block;text-decoration:none;color:var(--ink);background:var(--white);border-top:6px solid var(--ink);padding:24px;border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.problem:hover{border-top-color:var(--caution)}
.problem h3{margin-bottom:.35em}
.problem p{margin:0;color:var(--ink-2)}
.problem .more{display:inline-block;margin-top:12px;font-weight:700;color:var(--water)}
@media (max-width:700px){.problems{grid-template-columns:1fr}}

/* Process steps (a real sequence) */
.steps{counter-reset:step;list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.steps li{counter-increment:step;border-top:3px solid var(--caution);padding-top:14px}
.steps li::before{content:counter(step);font-family:var(--font-display);font-weight:800;font-size:2.4rem;line-height:1;display:block;margin-bottom:8px;color:var(--caution)}
.steps h3{color:var(--white)}
.steps-light li::before{display:none}
.steps-light h3{color:var(--ink)}
.steps-light li{border-top-color:var(--ink)}
@media (max-width:900px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.steps{grid-template-columns:1fr}}

/* Warranty table */
.warranty{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius-lg);overflow:hidden;margin-top:16px}
.warranty th,.warranty td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--slab-2)}
.warranty th{background:var(--slab-2);font-family:var(--font-display);font-stretch:90%}
.warranty td:last-child{font-weight:700;white-space:nowrap}

.warranty.compare td,.warranty.compare td:last-child{white-space:normal;font-weight:400}
.warranty.compare td:first-child{font-weight:700;white-space:nowrap}

.prose .counties{padding-left:0}
.area-group{margin:32px 0}
.area-group h2{margin-top:0}

/* Counties */
.counties{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:16px 0 0}
.counties a{color:inherit;text-decoration:none}
.counties a:hover{text-decoration:underline}
.counties li{border:1.5px solid currentColor;padding:6px 12px;border-radius:999px;font-size:.95rem}

/* Sidebar CTA box */
.cta-box{position:sticky;top:92px;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-lg);padding:24px}
.cta-box h3{margin-bottom:.3em}
.cta-box .btn{width:100%;text-align:center;margin-top:8px}
.cta-box .phone{display:block;text-align:center;margin-top:12px;font-weight:700;font-size:1.15rem;color:var(--ink)}

/* Prose blocks */
.prose h2{margin-top:1.6em}
.prose h2:first-child{margin-top:0}
.prose ul{padding-left:1.2em;max-width:66ch}
.prose li{margin-bottom:.4em}
.callout{background:var(--white);border-left:6px solid var(--water);padding:18px 20px;margin:24px 0;border-radius:0 var(--radius-lg) var(--radius-lg) 0}
.callout p:last-child{margin:0}
figure{margin:28px 0}
.photo img{width:100%;height:auto;border-radius:var(--radius-lg);background:var(--slab-2)}
figcaption{font-size:.9rem;color:var(--ink-2);margin-top:8px;max-width:66ch}

/* Person card */
.person{display:flex;gap:14px;align-items:center;margin:8px 0 4px}
.person img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
.person p{margin:0;line-height:1.4}

/* FAQ */
.faq details{background:var(--white);border-radius:var(--radius-sm);margin-bottom:8px;border:1px solid var(--line)}
.faq summary{cursor:pointer;padding:16px 20px;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--font-display);font-size:1.4rem;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details > div{padding:0 20px 16px}

/* Form */
.form{background:var(--white);border-radius:var(--radius-lg);padding:28px;border:2px solid var(--ink)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid .full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.form label{display:block;font-weight:700;font-size:.95rem;margin-bottom:6px}
.form input[type=text],.form input[type=tel],.form input[type=email],.form select,.form textarea{width:100%;font:inherit;padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:var(--white);color:var(--ink)}
.form textarea{min-height:110px;resize:vertical}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:.85rem;color:var(--ink-2);font-weight:400!important}
.consent input{margin-top:4px;width:18px;height:18px;flex:none}
.form .btn{width:100%;margin-top:8px}
.form-error{color:#A12B1F;font-weight:700;display:none;margin-top:10px}
.form-error.show{display:block}

/* Reviews placeholders */
.review{background:var(--white);border-left:6px solid var(--caution);padding:20px 22px;border-radius:0 var(--radius-lg) var(--radius-lg) 0;margin-bottom:16px}
.review .who{font-weight:700;margin-top:8px}
.placeholder{background:#FFF6D6;border:2px dashed var(--caution-dk);padding:16px 18px;border-radius:var(--radius-sm);color:#5A4600;font-size:.95rem}
.ba-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ba-grid .ph{aspect-ratio:4/3;background:var(--slab-2);display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;color:var(--ink-2);border-radius:var(--radius-sm);font-size:.9rem}
@media (max-width:640px){.ba-grid{grid-template-columns:1fr}}

/* Footer */
.site-footer{background:#141E25;color:#AEB9C0;padding:48px 0 96px;font-size:.95rem}
.site-footer .wrap{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px}
.footer-logo{width:96px;height:96px;margin-bottom:12px}
.site-footer h3{color:var(--white);font-size:1.05rem}
.site-footer a{color:#D7DEE2}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:6px}
.fine{grid-column:1/-1;border-top:1px solid #2E3D47;padding-top:20px;font-size:.85rem}
@media (max-width:800px){.site-footer .wrap{grid-template-columns:1fr}}

/* Mobile call bar */
.callbar{display:none}
@media (max-width:700px){
  .callbar{display:grid;grid-template-columns:1fr 1fr;position:fixed;bottom:0;left:0;right:0;z-index:60;box-shadow:0 -2px 12px rgba(0,0,0,.25)}
  .callbar a{text-align:center;padding:16px 8px;font-family:var(--font-display);font-weight:800;text-decoration:none}
  .callbar .c1{background:var(--ink);color:var(--white)}
  .callbar .c2{background:var(--caution);color:var(--ink)}
}

@media (max-width:520px){.brand-text span{white-space:normal}.brand strong{font-size:1.2rem}.brand img{width:44px;height:44px}}
