﻿:root {
  --green: #047a41;
  --green-dark: #04532e;
  --yellow: #f2c94c;
  --ink: #161b18;
  --muted: #5d665f;
  --line: #dde4dc;
  --paper: #f8faf7;
  --white: #ffffff;
  --red: #c4312b;
  --blue: #256aa6;
  --shadow: 0 18px 50px rgba(16, 28, 20, 0.16);
  --shadow-soft: 0 10px 28px rgba(16, 28, 20, 0.10);
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  animation: dropIn 520ms var(--ease) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 18vw, 210px);
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  border-radius: 5px;
}

footer strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 30px);
  font-weight: 700;
  color: #26332a;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

nav a,
.call-button,
.primary-action,
.secondary-action,
.mobile-actions a {
  text-decoration: none;
}

nav a {
  position: relative;
  transition: color 220ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

nav a:hover { color: var(--green); }
nav a:hover::after { transform: scaleX(1); }

.call-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  gap: 8px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms ease, border-color 220ms ease;
}

.call-button,
.primary-action {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(4, 122, 65, 0.20);
}

.call-button:hover,
.primary-action:hover {
  background: #05904d;
  box-shadow: 0 14px 30px rgba(4, 122, 65, 0.26);
  transform: translateY(-2px);
}

.secondary-action {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid rgba(4, 122, 65, 0.28);
}

.secondary-action:hover {
  border-color: rgba(4, 122, 65, 0.55);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.secondary-action.dark {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.secondary-action.dark:hover { background: #27312a; }

.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f1c15;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroScale 1200ms var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 14, 0.92) 0%, rgba(4, 24, 14, 0.62) 43%, rgba(4, 24, 14, 0.06) 100%), linear-gradient(0deg, rgba(0,0,0,0.38), rgba(0,0,0,0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(72px, 11vw, 118px) clamp(18px, 6vw, 82px);
  color: var(--white);
  animation: fadeUp 780ms var(--ease) 120ms both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow { color: var(--yellow); }

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  line-height: 1.35;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rating-panel {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 28px;
  z-index: 3;
  width: min(300px, calc(100% - 36px));
  padding: 18px;
  color: var(--white);
  background: rgba(4, 83, 46, 0.88);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: fadeUp 780ms var(--ease) 260ms both;
  transition: transform 240ms var(--ease), background 240ms ease;
}

.rating-panel:hover {
  background: rgba(4, 104, 58, 0.92);
  transform: translateY(-3px);
}

.rating-panel strong {
  display: block;
  font-size: 3.2rem;
  line-height: 0.9;
}

.rating-panel span,
.rating-panel small { display: block; }
.rating-panel span { margin-top: 8px; font-weight: 800; }
.rating-panel small { margin-top: 8px; line-height: 1.45; opacity: 0.88; }

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}

.live-status-card strong {
  color: var(--white);
}

.quick-strip div {
  min-height: 104px;
  padding: 22px clamp(16px, 3vw, 34px);
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 220ms ease, transform 220ms var(--ease);
}

.quick-strip div:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.quick-strip .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--yellow);
}

.quick-strip strong,
.quick-strip span { display: block; }
.quick-strip strong { font-size: 1rem; }
.quick-strip span { margin-top: 7px; color: rgba(255,255,255,0.74); line-height: 1.35; }

.section-band,
.reviews {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 6vw, 82px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--white);
}

.intro,
.trust-strip,
.stock-grid,
.products,
.services,
.reviews,
.visit {
  animation: fadeUp 700ms var(--ease) both;
}

.section-kicker { color: var(--green); }

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro > p,
.visit p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip article {
  min-height: 172px;
  padding: 28px clamp(18px, 3vw, 34px);
  background: var(--white);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms ease;
}

.trust-strip article:hover {
  position: relative;
  z-index: 1;
  background: #fbfdfb;
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.trust-strip span {
  display: block;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.why-loomis {
  background: #eef4ef;
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 28, 20, 0.08);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease;
}

.why-grid article:hover {
  border-color: rgba(4, 122, 65, 0.25);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.why-grid .icon {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.why-grid h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stock-grid + .products {
  border-top: 1px solid var(--line);
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stock-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.stock-card.large-card { grid-column: span 2; }
.stock-card.wide-card { grid-column: span 2; }

.stock-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 520ms var(--ease), opacity 350ms ease, filter 350ms ease;
}

.stock-card:hover img {
  transform: scale(1.055);
  opacity: 0.95;
  filter: saturate(1.06) contrast(1.02);
}

.stock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.74), rgba(0,0,0,0.06) 62%);
  transition: background 280ms ease;
}

.stock-card:hover::after {
  background: linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.03) 65%);
}

