/* ============================================================
   PREMIUM SHOWER VALVE REPLACEMENT — WARMINSTER PA
   Editorial Product-Design System 2026
   ============================================================ */

:root {
  /* Palette — cool precision with warm depth */
  --ink: #0c1222;
  --ink-soft: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --cloud: #f1f5f9;
  --paper: #fafaf9;
  --white: #ffffff;
  --accent: #0f766e; /* deep teal — water + precision */
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --copper: #b45309;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate);
}

.text-muted { color: var(--muted); }
.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 250, 249, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 220px;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

.nav-desktop a:hover { color: var(--ink); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

.phone-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.phone-link svg { width: 18px; height: 18px; }

/* Mobile menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav .btn { margin-top: 1rem; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .phone-link { display: flex; }
  .brand { max-width: none; font-size: 1.15rem; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hero image composition — overlapping editorial */
.hero-visual {
  position: relative;
  height: 420px;
}

.hero-img-primary {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.hero-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.hero-img-secondary {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 48%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--paper);
  z-index: 2;
}

.hero-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
  }
  .hero-visual { height: 520px; }
  .hero-img-primary { width: 82%; }
  .hero-img-secondary { width: 44%; bottom: -30px; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== SECTIONS ========== */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.85rem; }

/* Service intro */
.service-intro {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 800px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Process */
.process-list {
  display: grid;
  gap: 1.5rem;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.process-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-item h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.process-item p {
  font-size: 0.95rem;
  color: var(--slate);
}

@media (min-width: 700px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Visual story band */
.visual-band {
  padding: 0;
  position: relative;
}

.visual-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 480px;
}

.visual-band-img {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.visual-band-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.visual-band-content {
  background: var(--ink);
  color: var(--cloud);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-band-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.visual-band-content p {
  color: rgba(241, 245, 249, 0.8);
  margin-bottom: 1.75rem;
  max-width: 420px;
}

@media (min-width: 800px) {
  .visual-band-inner {
    grid-template-columns: 1.1fr 1fr;
  }
  .visual-band-content {
    padding: 4rem 3.5rem;
  }
}

/* Supporting services */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.service-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card a:hover { gap: 0.5rem; }

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

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

/* Local / service area */
.local-section {
  background: var(--cloud);
}

.local-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .local-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.local-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.local-list li {
  background: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a { max-height: 300px; }

.faq-a-inner {
  padding-bottom: 1.35rem;
  color: var(--slate);
  font-size: 0.975rem;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(241, 245, 249, 0.75);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-band .btn-primary {
  background: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--accent-hover);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: rgba(241, 245, 249, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ========== PAGE SPECIFIC ========== */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead { max-width: 560px; }

.content-block {
  padding: 4rem 0;
}

.content-block + .content-block {
  border-top: 1px solid var(--border);
}

.prose {
  max-width: 680px;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
}

.prose p { margin-bottom: 1rem; color: var(--slate); }
.prose ul {
  margin: 1rem 0 1.5rem 1.25rem;
  list-style: disc;
  color: var(--slate);
}
.prose li { margin-bottom: 0.4rem; }

/* Contact form */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-item a {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
