/* =========================================================
   CALL THE DOC — Design Tokens
   Palette: slate-ink / off-white / teal-water / muted-red Rx
   Fonts: DM Serif Display (display) + Source Sans 3 (body)
   Signature: pipe/junction SVG divider between hero and services
   ========================================================= */

/* ---- Font faces ---- */
@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/dm-serif-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --ink:     #1C2230;   /* deep slate — structural */
  --paper:   #F8F6F1;   /* warm off-white — page bg */
  --water:   #2B8C9B;   /* teal — pipe/water/HVAC */
  --water-lt:#E6F4F6;   /* tint of water for bg panels */
  --rx:      #C8422A;   /* muted red — emergency / 24/7 accent */
  --mid:     #5A6375;   /* mid-gray for body text */
  --border:  #DDD9D0;   /* subtle warm border */

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 12px rgba(28,34,48,0.08);
  --shadow-hover: 0 6px 24px rgba(28,34,48,0.14);

  --max-w: 1180px;
  --header-h: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section {
  padding: var(--space-2xl) 0;
}
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary {
  background: var(--water);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #237b89;
  box-shadow: 0 4px 16px rgba(43,140,155,0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark {
  color: var(--water);
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
}
.site-nav {
  display: flex;
  gap: var(--space-md);
  margin-left: auto;
}
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rx);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  min-height: 44px;
  transition: background 0.2s;
}
.header-cta:hover { background: #b33a25; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.65);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,34,48,0.88) 0%,
    rgba(28,34,48,0.65) 60%,
    rgba(28,34,48,0.30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: var(--space-sm);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: var(--space-md);
  max-width: 640px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item strong {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.trust-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}
.trust-sep {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  margin: 0 0.25rem;
  line-height: 1;
}

/* =========================================================
   PIPE DIVIDER (signature element)
   ========================================================= */
.pipe-divider {
  background: var(--paper);
  padding: 0.5rem 0;
  overflow: hidden;
  line-height: 0;
}
.pipe-svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--paper);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transition: box-shadow 0.25s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.service-icon {
  margin-bottom: var(--space-sm);
  width: 48px;
  height: 48px;
  background: var(--water-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.6;
}

/* =========================================================
   PHOTO BAND
   ========================================================= */
.photo-band {
  background: var(--ink);
  overflow: hidden;
  line-height: 0;
}
.photo-band-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  height: 340px;
}
.photo-band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  transition: filter 0.4s;
}
.photo-band-img:hover { filter: saturate(1); }

/* =========================================================
   WHY US
   ========================================================= */
.why-us {
  background: var(--water-lt);
}
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.why-image {
  position: relative;
}
.why-image img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.why-image-caption {
  font-size: 0.75rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
  text-transform: uppercase;
}
.why-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.why-point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.why-point:last-child { border-bottom: none; }
.why-num {
  color: var(--water);
  font-weight: 600;
  margin-top: 0.2rem;
}
.why-point h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.why-point p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.6;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews {
  background: var(--ink);
}
.reviews .section-label { color: var(--water); }
.reviews .section-title { color: #fff; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.review-card blockquote p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  font-style: italic;
}
/* quotes already in text content — no CSS quote decoration needed */
.review-stars { color: #F4C430; font-size: 0.9rem; letter-spacing: 0.05em; }
.review-card cite {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}
.review-cta-card {
  background: var(--water);
  border: 1px solid var(--water);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-sm);
}
.review-cta-rating {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
}
.review-cta-rating span {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
}
.review-cta-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.review-cta-card .btn-primary {
  background: #fff;
  color: var(--water);
  margin-top: var(--space-xs);
}
.review-cta-card .btn-primary:hover {
  background: var(--water-lt);
  box-shadow: none;
}

/* =========================================================
   VISIT
   ========================================================= */
.visit {
  background: var(--paper);
}
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.visit-address {
  font-size: 1.1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.visit-hours {
  margin-bottom: var(--space-lg);
}
.hours-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.hours-note {
  font-size: 0.9rem;
  color: var(--mid);
}
.visit-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--water-lt);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-intro p {
  color: var(--mid);
  font-size: 0.98rem;
  margin-bottom: var(--space-md);
}
.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--water);
}
.contact-tel:hover { color: var(--ink); }
.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.form-row {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 0.75rem var(--space-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(43,140,155,0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.8rem;
  color: var(--mid);
  text-align: center;
  margin-top: 0.75rem;
}
.form-success {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--water-lt);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
}
.form-success a { color: var(--water); text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.footer-brand .logo-light .logo-text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}
.footer-brand .logo-light .logo-mark {
  color: var(--water);
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}
.footer-nap address {
  line-height: 1.9;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}
.footer-nap a:hover { color: var(--water); }
.footer-nap p {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.4);
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================================
   MOBILE CALL BAR
   ========================================================= */
.mobile-callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--rx);
  border-top: 2px solid rgba(255,255,255,0.15);
}
.mobile-callbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem var(--space-sm);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 56px;
}
.callbar-badge {
  background: rgba(255,255,255,0.25);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 30px;
  color: #fff;
}

/* =========================================================
   JS REVEAL ANIMATION
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-layout    { grid-template-columns: 1fr; }
  .why-image img { height: 320px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 3.5rem; }

  .site-nav { display: none; }

  .hero { min-height: 80vh; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }

  .services-grid  { grid-template-columns: 1fr; }
  .reviews-grid   { grid-template-columns: 1fr; }
  .visit-layout   { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .photo-band-inner { grid-template-columns: 1fr; height: auto; }
  .photo-band-img   { height: 220px; }
  .photo-band-img:nth-child(2) { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-brand { grid-column: auto; }

  .mobile-callbar { display: flex; }
  body { padding-bottom: 56px; }
}

@media (max-width: 390px) {
  :root { --space-md: 1.1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .trust-sep { display: none; }
}
