:root {
  --accent: #333333;
  --accent-dark: #1c1c1c;
  --surface: #e6e6e6;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --urgency-amber: #fbbf24;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  background: #fff;
  margin: 0;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.container-narrow {
  max-width: 48rem;
  text-align: center;
}

.container-cta {
  max-width: 56rem;
  text-align: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nav {
  display: none;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark);
  opacity: 0.88;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link:focus-visible,
.btn-nav:focus-visible,
.btn-primary:focus-visible,
.btn-light:focus-visible,
.btn-outline-light:focus-visible,
.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-block { margin: 1rem 0 0; }
.contact-meta { color: #64748b; }
.btn-spaced { margin-top: 1.5rem; display: inline-flex; }

.animate-hero > * {
  opacity: 0;
  animation: heroFadeIn 0.75s ease forwards;
}

.animate-hero .eyebrow { animation-delay: 0.08s; }
.animate-hero .hero-title { animation-delay: 0.18s; }
.animate-hero .hero-sub { animation-delay: 0.28s; }
.animate-hero .hero-actions { animation-delay: 0.38s; }

.animate-widgets .widget {
  opacity: 0;
  animation: heroFadeIn 0.75s ease forwards;
}

.animate-widgets .widget:first-child { animation-delay: 0.45s; }
.animate-widgets .widget:last-child { animation-delay: 0.58s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .animate-hero > *,
  .animate-widgets .widget,
  .urgency-track,
  .dispatch-pulse,
  .hero-actions .btn-primary.btn-urgent-pulse,
  .pill,
  .tab-panel,
  .tab-panel.active {
    animation: none !important;
    transition: none !important;
    opacity: 1;
  }

  .hero-actions .btn-primary.btn-urgent-pulse {
    transform: none;
    box-shadow: none;
  }
}

a { text-decoration: none; }

.urgency-dispatch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(90deg, var(--accent-dark) 0%, #0a1628 55%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dispatch-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: var(--urgency-amber);
}

.dispatch-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: dispatchPulse 2s ease infinite;
}

@keyframes dispatchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.urgency-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.urgency-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: urgencyScroll 22s linear infinite;
}

.urgency-track span {
  opacity: 0.88;
}

@keyframes urgencyScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.dispatch-tap {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--urgency-amber);
  color: #0a1628;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dispatch-tap:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .urgency-dispatch {
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
  }

  .dispatch-tap {
    font-size: 0.65rem;
    padding: 0.32rem 0.65rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.nav-link:hover { color: var(--accent-dark); }

.btn-nav,
.btn-primary,
.btn-light,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-nav {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid #d8d8d0;
}

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

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

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 40, 0.9) 0%, rgba(8, 20, 40, 0.55) 42%, rgba(8, 20, 40, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 20, 40, 0.15) 0%, rgba(8, 20, 40, 0.72) 68%, rgba(8, 20, 40, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 1rem 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    padding-bottom: 4rem;
  }
}

.eyebrow,
.eyebrow-dark {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: #d7f0a2;
  margin-bottom: 0.75rem;
}

.eyebrow-dark {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 12ch;
  margin: 0;
  text-transform: uppercase;
}

.hero-actions .btn-primary.btn-urgent-pulse {
  animation: callUrgentPulse 7s ease-out 1;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.35);
}

@keyframes callUrgentPulse {
  0%, 12% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55), 0 4px 24px rgba(251, 191, 36, 0.35);
    transform: scale(1);
  }
  20% {
    box-shadow: 0 0 0 14px rgba(251, 191, 36, 0), 0 4px 24px rgba(251, 191, 36, 0.35);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 4px 24px rgba(251, 191, 36, 0.2);
    transform: scale(1);
  }
}

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  color: #fff;
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  font-size: 1.1rem;
  line-height: 1;
}

.proof-label {
  font-size: 0.72rem;
  opacity: 0.8;
  margin: 0;
}

