/* ===========================================================
   AJ Plumbing Works — stylesheet
   Plain CSS, mobile-first, no framework.
=========================================================== */

:root {
  --ink: #1c2530;
  --body-text: #3f4a56;
  --muted: #6b7680;
  --bg: #ffffff;
  --bg-alt: #f3f7f7;
  --border: #e1e8e8;
  --teal: #1f7a6f;
  --teal-dark: #155a52;
  --teal-tint: #e6f2f0;
  --blue: #6f9dc4;
  --blue-tint: #eaf1f8;
  --focus: #0b3d91;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --shadow: 0 2px 10px rgba(28, 37, 48, 0.07);
  --shadow-lg: 0 12px 32px rgba(28, 37, 48, 0.14);
}

/* ---------- Reset ---------- */
*, *::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, Arial, sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .85);
  border-radius: 4px;
}
/* On dark backgrounds (footer, teal CTA band) swap the halo so the ring stays visible */
.footer a:focus-visible,
.cta-band a:focus-visible,
.header__call:focus-visible {
  box-shadow: 0 0 0 5px rgba(11, 20, 30, .6);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons (44px+ tap targets) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn--on-dark { background: #fff; color: var(--teal-dark); }
.btn--on-dark:hover { background: var(--teal-tint); }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 44px;
}
.brand img { height: 42px; width: 42px; }
.brand__text em { font-style: normal; color: var(--teal); margin-left: .22em; }

.header__call {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.header__call:hover { background: var(--teal-dark); }
.header__call .icon { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
}

.nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav.is-open { transform: translateX(0); }
.nav__list {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 28px;
}
.nav__list a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.nav__list a[aria-current="page"] { color: var(--teal); }
.nav__cta { padding: 18px 4px 4px; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static;
    transform: none;
    inset: auto;
    border-top: 0;
    overflow: visible;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 6px;
  }
  .nav__list a {
    border-bottom: 0;
    padding: 8px 14px;
    font-size: .98rem;
  }
  .nav__cta { padding: 0 0 0 10px; }
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 16px rgba(0,0,0,.08);
}
.mobile-call-bar .btn { flex: 1; }
@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
}
.has-mobile-bar { padding-bottom: 76px; }
@media (min-width: 900px) {
  .has-mobile-bar { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, var(--teal-tint), #fff 70%);
}
.hero__grid {
  display: grid;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: .4em;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--body-text);
  max-width: 52ch;
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: .95rem;
  color: var(--muted);
}
.hero__rating-stars {
  color: #f2a71b;
  letter-spacing: 2px;
  font-size: 1rem;
}
.hero__rating-text strong { color: var(--body-text); }
.hero__reassure {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--muted);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.badge .icon { width: 16px; height: 16px; color: var(--teal); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; aspect-ratio: 1201/1330; }

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.trust-strip__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px 20px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 22px;
}
.trust-item .icon {
  width: 26px; height: 26px; flex: none; color: var(--teal); margin-top: 2px;
}
.trust-item strong { display: block; color: var(--ink); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }
@media (min-width: 700px) {
  .trust-strip__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.service-card .icon {
  width: 34px; height: 34px; color: var(--teal); margin-bottom: 12px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }

/* ---------- Services page detailed lists ---------- */
.service-block {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.service-block:first-of-type { border-top: 0; }
.service-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.service-block__head .icon { width: 30px; height: 30px; color: var(--teal); }
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: .96rem;
  color: var(--body-text);
}
.service-list li .icon {
  width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 3px;
}

/* ---------- Quals ---------- */
.quals-list {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .quals-list { grid-template-columns: repeat(2, 1fr); } }
.qual-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.qual-card .icon { width: 28px; height: 28px; color: var(--teal); flex: none; }
.qual-card strong { display: block; color: var(--ink); }
.qual-card span { color: var(--muted); font-size: .92rem; }

/* ---------- Reviews ---------- */
.reviews-scroller {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .reviews-scroller { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews-scroller { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.review-card__stars {
  color: #f2a71b;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.review-card p {
  color: var(--body-text);
  font-size: .95rem;
  margin-bottom: 12px;
  flex: 1;
}
.review-card__source {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.reviews-source-note {
  margin-top: 22px;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  color: var(--body-text);
  cursor: pointer;
}
.filter-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .2s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(28,37,48,.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.gallery-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,20,25,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  margin: 0 auto;
}
.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: .9rem;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close { top: 18px; right: 18px; font-size: 1.4rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Contact ---------- */
.contact-hero {
  text-align: center;
  padding: 48px 0 20px;
  background: linear-gradient(180deg, var(--teal-tint), #fff 80%);
}
.contact-hero h1 { margin-bottom: .3em; }
.contact-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 40px; height: 40px; color: var(--teal); margin: 0 auto 14px;
}
.contact-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin-bottom: 18px; }
.contact-card .btn { width: 100%; }
.area-note {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfd8de;
  padding: 40px 0 28px;
}
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer__brand img { height: 38px; width: 38px; }
.footer__brand span { color: #fff; font-weight: 800; }
.footer h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer a { display: block; padding: 6px 0; color: #cfd8de; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  font-size: .85rem;
  color: #9aa7ae;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.center-text { text-align: center; }
.mt-lg { margin-top: 32px; }
.cta-band {
  background: var(--teal);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.breadcrumb-space { height: 4px; }
