@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #0c2153;
  --accent: #f6f00c;
  --muted: #787878;
  --crumb: #9a9a9a;
  --line: #dddddd;
  --font: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1170px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }
.acp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.acp-main { flex: 1 0 auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 23px;
  line-height: 1.55;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

.acp-wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.acp-visually-hidden,
.acp-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */
.acp-header { display: contents; }
.acp-logo-bar {
  background: #fff url("../images/accuplumb-header-bg.jpg") center center / cover no-repeat;
  text-align: center;
  height: 170px;
  padding: 30px 20px 0;
  position: relative;
  z-index: 60;
  overflow: visible;
}
.acp-logo {
  display: inline-block;
  line-height: 0;
  position: relative;
  z-index: 100;
  transform: translateY(15px);
}
.acp-logo img {
  width: auto;
  height: 140px;
  max-height: 140px;
  margin: 0 auto;
  vertical-align: top;
}

.acp-nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  min-height: 60px;
}
.home .acp-nav-bar { background: rgba(246, 240, 12, 0.9); }
.acp-nav-bar.is-stuck {
  z-index: 70;
  box-shadow: 0 2px 10px rgba(12, 33, 83, 0.14);
}
.admin-bar .acp-nav-bar,
.admin-bar .acp-mobile-bar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .acp-nav-bar,
  .admin-bar .acp-mobile-bar { top: calc(90px + env(safe-area-inset-top, 0px)); }
  .admin-bar .acp-mobile-phone { top: 46px; }
}
.acp-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 60px;
  column-gap: 12px;
}
.acp-phone {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-transform: uppercase;
}
.acp-phone a { color: var(--ink); padding-left: 5px; }
.acp-phone a:hover { color: var(--muted); }

.acp-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.acp-menu > li { position: relative; flex-shrink: 0; }
.acp-menu > li > a {
  display: block;
  position: relative;
  padding: 18px 14px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}
.acp-menu > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right top;
  transition: transform 0.3s ease-out;
}
.acp-menu > li > a:hover::before,
.acp-menu > li.is-current > a::before {
  transform: scaleX(1);
  transform-origin: left top;
}
.acp-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
  box-shadow: none;
  border: 1px solid var(--line);
}
.has-sub:hover > .acp-sub,
.has-sub:focus-within > .acp-sub { display: block; }
.acp-sub a {
  display: block;
  padding: 10px 18px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.acp-sub a:hover { background: var(--surface); }

.acp-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.acp-social a {
  display: flex;
  width: 30px;
  height: 60px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.acp-social svg { width: 24px; height: 24px; }

.acp-mobile-phone { display: none; }
.acp-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 51;
}
.acp-menu-toggle {
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  position: relative;
}
.acp-menu-toggle span,
.acp-menu-toggle span::before,
.acp-menu-toggle span::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  position: absolute;
  left: 9px;
}
.acp-menu-toggle span { top: 20px; }
.acp-menu-toggle span::before { content: ""; top: -7px; }
.acp-menu-toggle span::after { content: ""; top: 7px; }

/* Home */
.acp-hero img { width: 100%; }
.acp-intro {
  background: #fff url("../images/section-white-bg.jpg") center / cover no-repeat;
  padding: 50px 0;
  text-align: center;
}
.acp-intro-title {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 920px;
  margin: 0 auto 18px;
}
.acp-intro h2 {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 920px;
  margin: 0 auto 24px;
}
.acp-intro p {
  max-width: 920px;
  margin: 0 auto 18px;
  font-weight: 400;
}
.acp-mpaq { margin: 20px auto 0; }