.proof-value {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.hero-widgets {
  display: grid;
  gap: 1rem;
}

.widget {
  border-radius: 1.25rem;
  padding: 1.1rem 1.2rem;
}

.widget-dark {
  background: rgba(10, 28, 20, 0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.widget-light {
  background: rgba(255,255,255,0.94);
  color: var(--accent-dark);
}

.widget-label {
  font-size: 0.75rem;
  opacity: 0.75;
  margin: 0 0 0.25rem;
}

.widget-value {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.widget-link {
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
  color: #bfdbfe;
  font-weight: 600;
}

.widget-meta {
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
  opacity: 0.85;
}

.intro {
  background: var(--surface);
  padding: 4.5rem 0;
}

.intro-text {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.55;
  color: #334155;
  margin: 0;
}

.intro-trust {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.intro-trust li::before {
  content: "✓ ";
  color: var(--accent);
}

.intro-contact {
  margin: 1.5rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.intro-contact a {
  color: var(--accent-dark);
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: #f8faf7;
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--accent-dark);
}

.section-copy {
  color: #64748b;
  max-width: 34rem;
  margin-top: 0.75rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
  .feature-dark { grid-column: span 2; grid-row: span 2; }
  .feature-image { grid-column: span 2; }
  .feature-accent { grid-column: span 2; }
  .feature-muted { grid-column: span 2; }
}

.feature-card {
  border-radius: 1.35rem;
  padding: 1.35rem;
  overflow: hidden;
}

.feature-dark {
  background: var(--accent-dark);
  color: #fff;
}

.feature-dark h3,
.feature-accent h3,
.feature-muted h3,
.review-accent h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
}

.feature-dark p,
.feature-accent p,
.feature-muted p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.92;
}

.feature-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin: 0;
}

.feature-cta {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

.feature-image {
  position: relative;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.feature-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.68));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
}

.feature-stat {
  background: #fff;
  border: 1px solid #e8ebe5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0;
}

.stat-label {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.feature-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.feature-muted {
  background: #fff;
  border: 1px solid #e8ebe5;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #dfe5dd;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.tab-panels {
  margin-top: 1rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  margin: 0 0 0.75rem;
  color: #475569;
  line-height: 1.55;
}

.subpage-hero {
  padding: 3rem 0 2rem;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.65rem;
  border: 2px solid var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.showcase-card {
  min-height: 320px;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: #fff;
}

.showcase-label {
  margin: 0 0 1rem;
  font-weight: 600;
}

.review-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review-card {
  background: #fff;
  border: 1px solid #e8ebe5;
  border-radius: 1.25rem;
  padding: 1.35rem;
}

.review-accent {
  background: var(--accent-dark);
  color: #fff;
  border: none;
}

.review-stars {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.review-quote,
.review-author {
  margin: 0;
  line-height: 1.55;
}

.review-author {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.review-accent .review-author { color: rgba(255,255,255,0.75); }

.review-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin: 0;
}

.cta-band {
  background: var(--accent-dark);
  color: #fff;
  padding: 4.5rem 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0;
}

.cta-band p {
  margin: 0.75rem 0 0;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hours-card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.hours-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.hours-card p {
  margin: 0.25rem 0;
  color: #475569;
}

.contact-link {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.contact-email {
  color: #475569;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid #e8ebe5;
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

a:hover { opacity: 0.9; transform: translateY(-1px); }

.trade-plumber .hero-overlay {
  background:
    linear-gradient(135deg, rgba(2, 44, 72, 0.92) 0%, rgba(3, 105, 161, 0.52) 42%, rgba(14, 165, 233, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 44, 72, 0.15) 0%, rgba(2, 44, 72, 0.82) 100%);
}
.trade-plumber .eyebrow { color: #7dd3fc; }
.trade-plumber .widget-link { color: #bae6fd; }
.trade-plumber .widget-dark {
  background: rgba(2, 44, 72, 0.78);
  border-color: rgba(125, 211, 252, 0.15);
}
.trade-plumber .section-title { font-weight: 800; letter-spacing: -0.02em; }
.trade-plumber .feature-card { border-radius: 1.5rem; }
.trade-plumber .feature-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
}
.trade-plumber .review-card { border-radius: 1.5rem; }
.trade-plumber.layout-bento .feature-grid { gap: 1.25rem; }
.trade-plumber .btn-primary {
  box-shadow: 0 4px 18px rgba(3, 105, 161, 0.35);
}
.trade-plumber .intro { background: linear-gradient(180deg, #f0f9ff 0%, var(--surface) 100%); }

/* ── Platform standards: motion + a11y ── */

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
}

.skip-link:focus-visible {
  outline: 2px solid #0c4a6e;
  outline-offset: 2px;
}

.site-header {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  animation: platformFadeUp 0.65s ease forwards;
}

.reveal-stagger > * {
  opacity: 0;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(7) { animation-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { animation-delay: 0.54s; }

@keyframes platformFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-visible,
  .reveal-stagger > *,
  .tab-panel,
  .tab-panel.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.brand-logo-img,
.logo .brand-logo-img,
.logo-mark .brand-logo-img,
.brand .brand-logo-img {
  display: block;
  max-height: 3.5rem;
  max-width: min(14rem, 48vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.has-brand-logo .brand-mark,
.has-brand-logo .logo-monogram,
.has-brand-logo .brand-logo-text {
  display: none;
}

.has-brand-logo .brand-text {
  display: none;
}

.logo.has-brand-logo,
.logo-mark.has-brand-logo,
.brand.has-brand-logo {
  line-height: 0;
}

@media (max-width: 899px) {
  body.demo-site {
    padding-bottom: 4.75rem;
  }

  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: var(--accent-dark, #0c4a6e);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
  }

  .mobile-call-bar:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .mobile-call-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
  }

  .mobile-call-number {
    font-size: 1.15rem;
    font-weight: 800;
  }
}

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