/* Sanders Home Services - site styles
   Plain and old-school on purpose: big text, high contrast, no animation.
   Colors come from the logo. */

:root {
  --blue: #1f63ad;        /* logo blue */
  --blue-dark: #174b85;   /* hover / pressed */
  --ink: #1d2124;         /* logo black, used for text */
  --gray: #4a4f54;        /* secondary text */
  --line: #d5d9de;        /* borders */
  --tint: #eef3f9;        /* light blue band */
  --white: #ffffff;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Top strip (supply-house style) ---------- */
.strip {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.logo img { width: 170px; }

.header-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.main-nav { background: var(--tint); border-top: 1px solid var(--line); }
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 12px 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
}
.main-nav a:hover { background: var(--white); color: var(--blue); }
.main-nav a[aria-current="page"] { background: var(--white); color: var(--blue); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-plain { background: var(--white); color: var(--blue); }
.btn-plain:hover, .btn-plain:focus { background: var(--tint); color: var(--blue-dark); }
.btn-small { padding: 10px 16px; font-size: 0.9rem; }

a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.band { background: var(--tint); }
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.muted { color: var(--gray); }

.hero { padding: 36px 0 48px; }
.hero .tagline {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 1.2em;
}
.hero-photo { margin: 24px 0; border: 1px solid var(--line); }
.hero-photo figcaption { padding: 8px 12px; font-size: 0.9rem; color: var(--gray); background: #fafafa; }

/* ---------- Boxes ---------- */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.box {
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.box img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.box-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.box-body p { flex: 1; }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checks li { padding-left: 36px; position: relative; }
.checks li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--white); background: var(--blue);
  width: 26px; height: 26px; border-radius: 3px;
  text-align: center; line-height: 26px; font-weight: bold; font-size: 0.9rem;
}

/* ---------- Before / after pairs ---------- */
.pair { margin: 0 0 40px; }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-photos figure { margin: 0; }
.pair-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e3e6ea; border: 1px solid var(--line); }
.label {
  display: inline-block;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  margin-bottom: 6px;
  color: var(--white);
}
.label-before { background: #6b6f73; }
.label-after { background: var(--blue); }
.pair h3 { margin-top: 0.4em; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { border-top: 4px solid var(--blue); padding-top: 12px; counter-increment: step; }
.steps li::before { content: "Step " counter(step); display: block; font-weight: bold; color: var(--blue); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.gallery figcaption { font-size: 0.9rem; color: var(--gray); padding-top: 4px; }
.gallery-note { border-top: 2px solid var(--line); margin-top: 48px; padding-top: 24px; }

/* ---------- About ---------- */
.story { max-width: 760px; }
.story p { font-size: 1.1rem; }
.signoff { font-family: Georgia, serif; font-size: 1.3rem; font-style: italic; }

/* ---------- Service rows ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service img { border: 1px solid var(--line); }
.service ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- Form ---------- */
.form { max-width: 680px; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: bold; margin-bottom: 6px; }
.field .hint { display: block; font-weight: normal; font-size: 0.9rem; color: var(--gray); }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px;
  border: 2px solid #8a9096;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 160px; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices label { display: flex; align-items: center; gap: 10px; font-weight: normal; margin-bottom: 8px; }
.choices input { width: 24px; height: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap */
.other-ways { border: 2px solid var(--line); border-radius: 4px; padding: 20px; margin-top: 40px; }

/* ---------- Call band ---------- */
.call-band { background: var(--ink); color: var(--white); text-align: center; }
.call-band h2 { color: var(--white); }
.call-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.call-band .btn-plain { border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: #f4f5f6; border-top: 4px solid var(--blue); padding: 32px 0 24px; font-size: 0.95rem; }
.notice {
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 16px 20px;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-cols h3 { font-size: 1.1rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; }
.copyright { margin-top: 24px; color: var(--gray); font-size: 0.85rem; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .boxes, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 19px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 36px 0; }
  .logo img { width: 140px; }
  .header-row { justify-content: center; }
  .header-buttons { width: 100%; }
  .header-buttons .btn { flex: 1; }
  .checks { grid-template-columns: 1fr; }
  .pair-photos { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .call-band .btn { width: 100%; }

  /* Menu becomes a plain 2-column list of big tap targets */
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li:nth-child(odd) { border-right: 1px solid var(--line); }
  .main-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .main-nav a { text-align: center; padding: 14px 8px; }
}