.acp-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  overflow: hidden;
}
.acp-work-grid a {
  display: block;
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.acp-work-grid a:nth-child(4n + 3),
.acp-work-grid a:nth-child(4n + 4) {
  transform: translateX(56px);
}
.acp-work-grid a:nth-child(4n + 2),
.acp-work-grid a:nth-child(4n + 3) {
  transition-delay: 0.12s;
}
.acp-work-grid a:nth-child(4n + 1),
.acp-work-grid a:nth-child(4n + 4) {
  transition-delay: 0s;
}
.acp-work-grid a.is-in {
  opacity: 1;
  transform: none;
}
.acp-work-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .acp-work-grid a {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.acp-apart {
  background: #fff url("../images/section-white-bg.jpg") center / cover no-repeat;
  color: var(--ink);
  padding: 50px 0;
  text-align: center;
}
.acp-apart h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 auto 16px;
  max-width: 920px;
}
.acp-apart p {
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 920px;
}
.acp-apart a { color: var(--ink); text-decoration: underline; }
.acp-apart a:hover { color: var(--muted); }

.acp-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.acp-quote-form { padding: 50px; }
.acp-quote-form h2 {
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.acp-quote-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.acp-form {
  position: relative;
}
.acp-form p { margin: 14px 0 0; }
.acp-form label {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  min-height: 1.2em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.acp-form label span { color: #c00; }
.acp-form input[type="text"],
.acp-form input[type="email"],
.acp-form input[type="tel"],
.acp-form select,
.acp-form textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  box-shadow: none;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.3;
}
.acp-form button,
.acp-form input[type="submit"] {
  background: var(--ink);
  color: #fff;
  border: 0;
  min-width: 200px;
  line-height: 34px;
  padding: 8px 24px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}
.acp-form button:hover,
.acp-form input[type="submit"]:hover {
  background: var(--accent);
  color: #000;
}
.acp-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.acp-form-split p { margin-top: 14px; }
.acp-form-actions { margin-top: 16px; }
.acp-form-ok { color: var(--ink); font-weight: 600; }
.acp-form-err { color: #8a1c1c; font-weight: 600; }
.acp-turnstile { margin: 18px 0 8px; }

/* Inner pages */
.acp-page-title { padding: 28px 0 10px; }
.acp-page-title-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.acp-page-title h1 {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.acp-crumbs {
  margin: 0;
  font-size: 14px;
  color: var(--crumb);
  font-weight: 400;
}
.acp-crumbs a { color: var(--crumb); }
.acp-crumbs span { margin: 0 6px; }

.acp-page-body { padding: 20px 0 60px; }
.acp-entry p { margin: 0 0 18px; }
.acp-entry h2 { font-size: 26px; font-weight: 700; }

.acp-about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  padding: 10px 0 70px;
}
.acp-about-photo img { width: 100%; }

.acp-contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
  max-width: none;
  padding: 10px 0 70px;
}
.acp-contact h2 {
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.acp-contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.acp-contact-icon {
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}
.acp-contact-icon svg { width: 20px; height: 20px; }
.acp-contact-row h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.acp-contact-row p { margin: 0; font-size: 20px; }
.acp-contact-cta { margin: 28px 0 0; }
.acp-contact-cta button,
.acp-float-btn {
  background: var(--ink);
  color: #fff;
  border: 0;
  min-width: 200px;
  line-height: 34px;
  padding: 8px 24px;
  font-weight: 600;
  cursor: pointer;
}
.acp-contact-cta button:hover {
  background: var(--accent);
  color: #000;
}
.acp-follow {
  font-size: 26px;
  text-transform: uppercase;
  margin: 45px 0 16px;
}
.acp-contact-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.acp-contact-social a {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acp-contact-social a:hover { color: #fff; }
.acp-contact-social svg { width: 25px; height: 25px; }
.acp-contact-form .acp-form {
  background: #f5f5f5;
  padding: 8px 24px 24px;
}
.page-template-page-contact .acp-float-btn { display: none; }

.acp-service {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 10px 0 70px;
}
.acp-sidebar h3 {
  font-size: 24px;
  line-height: 30px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.acp-sidebar ul { list-style: none; margin: 0; padding: 0; }
.acp-sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eeeeee;
  padding: 12px 14px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.acp-sidebar li.is-current a {
  background: var(--ink);
  color: #fff;
}
.acp-side-chevron { width: 16px; height: 16px; display: inline-flex; }
.acp-service-media { margin-top: 24px; }
.acp-service-media img { width: 100%; margin-bottom: 16px; }
.acp-service-media.is-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.acp-service-media.is-gallery img { margin: 0; height: 220px; object-fit: cover; }

.acp-faq {
  margin-top: 36px;
  padding-top: 8px;
}
.acp-faq h2 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.acp-faq h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.acp-faq p { margin: 0 0 12px; }

.acp-services-hub { padding: 10px 0 70px; }
.acp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.acp-service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.acp-service-card:hover { color: var(--ink); }
.acp-service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.acp-service-card-body { padding: 18px 18px 20px; }
.acp-service-card h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.acp-service-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.acp-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--ink);
  text-align: center;
}
.acp-footer-info { padding: 42px 0 36px; }
.acp-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.acp-footer-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  color: #fff;
}
.acp-footer-brand { display: block; text-align: center; }
.acp-footer-logo { display: inline-block; line-height: 0; }
.acp-footer-logo img { width: 140px; height: auto; margin: 0 auto; }
.acp-footer-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acp-footer-icon svg { width: 24px; height: 24px; }
.acp-footer-col h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.acp-footer-col p { margin: 0; font-size: 18px; line-height: 1.35; }
.acp-footer-col a { color: #fff; }
.acp-footer-col a:hover { color: var(--accent); }
.acp-footer-map { line-height: 0; }
.acp-footer-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.acp-footer-copy {
  background: var(--accent);
  padding: 15px 0;
}
.acp-footer-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

body.acp-float-lock { overflow: hidden; }
.acp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
}
.acp-float-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 22px 14px 17px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 8px 24px rgba(12, 33, 83, 0.22);
}
.acp-float-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.acp-float-btn-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acp-float-btn-icon svg { width: 29px; height: 29px; }
.acp-float-btn-text { font-size: 19px; text-transform: uppercase; }
.acp-float-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 33, 83, 0.45);
  z-index: 89;
}
.acp-float.is-open .acp-float-backdrop { display: block; }
.acp-float-panel {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  padding: 22px 24px 20px;
  box-shadow: 0 16px 40px rgba(12, 33, 83, 0.24);
  z-index: 91;
  text-align: left;
}
.acp-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.acp-float-head h2 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
}
.acp-float-close {
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.acp-float-panel .acp-form button { min-width: 160px; }

@media (max-width: 1024px) {
  body { font-size: 18px; }
  .acp-nav-inner { padding: 0 8px; }
  .acp-menu > li > a { padding: 18px 12px; font-size: 17px; }
  .acp-work-grid { grid-template-columns: repeat(2, 1fr); }
  .acp-work-grid a { transform: translateX(-40px); transition-delay: 0s; }
  .acp-work-grid a:nth-child(even) { transform: translateX(40px); transition-delay: 0.1s; }
  .acp-work-grid a.is-in { transform: none; }
  .acp-quote-grid,
  .acp-about,
  .acp-contact,
  .acp-service { grid-template-columns: 1fr; }
  .acp-quote-form { padding: 24px 20px; }
  .acp-footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .acp-footer-map iframe { height: 240px; }
  .acp-services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  body {
    padding-top: calc(44px + env(safe-area-inset-top, 0px));
  }
  .acp-mobile-phone {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-bottom: 2px solid var(--ink);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .acp-mobile-phone a {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
  }
  .acp-mobile-phone a:hover { color: var(--ink); }
  .admin-bar .acp-mobile-phone { top: 46px; }
  .acp-mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #fff url("../images/accuplumb-header-bg.jpg") center / cover no-repeat;
    top: calc(44px + env(safe-area-inset-top, 0px));
  }
  .acp-mobile-logo img { width: 80px; height: auto; }
  .acp-logo-bar { display: none; }
  .acp-nav-bar { display: none; background: #e4e4e4; }
  .acp-nav-bar.is-open { display: block; }
  .acp-nav-inner { display: block; width: 100%; }
  .acp-menu { display: block; }
  .acp-menu > li > a { padding: 14px 20px; }
  .acp-menu > li.is-current { background: var(--ink); }
  .acp-menu > li.is-current > a { color: #fff; }
  .acp-menu > li > a::before { display: none; }
  .acp-sub {
    position: static;
    display: block;
    border: 0;
    background: #fff;
    padding: 0 0 0 20px;
    min-width: 0;
  }
  .acp-page-title-inner { flex-direction: column; align-items: flex-start; }
  .acp-page-title h1 { font-size: 28px; }
  .acp-form-split { grid-template-columns: 1fr; }
  .acp-service-media.is-gallery { grid-template-columns: 1fr; }
  .acp-work-grid img { height: 160px; }
  .acp-services-grid { grid-template-columns: 1fr; }
  .acp-intro-title { font-size: 26px; }
  .acp-float { right: 12px; bottom: 12px; }
  .acp-float-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 92px;
    max-height: calc(100vh - 100px);
  }
}
