/* =========================================================
   Plumb B Heating — Minimalist Luxury
   Deep Midnight Teal #003366 · Brushed Copper #B87333 · #F8F9FA
   ========================================================= */

:root {
  --teal:        #003366;
  --teal-deep:   #002244;
  --teal-mid:    #0a3d6b;
  --copper:      #B87333;
  --copper-bright:#D18A4C;
  --copper-deep: #8A5A2B;
  --gold:        #C9A227;
  --cream:       #F8F9FA;
  --cream-soft:  #F1F3F5;
  --ink:         #1C2B3A;
  --muted:       #5A6B7C;
  --line:        #E5E9EE;
  --white:       #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 24px 60px -28px rgba(0, 51, 102, 0.28);
  --shadow-card: 0 12px 40px -18px rgba(0, 51, 102, 0.22);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.accent { color: var(--copper); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper));
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.btn .icon { width: 1.05em; height: 1.05em; }

.btn-copper {
  color: var(--white);
  background: linear-gradient(135deg, var(--copper-bright) 0%, var(--copper) 48%, var(--copper-deep) 100%);
  box-shadow: 0 6px 20px -6px rgba(184, 115, 51, 0.55);
}
.btn-copper:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #dda15e 0%, var(--copper-bright) 48%, var(--copper) 100%);
  box-shadow: 0 0 0 1px rgba(209, 138, 76, 0.35),
              0 10px 34px -8px rgba(184, 115, 51, 0.6),
              0 0 28px rgba(209, 138, 76, 0.4);
}
.btn-copper:active { transform: translateY(0); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(248, 249, 250, 0.45);
  background: rgba(248, 249, 250, 0.06);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: var(--copper-bright);
  color: #f3d5b0;
  box-shadow: 0 0 0 1px rgba(209, 138, 76, 0.4), 0 0 26px rgba(209, 138, 76, 0.35);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.15rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -24px rgba(0, 51, 102, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-mid) 60%, var(--copper) 160%);
  border: 1px solid rgba(184, 115, 51, 0.6);
  box-shadow: inset 0 0 0 2px rgba(248, 249, 250, 0.14), 0 8px 20px -10px rgba(0, 51, 102, 0.5);
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.brand-name em {
  font-style: italic;
  font-weight: 500;
  color: #f0c69a;
}
.site-header.scrolled .brand-name { color: var(--teal); }
.site-header.scrolled .brand-name em { color: var(--copper); }

.main-nav {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(248, 249, 250, 0.92);
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--copper-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: #f3d5b0; }
.main-nav a:hover::after { transform: scaleX(1); }
.site-header.scrolled .main-nav a { color: var(--teal); }
.site-header.scrolled .main-nav a:hover { color: var(--copper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(110% 90% at 78% 34%, rgba(184, 115, 51, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #032B55 0%, #013059 45%, #01213F 100%);
}
.hero-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.06) translateY(-14px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 30, 58, 0.88) 0%, rgba(1, 30, 58, 0.62) 46%, rgba(1, 30, 58, 0.35) 100%),
    linear-gradient(0deg, rgba(1, 22, 43, 0.72) 0%, transparent 40%);
}

.media-tag {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.75);
  background: rgba(1, 30, 58, 0.55);
  border: 1px solid rgba(248, 249, 250, 0.22);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card-media .media-tag {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: auto;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 34, 68, 0.55);
  border-color: rgba(184, 115, 51, 0.5);
}

.hero-content {
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  max-width: 840px;
}

.hero-eyebrow { color: #f0c69a; }
.hero-eyebrow::before { background: linear-gradient(90deg, transparent, #f0c69a); }

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
}
.hero-title .accent { color: var(--copper-bright); }

.hero-sub {
  margin-top: 1.5rem;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
  color: rgba(248, 249, 250, 0.85);
  font-size: 0.92rem;
}
.hero-phone { color: #f0c69a; font-weight: 600; }
.hero-phone:hover { text-shadow: 0 0 18px rgba(209, 138, 76, 0.8); }

.stars {
  display: inline-flex;
  gap: 0.18rem;
}
.stars svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.55));
}
.stars-sm svg { width: 0.95rem; height: 0.95rem; }

.dot { opacity: 0.5; margin-inline: 0.35rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(248, 249, 250, 0.45);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
  transition: border-color 0.3s;
}
.scroll-cue span {
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: var(--copper-bright);
  animation: cue 1.8s var(--ease) infinite;
}
.scroll-cue:hover { border-color: var(--copper-bright); }
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Fade-up (load) ---------- */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-media svg { animation: none; }
  .scroll-cue span { animation: none; }
  .seal svg { animation: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }

.section-tinted {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(184, 115, 51, 0.07) 0%, transparent 55%),
    var(--cream-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.4rem;
}
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
}
.section-title {
  margin-top: 1.1rem;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
}
.section-lede {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Cards / Plumb B Standard ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -22px rgba(0, 51, 102, 0.35),
              0 0 0 1px rgba(184, 115, 51, 0.35);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(150deg, #0B3259 0%, #03254A 60%, #0A2B4E 100%);
}
.card-media svg { width: 100%; height: 100%; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 22, 43, 0.55) 100%);
}

.card-body {
  padding: 1.9rem 1.9rem 2.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--copper);
  border: 1.5px solid rgba(184, 115, 51, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(209, 138, 76, 0.16), rgba(184, 115, 51, 0.04));
  box-shadow: inset 0 0 14px rgba(184, 115, 51, 0.12);
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card-title {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.card-text {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  margin-top: 3.4rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-mid) 100%);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 140% at 12% 0%, rgba(184, 115, 51, 0.28) 0%, transparent 55%),
    radial-gradient(50% 120% at 90% 100%, rgba(184, 115, 51, 0.22) 0%, transparent 55%);
}
.stat { position: relative; text-align: center; min-width: 150px; flex: 1; }
.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #f0c69a;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.82);
}
.stat-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(248, 249, 250, 0.4), transparent);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -20px rgba(0, 51, 102, 0.32);
}

.quote-mark {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  color: rgba(184, 115, 51, 0.16);
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--teal);
  margin: 0.6rem 0 1.8rem;
}

.testimonial figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.testimonial cite {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  margin-top: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal) 0%, #07406F 55%, var(--teal) 100%);
  border-radius: var(--radius);
  padding: 2.2rem 2.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 160% at 88% 0%, rgba(184, 115, 51, 0.3) 0%, transparent 55%);
}
.cta-banner-title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
}
.cta-phone { color: #f3d5b0; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--teal-deep) 0%, #011428 100%);
  color: rgba(248, 249, 250, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 2.5rem;
  padding: 4.5rem 0 3rem;
  align-items: start;
}

.brand-light .brand-name { color: var(--white); }
.brand-light .brand-name em { color: #f0c69a; }

.footer-blurb {
  margin-top: 1.2rem;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.7);
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0c69a;
  margin-bottom: 1.3rem;
}

.footer-list { display: flex; flex-direction: column; gap: 0.95rem; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(248, 249, 250, 0.82);
  transition: color 0.3s;
}
.footer-link svg { width: 1.05rem; height: 1.05rem; color: var(--copper-bright); flex-shrink: 0; }
.footer-link:hover { color: #f3d5b0; }

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.hour-value {
  color: #f3d5b0;
  font-weight: 500;
  white-space: nowrap;
}
.footer-hours li:last-child .hour-value { color: rgba(248, 249, 250, 0.5); }

/* ---------- Seal ---------- */
.footer-seal-wrap { text-align: center; }

.seal { width: 132px; height: 132px; margin: 0 auto; }
.seal svg { width: 100%; height: 100%; animation: sealSpin 30s linear infinite; }
.seal-text {
  font-size: 8.4px;
  font-weight: 600;
  letter-spacing: 2.2px;
  fill: #f0c69a;
  font-family: var(--sans);
}
@keyframes sealSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.seal-caption {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 249, 250, 0.12);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  font-size: 0.82rem;
  color: rgba(248, 249, 250, 0.55);
}
.footer-rating { display: inline-flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .card:last-child, .testimonial:last-child { grid-column: 1 / -1; max-width: 540px; width: 100%; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-seal-wrap { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta span { display: none; }
  .header-cta { padding: 0.8rem; }
  .header-cta .icon { width: 1.2em; height: 1.2em; }

  .hero-content { padding-top: 8rem; }
  .hero-actions .btn { width: 100%; }

  .cards, .testimonial-grid { grid-template-columns: 1fr; }
  .card:last-child, .testimonial:last-child { grid-column: auto; max-width: none; }

  .stats-strip { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .stat-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(248,249,250,0.35), transparent); }

  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; }

  .section { padding: 4.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 3.5rem; gap: 2rem; }
  .footer-seal-wrap { grid-column: auto; }
  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 0.95rem; }
  .hero-title { font-size: 2.2rem; }
  .container { width: calc(100% - 2rem); }
}
