:root {
  --ink: #1f2a37;
  --muted: #5f7080;
  --bg: #dfe9ef;
  --surface: #f5f9fb;
  --line: #cfdee7;
  --accent: #789fbd;
  --accent-strong: #486f8b;
  --signal: #91c4b9;
  --steel: #394e60;
  --dark: #20384f;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(55, 84, 105, .10);
  --radius: 8px;
}

html[data-theme="night"] {
  --ink: #eef6ff;
  --muted: #aab8c8;
  --bg: #0c111c;
  --surface: #121a28;
  --line: #263244;
  --accent: #61a8e8;
  --accent-strong: #9bd0ff;
  --signal: #2dd4bf;
  --steel: #cbd5e1;
  --dark: #060914;
  --white: #101827;
  --shadow: 0 20px 60px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 0%, rgba(145, 196, 185, .09), transparent 260px),
    linear-gradient(180deg, rgba(120, 159, 189, .08), transparent 390px),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  min-height: 70px;
  padding: 10px clamp(18px, 3.6vw, 52px);
  border-bottom: 1px solid rgba(207, 222, 231, .94);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
}

.brand-icon {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(55, 84, 105, .18));
}

.brand-mark span:last-child {
  display: grid;
  gap: 2px;
}

.brand-mark strong { font-size: 16px; }

.brand-mark small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent-strong);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 118, 110, .08);
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(55, 84, 105, .13);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.menu-toggle,
.theme-toggle,
.scroll-top {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle { display: none; }

.theme-toggle {
  grid-template-columns: 1fr 1fr;
  justify-self: end;
  width: 58px;
  gap: 2px;
  padding: 3px;
  font-weight: 900;
}

.theme-toggle span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.theme-toggle span.is-active,
.theme-toggle[aria-pressed="false"] span:first-child,
.theme-toggle[aria-pressed="true"] span:last-child {
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: 0 5px 12px rgba(55, 84, 105, .18);
}

html[data-theme="night"] .theme-toggle span.is-active,
html[data-theme="night"] .theme-toggle[aria-pressed="true"] span:last-child {
  color: #06111c;
  background: var(--signal);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: clamp(20px, 2.8vw, 34px);
  align-items: center;
  min-height: auto;
  padding: clamp(22px, 2.8vw, 34px) clamp(18px, 5vw, 64px) clamp(18px, 2.6vw, 28px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(223, 233, 239, .90), rgba(223, 233, 239, .66)),
    var(--subhero-image) center / cover no-repeat;
  opacity: .5;
  filter: saturate(.76) contrast(.94);
}

.hero-copy,
.page-hero > div,
.section-heading {
  max-width: 760px;
}

.eyebrow,
.section-heading span,
.service-card span,
.blog-list span,
.post-meta {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 12px;
  font-size: clamp(30px, 3.25vw, 44px);
  line-height: 1.07;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2.05vw, 30px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
}

.hero p,
.page-hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(15px, 1.08vw, 17px);
}

.hero-visual {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(32, 56, 79, .26), rgba(32, 56, 79, .26)),
    var(--dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  opacity: .9;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(17, 24, 39, .72)),
    linear-gradient(90deg, rgba(13, 148, 136, .25), transparent);
}

.status-panel {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 36px);
  min-height: 54px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #f8fafc;
  background: rgba(15, 23, 42, .50);
  backdrop-filter: blur(8px);
}

.status-panel strong {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 17px;
  white-space: nowrap;
}

.status-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px) clamp(28px, 4.2vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip span {
  padding: 14px 16px;
  color: var(--muted);
  background: var(--surface);
}

.trust-strip strong {
  color: var(--ink);
}

.section-band,
.service-section,
.process,
.related-services,
.faq-list,
.blog-list,
.text-page {
  padding: clamp(26px, 4vw, 42px) clamp(18px, 5vw, 64px);
}

.backup-focus {
  background: var(--surface);
}

.metric-grid,
.service-grid,
.steps,
.detail-grid {
  display: grid;
  gap: 14px;
}

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

.metric-grid article,
.steps article,
.detail-grid article,
.faq-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(55, 84, 105, .055);
}

.metric-grid b,
.steps b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--signal) 34%, var(--line));
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--signal) 16%, var(--surface));
  font-size: 13px;
  line-height: 1;
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.metric-grid p,
.steps p,
.detail-grid p,
.service-card p,
.content-split p,
.faq-list p,
.blog-list p,
footer p {
  color: var(--muted);
  font-size: 15px;
}

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

