/* Wells Contracting: shared styles for every page */
:root {
  --bg: #ffffff;
  --alt: #f2f5f9;
  --surface: #ffffff;
  --fg: #1b2433;
  --muted: #566173;
  --line: #dbe1ea;
  --navy: #13335a;
  --navy-fg: #ffffff;
  --brand-ink: #13335a;
  --cta: #d9590b;
  --cta-hover: #bf4d08;
  --cta-fg: #ffffff;
  --link: #1a5bb5;
  --ok: #1d7a46;
  --tile: #dfe6ef;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1520; --alt: #151d2b; --surface: #1a2433; --fg: #e8edf4; --muted: #a7b2c2; --line: #2b3749;
    --navy: #0f2846; --brand-ink: #e8edf4; --cta: #e8661a; --cta-hover: #f57a30;
    --link: #7fb0f5; --ok: #4fc283; --tile: #243042;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding-bottom: 60px; }
@media (min-width: 800px) { body { padding-bottom: 0; } }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.site-header .wrap { display: flex; align-items: center; gap: 10px 24px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--brand-ink); text-decoration: none; line-height: 1.15; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 42px; width: auto; background: #fafafa; border-radius: 6px; padding: 3px 4px; flex: none; }
.logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--muted); }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { color: var(--fg); text-decoration: none; font-weight: 600; padding: 6px 12px; border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--cta); }
.main-nav a:hover { border-bottom-color: var(--line); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { text-align: right; line-height: 1.2; text-decoration: none; color: var(--fg); }
.head-phone span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.head-phone strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--brand-ink); white-space: nowrap; }
@media (max-width: 799px) {
  .site-header { position: static; }
  .head-cta .btn { display: none; }
  .head-cta { margin-left: 0; }
  .head-phone { text-align: left; }
  .main-nav { width: 100%; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 13px 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-cta { background: var(--cta); color: var(--cta-fg); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-big { font-size: 1.1rem; padding: 15px 26px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { background: var(--navy); color: var(--navy-fg); }
.hero .wrap { padding-block: 36px 40px; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; padding-block: 48px 56px; } }
.hero-copy { display: grid; gap: 16px; min-width: 0; }
.kicker { font-weight: 700; color: #ffd2a8; font-size: .95rem; }
.lede { font-size: 1.1rem; opacity: .93; max-width: 56ch; }
.hero .checks li::before { border-color: #ffd2a8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* Cards that hold forms or the home service picker */
.form-card { background: var(--surface); color: var(--fg); border-radius: 8px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-top: 5px solid var(--cta); min-width: 0; }
.form-card h2 { font-size: 1.35rem; }
.form-card .sub { color: var(--muted); font-size: .95rem; }
.form-card .btn { width: 100%; }
.form-card .btn-outline { color: var(--brand-ink); }
.form-card .or { text-align: center; font-size: .92rem; color: var(--muted); }
.form-card .or a { color: var(--fg); font-weight: 700; text-decoration: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; width: 100%; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: 0; }
.honey { position: absolute; left: -9999px; }

/* Trust bar */
.trustbar { background: var(--alt); border-bottom: 1px solid var(--line); }
.trustbar .wrap { padding-block: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 20px; }
.trustbar div { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .95rem; }
.badge { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--navy-fg); display: grid; place-items: center; flex: none; }
.badge svg { width: 18px; height: 18px; }

/* Sections */
.block .wrap { padding-block: 48px; display: grid; gap: 24px; }
.block.alt { background: var(--alt); }
.head { display: grid; gap: 6px; max-width: 68ch; }
.head p { color: var(--muted); }
.head.center { text-align: center; justify-items: center; margin: 0 auto; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 220px auto; }
.service .photo { background: var(--tile); display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: .9rem; text-align: center; padding: 12px; overflow: hidden; }
.service .photo:has(img) { padding: 0; }
.service .photo img { width: 100%; height: 100%; object-fit: cover; }
.service .body { padding: 20px; display: grid; gap: 10px; }
.service .body p { color: var(--muted); }
.service .brand { font-weight: 700; color: var(--cta); }
.service .btn-outline { color: var(--brand-ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--cta); color: var(--cta-fg); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Gallery: drop <img> or <video> elements in; see README */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gallery > * { aspect-ratio: 1 / 1; width: 100%; max-width: 100%; object-fit: cover; border-radius: 6px; background: var(--tile); overflow: hidden; }
.gallery > a { display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery > a:hover img { transform: scale(1.03); }
.gallery.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.gallery.wide > * { aspect-ratio: 16 / 9; }
.credit { text-align: center; color: var(--muted); font-size: .85rem; }
.gallery .tile { display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: .9rem; font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 820px; width: 100%; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }

/* Closing call band */
.band { background: var(--cta); color: var(--cta-fg); }
.band .wrap { padding-block: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.band h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.band .btn { background: #ffffff; color: #a84304; }
.band .btn-outline { background: transparent; color: #ffffff; border-color: #ffffff; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-fg); }
.site-footer .wrap { padding-block: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; font-size: .95rem; }
.site-footer h3 { font-size: 1rem; margin-bottom: 6px; }
.site-footer p { opacity: .9; }
.site-footer a { color: #ffffff; overflow-wrap: anywhere; }
.site-footer .fine { grid-column: 1 / -1; opacity: .7; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }

/* Thank-you page */
.thanks-page .lede { opacity: 1; }
.thanks-page .wrap { padding-block: 64px; display: grid; gap: 16px; justify-items: start; max-width: 720px; }

/* Sticky call / text / email bar on phones */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--navy);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
.mobilebar a { color: #ffffff; text-decoration: none; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; font-size: .95rem; }
.mobilebar a.primary { background: var(--cta); }
.mobilebar svg { width: 18px; height: 18px; }
@media (min-width: 800px) { .mobilebar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
