.ab, .ab * { box-sizing: border-box; }
.ab { margin: 0 0 10px; }
.ab img { max-width: 100%; height: auto; border: 0; display: block; }
.ab p { margin: 0 0 16px; color: #262626; }
.ab p:last-child { margin-bottom: 0; }
.ab ul { list-style: none; margin: 0; padding: 0; }
.ab figure { margin: 0; }
.ab h2 { margin: 0 0 16px; }
.ab h3 { margin: 0 0 8px; }
.ab a.a_button, .ab a.ab-btn { text-decoration: none; }

.ab-section { margin: 0 0 40px; }

.ab-head { margin: 0 0 22px; }
.ab-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.ab-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ab-actions .a_button { padding: 15px 28px; font-size: 16px; }
.ab a.ab-btn {
  display: inline-block; font-family: 'Hammersmith One', sans-serif;
  font-size: 16px; line-height: 18px; text-align: center; text-transform: uppercase;
  padding: 13px 26px; border-radius: 3px; border: 2px solid #2ba621; color: #2ba621; background: transparent;
  transition: all 250ms ease-in; -webkit-transition: all 250ms ease-in;
}
.ab a.ab-btn:hover { background: #2ba621; color: #fff; }

/* ---------- Intro ---------- */
.ab-intro {
  display: grid; grid-template-columns: 1fr 420px; gap: 46px;
  align-items: center; margin: 0 0 32px;
}
.ab-intro-photo { position: relative; }
.ab-intro-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px 4px 0 0;
}
.ab-badge {
  position: absolute; left: 0; bottom: 0; max-width: 92%;
  background: rgba(31, 51, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; padding: 10px 18px; font-size: 14.5px; line-height: 1.35; border-left: 4px solid #ff8400; border-radius: 0 4px 0 0;
}
.ab-badge strong { font-family: 'Hammersmith One', sans-serif; font-weight: normal; color: #ffd9a6; }

/* ---------- Trust numbers ---------- */
.ab-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid #e3e3df; border-top: 4px solid #f07700; border-radius: 4px;
  margin: 0 0 40px;
}
.ab-stat { padding: 26px 20px 24px; text-align: center; border-left: 1px solid #e3e3df; }
.ab-stat:first-child { border-left: 0; }
.ab-stat b { display: block; font-family: 'Cinzel', sans-serif; font-size: 28px; line-height: 1.2; color: #f07700; margin-bottom: 6px; }
.ab-stat span { display: block; font-size: 14px; line-height: 1.4; color: #4a4a4a; }
.ab .ab-stat a { display: block; color: inherit; text-decoration: none; }
.ab .ab-stat a:hover b { color: #448f22; }

/* ---------- Photo + text split ---------- */
.ab-split { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: center; }
.ab-split.ab-split-rev { grid-template-columns: 1fr 300px; gap: 32px; }
.ab-split-photo img { width: 100%; border-radius: 4px; }
.ab-split-photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; color: #555; font-style: italic; }
.ab-split-rev .ab-split-photo { justify-self: end; }
.ab-split-rev .ab-portrait img { width: auto; max-width: 100%; margin: 0 auto; }
.ab p.ab-role { font-family: 'Hammersmith One', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; color: #7a9f31; margin: -8px 0 14px; }

/* Justify the long-form body copy (wide columns only, so word-gaps stay tight);
   the last line of each paragraph stays left-aligned instead of stretching.
   No hyphenation: we don't want words broken with a hyphen mid-line. */
.ab-intro-text p,
.ab-areas-intro p,
.ab-head p,
.ab-split p:not(.ab-eyebrow):not(.ab-role) {
  text-align: justify; text-align-last: left;
}

/* ---------- Why homeowners choose us (cards) ---------- */
.ab-band { background: #f3f3f0; border-radius: 4px; padding: 38px 36px; }
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-card {
  background: #fff; border: 1px solid #e3e3df; border-top: 4px solid #2ba621;
  border-radius: 4px; padding: 26px 24px 22px;
  transition: all 250ms ease-in; -webkit-transition: all 250ms ease-in;
}
.ab-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.ab-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #eaf3e3; color: #448f22;
  display: flex; align-items: center; justify-content: center; margin: 0 0 16px;
}
.ab-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-card h3 { font-size: 19px; }
.ab-card p { font-size: 15.5px; line-height: 1.55; }

/* ---------- Common problems we fix (link tiles) ---------- */
.ab-fixes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ab .ab-fix {
  display: block; background: #fff; border: 1px solid #e3e3df; border-top: 3px solid #f07700;
  border-radius: 4px; padding: 22px 20px 20px; text-decoration: none; color: #262626;
  transition: all 250ms ease-in; -webkit-transition: all 250ms ease-in;
}
.ab .ab-fix:hover { border-color: #f07700; box-shadow: 0 8px 18px rgba(0,0,0,.08); transform: translateY(-2px); color: #262626; }
.ab .ab-fix .ab-q { font-size: 15px; line-height: 1.45; font-style: italic; color: #5c5c5c; margin: 0 0 10px; }
.ab-fix p:not(.ab-q) { font-size: 15px; line-height: 1.5; margin: 0; }
.ab .ab-fix strong { color: #f07700; }

/* ---------- Service areas ---------- */
.ab-areas { background: #f3f3f0; border-top: 4px solid #448f22; border-radius: 4px; padding: 36px 38px; }
.ab-areas-intro p { max-width: 900px; }
.ab-areas-intro h2 { font-size: 28px; }
.ab ul.ab-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ab-chips li { margin: 0; }
.ab .ab-chips a {
  display: block; padding: 9px 18px; font-size: 15px; line-height: 1.3; border-radius: 20px;
  background: #fff; border: 1px solid #ddd; color: #448f22; text-decoration: none;
  transition: all 250ms ease-in; -webkit-transition: all 250ms ease-in;
}
.ab .ab-chips a:hover { background: #448f22; border-color: #448f22; color: #fff; }
.ab .ab-chips .ab-chip-more a { background: #ececec; border-color: #ececec; color: #666; font-style: italic; }
.ab .ab-chips .ab-chip-more a:hover { background: #d8d8d8; border-color: #d8d8d8; color: #333; }

/* ---------- Closing CTA ---------- */
.ab-final { display: grid; grid-template-columns: 420px 1fr; background: #fff; border: 1px solid #e3e3df; border-top: 4px solid #f07700; border-radius: 4px; overflow: hidden; }
.ab-final-photo { position: relative; min-height: 100%; }
.ab-final-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-final-body { padding: 38px 42px; align-self: center; }
.ab-final h2 { color: #f07700; font-size: 28px; }

/* ---------- Mobile template only ----------
   The desktop template is a fixed 1100px page, so these rules apply only
   when the phone template is in use (its <body> has no .body_wrapper). */
@media (max-width: 900px) {
  body:not(.body_wrapper) .ab-intro,
  body:not(.body_wrapper) .ab-split,
  body:not(.body_wrapper) .ab-split.ab-split-rev,
  body:not(.body_wrapper) .ab-final,
  body:not(.body_wrapper) .ab-areas { grid-template-columns: 1fr; }
  body:not(.body_wrapper) .ab-intro { gap: 28px; }
  body:not(.body_wrapper) .ab-intro-photo { max-width: 480px; width: 100%; margin: 0 auto; }
  body:not(.body_wrapper) .ab-split { gap: 22px; }
  body:not(.body_wrapper) .ab-split-photo { max-width: 480px; width: 100%; margin: 0 auto; }
  body:not(.body_wrapper) .ab-split-rev .ab-split-photo { justify-self: center; }
  body:not(.body_wrapper) .ab-cards { grid-template-columns: 1fr 1fr; }
  body:not(.body_wrapper) .ab-fixes { grid-template-columns: 1fr 1fr; }
  body:not(.body_wrapper) .ab-stats { grid-template-columns: 1fr 1fr; }
  body:not(.body_wrapper) .ab-stat:nth-child(3) { border-left: 0; }
  body:not(.body_wrapper) .ab-stat:nth-child(n+3) { border-top: 1px solid #e3e3df; }
  body:not(.body_wrapper) .ab-final-photo { position: static; min-height: 0; }
  body:not(.body_wrapper) .ab-final-photo img { position: static; width: 100%; height: 220px; }
}

@media (max-width: 600px) {
  body:not(.body_wrapper) .ab-section { margin-bottom: 30px; }
  body:not(.body_wrapper) .ab-intro { margin-bottom: 26px; }
  body:not(.body_wrapper) .ab-badge { font-size: 13px; padding: 9px 14px; }
  body:not(.body_wrapper) .ab-actions .a_button, body:not(.body_wrapper) .ab-actions .ab-btn { width: 100%; }
  body:not(.body_wrapper) .ab-stats { margin-bottom: 30px; }
  body:not(.body_wrapper) .ab-stat { padding: 20px 10px 18px; }
  body:not(.body_wrapper) .ab-stat b { font-size: 24px; }
  body:not(.body_wrapper) .ab-stat span { font-size: 13px; }
  body:not(.body_wrapper) .ab-band { padding: 30px 18px; }
  body:not(.body_wrapper) .ab-cards, body:not(.body_wrapper) .ab-fixes { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  body:not(.body_wrapper) .ab-areas { padding: 28px 20px; }
  body:not(.body_wrapper) .ab-final-body { padding: 30px 22px; }
  body:not(.body_wrapper) .ab-final h2 { font-size: 23px; }
  body:not(.body_wrapper) .ab-split-rev .ab-portrait img { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-card, .ab .ab-fix, .ab a.ab-btn { transition: none; }
  .ab-card:hover, .ab .ab-fix:hover { transform: none; }
}
