:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #0f1720;
  --surface-soft: #ebf0f4;
  --text: #102032;
  --text-soft: #526174;
  --line: rgba(16, 32, 50, 0.12);
  --brand: #0b78b7;
  --brand-deep: #0a4e78;
  --accent: #d8a942;
  --accent-coral: #f26b5b;
  --accent-sun: #ffbf47;
  --accent-mint: #6fcf97;
  --ok: #0f766e;
  --shadow: 0 18px 40px rgba(16, 32, 50, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --mobile-cta-height: 118px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(11, 120, 183, 0.08), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(242, 107, 91, 0.08), transparent 18%),
    radial-gradient(circle at 14% 82%, rgba(255, 191, 71, 0.08), transparent 16%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 252, 253, 0.88);
  border-bottom: 1px solid rgba(16, 32, 50, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand__logo {
  display: block;
  width: clamp(152px, 15vw, 208px);
  height: auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 26px rgba(11, 120, 183, 0.22);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-size: 1rem;
}

.brand__tag {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.1);
}

.nav-item--dropdown {
  position: relative;
}

.nav-link--parent {
  gap: 6px;
}

.nav-link--parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.55;
  margin-top: 2px;
}

.nav-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: min(280px, calc(100vw - 48px));
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  gap: 4px;
  flex-direction: column;
  z-index: 30;
}

.nav-sublink {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.nav-sublink:hover,
.nav-sublink:focus-visible,
.nav-sublink.is-active {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.1);
}

.nav-item--dropdown:has(.nav-sublink.is-active) .nav-link--parent {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.1);
}

@media (min-width: 821px) {
  .nav-sub {
    position: absolute;
    /* Flush with trigger so hover is not lost in a dead gap */
    top: 100%;
    left: 0;
    padding-top: 12px;
  }

  .nav-item--dropdown:hover .nav-sub,
  .nav-item--dropdown:focus-within .nav-sub {
    display: flex;
  }
}

@media (max-width: 820px) {
  .nav-sub {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 8px 8px 8px 12px;
    border-left: 3px solid rgba(11, 120, 183, 0.35);
    border-radius: 14px;
    background: rgba(11, 120, 183, 0.06);
    box-shadow: none;
  }

  .nav-item--dropdown.is-open .nav-sub {
    display: flex;
  }
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(11, 120, 183, 0.18);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
  background: var(--brand-deep);
  box-shadow: 0 16px 30px rgba(10, 78, 120, 0.22);
}

.button-secondary {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.08);
  border-color: rgba(11, 120, 183, 0.18);
  box-shadow: 0 10px 22px rgba(16, 32, 50, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(11, 120, 183, 0.14);
  border-color: rgba(11, 120, 183, 0.28);
}

.hero {
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 50%;
  width: min(560px, 64vw);
  height: min(560px, 64vw);
  transform: translateX(-8%);
  background:
    radial-gradient(circle, rgba(216, 169, 66, 0.22), transparent 56%),
    radial-gradient(circle at 70% 40%, rgba(242, 107, 91, 0.12), transparent 38%);
  pointer-events: none;
  filter: blur(14px);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.hero__layout--single {
  grid-template-columns: 1fr;
}

/* Contact-style hero: don't stretch the visual card to the full text column height */
.hero__layout:has(.hero__aside-stack) {
  align-items: start;
}

.hero__layout:has(.hero__aside-stack) .hero-card--visual {
  min-height: 0;
}

.hero__aside-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-fullbleed {
  width: 100vw;
  margin-top: -96px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
}

.hero--home-fullwidth {
  overflow: visible;
  padding-bottom: 0;
}

.hero--home-fullwidth .hero__layout--single {
  position: relative;
  z-index: 2;
}

.hero--home-fullwidth .hero-fullbleed {
  position: sticky;
  top: 82px;
  z-index: 1;
}

.hero--home-fullwidth + .section.section--tight {
  position: relative;
  z-index: 3;
  margin-top: -132px;
  padding-top: 176px;
  background: linear-gradient(
    180deg,
    rgba(244, 246, 248, 0) 0,
    rgba(244, 246, 248, 0.92) 104px,
    var(--bg) 176px
  );
}

.hero-visual--home-photo {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 560px);
  object-fit: cover;
  object-position: center 30%;
  filter: blur(2.4px) brightness(0.92) saturate(0.9) contrast(0.96);
  transform: scale(1.08);
  transform-origin: center;
}

.hero-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.26)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.hero--home-fullwidth .container {
  position: relative;
  z-index: 2;
}

.hero-card--visual-compact {
  min-height: 0;
}

.hero-card--visual-compact .hero-visual {
  min-height: 200px;
  max-height: min(320px, 42vw);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.35vw, 3rem);
  line-height: 1.06;
  max-width: 700px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 1.7vw, 1.74rem);
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-card,
.panel,
.service-card,
.stat-card,
.contact-card,
.step,
.faq-item,
.highlight-card,
.info-band {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-card--visual {
  padding: 0;
  min-height: 100%;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.hero-card--visual::before {
  display: none;
}

.hero-card--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.03), rgba(7, 16, 26, 0.11));
}

