:root {
  --ink: #082b34;
  --ink-soft: #224953;
  --teal: #00677a;
  --aqua: #45c2d0;
  --gold: #c7a55a;
  --stone: #f4f1ea;
  --mist: #8c8d8e;
  --white: #ffffff;
  --line: rgba(8, 43, 52, 0.14);
  --shadow: 0 24px 70px rgba(8, 43, 52, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 285px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--teal);
}

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

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: 48px;
  padding: 62px 0 48px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.15rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

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

.hero-content h1 {
    font-size: clamp(3.15rem, 5vw, 6.6rem);
    padding-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(69, 194, 208, 0.35);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(8, 43, 52, 0.28);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 80%;
}

.hero-visual img {
  border-radius: 12px;
}

.pool-card {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 43, 52, 0.92), rgba(0, 103, 122, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.08) 49px 50px);
  box-shadow: var(--shadow);
}

.pool-water {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16%;
  height: 64%;
  border: 18px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 36%),
    repeating-linear-gradient(-20deg, rgba(255, 255, 255, 0.18) 0 8px, rgba(255, 255, 255, 0.04) 9px 22px),
    linear-gradient(160deg, #36b6c9, #00677a);
}

.pool-grid {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(600px) rotateX(55deg) translateY(170px);
  transform-origin: bottom;
}

.pool-line {
  position: absolute;
  height: 3px;
  background: var(--gold);
  transform: rotate(-38deg);
  transform-origin: left;
}

.line-one {
  width: 270px;
  left: 46px;
  bottom: 126px;
}

.line-two {
  width: 210px;
  right: -34px;
  top: 112px;
}

.site-tag,
.spec-panel {
  position: absolute;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(8, 43, 52, 0.14);
}

.site-tag {
  left: 24px;
  bottom: 24px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 900;
}

.spec-panel {
  right: -8px;
  bottom: 42px;
  width: min(260px, 68%);
  padding: 18px;
}

.spec-panel span,
.project-list span,
.contact-detail span,
.service-card span,
.stats span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-panel strong {
  display: block;
  margin-top: 6px;
  line-height: 1.2;
}

.section-pad {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  border-top: 1px solid var(--line);
}

.intro p:last-child,
.project-copy p,
.contact-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.service-card h3 {
  margin-top: 46px;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.process {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.timeline-item {
  position: relative;
  padding: 28px 24px 0 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-item strong {
  font-size: 1.1rem;
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.projects {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: start;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-list div {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.project-list strong {
  display: block;
  margin-top: 8px;
  font-size: 1.38rem;
  line-height: 1.18;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: var(--white);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.stats div {
  min-height: 190px;
  padding: 38px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.stats span {
  margin-top: 16px;
  color: var(--aqua);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
}

.contact-detail {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-detail a,
.contact-detail p {
  display: block;
  margin: 7px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 43, 52, 0.1);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 43, 52, 0.18);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 44px 20px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer img {
  width: min(320px, 86vw);
}

.footer p {
  max-width: 560px;
  margin: 0;
}

.footer span {
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .brand img {
    width: 230px;
  }

  .hero,
  .intro,
  .projects,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

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

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(8, 43, 52, 0.12);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .brand img {
    width: 190px;
  }

  .hero,
  .section-pad {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 44px;
    gap: 24px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .hero-visual {
    min-height: 300px;
    border-radius: 8px;
  }

  .hero-visual img {
    width: 100%;
    border-radius: 8px;
  }

  .pool-card {
    width: min(100%, 380px);
  }

  .spec-panel {
    right: 8px;
  }

  .section-pad {
    padding: 68px 0;
  }

  .service-grid,
  .timeline,
  .stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .timeline {
    border-top: 0;
    gap: 18px;
  }

  .timeline-item {
    padding: 0 0 0 24px;
    border-left: 2px solid var(--ink);
  }

  .timeline-item::before {
    top: 5px;
    left: -8px;
  }

  .stats div {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .contact-form {
    padding: 20px;
  }
}

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


.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  margin: 0 auto;
}

.site-footer img {
  width: 170px;
}

.site-footer p,
.site-footer span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-weight: 800;
}