.service-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(55, 84, 105, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 12px 26px rgba(55, 84, 105, .09);
}

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

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

.service-card strong {
  display: block;
  margin: 7px 0 10px;
  font-size: 21px;
  line-height: 1.14;
}

.service-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    linear-gradient(180deg, rgba(145, 196, 185, .09), transparent),
    var(--surface);
}

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

.cta-band,
.content-split {
  display: grid;
  grid-template-columns: minmax(280px, .55fr) minmax(0, 1.45fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin: 0 clamp(18px, 5vw, 64px) clamp(16px, 2.4vw, 24px);
  padding: 18px 22px;
  border-radius: var(--radius);
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(23, 74, 124, .94), rgba(15, 34, 56, .96)),
    var(--dark);
}

.content-split .eyebrow,
.cta-band .eyebrow {
  color: #8ff0da;
}

.cta-band h2,
.content-split h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(20px, 1.45vw, 24px);
  line-height: 1.18;
}

.content-split p {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.5;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: clamp(18px, 2.8vw, 32px);
  align-items: center;
  padding: clamp(20px, 2.8vw, 32px) clamp(18px, 5vw, 64px) clamp(16px, 2.2vw, 24px);
  isolation: isolate;
  overflow: hidden;
}

.page-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(223, 233, 239, .90), rgba(223, 233, 239, .66)),
    var(--subhero-image) center / cover no-repeat;
  opacity: .5;
  filter: saturate(.76) contrast(.94);
}

.hero-copy,
.hero-visual,
.page-hero > div,
.page-hero > img,
.contact-panel {
  position: relative;
  z-index: 1;
}

.page-hero.simple {
  grid-template-columns: 1fr;
}

.page-hero > img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(32, 56, 79, .18), rgba(32, 56, 79, .18)),
    var(--subhero-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.contact-hero {
  align-items: start;
}

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

.contact-panel > img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(32, 56, 79, .16), rgba(32, 56, 79, .16)),
    url("assets/contacts-hero-21x9.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-cards a,
.compact-links a,
.back-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.detail-grid {
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(14px, 2.3vw, 24px) clamp(18px, 5vw, 64px) clamp(26px, 3.5vw, 38px);
}

.detail-grid article span {
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
}

.compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form button:disabled {
  opacity: .62;
  cursor: wait;
}

.contact-form button {
  min-height: 38px;
  box-shadow: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.form-status.is-success { color: var(--accent-strong); }
.form-status.is-error { color: #dc2626; }

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-list article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.blog-list img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.blog-list article > div {
  padding: 18px;
}

.blog-list a {
  color: var(--accent-strong);
  font-weight: 900;
}

.blog-post {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) 18px;
}

.blog-post > img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 22px 0;
  border-radius: var(--radius);
}

.blog-post p {
  color: var(--steel);
  font-size: 16px;
}

.text-page {
  max-width: 860px;
  color: var(--steel);
  font-size: 16px;
}

footer {
  padding: clamp(30px, 5vw, 54px) clamp(18px, 5vw, 64px);
  color: #dce8f2;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  align-items: start;
}

footer .brand-mark,
footer .brand-mark small,
footer p {
  color: #dce8f2;
}

.footer-services {
  display: grid;
  gap: 9px;
}

.footer-services h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ffffff;
}

.footer-services a {
  color: #a7f3d0;
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease var(--reveal-delay, 0ms), transform .65s ease var(--reveal-delay, 0ms);
}

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

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle { display: inline-grid; }

  .nav {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    justify-content: start;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    justify-content: flex-start;
    padding: 12px;
    font-size: 14px;
  }

  .hero,
  .page-hero,
  .content-split,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
  }

  .trust-strip,
  .metric-grid,
  .service-grid,
  .steps,
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-mark strong {
    font-size: 15px;
  }

  .brand-mark small {
    display: none;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 15px;
  }

  .hero,
  .page-hero,
  .section-band,
  .service-section,
  .process,
  .related-services,
  .faq-list,
  .blog-list,
  .text-page,
  .detail-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .trust-strip,
  .metric-grid,
  .service-grid,
  .steps,
  .detail-grid,
  .blog-list article {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .content-split,
  .cta-band {
    margin-left: 16px;
    margin-right: 16px;
  }

  .service-card {
    min-height: 0;
  }

  .status-panel {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px;
  }

  .status-panel strong {
    font-size: 15px;
  }

  .status-panel p {
    font-size: 12px;
  }

  .page-hero > img {
    aspect-ratio: 21 / 9;
    height: auto;
  }

  .theme-toggle {
    display: none;
  }
}
