:root {
  --navy-950: #061a36;
  --navy-900: #08234a;
  --navy-800: #0d3264;
  --blue-soft: #eaf3ff;
  --orange-600: #f97316;
  --orange-500: #ff8a2a;
  --orange-100: #fff0e6;
  --white: #ffffff;
  --ink: #152032;
  --muted: #617087;
  --line: #dce7f5;
  --soft: #f7fbff;
  --shadow: 0 24px 70px rgba(6, 26, 54, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(220, 231, 245, 0.92);
  backdrop-filter: blur(16px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 14px 36px rgba(6, 26, 54, 0.12);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-950);
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 10px 24px rgba(6, 26, 54, 0.14);
  overflow: hidden;
  animation: markPulse 4.8s ease-in-out infinite;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small,
.brand em {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand em {
  max-width: 340px;
  margin-top: 4px;
  color: var(--orange-600);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--navy-950);
  font-size: 1.02rem;
  font-weight: 900;
}

.nav-menu a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover {
  color: var(--orange-600);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy-950);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 92px 0 76px;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 26, 54, 0.94) 0%, rgba(6, 26, 54, 0.82) 42%, rgba(6, 26, 54, 0.34) 100%),
    url("https://source.unsplash.com/1800x1200/?water-engineering,pipes,construction") center/cover;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(249, 115, 22, 0.2) 48%, transparent 60%);
  transform: translateX(-100%);
  animation: sweep 8s ease-in-out infinite;
}

.page-hero {
  padding: 96px 0 76px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 26, 54, 0.94), rgba(8, 35, 74, 0.86)),
    url("https://source.unsplash.com/1800x900/?water,pipes,engineering") center/cover;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  font-style: italic;
  line-height: 1.08;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 52px;
}

.hero-image {
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: softFloat 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-hero .eyebrow,
.section-copy .section-kicker,
.section-heading .section-kicker,
.contact-copy .section-kicker {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.1rem);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 0;
  color: #e9f2ff;
  font-size: 1.12rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--orange-600);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.34);
}

.button.primary:hover {
  box-shadow: 0 22px 46px rgba(249, 115, 22, 0.42);
}

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

.button.full {
  width: 100%;
  margin-top: 18px;
}

.inline-button {
  margin-top: 26px;
}

.hero-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: softFloat 6s ease-in-out infinite;
}

.hero-panel p {
  margin: 0 0 10px;
  color: var(--orange-500);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.14;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mini-stats span {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-style: italic;
}

.mini-stats strong {
  display: block;
  color: var(--orange-500);
  font-size: 1.5rem;
  line-height: 1;
}

.section {
  padding: 92px 0;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.reveal-section.is-visible .reveal-item:nth-child(2) {
  transition-delay: 110ms;
}

.reveal-section.is-visible .reveal-item:nth-child(3) {
  transition-delay: 190ms;
}

.reveal-section.is-visible .reveal-item:nth-child(4) {
  transition-delay: 270ms;
}

.promise-section {
  background: var(--soft);
}

.promise-grid,
.stats-grid,
.testimonial-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promise-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(6, 26, 54, 0.08);
}

.promise-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange-600);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.promise-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 58px;
}

.split-grid.reverse {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.12;
}

.section-copy p,
.contact-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.55;
}

.image-stack,
.project-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-stack img,
.project-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.image-stack:hover img,
.project-visual:hover img {
  transform: scale(1.04);
}

.image-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--orange-600);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(6, 26, 54, 0.24);
}

.stats-section {
  color: var(--white);
  background: var(--navy-950);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  color: var(--orange-500);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
}

.stat-card span {
  margin-top: 12px;
  color: #e7f0ff;
  font-weight: 800;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.testimonial-card,
.blog-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(6, 26, 54, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 24px 58px rgba(6, 26, 54, 0.14);
}

.service-card img,
.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card div,
.blog-card div {
  padding: 20px;
}

.service-card h3,
.testimonial-card strong,
.blog-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  color: var(--navy-950);
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.05;
  font-weight: 900;
}

.service-card p,
.testimonial-card p,
.blog-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.service-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
}

.projects-section {
  background: var(--orange-100);
}

.completed-video {
  margin-top: 52px;
}

.completed-gallery {
  margin-top: 46px;
}

.section-heading.compact {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading.compact h2 {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
}

.completed-video video {
  width: 100%;
  max-height: 620px;
  border: 1px solid rgba(6, 26, 54, 0.12);
  border-radius: 8px;
  background: var(--navy-950);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  margin: 0;
  border: 1px solid rgba(6, 26, 54, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(6, 26, 54, 0.08);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.gallery-card figcaption {
  padding: 14px 16px;
  color: var(--navy-950);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--navy-950);
  font-style: italic;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
}

.testimonials-section {
  background: var(--soft);
}

.testimonial-card {
  min-height: 280px;
  padding: 28px;
}

.testimonial-card p {
  margin-bottom: 22px;
  font-size: 1.02rem;
  font-style: italic;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--orange-600);
  font-weight: 800;
}

.blog-card h3 {
  margin-bottom: 0;
}

.blog-card p {
  margin-bottom: 10px;
  color: var(--orange-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.article-image {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.article-copy {
  padding: 10px 0;
}

.article-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
}

.contact-section {
  padding: 76px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 26, 54, 0.94), rgba(8, 35, 74, 0.9)),
    url("https://source.unsplash.com/1600x900/?plumbing,tools") center/cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 42px;
}

.contact-copy h2,
.contact-copy p {
  color: var(--white);
}

.contact-copy p {
  color: #e7f0ff;
}

.contact-card {
  padding: 30px;
}

.contact-card h3 + p {
  margin-bottom: 18px;
}

.contact-card a:hover {
  color: var(--orange-600);
}

.site-footer {
  color: #d9e5f7;
  background: #041326;
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--orange-500);
  font-weight: 900;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes sweep {
  0%,
  46% {
    transform: translateX(-100%);
  }
  72%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes markPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(249, 115, 22, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.14);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 14px;
  }

  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .article-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid,
  .service-grid,
  .gallery-grid,
  .testimonial-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .brand small {
    display: none;
  }

  .brand em {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .mini-stats,
  .promise-grid,
  .service-grid,
  .gallery-grid,
  .stats-grid,
  .testimonial-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .promise-card,
  .stat-card,
  .testimonial-card {
    min-height: auto;
  }

  .image-stack img,
  .project-visual img,
  .article-image,
  .hero-image img,
  .gallery-card img {
    height: 390px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
