/* ============================================================
   Howard & Son Plumbing — design system + page styles
   ------------------------------------------------------------
   Palette sampled directly from their own Logo-Color.jpg so the
   site reads as *them*, not a generic trade template:
     navy  #24278D   sky #00A9EE
   Orange is the one non-brand color, used ONLY for call-to-action.
   Against navy it has the highest contrast available and reads as
   "act now" — which is the entire job of this site.

   Mobile-first. Every rule below is the phone layout; the media
   queries only widen things. Their old site was fixed at 1024px,
   which is the single defect costing them jobs.
   ============================================================ */

:root {
  --navy:        #1E2270;
  --navy-deep:   #14173F;
  --brand-navy:  #24278D;   /* exact logo navy */
  --sky:         #00A9EE;   /* exact logo sky  */
  --sky-light:   #E8F7FE;
  --call:        #F26419;   /* CTA only */
  --call-dark:   #D4520E;
  --ink:         #1A1D24;
  --body:        #3F4652;
  --line:        #DFE4EC;
  --bg-soft:     #F5F8FC;
  --white:       #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(20, 23, 63, .10);
  --shadow-md: 0 6px 20px rgba(20, 23, 63, .12);
  --shadow-lg: 0 14px 40px rgba(20, 23, 63, .18);

  --wrap: 1140px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: var(--brand-navy); }

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

/* ---------- buttons: minimum 56px tall, thumb-sized on purpose ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: var(--radius); border: 0;
  font-size: 1.06rem; font-weight: 800; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--call); color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 100, 25, .35);
}
.btn-call:hover { background: var(--call-dark); }

.btn-ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.10); }

.btn-block { display: flex; width: 100%; }

/* ---------- sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 68px;
}
.logo img { width: 168px; }

/* On a phone there isn't room for logo + full number, and it wrapped to two
   lines. Show just "Call" here — the number is in the hero, the call band and
   the sticky bottom bar, so nothing is lost. Full number returns at 700px. */
