/* =========================================================
   NPR PLUMBING & GAS SERVICES — STYLESHEET (clean/minimal)
   ========================================================= */
:root {
  --ink:        #0D0D0F;
  --ink-soft:   #17171A;
  --paper:      #F5F4F0;
  --paper-dim:  #EBE9E3;
  --white:      #FFFFFF;
  --muted:      #6E6E72;
  --muted-2:    #9A9A9E;
  --accent:     #B5713E;   /* used sparingly — one CTA, one underline */
  --line:       rgba(13,13,15,0.12);
  --line-dark:  rgba(255,255,255,0.16);

  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "Courier New", monospace;

  --max: 1280px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS — quiet pill style, single accent used sparingly
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light .btn-dot { background: var(--ink); }
.btn-light:hover { background: #eee; }
.btn-dark {
  background: var(--ink);
  color: var(--white);
  padding: 8px 22px;
}
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline-light {
  border-color: var(--line-dark);
  color: var(--white);
  padding: 8px 22px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-plain {
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  gap: 8px;
}
.btn-plain:hover { opacity: 0.6; }
.btn-block { width: 100%; justify-content: center; }

.dotring { width: 16px; height: 16px; }
.dotring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 2.4 3;
}
.excl-icon { width: 16px; height: 16px; }

/* =========================================================
   HEADER / NAV — quiet, no jarring hover states
   ========================================================= */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--white);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .dotring { opacity: 0.85; }
.logo-mark { height: 46px; width: auto; display: block; }
.nav-phone {
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}
.nav-phone:hover { opacity: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Page header used on inner pages (not over a photo) */
.site-header.on-light {
  color: var(--ink);
  background: var(--white);
  position: sticky;
  border-bottom: 1px solid var(--line);
}
.site-header.on-light .btn-outline-light { border-color: var(--line); color: var(--ink); }
.site-header.on-light .btn-outline-light:hover { background: var(--paper); }

/* =========================================================
   HERO — full-bleed photo, minimal overlay text block
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,0.05) 0%, rgba(13,13,15,0.08) 40%, rgba(13,13,15,0.75) 100%);
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 72px;
}
.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.hero-copy { max-width: 460px; }
.hero-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
}
.hero-rule {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  max-width: 40ch;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   INTRO / STATEMENT SECTION — dark, restrained
   ========================================================= */
.statement {
  background: var(--ink);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.statement .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.statement-text {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--white);
  font-weight: 400;
  max-width: 34ch;
}
.statement-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }

/* scattered shape field (signature motif — abstract flange/gasket shapes) */
.shape-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; background: linear-gradient(135deg, #3a3a3e, #232326); opacity: 0.9; }

/* preview card ("hover to view work") */
.preview-card {
  width: 280px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  display: block;
  background: var(--ink-soft);
  transition: border-color 0.2s ease;
}
.preview-card:hover { border-color: rgba(255,255,255,0.4); }
.preview-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.preview-card-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.preview-card-caption u { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   SECTIONS — generic
   ========================================================= */
section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.section-split h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; margin: 0; }
.section-split .section-support p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* About teaser (home) */
.about-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-teaser-copy p { color: var(--ink); font-size: 1.05rem; }
.about-teaser-copy .muted { color: var(--muted); }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }

/* Services grid */
.services { background: var(--paper); }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card { background: var(--paper); padding: 40px 32px; flex: 1 1 calc(25% - 1px); min-width: 220px; }
.service-card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted-2);
  display: block;
  margin-bottom: 26px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* Work gallery / carousel */
.carousel { position: relative; }
.carousel-track-wrap { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 100%; position: relative; aspect-ratio: 16/8; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(13,13,15,0.7), transparent);
  color: var(--white);
  padding: 40px 30px 20px;
  font-size: 0.9rem;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--ink);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.carousel-nav:hover { background: var(--paper-dim); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--muted-2);
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
}
.carousel-dots button[aria-current="true"] { background: var(--ink); opacity: 1; }
.gallery-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }

/* Service area */
.area { background: var(--ink); color: var(--white); }
.area .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.area h2 { color: var(--white); }
.area p { color: rgba(255,255,255,0.7); }
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
}
.area-list li { border-top: 1px solid var(--line-dark); padding-top: 10px; }

/* =========================================================
   QUOTE FORM
   ========================================================= */
.quote { background: var(--paper); }
.quote-inner {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--line);
}
.quote-side { padding: 56px 48px; }
.quote-side-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16/10;
}
.quote-side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote-side p { color: var(--muted); }
.quote-side ul { list-style: none; padding: 0; margin: 30px 0 0; font-size: 0.92rem; }
.quote-side li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  color: var(--ink);
}
.quote-side li:first-child { border-top: none; }
.quote-side li::before {
  content: "0" attr(data-n);
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.quote-form { padding: 56px 48px; background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field-full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; min-height: 100px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-links a:hover { border-color: rgba(255,255,255,0.5); }

/* =========================================================
   ABOUT PAGE SPECIFIC
   ========================================================= */
.page-banner { padding: 190px 0 70px; background: var(--paper); }
.page-banner h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 16ch; }
.page-banner p { color: var(--muted); max-width: 55ch; font-size: 1.05rem; }

.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.story-copy p { color: var(--ink); font-size: 1.05rem; }
.story-copy .muted { color: var(--muted); }
.value-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.value-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.value-list strong { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.value-list span { color: var(--muted); font-size: 0.94rem; }
.story-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }

/* Reviews */
.reviews { background: var(--paper); }
.reviews-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 44px; }
.review-card { background: var(--white); padding: 32px 28px; }
.review-stars { color: var(--accent); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { font-size: 0.98rem; color: var(--ink); margin-bottom: 18px; }
.review-author { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; }
.review-placeholder-flag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--accent);
  background: rgba(181,113,62,0.1);
  padding: 4px 8px;
  border-radius: var(--radius);
}
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Testimonial slideshow (home page) */
.testimonial-carousel .carousel-track-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.testimonial-slide { aspect-ratio: unset; display: flex; align-items: center; justify-content: center; padding: 56px 80px; text-align: center; }
.testimonial-slide .review-card { padding: 0; max-width: 60ch; }
.testimonial-slide .review-card p { font-size: 1.1rem; }
.testimonial-slide .review-author { justify-content: center; gap: 12px; }
@media (max-width: 680px) {
  .testimonial-slide { padding: 40px 24px; }
}

/* Facebook photo strip */
.fb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fb-photo { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; }
.fb-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Compliance / licensing badge strip */
.compliance { background: var(--paper); border-top: 1px solid var(--line); }
.compliance-top { max-width: 60ch; margin-bottom: 32px; }
.compliance-top h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.compliance-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.compliance-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.compliance-badge svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.compliance-badge span { font-size: 0.92rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

.cta-band { background: var(--ink); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem,4.4vw,3rem); }
.cta-band p { color: rgba(255,255,255,0.7); }
.cta-band .wrap { max-width: 640px; display: flex; flex-direction: column; align-items: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .statement .wrap { grid-template-columns: 1fr; }
  .statement-side { align-items: flex-start; }
  .about-teaser .wrap,
  .area .wrap,
  .story .wrap,
  .section-split { grid-template-columns: 1fr; }
  .section-split { gap: 20px; }
  .service-card { flex-basis: calc(50% - 1px); }
  .quote-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .fb-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 84vh; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .service-card { flex-basis: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .quote-side, .quote-form { padding: 36px 24px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .page-banner { padding-top: 140px; }
}
