/* =========================================================================
   T's Plumbing & Drain Cleaning — styles
   Mobile-first. No external fonts/frameworks/images.
   ========================================================================= */

:root {
  --charcoal: #1a1c1f;
  --charcoal-2: #23262b;
  --paper: #f6f4f0;
  --paper-2: #ffffff;
  --ink: #1a1c1f;
  --ink-soft: #4c5058;
  --ink-faint: #6b6f78;
  --border: #ded9cf;
  --blue: #1a63c4;
  --blue-dark: #124a94;
  --blue-tint: #e7f0fc;
  --accent: #d94f26;
  --accent-dark: #b83e1c;
  --accent-tint: #fdece5;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(20, 22, 26, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 68px;
  --mobile-bar-h: 64px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 44px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
  height: 100%;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--lg { padding: 15px 24px; font-size: 1.05rem; }

.btn--call { background: var(--blue); color: #fff; }
.btn--call:hover { background: var(--blue-dark); }

.btn--text { background: var(--charcoal); color: #fff; }
.btn--text:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-inverse { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-inverse:hover { border-color: #fff; }

.btn--emergency { background: var(--accent); color: #fff; }
.btn--emergency:hover { background: var(--accent-dark); }

.btn--emergency-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--emergency-outline:hover { border-color: #fff; }

/* -------------------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------------------- */
.announce {
  background: var(--charcoal);
  color: #f1efe9;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.announce p { margin: 0; color: inherit; }
.announce a { color: #ffd9c9; font-weight: 700; text-decoration: underline; }

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { border-radius: 6px; flex: none; }
.brand__name {
  font-weight: 800;
  line-height: 1.1;
  font-size: 0.95rem;
  color: var(--ink);
}
.brand__name span { color: var(--blue); display: block; font-size: 0.85em; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__box { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle__box span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle__label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84vw, 320px);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  padding: calc(var(--header-h) + 12px) 24px 24px;
  overflow-y: auto;
}
.primary-nav.is-open { transform: translateX(0); }

.primary-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.primary-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.nav-call { width: 100%; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.5);
  z-index: 50;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-scrim { display: none !important; }
  .primary-nav {
    position: static;
    transform: none;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: visible;
  }
  .primary-nav ul { flex-direction: row; margin-bottom: 0; gap: 22px; }
  .primary-nav a { border-bottom: none; padding: 6px 2px; }
  .nav-call { width: auto; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  background: var(--charcoal);
  color: #fff;
  padding: 40px 0 52px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__logo { width: 220px; height: auto; margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: #fff;
  max-width: 16ch;
}

.hero__lede {
  color: #d7d5cf;
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 76px; }
  .hero__inner { flex-direction: row; align-items: center; }
  .hero__content { flex: 1 1 55%; }
  .hero__photo { flex: 1 1 45%; max-width: 480px; }
}

/* -------------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------------- */
.trust-strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 20px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.trust-item svg { width: 26px; height: 26px; fill: var(--blue); }

@media (min-width: 640px) {
  .trust-item { flex-direction: row; font-size: 0.95rem; }
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */
.services { padding: 56px 0; }
.services h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.services-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.service-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.service-item:last-child { border-bottom: 1px solid var(--border); }

.service-item__icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  margin-top: 4px;
}

.service-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.service-item p { margin: 0; }

/* -------------------------------------------------------------------------
   Emergency callout
   ------------------------------------------------------------------------- */
.emergency-callout {
  background: var(--charcoal-2);
  color: #fff;
  padding: 40px 0;
}
.emergency-callout__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.emergency-callout h2 { color: #fff; font-size: 1.5rem; }
.emergency-callout p { color: #d7d5cf; margin-bottom: 0; max-width: 52ch; }
.emergency-callout__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 800px) {
  .emergency-callout__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* -------------------------------------------------------------------------
   Work / gallery / before-after
   ------------------------------------------------------------------------- */
.work { padding: 56px 0; }
.work h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-lede { margin-top: -8px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.gallery-grid__item:first-child,
.gallery-grid__item:nth-child(4) {
  grid-column: span 2;
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid__item:first-child { grid-column: span 2; }
  .gallery-grid__item:nth-child(4) { grid-column: 2 / span 2; }
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
  aspect-ratio: 1 / 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 20px 10px 8px;
  text-align: left;
}

.before-after-heading { margin-top: 44px; font-size: 1.3rem; }

.before-after-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 16px;
}
.before-after__pair h4 { font-size: 1rem; margin-bottom: 10px; color: var(--ink); }
.before-after__frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.before-after__frame {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
  aspect-ratio: 3 / 4;
}
.before-after__frame img { width: 100%; height: 100%; object-fit: cover; }
.before-after__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(26,28,31,0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------------- */
.reviews { padding: 56px 0; background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reviews h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.review-item blockquote {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--blue);
}
.review-item p { color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; }
.review-item cite { font-style: normal; font-weight: 700; color: var(--ink-faint); font-size: 0.9rem; }
.reviews-note { margin-top: 20px; font-size: 0.85rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact { padding: 56px 0 64px; }
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.contact-methods .btn { width: 100%; }

.sms-composer {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sms-composer h3 { font-size: 1.15rem; }
.sms-composer__hint { font-size: 0.85rem; }
.sms-composer label { display: block; font-weight: 700; font-size: 0.85rem; margin: 14px 0 6px; }
.sms-composer input,
.sms-composer textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}
.sms-composer .btn { width: 100%; margin-top: 18px; }

@media (min-width: 900px) {
  .contact__inner { flex-direction: row; }
  .contact__info { flex: 1 1 45%; }
  .sms-composer { flex: 1 1 55%; }
  .contact-methods { flex-direction: row; }
  .contact-methods .btn { width: auto; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: #cfccc4;
  padding: 32px 0 20px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { border-radius: 6px; }
.site-footer__name { color: #fff; font-weight: 800; margin: 0; }
.site-footer p { color: #b7b4ab; margin: 0; font-size: 0.9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__links a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__fine { text-align: center; font-size: 0.78rem; padding: 0 20px; }

@media (min-width: 700px) {
  .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* -------------------------------------------------------------------------
   Sticky mobile action bar
   ------------------------------------------------------------------------- */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(20,22,26,0.1);
  padding: 8px 10px calc(8px + var(--safe-bottom));
  gap: 10px;
}
.mobile-action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
}
.mobile-action-bar__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-action-bar__btn--call { background: var(--blue); color: #fff; }
.mobile-action-bar__btn--text { background: var(--charcoal); color: #fff; }

@media (min-width: 900px) {
  .mobile-action-bar { display: none; }
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + var(--safe-bottom));
}
.lightbox[hidden] {
  display: none;
}
.lightbox__image {
  max-width: min(92vw, 900px);
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox__caption {
  color: #f1efe9;
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

@media (min-width: 700px) {
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}