.header-call { font-size: .98rem; padding: 0 20px; min-height: 48px; white-space: nowrap; }
.header-call .num { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(30,34,112,.94) 0%, rgba(20,23,63,.97) 100%),
    var(--brand-navy);
  color: var(--white);
  padding: 46px 0 40px;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .lede { font-size: 1.16rem; color: #D6DCF2; max-width: 46ch; margin-bottom: 1.4em; }
.hero .actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.hero .sub { font-size: .95rem; color: #AEB7DC; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}

/* eyebrow line, now nested inside the h1 so the heading carries the
   service and the region. Visually identical to the old .eyebrow. */
.h1-eyebrow {
  display: block;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.3;
  color: var(--sky); margin-bottom: 14px;
}

/* trust strip */
.trust {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,.14);
  border-radius: var(--radius); overflow: hidden; margin-top: 30px;
}
.trust div {
  background: rgba(255,255,255,.06);
  padding: 14px 12px; text-align: center;
}
.trust .num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.trust .cap { font-size: .78rem; color: #AEB7DC; letter-spacing: .04em; }

/* ---------- emergency band ---------- */
.callband {
  background: var(--call); color: var(--white);
  padding: 20px 0;
}
.callband .inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.callband p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.callband .btn { background: var(--white); color: var(--call-dark); min-height: 50px; }

/* ---------- sections ---------- */
section { padding: 52px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 30px; }
.section-head p { font-size: 1.06rem; }

/* ---------- services ---------- */
.services { display: grid; gap: 14px; }
.service {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.service .ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--sky-light); color: var(--brand-navy);
  display: grid; place-items: center; margin-bottom: 14px;
}
.service h3 { margin-bottom: .35em; }
/* Ten cards leave an orphan in a three-column grid. Commercial is a different
   customer to the rest, so it closes the row full width instead of stranded. */
.service--wide .service-body { display: contents; }
.service p { margin: 0; font-size: .97rem; }

/* ---------- why us ---------- */
.why { display: grid; gap: 26px; }
.why-quote {
  background: var(--brand-navy); color: var(--white);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.why-quote p { font-size: 1.2rem; line-height: 1.5; margin: 0 0 .6em; font-weight: 600; }
.why-quote .attrib { font-size: .92rem; color: #AEB7DC; margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky-light); color: var(--brand-navy);
  display: grid; place-items: center; margin-top: 2px;
}
.why-list strong { display: block; color: var(--ink); }

/* ---------- service area ---------- */
/* hero photo. Two columns from 1000px, stacked below that so the call
   button stays above the fold on a phone. */
.hero-grid { display: grid; gap: 26px; }
.hero-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: rgba(255,255,255,.06);
}
.hero-photo img { width: 100%; height: auto; display: block; }

.counties { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.counties li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px;
  font-weight: 700; color: var(--brand-navy); font-size: .96rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- the plumbers ---------- */
.crew { display: grid; gap: 16px; }
.person {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.person .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(140deg, var(--sky) 0%, var(--brand-navy) 100%);
  color: var(--white); display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; letter-spacing: .02em;
}
.person h3 { margin-bottom: .2em; }
.person .role { color: var(--sky); font-weight: 800; font-size: .86rem;
                letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7em; }
.person .tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
               font-weight: 800; font-size: 1.1rem; color: var(--brand-navy); text-decoration: none; }

/* ---------- reviews ---------- */
.rating-hero { text-align: center; margin-bottom: 30px; }
.rating-hero .score { font-size: 3.2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.rating-hero .stars { color: #F5A623; font-size: 1.5rem; letter-spacing: 3px; margin: 6px 0; }
.rating-hero .meta { color: var(--body); font-size: .98rem; margin: 0; }

.reviews { display: grid; gap: 14px; }
.review {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
  /* Quotes differ in length. Let the quote take the slack so the name and
     source sit on the same baseline across all three cards. */
  display: flex; flex-direction: column;
}
.review p { font-size: 1rem; margin: 0 0 .8em; }
.review > p:first-child { flex: 1 0 auto; }
.review .who { font-weight: 800; color: var(--ink); font-size: .92rem; margin: 0; }
.review .src { color: var(--body); font-size: .84rem; margin: 0; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--brand-navy); color: var(--white);
  border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: var(--white); }
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-card .row:last-of-type { border-bottom: 0; }
.contact-card .row .ico { flex: none; color: var(--sky); margin-top: 3px; }
.contact-card .row .k { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #AEB7DC; margin: 0 0 2px; }
.contact-card .row .v { margin: 0; color: var(--white); font-weight: 700; }
.contact-card a { color: var(--white); }

/* Inline phone/email links inside the contact card. Without this they render
   ~22px tall — under Google's 44px tap-target floor, which is one of the exact
   defects we're being paid to fix. Don't let them shrink again. */
.taplink {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px; margin: 2px 6px 2px 0;
  border-radius: 8px; background: rgba(255,255,255,.12);
  text-decoration: none; font-weight: 700;
}
.taplink:hover { background: rgba(255,255,255,.20); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #AEB7DC; padding: 34px 0 26px; font-size: .92rem; }
.site-footer img { width: 150px; margin-bottom: 16px; background: var(--white); padding: 8px; border-radius: 8px; }
.site-footer a { color: var(--sky); }
.site-footer .bless { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.10);
                      font-weight: 700; color: var(--white); letter-spacing: .02em; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--call);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(20,23,63,.22);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 1.12rem;
}
body { padding-bottom: 82px; }   /* room for the call bar */

/* ============================================================
   WIDER SCREENS — everything above is the phone layout
   ============================================================ */
@media (min-width: 700px) {
  .header-call .num { display: inline; }
  .hero { padding: 72px 0 64px; }
  .hero .actions { flex-direction: row; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .callband .inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  section { padding: 68px 0; }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
  .hero .lede { margin-bottom: 1.25em; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service--wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto 1fr;
    gap: 0 20px; align-items: center;
  }
  .service--wide .service-body { display: block; }
  .service--wide .ico { margin-bottom: 0; }
  .service--wide p { max-width: 62ch; }
  .why { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .contact-card { padding: 44px 40px; }
  /* call bar is a phone affordance — the header button covers desktop */
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Sandra 2026-08-24: callers were hanging up on voicemail and ringing another
   plumber. Set the expectation next to the button they are about to tap. */
.hero .sub-answer { margin-top: 6px; max-width: 46ch; }

/* The gmail address is a 30-character unbreakable string and was pushing the
   contact card past the viewport at 375px. Let it wrap instead. */
.contact-card .v, .contact-card .taplink { overflow-wrap: anywhere; }

/* ---------- recent work ---------- */
/* Deliberately dark. The page alternates white and soft-grey, and adding a
   seventh section would have broken that rhythm wherever it landed. A navy
   block sidesteps it, echoes the hero, and photographs read better on dark. */
.work { background: var(--navy-deep); color: #fff; }
.work .section-head h2 { color: #fff; }
.work .section-head p { color: #C3CAE4; }

.jobs { display: grid; gap: 26px; }
.job h3 { margin: 14px 0 .3em; font-size: 1.12rem; color: #fff; }
.job p  { margin: 0; color: #C3CAE4; font-size: .95rem; }

/* Before and after stay side by side at every width. Stacking them defeats
   the point: the comparison only works if both are on screen at once. */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
        background: rgba(255,255,255,.06); box-shadow: var(--shadow-md); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  position: absolute; top: 10px; left: 10px;
  background: rgba(20,23,63,.82); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
}
.shot--after figcaption { background: var(--call); }

/* the standalone shots: caption sits under the photo, not over it */
.tiles { display: grid; gap: 16px; margin-top: 34px; }
.tile figcaption {
  position: static; background: none; padding: 12px 2px 0;
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: .92rem; color: #C3CAE4;
}
.tile figcaption strong { display: block; color: #fff; font-size: 1rem; margin-bottom: .18em; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  /* One job per row with the pair beside the words. Three across made each
     photo 170px, which is too small to actually compare anything. */
  .job { display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 30px; align-items: center; }
  .ba  { grid-row: 1 / span 2; gap: 10px; }
  .job h3 { align-self: end; margin: 0 0 .3em; }
  .job p  { align-self: start; }
  .jobs { gap: 34px; }
}
