/* ProDirect Plumbing — mobile-first styles
   Brand: navy #0a2e52, brand blue #114fa7 (official) */

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

:root {
  --navy: #0a2e52;
  --brand-blue: #114fa7;
  --gray: #8b8e97;
  --brand-blue-dark: #0d3f85;
  --off-white: #f7f9fb;
  --text: #1a1a1a;
  --muted: #5a6570;
  --white: #ffffff;
  --border: #e2e8ee;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(10, 46, 82, 0.08);
  --max: 720px;
  --wide: 960px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}


h1, h2, h3, .logo, .btn, .header-cta, .section-label, .site-nav a {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); }
a:hover { color: var(--brand-blue-dark); }

.container {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: #8bb4e8; font-weight: 600; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-blue);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.header-cta:hover { background: var(--brand-blue-dark); color: var(--white) !important; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand-blue);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--off-white); }
.btn-block { width: 100%; }
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  background-color: #0a2e52;
  background-image: linear-gradient(90deg, rgba(10,46,82,0.88) 0%, rgba(10,46,82,0.72) 50%, rgba(10,46,82,0.45) 100%), url("hero-header.png");
  background-size: cover;
  background-position: center right;
  color: var(--white);
  padding: 2.5rem 0 3rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.hero .sub {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 0.5rem;
}
.hero .area {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* —— Sections —— */
section { padding: 2.75rem 0; }
section.alt { background: var(--off-white); }
.section-label {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.lead { color: var(--muted); max-width: 38rem; margin-bottom: 1.5rem; }

/* —— Services grid —— */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.service-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(17, 79, 167, 0.12);
  color: var(--brand-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

/* —— Trust —— */
.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.trust-item strong { display: block; color: var(--navy); margin-bottom: 0.2rem; }
.trust-item span { color: var(--muted); font-size: 0.92rem; }
.check {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--brand-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* —— Offer / PM boxes —— */
.offer-box, .pm-box {
  background: var(--white);
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.offer-box ul, .pm-box ul {
  margin: 1rem 0 0 1.1rem;
  color: var(--muted);
}
.offer-box li, .pm-box li { margin-bottom: 0.45rem; }
.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
  font-style: italic;
}

/* —— Contact form —— */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 28rem;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--off-white);
}
input:focus, textarea:focus {
  outline: 2px solid var(--brand-blue);
  border-color: transparent;
  background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.1rem; }
.site-footer a { color: #8bb4e8; }
.nap p { margin-bottom: 0.35rem; }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.75;
}
.placeholder {
  background: #fff3cd;
  color: #856404;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  font-weight: 600;
}

/* —— Desktop —— */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero { padding: 3.5rem 0 4rem; }
}

/* —— Multi-page nav —— */
.header-inner {
  align-items: center;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #8bb4e8;
}
.logo img {
  height: 40px;
  width: auto;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0 2.25rem;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero .sub {
  opacity: 0.9;
  max-width: 36rem;
  font-size: 1.05rem;
}

/* Content helpers */
.content-list {
  margin: 1rem 0 0 1.1rem;
  color: var(--muted);
}
.content-list li { margin-bottom: 0.45rem; }
.service-card .btn-row { margin-top: 1rem; }
.service-card .btn { font-size: 0.95rem; padding: 0.65rem 1.1rem; }
.nap-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}
.nap-block p { margin-bottom: 0.35rem; color: var(--muted); }
.nap-block strong { color: var(--navy); }

@media (max-width: 719px) {
  .site-header { padding: 0.65rem 0; }
  .header-inner { gap: 0.5rem; }
  .site-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 0.35rem 0.75rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-nav a { font-size: 0.82rem; }
  .nav-wrap { width: 100%; justify-content: space-between; }
}
@media (min-width: 720px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-wrap { flex-wrap: nowrap; }
}


.service-icon-img {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
}
.pm-banner-wrap {
  padding: 0 0 1.5rem;
  background: var(--off-white, #f7f9fb);
}
.pm-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* —— Mobile menu (Integrator cut: six links + Call) —— */
.nav-menu { display: none; position: relative; }
.nav-toggle {
  list-style: none;
  cursor: pointer;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  user-select: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.header-cta-mobile {
  margin-left: auto;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
}
.nav-wrap-desktop { display: flex; }

@media (max-width: 839px) {
  .nav-wrap-desktop { display: none !important; }
  .nav-menu { display: block; }
  .nav-menu[open] .nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem 1rem;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    z-index: 200;
  }
  .nav-menu .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .nav-menu .site-nav a {
    font-size: 0.95rem;
    padding: 0.35rem 0;
    width: 100%;
  }
  .nav-menu .header-cta-desk {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
  .header-inner { flex-wrap: nowrap; }
}

@media (min-width: 840px) {
  .nav-menu { display: none !important; }
  .header-cta-mobile { display: none !important; }
  .nav-wrap-desktop { display: flex !important; }
}
