/* ---------------------------------------------------------------
   Green / ash / blue palette, light layout, no heavy graphics.
   --------------------------------------------------------------- */
:root {
  --ink: #12262e;
  --ink-2: #2c444c;
  --ash: #5c7277;
  --ash-2: #8ba0a4;
  --line: #dde6e5;
  --line-2: #eef3f2;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --deep: #103a4c;
  --deep-2: #17566d;
  --teal: #1f7c7e;
  --teal-dark: #17656a;
  --green: #4e9c8b;
  --tide: #bfd3ce;
  --cool: #8fb9ce;
  --cta: #0e6350;
  --cta-hover: #0a4f40;

  --grad: linear-gradient(135deg, #0e3547 0%, #1a6274 52%, #4e9c8b 100%);
  --grad-soft: linear-gradient(135deg, #f1f6f5 0%, #e7f0f0 55%, #dfeceb 100%);

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(18, 38, 46, .05), 0 8px 24px rgba(18, 38, 46, .06);
  --container: 1200px;
  --section: clamp(56px, 7vw, 104px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.01em; }
h4 { font-size: 17px; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section--tint { background: var(--bg); }
.section--soft { background: var(--grad-soft); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ash); line-height: 1.6; }
.muted { color: var(--ash); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; padding-block: 8px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.logo__sub { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ash-2); margin-top: 5px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  font-size: 15px; color: var(--ink-2); padding: 6px 0; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:not(.btn):hover { color: var(--teal); }
.nav a.is-active { color: var(--teal); border-bottom-color: var(--teal); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  cursor: pointer; padding: 0; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.25; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--cta); border-width: 1.5px; color: var(--cta); background: var(--surface); }
.btn--outline:hover { background: var(--tide); border-color: var(--cta-hover); color: var(--cta-hover); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--tide); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nav .btn--outline { padding: 10px 20px; }

.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.arrow-link svg { transition: transform .18s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 42, 56, .94) 0%, rgba(16, 64, 80, .86) 42%, rgba(31, 108, 110, .55) 72%, rgba(78, 156, 139, .3) 100%);
}
.hero__inner { padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 112px); max-width: 720px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--tide); }
.hero p { color: rgba(255, 255, 255, .86); font-size: clamp(17px, 1.5vw, 20px); }

.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 42, 56, .93) 0%, rgba(17, 70, 88, .84) 50%, rgba(31, 124, 126, .6) 100%);
}
.page-hero__inner { padding: clamp(56px, 7vw, 96px) 0; max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--tide); }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: clamp(16px, 1.4vw, 19px); margin-bottom: 0; }

.breadcrumbs { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- stats strip ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats__num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: var(--deep); letter-spacing: -.02em; line-height: 1.1; }
.stats__label { font-size: 14px; color: var(--ash); margin-top: 6px; }

/* ---------- section head ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head p { color: var(--ash); font-size: 18px; margin-bottom: 0; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--tide); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: 15.5px; color: var(--ash); margin-bottom: 20px; }
.card__body .arrow-link { margin-top: auto; }

/* ---------- capability tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tile { background: var(--surface); padding: 32px 28px; }
.tile svg { color: var(--teal); margin-bottom: 18px; }
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ash); margin: 0; }

/* ---------- feature (text + image) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature--flip .feature__media { order: -1; }

/* ---------- lists ---------- */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding: 0 0 0 30px; margin-bottom: 14px; font-size: 16px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(78, 156, 139, .16);
}
.list-check li:last-child { margin-bottom: 0; }
.list-check strong { color: var(--ink); font-weight: 600; }

.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.spec-list h4 { margin: 0; color: var(--ink); }
.spec-list p { margin: 0; font-size: 16px; color: var(--ash); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { counter-increment: step; padding-top: 26px; border-top: 2px solid var(--tide); }
.step::before {
  content: "0" counter(step);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--teal); margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ash); margin: 0; }

/* ---------- highlight band ---------- */
.band { background: var(--grad); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--tide); }
.band p { color: rgba(255, 255, 255, .85); }
.band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.band .list-check li::before { background: var(--tide); box-shadow: 0 0 0 4px rgba(191, 211, 206, .2); }
.band .list-check strong { color: #fff; }

.cta { background: var(--grad); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--ash); margin-top: 10px; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-block + .contact-block { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact-block h3 { font-size: 17px; margin-bottom: 8px; }
.contact-block p { margin: 0; color: var(--ash); font-size: 16px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 124, 126, .12);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13.5px; color: var(--ash-2); margin: 16px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .72); padding: clamp(48px, 6vw, 76px) 0 0; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 10px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo__sub { color: rgba(255, 255, 255, .5); }
.footer__about { max-width: 320px; color: rgba(255, 255, 255, .6); font-size: 15px; }
.footer__credits { padding: 0 0 22px; font-size: 12.5px; color: rgba(255, 255, 255, .42); }
.footer__credits a { color: rgba(255, 255, 255, .55); text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 22px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
}


/* ---------- reveal on scroll ---------- */
/* The .js class is set inline in <head>, so without scripting nothing is ever hidden. */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Items in a grid come in one after another rather than all at once */
.js .cards > :nth-child(2), .js .tiles > :nth-child(2),
.js .steps > :nth-child(2), .js .gallery > :nth-child(2) { transition-delay: .09s; }
.js .cards > :nth-child(3), .js .tiles > :nth-child(3),
.js .steps > :nth-child(3), .js .gallery > :nth-child(3) { transition-delay: .18s; }
.js .cards > :nth-child(4), .js .tiles > :nth-child(4),
.js .steps > :nth-child(4), .js .gallery > :nth-child(4) { transition-delay: .27s; }
.js .cards > :nth-child(5), .js .tiles > :nth-child(5) { transition-delay: .36s; }
.js .tiles > :nth-child(6) { transition-delay: .45s; }
.js .tiles > :nth-child(7) { transition-delay: .54s; }
.js .tiles > :nth-child(8) { transition-delay: .63s; }
.js .stats__item:nth-child(2) { transition-delay: .09s; }
.js .stats__item:nth-child(3) { transition-delay: .18s; }
.js .stats__item:nth-child(4) { transition-delay: .27s; }

/* ---------- header lift on scroll ---------- */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(18, 38, 46, .05), 0 8px 24px rgba(18, 38, 46, .07); }

/* ---------- responsive ---------- */
/* The horizontal menu gets tight well before phone width, so it collapses earlier. */
@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 14.5px; }
  .nav .btn--outline { padding: 10px 16px; font-size: 14.5px; }
  .site-header__inner { gap: 20px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }
  .nav a.is-active { border-bottom-color: var(--line-2); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav .btn--outline { font-size: 15px; padding: 12px 20px; }
}

@media (max-width: 980px) {
  .cards, .tiles, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature, .band__grid, .contact-grid { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 24px 20px 24px 0; }
  .stats__item:nth-child(2) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards, .tiles, .steps, .gallery, .form__row { grid-template-columns: 1fr; }
  .tiles { gap: 1px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
