/*
Theme Name: Harveyco Plumbing Live — Photo Edition
Theme URI: https://harveycoplumbinginc.com/
Author: Harveyco Plumbing, Inc.
Description: A responsive custom theme built from the original Harveyco visual identity and project archive.
Version: 1.2.1
Text Domain: harveyco
*/

:root {
  --ink: #101820;
  --ink-soft: #26333f;
  --blue: #176595;
  --blue-dark: #0b3653;
  --blue-light: #5db5e8;
  --copper: #b76536;
  --copper-light: #d38a5d;
  --cream: #f6f1e9;
  --paper: #fffdf9;
  --line: rgba(16, 24, 32, 0.13);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 29, 42, 0.14);
  --radius: 20px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.section--dark { color: var(--white); background: var(--ink); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.section-lead { max-width: 720px; margin: 22px 0 0; color: #53616c; font-size: 1.12rem; }
.section--dark .section-lead { color: #c4cdd4; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--white);
  background: rgba(9, 24, 34, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 205px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.22)); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  color: #eaf1f5;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav > a:not(.header-call)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--copper-light);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav > a:hover::after,
.site-nav > a:focus-visible::after { transform: scaleX(1); }
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: var(--copper);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.header-call:hover { background: #c77546; }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: #0b2638;
  background-image:
    linear-gradient(90deg, rgba(6,22,32,.96) 0%, rgba(6,22,32,.82) 42%, rgba(6,22,32,.22) 76%, rgba(6,22,32,.12) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 65%, rgba(5,18,26,.72)),
    radial-gradient(circle at 80% 20%, rgba(93,181,232,.22), transparent 36%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 120px 0 130px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  padding: 9px 14px;
  color: #f7e7dc;
  background: rgba(183,101,54,.22);
  border: 1px solid rgba(211,138,93,.65);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; background: #e59b6d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(229,155,109,.14); }
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7.6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
}
.hero p { max-width: 650px; margin: 30px 0 0; color: #dfe9ef; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--copper); }
.button--primary:hover { background: #c77546; }
.button--ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.42); }
.button--dark { color: #fff; background: var(--ink); }
.button--light { color: var(--ink); background: #fff; }
.button-arrow { font-size: 1.15em; line-height: 1; }

.trust-bar { position: relative; z-index: 5; margin-top: -58px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: var(--blue-dark);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item {
  position: relative;
  isolation: isolate;
  min-height: 192px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.12);
}
.trust-item:last-child { border-right: 0; }
.trust-content {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 23px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
}
.trust-number { flex: 0 0 auto; color: var(--copper-light); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.trust-copy strong { display: block; color: #fff; font-size: .9rem; line-height: 1.25; }
.trust-copy span { display: block; margin-top: 3px; color: #d5e2e9; font-size: .75rem; line-height: 1.3; }

.media-slideshow { position: relative; overflow: hidden; background: #143447; }
.media-slideshow > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity .9s ease, transform 6.5s ease;
}
.media-slideshow > img.is-active { opacity: 1; transform: scale(1.045); }
.media-slideshow > img.slideshow-image--contain { object-fit: contain; padding: 16px; background: #143447; }
.media-slideshow > img.slideshow-image--contain.is-active { transform: scale(1.018); }
.trust-slideshow { position: absolute; inset: 0; }
.trust-slideshow::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,18,28,.13) 0%, rgba(4,18,28,.44) 38%, rgba(4,18,28,.96) 100%);
}
.slideshow-dots {
  position: absolute;
  z-index: 4;
  right: 17px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.slideshow-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.58);
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  transition: width .3s ease, background-color .3s ease;
}
.slideshow-dots span.is-active { width: 18px; background: var(--copper-light); }
.trust-slideshow .slideshow-dots { top: 16px; right: 17px; bottom: auto; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.intro-copy { padding-top: 8px; }
.intro-copy p:first-child { margin-top: 0; font-size: 1.3rem; line-height: 1.55; }
.intro-copy p { color: #46545f; }
.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.signature-mark { display: grid; width: 52px; height: 52px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-family: Georgia, serif; font-size: 1.15rem; }
.signature strong { display: block; }
.signature span { display: block; color: #6a7680; font-size: .84rem; }

.services-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 52px; }
.services-head .section-lead { max-width: 420px; margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(9,54,83,.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(9,54,83,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(23,101,149,.35); box-shadow: 0 18px 46px rgba(9,54,83,.12); }
.service-media { flex: 0 0 auto; height: 218px; }
.service-media::after { content: ""; position: absolute; z-index: 1; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5,20,30,.48)); pointer-events: none; }
.service-index {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: grid;
  min-width: 52px;
  height: 42px;
  place-items: center;
  padding-inline: 10px;
  color: #fff;
  background: rgba(8,29,42,.83);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(0,0,0,.24);
  font-family: Georgia, serif;
  font-size: 1.23rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.service-content { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 27px 31px 31px; }
.service-card h3 { margin: 0 0 13px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.service-card p { margin: 0; color: #5b6872; font-size: .94rem; }

.projects-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 44px; }
.project-note { max-width: 380px; margin: 0; color: #c2ced5; font-size: .96rem; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  background: #183344;
  border-radius: 16px;
}
.project-card--wide { grid-column: span 6; min-height: 430px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,13,20,.92)); }
.project-card figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 26px; }
.project-label { display: block; margin-bottom: 4px; color: #9fd4f4; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.project-title { display: block; color: #fff; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.15; }
.project-fresh { position: absolute; z-index: 3; top: 18px; right: 18px; padding: 7px 10px; color: #fff; background: var(--copper); border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.systems-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(45px, 8vw, 105px); align-items: center; }
.systems-copy p { color: #4e5c67; }
.system-list { display: grid; gap: 17px; margin: 31px 0 0; padding: 0; list-style: none; }
.system-list li { position: relative; padding: 0 0 17px 33px; border-bottom: 1px solid var(--line); }
.system-list li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--blue); font-weight: 900; }
.system-list strong { display: block; }
.system-list span { display: block; color: #64717a; font-size: .9rem; }
.systems-visual { position: relative; min-height: 580px; }
.systems-visual img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); }
.systems-visual .system-back {
  top: 0;
  right: 0;
  width: 96%;
  aspect-ratio: 300 / 176;
  padding: 14px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.systems-visual .system-front {
  bottom: 0;
  left: 2%;
  width: 42%;
  aspect-ratio: 146 / 202;
  padding: 16px;
  object-fit: contain;
  object-position: center;
  background: #eef1f1;
  border: 8px solid var(--cream);
}
.systems-badge { position: absolute; z-index: 3; right: -14px; bottom: 48px; display: grid; width: 134px; height: 134px; place-items: center; padding: 15px; color: #fff; background: var(--blue-dark); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: var(--shadow); text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }

.heritage {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #09263a;
  background-image: linear-gradient(90deg, rgba(6,27,42,.97), rgba(6,27,42,.84)), var(--metal-texture);
  background-size: auto, 495px 457px;
}
.heritage::before { content: ""; position: absolute; width: 520px; height: 520px; top: -250px; right: -120px; border: 1px solid rgba(93,181,232,.19); border-radius: 50%; box-shadow: 0 0 0 75px rgba(93,181,232,.045), 0 0 0 150px rgba(93,181,232,.025); }
.heritage-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.heritage .section-title { max-width: 800px; }
.heritage p { max-width: 720px; color: #cbd7de; }
.heritage-facts { display: grid; gap: 12px; }
.heritage-fact { padding: 20px 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.heritage-fact strong { display: block; color: #fff; }
.heritage-fact span { display: block; color: #aebfc9; font-size: .86rem; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.contact-main { padding: clamp(38px, 6vw, 76px); }
.contact-main .section-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.contact-main p { max-width: 610px; color: #53616c; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.contact-side { display: flex; flex-direction: column; justify-content: center; gap: 27px; padding: clamp(36px, 5vw, 60px); color: #fff; background: var(--blue-dark); }
.contact-line { padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-line:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-line span { display: block; color: #94afbf; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-line a, .contact-line strong { display: block; margin-top: 5px; color: #fff; font-size: 1.08rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.contact-line a:hover { color: #a9dcf7; }

.site-footer { color: #bac6cd; background: #071922; }
.footer-main { min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 45px 0; }
.footer-brand img { width: 220px; height: auto; opacity: .94; }
.footer-brand p { max-width: 430px; margin: 13px 0 0; color: #91a2ac; font-size: .85rem; }
.footer-contact { text-align: right; }
.footer-contact a { color: #fff; font-weight: 750; text-decoration: none; }
.footer-contact p { margin: 5px 0; font-size: .86rem; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

.fallback-content { min-height: 65vh; padding: 100px 0; }
.fallback-content h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.6rem); }

@media (max-width: 980px) {
  .site-nav { position: fixed; z-index: 999; inset: 86px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 28px; background: #091d29; border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px rgba(0,0,0,.28); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .site-nav .header-call { justify-content: center; margin-top: 15px; border-bottom: 0; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .intro-grid, .systems-grid, .heritage-inner, .contact-panel { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-media { height: 230px; }
  .systems-visual { max-width: 650px; width: 100%; margin-inline: auto; }
  .heritage-facts { grid-template-columns: repeat(2, 1fr); }
  .contact-side { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --wrap: min(100% - 28px, 1180px); --radius: 16px; }
  html { scroll-padding-top: 76px; }
  .section { padding: 76px 0; }
  .header-inner { min-height: 76px; }
  .brand img { width: 168px; }
  .site-nav { top: 76px; }
  .hero { min-height: 690px; background-position: 64% center; }
  .hero-content { padding: 100px 0 125px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .hero p { max-width: 92%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-bar { margin-top: -48px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 165px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-content { right: 20px; bottom: 21px; left: 20px; }
  .trust-item:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-item:last-child { border-bottom: 0; }
  .intro-grid { gap: 36px; }
  .services-head, .projects-head { display: block; }
  .services-head .section-lead, .project-note { margin-top: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-media { height: clamp(215px, 64vw, 290px); }
  .service-content { min-height: 185px; padding: 25px; }
  .project-card, .project-card--wide { grid-column: 1 / -1; min-height: 360px; }
  .systems-visual { min-height: 430px; }
  .systems-visual .system-back { width: 100%; }
  .systems-visual .system-front { width: 50%; }
  .systems-badge { right: 0; width: 112px; height: 112px; font-size: .64rem; }
  .heritage-inner { gap: 40px; }
  .heritage-facts, .contact-side { grid-template-columns: 1fr; }
  .contact-main, .contact-side { padding: 32px 25px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
