/*
Theme Name: Three Brothers Lawn Care
Theme URI: https://threebrotherslawn.com
Author: Three Brothers (and a Dad) Lawn Care
Description: Custom lightweight theme implementing the approved July 2026 redesign. Real photos, tap-to-call everywhere, sticky mobile call bar, biweekly-route story. SEO handled by AIOSEO + mu-plugins.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: three-brothers
*/

:root {
  --red: #ff0000;
  --red-press: #cc0208;
  --red-text: #c40d13;
  --ink: #17251a;
  --paper: #ffffff;
  --field: #f4f6ef;
  --grass: #2e6b33;
  --line: #e4e7dc;
  --muted: #5c675c;
  --head: "Avenir Next", "Avenir", -apple-system, "Segoe UI", sans-serif;
  --cond: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--head); color: var(--ink); background: var(--paper); font-size: 16.5px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); }
.inner { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; }
.eyebrow {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 700; font-size: 13.5px; color: var(--grass); display: block; margin-bottom: 10px;
}
.btn {
  display: inline-block; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; font-size: 16px; text-decoration: none; padding: 13px 22px; border-radius: 6px;
  transition: background .15s ease;
}
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-press); }
.btn.ghost { border: 2px solid var(--ink); color: var(--ink); padding: 11px 20px; }
.btn.white { background: #fff; color: var(--red-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }

.topline { background: var(--red); color: #fff; font-size: 14px; }
.topline .inner { display: flex; justify-content: space-between; gap: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topline a { color: #fff; font-weight: 600; text-decoration: none; }
.topline .hours { opacity: .92; }

.nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav .inner { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 66px; width: auto; }
.brand .bt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; line-height: 1.05; }
.brand .bt span { display: block; font-size: 12.5px; letter-spacing: .12em; color: var(--red-text); }
.navlinks { display: flex; gap: 22px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 15px; }
.navlinks a { color: var(--ink); text-decoration: none; }
.navlinks a:hover { color: var(--red-text); }
@media (max-width: 880px) {
  /* Nav links wrap to a compact centered second row instead of disappearing. */
  .nav .inner { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .brand { margin-right: 0; }
  .navlinks { order: 3; flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 14px 18px; font-size: 14px; }
}
@media (max-width: 720px) {
  .nav .btn.red { display: none; }   /* sticky call bar covers mobile */
  .topline .inner { justify-content: center; text-align: center; }
}

.hero { padding: 54px 0 44px; }
.hero .inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 46px; align-items: center; }
@media (max-width: 860px) {
  /* Mobile: lead with the crew photo so visitors see the family first, no scrolling. */
  .hero { padding: 22px 0 34px; }
  .hero .inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-img { order: -1; }
  .hero-img img { max-height: 46vh; object-fit: cover; }
}
.hero-img { position: relative; }
.hero-img img { border-radius: 12px; width: 100%; }
.hero-img figcaption {
  position: absolute; left: 0; bottom: 0; background: rgba(23,37,26,.82); color: #fff;
  font-size: 13px; padding: 7px 13px; border-radius: 0 8px 0 12px;
}
.hero .kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--red-text); font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.015em; margin: 10px 0 16px; max-width: 19ch; }
.hero .sub { font-size: 19px; max-width: 56ch; color: #33402f; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.proof { display: flex; gap: 34px; flex-wrap: wrap; padding: 18px 0 30px; }
.proof div { font-size: 14.5px; color: var(--muted); max-width: 24ch; }
@media (min-width: 861px) { .proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .proof div { max-width: none; } }
.proof strong { display: block; color: var(--ink); font-size: 17px; }
.proof .stars { color: var(--red); letter-spacing: 2px; }

.band { padding: 64px 0; }
.band.field { background: var(--field); }
.band h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.band .lead { color: #3d4a3a; max-width: 62ch; margin: 0 0 34px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 34px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.step .no {
  font-family: var(--cond); font-weight: 700; color: #fff; background: var(--red);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.included { display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: 15.5px; }
.included span::before { content: "✓ "; color: var(--grass); font-weight: 700; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.svc img { height: 185px; width: 100%; object-fit: cover; }
.svc .pad { padding: 18px 20px 20px; }
.svc h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--red-text); }
.svc p { margin: 0; font-size: 15px; color: var(--muted); }
.svc .tag { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--red-text); font-weight: 700; }

.story .inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .story .inner { grid-template-columns: 1fr; } }
.story img.main { border-radius: 10px; }
.thenrow { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.thenrow img { width: 33%; height: auto; border-radius: 8px; }
.story .cap { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.story p { color: #3d4a3a; }
.story .crewnow { border-radius: 10px; margin: 18px 0 4px; }
.story .crewcap { font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }

.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.vid { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.vid img { height: 200px; width: 100%; object-fit: cover; }
.vid .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(23,37,26,.75));
}
.vid .play::before {
  content: ""; width: 0; height: 0; border-left: 22px solid #fff;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.vid .vt {
  position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(23,37,26,.78); padding: 4px 9px; border-radius: 5px; max-width: calc(100% - 24px);
}

.gal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gal-grid img { border-radius: 10px; width: 100%; height: 250px; object-fit: cover; }

.reviews-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.gbadge { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; }
.gbadge .stars { color: var(--red); letter-spacing: 3px; font-size: 19px; }
.gbadge .g { font-size: 13.5px; color: var(--muted); }
.rev-marquee { overflow: hidden; margin-bottom: 24px; position: relative; }
.rev-marquee::before, .rev-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 2; pointer-events: none;
}
.rev-marquee::before { left: 0; background: linear-gradient(90deg, var(--field), transparent); }
.rev-marquee::after { right: 0; background: linear-gradient(-90deg, var(--field), transparent); }
.rev-track { display: flex; gap: 18px; width: max-content; animation: rev-scroll 45s linear infinite; }
.rev-marquee:hover .rev-track, .rev-marquee:focus-within .rev-track { animation-play-state: paused; }
@keyframes rev-scroll { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) {
  .rev-track { animation: none; flex-wrap: wrap; width: auto; }
  .rev-track [aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) {
  .rev { width: min(84vw, 330px); }
  .rev-marquee::before, .rev-marquee::after { width: 18px; }
}
@media (hover: none) and (pointer: coarse) {
  .rev-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rev-track { animation: none; }
  .rev-track [aria-hidden="true"] { display: none; }
}
.rev { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; width: 330px; flex: none; }
.rev .stars { color: var(--red); letter-spacing: 2px; margin-bottom: 8px; }
.rev p { margin: 0 0 12px; font-size: 15px; }
.rev strong { font-size: 14px; }

.areas { background: var(--red); color: #fff; padding: 54px 0; }
.areas h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin-bottom: 8px; }
.areas p { max-width: 60ch; margin: 0 0 20px; opacity: .95; }
.towns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.towns span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 16px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; font-weight: 600; }

.quote .inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
@media (max-width: 860px) { .quote .inner { grid-template-columns: 1fr; } }
form .row, .wpcf7 p { margin-bottom: 14px; }
label { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: .07em; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
input:not([type="submit"]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c9cfc4; border-radius: 8px;
  font-family: var(--head); font-size: 16px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input[type="submit"], .wpcf7-submit {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  font-size: 16px; padding: 13px 22px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; transition: background .15s ease;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--red-press); }
.req { color: var(--red-text); }
.talk { background: var(--field); border-radius: 10px; padding: 26px; align-self: start; }
.talk .phone { font-size: 28px; font-weight: 800; text-decoration: none; color: var(--ink); display: block; margin: 6px 0 4px; }
.talk p { margin: 0 0 12px; font-size: 15px; color: #3d4a3a; }
.wpcf7-not-valid-tip { color: var(--red-text); font-size: 13.5px; margin-top: 4px; }
.wpcf7-response-output { border-radius: 8px; padding: 12px 14px; margin: 14px 0 0; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--field); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.01em; max-width: 26ch; }
.page-hero .sub { font-size: 18px; color: #33402f; margin: 12px 0 0; max-width: 60ch; }
.page-body { padding: 46px 0 64px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 34px 0 10px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; color: #2f3b2c; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose img { border-radius: 10px; margin: 18px 0; }
.svc-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-side { display: grid; gap: 18px; }
.svc-side img { border-radius: 10px; }
.svc-cta { background: var(--field); border-radius: 10px; padding: 22px; }
.svc-cta .phone { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--ink); display: block; margin: 4px 0 8px; }
.svc-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.svc-links .tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.svc-links a { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.svc-links a:hover { border-color: var(--red-text); color: var(--red-text); }

/* ---------- Tally + footer ---------- */
.tally { background: var(--grass); color: #fff; text-align: center; padding: 22px 22px; }
.tally .num { font-family: var(--cond); font-weight: 800; font-size: clamp(34px, 5vw, 48px); letter-spacing: .01em; line-height: 1; display: block; }
.tally .lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: .09em; font-size: 14px; opacity: .95; }

footer.site-footer { background: var(--ink); color: #c8d2c5; padding: 54px 0 90px; font-size: 15px; }
footer.site-footer .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: start; }
@media (max-width: 860px) { footer.site-footer .inner { grid-template-columns: 1fr; gap: 26px; } }
footer.site-footer img { width: 170px; }
footer.site-footer a { color: #fff; }
footer.site-footer .nap strong { color: #fff; font-size: 17px; }
footer.site-footer .links { display: grid; gap: 8px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
footer.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: 13px; color: #93a190; }

/* Opening-hours widget (legacy SiteOrigin content on Contact page) */
.opening-times ul { margin: 0; padding: 0; list-style: none; }
.opening-times ul li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.opening-times ul li:last-of-type { border-bottom: none; }
.opening-times ul li.today { font-weight: 700; color: var(--grass); }
.opening-times ul span.right { text-align: right; white-space: nowrap; }
.opening-times ul span.right.label { padding: 2px 10px; color: #fff; font-size: 12px; font-weight: 700; border-radius: 2px; background: var(--muted); align-self: center; }

.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none;
  background: var(--red); color: #fff; text-align: center; padding: 14px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 17px;
  text-decoration: none; box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
@media (max-width: 720px) { .callbar { display: block; } body { padding-bottom: 54px; } }
/* Kill a leftover demo placeholder background on the About page stats row
   (SiteOrigin row #pg-181-5 shipped a gray "1600x276" watermark image). */
#pg-181-5 > .panel-row-style { background-image: none !important; background-color: var(--field) !important; }

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