/* Trevor Smith Plumbing — design tokens
   Redesign direction: bolder, more corporate/established-company feel
   (structural cues from national trade-service sites), own color identity.
   Shape lock: buttons = 8px rect, cards/tiles = 12px, inputs = 8px, photo slots = 12px */

:root {
  --ink: #14181d;
  --ink-soft: #4b5561;
  --paper: #f7f6f3;
  --paper-2: #ece8e0;
  --white: #ffffff;
  --line: rgba(20, 24, 29, 0.12);
  --line-on-navy: rgba(255, 255, 255, 0.16);

  --navy: #14213d;
  --navy-2: #1c2c52;

  --accent: #ce1126;
  --accent-600: #a50e1f;
  --accent-100: #f7dcdf;

  --radius-btn: 8px;
  --radius-tile: 12px;
  --radius-input: 8px;
  --radius-slot: 12px;

  --max: 1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

.icon { display: inline-block; flex-shrink: 0; }
.icon--lg { color: var(--accent-600); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
  margin-bottom: 0.9rem;
}
.eyebrow--center { display: block; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--accent-600); color: var(--white); }
.btn--primary:hover { background: var(--accent); }

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

.btn--outline-nav { background: transparent; color: var(--white); border-color: var(--line-on-navy); }
.btn--outline-nav:hover { border-color: var(--white); }

.btn--small { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn--large { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--accent-600);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-600);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0;
  flex-shrink: 0;
}
.nav__badge--footer { background: var(--accent); }

.nav__logo { font-weight: 800; font-size: 1.1rem; white-space: nowrap; color: var(--white); }
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}
.nav__links a:hover { color: var(--white); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.3rem;
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { font-size: 1.6rem; font-weight: 700; }
.mobile-menu .btn { margin-top: 0.5rem; }
.mobile-menu__phone { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem !important; color: var(--accent); }
.mobile-menu__close {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.12;
  max-width: 16ch;
}
.hero__sub {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero__ctas { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero__trustline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero__trustline .icon { color: var(--accent-600); }

.hero__photo .photo-slot--hero {
  aspect-ratio: 4 / 3.2;
  height: 100%;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__photo { order: -1; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); }
.trust-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-strip__item { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.9rem; color: var(--white); }
.trust-strip__item .icon { color: var(--accent); }

@media (max-width: 760px) {
  .trust-strip__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 1.5rem; }
.section--ink { background: var(--navy); color: var(--white); }
.section--ink .section__title { color: var(--white); }
.section--tint { background: var(--paper-2); }

.section__inner { max-width: var(--max); margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  max-width: 26ch;
  margin-bottom: 1.25rem;
}
.section__title--center { text-align: center; margin-left: auto; margin-right: auto; }

.section__lede { font-size: 1.05rem; max-width: 60ch; margin-bottom: 2.5rem; }
.section__lede--center { text-align: center; margin-left: auto; margin-right: auto; }
.section--ink .section__lede { color: rgba(255,255,255,0.68); }

.pillars ~ .section__lede,
.section__title + .pillars,
.section__title + .services-grid { margin-top: 2.5rem; }

/* ---------- Pillars (why us, 3-col symmetric) ---------- */
.pillars {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillar { text-align: left; }
.pillar h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; }
.pillar p { font-size: 0.94rem; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- Services grid (uniform) ---------- */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.service-card h3 { font-size: 1.05rem; }
.service-card p { font-size: 0.92rem; }
.service-card--accent { background: var(--accent-100); border-color: transparent; }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Checklist (what to expect) ---------- */
.checklist {
  margin-top: 0;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 0;
}
.checklist .icon { color: var(--accent); flex-shrink: 0; }

@media (max-width: 700px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Photo slots ---------- */
.photo-slots {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.photo-slot,
.photo-slot--hero {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-slot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  background: var(--paper-2);
}
.photo-slot .icon { color: var(--accent-600); }
.photo-slot--hero .icon { color: var(--accent-600); }
.photo-slot--hero span { font-size: 0.95rem; max-width: 20ch; }

@media (max-width: 700px) {
  .photo-slots { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--navy-2); color: var(--white); padding: 5.5rem 1.5rem; text-align: center; }
.cta-banner__inner { max-width: 640px; margin: 0 auto; }
.cta-banner__inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--white); }
.cta-banner__inner p { margin-top: 0.9rem; color: rgba(255,255,255,0.68); font-size: 1.05rem; }
.cta-banner__actions { margin-top: 2rem; display: flex; justify-content: center; }

.cta-banner__embed-slot {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px dashed var(--line-on-navy);
  border-radius: var(--radius-slot);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 4rem 1.5rem 1.75rem; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer__logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 0.6rem; }
.footer__logo-accent { color: var(--accent); }
.footer__col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 0.9rem; font-weight: 700; }
.footer__col a, .footer__col p { display: block; margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer__credit a { color: rgba(255,255,255,0.65); font-weight: 600; }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Legal / utility pages ---------- */
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.legal p { margin-top: 0.8rem; font-size: 1rem; line-height: 1.65; }
.legal ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-600); text-decoration: underline; }
.legal .btn { text-decoration: none; color: var(--white); }
.legal__updated { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Booking embed ---------- */
.booking-embed { width: 100%; max-width: 760px; margin: 2rem auto 0; background: var(--white); border-radius: var(--radius-slot); overflow: hidden; }
.booking-embed iframe { display: block; width: 100%; min-height: 720px; border: 0; }

/* ---------- Google rating (hero) ---------- */
.hero__reviews { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; font-size: 0.88rem; color: var(--ink-soft); }
.hero__reviews strong { color: var(--ink); }
.hero__reviews:hover { color: var(--accent-600); }
.hero__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.hero__reviews-count { color: var(--ink-soft); }