.hero-visual {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  transform-origin: center;
}

/* Keep anti-AI softening only for raster heroes if they return */
.hero-visual[src$=".png"] {
  filter: saturate(0.88) contrast(0.96) brightness(0.98);
  transform: scale(1.005);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-coral));
}

.hero-card ul,
.service-card ul,
.faq-item ul,
.contact-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(11, 120, 183, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(16, 32, 50, 0.06);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.stats,
.cards,
.steps,
.faq-grid,
.contact-grid,
.split-layout,
.highlight-grid {
  display: grid;
  gap: 20px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-md);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.9rem;
  line-height: 1;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.contact-card,
.highlight-card,
.faq-item,
.step {
  padding: 24px;
  border-radius: var(--radius-md);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:nth-child(3n + 1),
.contact-card:nth-child(3n + 1),
.highlight-card:nth-child(3n + 1),
.faq-item:nth-child(3n + 1),
.step:nth-child(3n + 1) {
  border-top: 4px solid rgba(11, 120, 183, 0.42);
}

.service-card:nth-child(3n + 2),
.contact-card:nth-child(3n + 2),
.highlight-card:nth-child(3n + 2),
.faq-item:nth-child(3n + 2),
.step:nth-child(3n + 2) {
  border-top: 4px solid rgba(255, 191, 71, 0.6);
}

.service-card:nth-child(3n),
.contact-card:nth-child(3n),
.highlight-card:nth-child(3n),
.faq-item:nth-child(3n),
.step:nth-child(3n) {
  border-top: 4px solid rgba(242, 107, 91, 0.42);
}

.service-card:hover,
.contact-card:hover,
.highlight-card:hover,
.faq-item:hover,
.step:hover,
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(16, 32, 50, 0.12);
  border-color: rgba(11, 120, 183, 0.18);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding-top: 28px;
}

.section--soft {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 191, 71, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(235, 240, 244, 0.55), rgba(235, 240, 244, 0.2));
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p,
.muted {
  color: var(--text-soft);
}

.split-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.check-list,
.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.inline-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li + li,
.inline-list li + li {
  margin-top: 12px;
}

.check-list li::before,
.inline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 120, 183, 0.16), rgba(255, 191, 71, 0.24));
  color: var(--brand-deep);
  font-weight: 800;
}

.faq-grid,
.contact-grid,
.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.panel--dark {
  color: #f8fafc;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 191, 71, 0.18), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(242, 107, 91, 0.14), transparent 18%),
    linear-gradient(135deg, var(--surface-strong), #20384b);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel--dark p,
.panel--dark li,
.panel--dark .muted {
  color: rgba(248, 250, 252, 0.82);
}

.info-band {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 191, 71, 0.12), rgba(11, 120, 183, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--brand-deep);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 120, 183, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 32, 50, 0.06);
}

.mobile-cta {
  display: none;
}

.footer {
  padding: 64px 0 30px;
  background: #0d1720;
  color: rgba(255, 255, 255, 0.92);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 1fr));
  gap: 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.72);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li + li {
  margin-top: 8px;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.94rem;
}

/* Logo already contains a white plate, so avoid extra frame in footer */
.footer .brand__logo {
  padding: 0;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b78b7;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(16, 32, 50, 0.24);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__layout,
  .split-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-card--visual {
    min-height: 320px;
  }

  .cards,
  .stats,
  .steps,
  .faq-grid,
  .contact-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .brand__logo {
    width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link,
  .nav .button-secondary {
    justify-content: center;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .site-header__inner {
    min-height: 72px;
    flex-wrap: nowrap;
  }

  body.has-mobile-cta {
    padding-bottom: var(--mobile-cta-height);
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(13, 23, 32, 0.92);
    box-shadow: 0 18px 42px rgba(16, 32, 50, 0.26);
    backdrop-filter: blur(18px);
  }

  .mobile-cta .button,
  .mobile-cta .button-secondary {
    min-height: 46px;
    font-size: 0.93rem;
    padding: 11px 12px;
  }

  .mobile-cta .button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-open .mobile-cta {
    display: none;
  }

  .hero--home-fullwidth {
    overflow: hidden;
  }

  .hero--home-fullwidth .hero-fullbleed {
    position: relative;
    top: auto;
  }

  .hero--home-fullwidth + .section.section--tight {
    margin-top: 0;
    padding-top: 28px;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .breadcrumbs {
    margin-bottom: 22px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.55rem);
    line-height: 1.06;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-fullbleed {
    margin-top: -54px;
  }

  .hero-visual--home-photo {
    height: clamp(220px, 58vw, 360px);
    object-position: center 34%;
  }

  .proof-bar {
    gap: 8px;
  }

  .proof-chip {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .stat-card,
  .service-card,
  .contact-card,
  .highlight-card,
  .faq-item,
  .step,
  .panel,
  .hero-card,
  .info-band {
    padding: 20px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 1rem;
  }
}

@media (max-width: 820px) and (max-height: 740px) {
  body {
    padding-bottom: 24px;
  }

  .mobile-cta {
    position: static;
    margin: 14px 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-visual {
    transform: none;
  }
}
