:root {
  --ink: #09202d;
  --muted: #58717e;
  --line: #d9e5e8;
  --surface: #f7fbfb;
  --surface-strong: #e9f5f4;
  --teal: #0f9d9a;
  --teal-dark: #086c75;
  --coral: #ff7d66;
  --gold: #f3bf4f;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(9, 32, 45, 0.16);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--teal-dark);
}

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

.narrow {
  width: min(760px, calc(100% - 40px));
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.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: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 251, 251, 0.94);
  box-shadow: 0 12px 34px rgba(9, 32, 45, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(9, 32, 45, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a {
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(15, 157, 154, 0.14);
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  color: var(--white);
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.site-header.is-scrolled .nav-toggle span:not(.sr-only),
.site-header.is-open .nav-toggle span:not(.sr-only) {
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 150px 0 78px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 32, 45, 0.88) 0%, rgba(9, 32, 45, 0.66) 45%, rgba(9, 32, 45, 0.28) 100%),
    url("../images/dsc-20-1400x933.jpg") center / cover;
  transform: scale(1.04);
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(247, 251, 251, 0), var(--surface));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 740px;
  color: var(--white);
}

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

.hero .eyebrow,
.cta .eyebrow {
  color: var(--gold);
}

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

h1 {
  font-size: clamp(3rem, 8vw, 5.9rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: rgba(255, 255, 255, 0.82);
}

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

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

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(9, 32, 45, 0.16);
}

.button-primary {
  background: var(--coral);
  color: var(--ink);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero .button-ghost,
.not-found .button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-panel,
.service-list,
.contact-card,
.contact-form,
.quote-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-panel strong,
.service-list h2,
.contact-card h2 {
  display: block;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.hero-panel ul,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li,
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--muted);
}

.hero-panel li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(15, 157, 154, 0.12);
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding-top: 72px;
}

.split,
.gallery-heading,
.text-layout,
.quote-grid,
.feature,
.contact-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.section-copy,
.prose p,
.feature-copy p,
.value p,
.steps p,
.service-card p,
.footer-grid p,
.form-note {
  color: var(--muted);
}

.section-copy {
  margin: 0;
  font-size: 1.08rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(9, 32, 45, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(9, 32, 45, 0.13);
}

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

.service-card div {
  padding: 24px;
}

.service-card p {
  margin: 12px 0 18px;
}

.service-card a {
  color: var(--teal-dark);
  font-weight: 800;
}

.band {
  background: linear-gradient(135deg, var(--surface-strong), #ffffff 56%, #f2f0ff);
}

.metrics,
.values-grid {
  display: grid;
  gap: 18px;
}

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

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

.metric,
.value,
.steps li {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.metric {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 178px;
  text-align: center;
}

.metric span {
  display: block;
  color: var(--teal-dark);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
}

.metric p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  max-width: 260px;
}

.feature-image {
  position: relative;
}

.feature-image::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  background: var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.feature-image img,
.page-hero-image,
.image-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-copy p {
  margin: 20px 0;
  font-size: 1.05rem;
}

.feature-copy .button {
  margin-top: 26px;
}

.cta {
  padding: 92px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 32, 45, 0.96), rgba(8, 108, 117, 0.9)),
    url("../images/colorful-coral-reef.jpg.824x0-q71-crop-scale-600x400.jpg") center / cover;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.cta .hero-actions {
  justify-content: center;
}

.page-hero {
  padding: 150px 0 76px;
  background:
    linear-gradient(135deg, rgba(9, 32, 45, 0.92), rgba(8, 108, 117, 0.86)),
    url("../images/dsc-20-1400x933.jpg") center / cover;
  color: var(--white);
}

.compact-hero {
  background:
    linear-gradient(135deg, rgba(9, 32, 45, 0.9), rgba(8, 108, 117, 0.78)),
    url("../images/colorful-coral-reef.jpg.824x0-q71-crop-scale-600x400.jpg") center / cover;
}

.service-hero {
  background:
    linear-gradient(135deg, rgba(9, 32, 45, 0.92), rgba(8, 108, 117, 0.82)),
    url("../images/1-373x280.jpg") center / cover;
}

.contact-hero {
  background:
    linear-gradient(135deg, rgba(9, 32, 45, 0.94), rgba(8, 108, 117, 0.84)),
    url("../images/dsc-20-1400x933.jpg") center / cover;
}

.simple-hero {
  background: linear-gradient(135deg, var(--ink), var(--teal-dark));
}

.page-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.84);
}

.text-layout {
  align-items: start;
}

.prose {
  font-size: 1.05rem;
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

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

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.process {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
}

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

.steps span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-card {
  color: var(--ink);
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-row strong {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.quote-grid {
  align-items: start;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 157, 154, 0.22);
  border-color: var(--teal);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(247, 251, 251, 0.92), rgba(233, 245, 244, 0.94)),
    url("../images/dsc-20-1400x933.jpg") center / cover;
}

.not-found .lead {
  color: var(--muted);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 38px;
  height: 52px;
}

.footer-grid h2 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes slow-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-18px, -12px, 0);
  }
}

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a,
  .site-header .site-nav a {
    color: var(--ink);
  }

  .hero-grid,
  .split,
  .gallery-heading,
  .text-layout,
  .quote-grid,
  .feature,
  .contact-grid,
  .page-hero-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-panel,
  .service-list,
  .contact-card,
  .contact-form,
  .quote-panel {
    padding: 22px;
  }

  .service-grid,
  .metrics,
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .brand img {
    width: 38px;
    height: 52px;
  }

  .hero,
  .page-hero {
    padding: 116px 0 58px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-image::before {
    inset: 14px -8px -8px 14px;
  }
}
