/* Grok Services Plumbing Heating & Cooling — shared stylesheet
   Palette: truck green (#0e7a3d — the green on the Grok trucks), deep
   green-charcoal (#07231a), white, soft gray-green neutrals */
:root{
  --green:#0e7a3d;
  --green-dark:#095c2d;
  --green-deep:#07231a;
  --green-deeper:#04170f;
  --green-light:#cfe6d8;
  --green-bright:#7ed6a5;
  --ink:#1b2420;
  --muted:#52655a;
  --line:#d5e1d8;
  --bg:#ffffff;
  --bg-soft:#eef5f0;
  --radius:10px;
  --maxw:1140px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  font-size:17px;
}
img{max-width:100%;height:auto}
a{color:var(--green-dark)}
a:hover{color:var(--green)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
h1,h2,h3{color:var(--green-deep);line-height:1.25;margin:0 0 .5em}
h1{font-size:2.15rem}
h2{font-size:1.6rem;margin-top:1.4em}
h3{font-size:1.2rem;margin-top:1.1em}
p{margin:0 0 1em}
ul{margin:0 0 1em;padding-left:1.3em}
li{margin-bottom:.35em}
.section{padding:52px 0}
.section.alt{background:var(--bg-soft)}
.lead{font-size:1.13rem;color:var(--muted)}
.small{font-size:.88rem;color:var(--muted)}

/* Top bar */
.topbar{background:var(--green-deeper);color:var(--green-light);font-size:.86rem}
.topbar .wrap{display:flex;justify-content:space-between;gap:12px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none;font-weight:600}
.topbar a:hover{color:var(--green-bright)}

/* Header */
header.site{
  position:sticky;top:0;z-index:50;
  background:#fff;border-bottom:3px solid var(--green);
  box-shadow:0 2px 10px rgba(7,35,26,.10);
}
.header-in{display:flex;align-items:center;gap:18px;padding:10px 20px;max-width:var(--maxw);margin:0 auto;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.brand img{width:200px;height:auto;display:block}
.brand .brand-text{line-height:1.15}
.brand .brand-name{font-size:1.35rem;font-weight:800;color:var(--green-deep);letter-spacing:.2px}
.brand .brand-sub{font-size:.78rem;font-weight:600;color:var(--green-dark);text-transform:uppercase;letter-spacing:.8px}
/* Header right column: services nav on top, Menu/call/Book row below it,
   beside the big logo — the header is only as tall as the logo itself. */
.header-right{display:flex;flex-direction:column;justify-content:center;gap:10px;flex:1 1 auto;min-width:0}
.header-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.header-actions .header-call,.header-actions .book-btn{margin-left:0}
nav.main{margin-left:0}
nav.main ul{display:flex;gap:4px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:flex-end}
nav.main a{
  display:block;padding:9px 11px;border-radius:6px;text-decoration:none;
  color:var(--green-deep);font-weight:600;font-size:.95rem;
}
nav.main a:hover,nav.main a[aria-current="page"]{background:var(--bg-soft);color:var(--green-dark)}
.call-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--green);color:#fff !important;text-decoration:none;
  font-weight:800;padding:12px 18px;border-radius:8px;white-space:nowrap;
  box-shadow:0 3px 8px rgba(14,122,61,.35);
}
.call-btn:hover{background:var(--green-dark);color:#fff}
.header-call{margin-left:8px}

/* Hero */
.hero{background:linear-gradient(135deg,var(--green-deep) 0%,var(--green-dark) 100%);color:#fff;padding:58px 0 52px}
.hero h1{color:#fff;font-size:2.5rem;margin-bottom:.35em}
.hero .tagline{font-size:1.2rem;color:#d9efe2;max-width:46em;margin-bottom:1.2em}
.hero .hero-points{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 26px;padding:0;list-style:none}
.hero .hero-points li{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);
  padding:7px 14px;border-radius:999px;font-size:.92rem;font-weight:600;margin:0;
}
.btn{
  display:inline-block;background:var(--green);color:#fff;text-decoration:none;
  font-weight:800;padding:14px 26px;border-radius:8px;font-size:1.05rem;border:0;cursor:pointer;
}
.btn:hover{background:var(--green-dark);color:#fff}
.btn.secondary{background:#fff;color:var(--green-deep);border:2px solid var(--green-deep)}
.btn.secondary:hover{background:var(--bg-soft);color:var(--green-deep)}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}

/* Cards / grids */
.grid{display:grid;gap:20px}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;box-shadow:0 2px 6px rgba(7,35,26,.05);
}
.card h3{margin-top:0}
.card .more{font-weight:700;text-decoration:none}
.card .more::after{content:" →"}
.check-list{list-style:none;padding:0}
.check-list li{padding-left:28px;position:relative;margin-bottom:.55em}
.check-list li::before{
  content:"✓";position:absolute;left:0;top:0;color:var(--green-dark);font-weight:900;
}

/* Coupon */
.coupon{
  border:3px dashed var(--green);border-radius:var(--radius);
  background:#f2f9f4;padding:24px;text-align:center;
}
.coupon .amount{font-size:2.1rem;font-weight:900;color:var(--green-dark);line-height:1.1}
.coupon .what{font-size:1.15rem;font-weight:700;color:var(--green-deep)}
.coupon .fine{font-size:.8rem;color:var(--muted);margin:8px 0 0}

/* CTA band */
.cta-band{background:var(--green-deep);color:#fff;padding:40px 0;text-align:center}
.cta-band h2{color:#fff;margin-top:0}
.cta-band p{color:#d9efe2}
.cta-band .btn{margin-top:6px}

/* Tables */
table{border-collapse:collapse;width:100%;margin:0 0 1.2em}
th,td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
th{background:var(--bg-soft);color:var(--green-deep)}

/* Breadcrumb */
.breadcrumb{font-size:.88rem;color:var(--muted);padding:16px 0 0}
.breadcrumb a{color:var(--muted)}

/* Town link chips */
.town-links{display:flex;flex-wrap:wrap;gap:9px;list-style:none;padding:0;margin:0 0 1em}
.town-links li{margin:0}
.town-links a{
  display:inline-block;border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:7px 15px;text-decoration:none;font-weight:600;font-size:.93rem;color:var(--green-deep);
}
.town-links a:hover{border-color:var(--green);color:var(--green-dark)}

/* Forms */
form.contact-form{display:grid;gap:14px;max-width:620px}
form.contact-form label{font-weight:700;color:var(--green-deep);display:block;margin-bottom:5px}
form.contact-form input,form.contact-form select,form.contact-form textarea{
  width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:7px;
  font:inherit;background:#fff;color:var(--ink);
}
form.contact-form input:focus,form.contact-form select:focus,form.contact-form textarea:focus{
  outline:3px solid rgba(14,122,61,.45);border-color:var(--green);
}

/* Footer */
footer.site{background:var(--green-deeper);color:var(--green-light);padding:46px 0 0;margin-top:0}
footer.site a{color:#fff}
footer.site a:hover{color:var(--green-bright)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px;padding-bottom:30px}
footer.site h3{color:#fff;font-size:1.05rem;margin:0 0 .6em}
footer.site ul{list-style:none;padding:0;margin:0}
footer.site li{margin-bottom:.45em}
footer.site li a{text-decoration:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:16px 0;font-size:.85rem;color:#a9c9b6}
.footer-bottom .wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.nap{font-style:normal;line-height:1.7}

/* Mobile call bar */
.mobile-call{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:var(--green);color:#fff;text-align:center;
  font-weight:800;font-size:1.05rem;padding:14px 10px;text-decoration:none;
  box-shadow:0 -3px 10px rgba(7,35,26,.25);
}

/* Photos & reviews (integration pass, Oct 21, 2026) */
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:38px;align-items:center}
.hero-photo{margin:0}
.hero-photo img{width:100%;height:auto;display:block;border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.hero-photo figcaption{color:#cfe3d8;font-size:.92rem;margin-top:10px}
.page-photo{margin:26px 0}
.page-photo.sm{max-width:560px}
.page-photo img{width:100%;height:auto;display:block;border-radius:10px}
.page-photo figcaption{font-size:.9rem;color:var(--muted);margin-top:8px}
.photo-band{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.photo-band figure{margin:0}
.photo-band img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:10px}
.photo-band figcaption{font-size:.9rem;color:var(--muted);margin-top:8px}
.btn.outline{background:#fff;color:var(--green-dark);border-color:var(--green)}
.btn.outline:hover{background:#eefaf2;border-color:var(--green-dark);color:var(--green-dark)}
.reviews-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px}

/* Responsive */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .photo-band{grid-template-columns:1fr}
  .grid.cols-3{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  nav.main{display:none}
  /* On mobile the right-column wrappers vanish so the Menu/call/Book
     buttons lay out as direct header children, exactly as before. */
  .header-right,.header-actions{display:contents}
  .header-call{margin-left:auto}
  .hero h1{font-size:2rem}
  h1{font-size:1.8rem}
}
@media (max-width:560px){
  .grid.cols-2,.grid.cols-3{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .brand .brand-name{font-size:1.1rem}
  .brand img{width:150px}
  /* Let the brand shrink and the tagline wrap — with the bigger logo the
     "PLUMBING • HEATING • COOLING" line overflowed and COOLING was cut off. */
  .brand{flex:1 1 auto;min-width:0}
  .brand-text{min-width:0}
  .brand-sub{font-size:.72rem;letter-spacing:.5px;line-height:1.35}
  .mobile-call{display:block}
  body{padding-bottom:52px}
  .section{padding:38px 0}
}

/* Online booking (ServiceTitan Scheduling Pro) */
.book-btn{background:var(--green-deep);border:0;cursor:pointer;font:inherit;margin-left:8px}
.book-btn:hover{background:var(--green-dark)}
.mobile-book{display:none}
@media (max-width:560px){
  /* Keep Book Online visible in the header on mobile too — the bottom
     bar alone was being missed, so Book must not be header-hidden. */
  .header-in{flex-wrap:wrap;gap:8px}
  .header-call{margin-left:0}
  .call-btn{padding:10px 12px;font-size:.92rem}
  .book-btn{margin-left:0}
  .mobile-call{right:50%}
  .mobile-book{display:block;position:fixed;left:50%;right:0;bottom:0;z-index:60;background:var(--green-deep);color:#fff;text-align:center;font-weight:800;font-size:1.05rem;padding:14px 10px;border:0;cursor:pointer;font-family:inherit;box-shadow:0 -3px 10px rgba(7,35,26,.25)}
}

/* Menu button: shown on every screen size. The header is sticky, so the
   open list must scroll inside itself or the bottom links can never be
   reached — the list is capped to the viewport height and scrolls. */
.mobile-nav{display:block;position:relative}
.mobile-nav>summary{cursor:pointer;background:var(--green-deep);color:#fff;font-weight:800;padding:10px 14px;border-radius:8px;list-style:none;white-space:nowrap}
.mobile-nav>summary::-webkit-details-marker{display:none}
.mobile-nav>ul{list-style:none;margin:0;padding:0 0 12px;background:#fff;border:1px solid #dfe8e2;border-radius:8px;overflow:hidden;position:absolute;right:0;top:calc(100% + 8px);width:340px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 260px);overflow-y:auto;box-shadow:0 12px 30px rgba(7,35,26,.25);z-index:60}
.mobile-nav>ul>li>a{display:block;padding:12px 14px;font-weight:700;color:var(--green-dark);text-decoration:none;border-top:1px solid #eef3f0}
.mobile-nav>ul>li:first-child>a{border-top:0}
.mobile-services summary{cursor:pointer;display:block;padding:12px 14px;font-weight:700;color:var(--green-dark);list-style:none;border-top:1px solid #eef3f0}
.mobile-services summary::-webkit-details-marker{display:none}
.mobile-services ul{list-style:none;margin:0;padding:0;background:var(--bg-soft);max-height:40dvh;overflow-y:auto}
.mobile-services ul a{display:block;padding:10px 14px 10px 26px;color:var(--ink);text-decoration:none;border-top:1px solid #e6efe9}
@media (max-width:900px){
  .mobile-nav{width:100%;margin-top:10px}
  .mobile-nav>ul{position:static;width:100%;max-width:none;margin-top:10px;max-height:calc(100dvh - 330px)}
}

/* Desktop: hide the brand text — it duplicates the words already printed
   inside the logo image. Without it the logo + right column fit on one row
   (with the text they total ~1200px against 1100px of content, so the whole
   right column wrapped below the logo and the header grew to 347px). */
@media (min-width:901px){
  .header-in{flex-wrap:nowrap}
  .brand-text{display:none}
}
