/*
Theme Name: Premier Plumbing Modern
Theme URI: https://mattgraphy.com
Author: Mattgraphy
Author URI: https://mattgraphy.com
Description: A modern, responsive WordPress theme for Premier Plumbing & Piping, Inc. with editable colors, images, text, and a video hero section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: premier-plumbing-modern
*/

:root {
  --primary: #0a6ecb;
  --primary-dark: #084f92;
  --accent: #ef4b4f;
  --ink: #13202b;
  --text: #425466;
  --muted: #6b7b8c;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #edf3f8;
  --border: #dce5ee;
  --shadow: 0 20px 55px rgba(10, 28, 44, 0.12);
  --radius: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #eef5fb;
  max-width: 760px;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 34px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 110, 203, 0.24);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 75, 79, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 229, 238, 0.8);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo img.custom-logo {
  max-height: 60px;
  width: auto;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
}

.logo-text span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 5px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .primary-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .primary-menu li a {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav .primary-menu li a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #09131b;
}

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

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,19,27,0.82) 0%, rgba(9,19,27,0.6) 45%, rgba(9,19,27,0.55) 100%),
    linear-gradient(180deg, rgba(9,19,27,0.2) 0%, rgba(9,19,27,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0 54px;
  color: #fff;
}

.hero h1 { color: #fff; max-width: 900px; }

.hero-highlights {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  font-weight: 700;
}

.trust-bar {
  position: relative;
  margin-top: -44px;
  z-index: 3;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(220,229,238,0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.trust-item {
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.about-image {
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.check-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 600;
}

.check-list span.icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(10,110,203,0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.section-surface {
  background: linear-gradient(180deg, #eef4f9 0%, #f8fafc 100%);
  border-top: 1px solid #e5eef5;
  border-bottom: 1px solid #e5eef5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(16, 40, 65, 0.06);
  transition: 0.25s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(16, 40, 65, 0.12);
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,110,203,0.12), rgba(10,110,203,0.2));
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.card p { margin: 0; }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.market-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 12px 36px rgba(16, 40, 65, 0.06);
}

.process-num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.side-panel {
  background: linear-gradient(180deg, #13202b, #0f1822);
  color: #f0f5fa;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.side-panel::after {
  content: "";
  position: absolute;
  inset: auto -100px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(10,110,203,0.12);
  filter: blur(10px);
}

.side-panel h2, .side-panel h3, .side-panel p, .side-panel li { color: inherit; }
.side-panel ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.side-panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.side-panel li::before {
  content: "✓";
  color: #7ed0ff;
  font-weight: 900;
}

.cta-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8,79,146,0.94), rgba(10,110,203,0.93));
  color: #fff;
  border-radius: 34px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.cta-wrap h2, .cta-wrap h3, .cta-wrap p, .cta-wrap li, .cta-wrap label { color: #fff; }
.cta-points { display: grid; gap: 14px; margin-top: 20px; }
.cta-points div { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }

.form-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 24px;
}

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

.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(16, 40, 65, 0.05);
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  margin-bottom: 10px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: start;
}

.faq-panel,
.contact-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(16, 40, 65, 0.06);
  padding: 30px;
}

details {
  background: #f8fbfd;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}

details + details { margin-top: 14px; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ink);
}
details p { margin: 12px 0 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-list { display: grid; gap: 20px; margin-top: 22px; }
.contact-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.map-embed {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #dce9f3;
  box-shadow: 0 16px 40px rgba(16, 40, 65, 0.06);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: #425466;
  color: rgba(255,255,255,0.78);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
  gap: 24px;
  padding-bottom: 36px;
}

.footer-brand p { max-width: 360px; }
.footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-bottom a { color: #9fd3ff; }

.mobile-menu {
  display: none;
  gap: 12px;
  padding: 0 0 20px;
}

.mobile-menu a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
}

body.menu-open .mobile-menu { display: grid; }

@media (max-width: 1100px) {
  .hero-highlights,
  .trust-grid,
  .process-grid,
  .stats-grid,
  .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .project-grid,
  .cta-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image { min-height: 400px; }
  .site-nav { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .nav-wrap .btn-accent { display: none; }
  .header-bar { min-height: 78px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 80px 0 42px; }

  .hero-highlights,
  .trust-grid,
  .cards,
  .process-grid,
  .stats-grid,
  .markets-grid,
  .footer-grid,
  .project-gallery,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar { margin-top: -28px; }
  .trust-grid { padding: 16px; border-radius: 22px; }
  .cta-wrap { padding: 24px; border-radius: 28px; }

  .about-card,
  .faq-panel,
  .contact-panel,
  .form-card,
  .side-panel,
  .card,
  .process-step,
  .stat {
    padding: 22px;
  }

  .logo-text span { display: none; }
  .footer-bottom { flex-direction: column; }
}


/* Updates v3 */
.card .icon-box {
  display: none;
}

.site-nav .primary-menu li.current-menu-item a,
.site-nav .primary-menu li.current_page_item a {
  color: var(--primary);
}


/* Header logo size and spacing */
.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.site-header .custom-logo {
  max-height: 55px;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-header .custom-logo {
    max-height: 44px;
  }

  .site-header .custom-logo-link {
    padding: 8px 10px;
  }
}