.stock-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 26px;
  color: var(--white);
  transform: translateY(0);
  transition: transform 260ms var(--ease);
}

.stock-card:hover div { transform: translateY(-6px); }

.stock-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-card h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  line-height: 1.08;
}

.services {
  background: var(--white);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 { max-width: 760px; }

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-list article,
.quote-grid blockquote,
.product-grid article {
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.service-list article:hover,
.quote-grid blockquote:hover,
.product-grid article:hover {
  background: var(--white);
  border-color: rgba(4, 122, 65, 0.22);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.service-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 54px;
  height: 34px;
  padding: 0 8px;
  color: var(--white);
  background: var(--green);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 900;
}

.service-list span .icon {
  width: 15px;
  height: 15px;
}

.service-list h3 {
  margin: 18px 0 8px;
  font-size: 1.28rem;
}

.service-list p,
.quote-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.products {
  background:
    linear-gradient(90deg, rgba(248,250,247,0.95), rgba(248,250,247,0.88)),
    url("ai-plumbing.png") center / cover;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-grid article {
  position: relative;
  min-height: 178px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(16, 28, 20, 0.08);
}

.product-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--green);
}

.product-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-grid h3 {
  margin: 18px 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.35;
}

.reviews {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  background: #edf3ee;
}

.reviews-link {
  margin-top: 26px;
}

.score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.score strong {
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
}

.score span { color: var(--muted); font-weight: 800; }

.quote-grid {
  display: grid;
  gap: 14px;
}

.quote-grid blockquote {
  background: var(--white);
}

.quote-grid cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 900;
}

.visit {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 28px;
  color: var(--white);
  background: var(--green-dark);
}

.map-embed {
  position: relative;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,0.1);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit .section-kicker,
.visit p { color: rgba(255,255,255,0.78); }

.visit h2 { max-width: 700px; }
.visit p { margin-top: 14px; }

.contact-panel {
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
}

.contact-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
}

.contact-panel dt {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  line-height: 1.4;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.hours-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hours-list span {
  color: rgba(255,255,255,0.66);
  font-weight: 800;
}

.hours-list strong {
  color: var(--white);
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 82px) 90px;
  color: rgba(255,255,255,0.78);
  background: var(--ink);
}

footer strong { color: var(--white); }

.mobile-actions { display: none; }

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-grid details {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: none;
  transition:
    opacity 650ms var(--ease) var(--reveal-delay, 0ms),
    transform 650ms var(--ease) var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .stock-card.reveal {
  transform: translateY(24px) scale(0.985);
}

.js .stock-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScale {
  from {
    opacity: 0.65;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 980px) {
  .site-header { align-items: flex-start; }
  .menu-toggle { display: grid; }
  nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .site-header.nav-open nav { display: flex; }
  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  nav a::after { display: none; }
  .call-button { display: none; }
  .hero { min-height: 780px; }
  .hero-content { margin-bottom: 190px; }
  .rating-panel { left: 18px; right: auto; }
  .quick-strip { grid-template-columns: repeat(2, 1fr); }
  .intro,
  .reviews { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list,
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 86px; }
  .site-header { padding: 10px 14px; }
  .brand { width: 142px; }
  .brand-logo { height: 40px; }
  .hero {
    min-height: 720px;
    align-items: end;
  }
  .hero > img { object-position: 58% center; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 24, 14, 0.94) 0%, rgba(4, 24, 14, 0.64) 54%, rgba(4, 24, 14, 0.16) 100%);
  }
  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 190px;
  }
  .hero h1 { font-size: clamp(3.6rem, 20vw, 5.7rem); }
  .hero-copy { font-size: 1.08rem; }
  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .visit-actions .primary-action,
  .visit-actions .secondary-action { width: 100%; }
  .rating-panel { bottom: 24px; width: calc(100% - 28px); left: 14px; }
  .quick-strip { grid-template-columns: 1fr; }
  .quick-strip div { min-height: 86px; }
  .section-band,
  .reviews { padding: 44px 16px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article { min-height: auto; padding: 24px 16px; }
  .why-grid article { min-height: auto; padding: 24px; }
  h2 { font-size: clamp(1.95rem, 11vw, 3rem); }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-card,
  .stock-card.large-card,
  .stock-card.wide-card {
    grid-column: auto;
    min-height: 420px;
  }
  .service-list,
  .product-grid { grid-template-columns: 1fr; }
  .product-grid article { min-height: 150px; }
  .contact-panel { padding: 18px; }
  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hours-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  footer { flex-direction: column; padding: 26px 16px 92px; }
  .mobile-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .mobile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    color: var(--white);
    background: var(--green);
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.86rem;
  }
  .mobile-actions a:nth-child(2) { background: var(--ink); }
  .mobile-actions a:nth-child(3) { background: var(--green-dark); }
}
