@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --ink: #101923;
  --navy: #16283a;
  --blue: #1d6f9f;
  --blue-dark: #0e4e75;
  --aqua: #5cc6d0;
  --green: #2f6f55;
  --gold: #e1b75c;
  --paper: #f6f8f7;
  --white: #ffffff;
  --muted: #64717d;
  --line: rgba(16, 25, 35, 0.12);
  --shadow: 0 22px 60px rgba(16, 25, 35, 0.14);
  --radius: 18px;
  --radius-lg: 28px;
  --container: min(1160px, calc(100% - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbfc 0%, #eef6f4 48%, #ffffff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 16px 50% auto auto;
  z-index: 50;
  width: var(--container);
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 25, 35, 0.9);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(8, 16, 24, 0.25);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero__actions,
.hero__points,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: var(--white);
  padding: 4px;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__text strong {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
}

.brand__text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  white-space: nowrap;
}

.site-nav {
  gap: 20px;
}

.site-nav a,
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--aqua);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #0d2233;
  background: linear-gradient(135deg, var(--gold), #f4d37b);
  box-shadow: 0 18px 38px rgba(225, 183, 92, 0.28);
}

.button--secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.button--wide {
  width: 100%;
}

.section {
  padding: 108px 0;
}

.hero {
  min-height: 94svh;
  display: grid;
  align-items: center;
  padding: 148px 0 76px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(16, 25, 35, 0.96), rgba(14, 78, 117, 0.88) 52%, rgba(47, 111, 85, 0.72)),
    url("photos/water-system-installation.png");
  background-position: center;
  background-size: cover;
}

.hero__grid,
.about__grid,
.contact__grid,
.service-page__grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 56px;
  align-items: center;
}

.hero__copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.75rem, 6.5vw, 5.8rem);
  line-height: 0.98;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.18rem;
}

.hero__subhead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero__actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__points {
  gap: 10px 24px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.hero__points li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--aqua);
}

.hero__card,
.contact-panel,
.about__copy,
.review-card,
.service-card,
.project-card,
.area-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero__card {
  display: grid;
  gap: 24px;
  padding: 30px;
  color: var(--ink);
}

.hero__card-title {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.hero__card-title span {
  display: block;
  white-space: nowrap;
}

.hero__card img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 22px;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(16, 25, 35, 0.2);
}

.hero__card p,
.section-heading p,
.about__copy p,
.contact__details p,
.service-card p,
.project-card p,
.review-card p,
.contact-panel p,
.service-page__copy p,
.area-card p,
.check-list,
.town-list {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip {
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid rgba(92, 198, 208, 0.22);
  border-bottom: 1px solid rgba(92, 198, 208, 0.22);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px 0;
}

.trust-strip p {
  margin: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 780px;
}

.section-heading--center {
  margin: 0 auto 42px;
  text-align: center;
}

.services__grid,
.project-grid,
.review-grid,
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.services__grid {
  margin-top: 42px;
}

.service-card {
  display: block;
  padding: 28px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(16, 25, 35, 0.2);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3 {
  color: var(--navy);
}

.section-blue {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(22, 40, 58, 0.97), rgba(14, 78, 117, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 72px 72px;
}

.section-blue .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.project-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card h3,
.project-card p {
  padding: 0 22px;
}

.project-card h3 {
  margin-top: 20px;
}

.project-card p {
  margin-bottom: 24px;
}

.about__copy,
.contact-panel {
  padding: 32px;
}

.reviews {
  background: #f4faf9;
}

.review-card {
  margin: 0;
  padding: 28px;
}

.review-card cite {
  display: block;
  margin-top: 18px;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 900;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.contact-list strong {
  color: var(--blue-dark);
}

.contact-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.site-footer {
  padding: 42px 0;
  color: var(--white);
  background: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.footer-links {
  justify-content: flex-end;
  gap: 18px;
}

.footer-credit {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.service-page {
  padding: 150px 0 78px;
  color: var(--white);
  background: linear-gradient(115deg, rgba(16, 25, 35, 0.97), rgba(14, 78, 117, 0.88));
}

.service-page__copy h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
}

.service-page__copy p {
  color: rgba(255, 255, 255, 0.82);
}

.service-page__panel {
  padding: 30px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.check-list,
.town-list {
  padding-left: 20px;
}

.town-list {
  columns: 2;
}

.area-grid {
  margin-top: 36px;
}

.area-card {
  padding: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    border-radius: 26px;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(16, 25, 35, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .header-call {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .contact__grid,
  .service-page__grid {
    grid-template-columns: 1fr;
  }

  .services__grid,
  .project-grid,
  .review-grid,
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 1160px);
  }

  .site-header {
    top: 10px;
    padding: 10px;
  }

  .brand__mark {
    width: 50px;
    height: 50px;
    padding: 4px;
  }

  .brand__text small {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding: 132px 0 58px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
    line-height: 1.03;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.08;
  }

  .hero__card-title {
    font-size: clamp(1.08rem, 5.2vw, 1.45rem);
  }

  .section {
    padding: 76px 0;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .services__grid,
  .project-grid,
  .review-grid,
  .area-grid,
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero__card,
  .about__copy,
  .contact-panel,
  .service-page__panel {
    padding: 22px;
  }

  .town-list {
    columns: 1;
  }
}
