:root {
  --color-primary: #0e2a5e;
  --color-accent: #1d8484;
  --color-accent-dark: #146868;
  --color-text: #172033;
  --color-muted: #5e687b;
  --color-soft: #f4f8fb;
  --color-line: #dce6ee;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(14, 42, 94, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(14, 42, 94, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.mobile-menu {
  display: none;
}

.nav-cta {
  padding: 10px 16px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white) !important;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 150px clamp(20px, 5vw, 72px) 80px;
  overflow: hidden;
  color: var(--color-white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/hero-low-vision.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 49, 0.88) 0%, rgba(14, 42, 94, 0.7) 45%, rgba(14, 42, 94, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero .eyebrow {
  color: #70dddd;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-primary);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  max-width: 1060px;
  color: var(--color-white);
  font-size: clamp(44px, 4.4vw, 60px);
  font-weight: 800;
  hyphens: manual;
  overflow-wrap: normal;
}

.mobile-title-break {
  display: none;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 800;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.button-primary:hover {
  background: var(--color-accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--color-white);
}

.button-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  bottom: 70px;
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 6px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-panel span {
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--color-primary);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  white-space: nowrap;
}

.section {
  padding: clamp(78px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.section-soft {
  background: var(--color-soft);
}

.section-heading {
  min-width: 0;
  max-width: 820px;
  margin: 0 auto 46px 0;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: 18px;
}

.services .section-heading p:not(.eyebrow) {
  max-width: none;
  white-space: nowrap;
}

.intro,
.approach {
  max-width: calc(var(--max-width) + 144px);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.lead-text {
  display: grid;
  gap: 22px;
  color: var(--color-muted);
  font-size: 19px;
}

.lead-text p:first-child {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 600;
}

.about-visual {
  position: relative;
  margin-top: -215px;
  min-height: 620px;
  padding: 0 0 48px 58px;
}

.portrait-placeholder {
  position: relative;
  width: min(100%, 430px);
  min-height: 560px;
  margin-left: auto;
  overflow: hidden;
  background: #eef4f7;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(14, 42, 94, 0.1);
}

.portrait-placeholder img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 50% 36%;
}

.value-card {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.value-card h3 {
  color: var(--color-white);
}

.value-name {
  margin-bottom: 8px;
  color: #70dddd;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.value-card ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.value-card li {
  position: relative;
  padding-left: 28px;
}

.value-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 4px;
  content: "";
  transform: translateY(-50%);
}

.services {
  max-width: none;
}

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

.service-card {
  min-height: 310px;
  padding: 30px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(14, 42, 94, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: rgba(29, 132, 132, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.service-card-wide {
  grid-column: span 2;
  min-height: 230px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.84);
}

.service-card-wide h3 {
  color: var(--color-white);
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  background: rgba(29, 132, 132, 0.1);
  color: var(--color-accent);
  border-radius: 8px;
}

.service-card-wide .service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #70dddd;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-card p {
  margin-top: 14px;
  color: var(--color-muted);
}

.service-card-wide p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.78);
}

.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}

.approach-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 18px;
}

.approach-copy h2 {
  font-size: clamp(28px, 2.5vw, 36px);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 22px;
  padding: 26px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.step span {
  grid-row: span 2;
  color: var(--color-accent);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.step p {
  margin-top: 8px;
  color: var(--color-muted);
}

.cta-band {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto clamp(70px, 8vw, 110px);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 5vw, 56px);
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  color: var(--color-white);
}

.cta-band p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 14px;
}

.cta-band .eyebrow {
  color: #70dddd;
}

.cta-band .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #071631;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer a {
  color: #70dddd;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 820px;
    padding-top: 190px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 46px;
  }

  .hero-panel strong {
    white-space: normal;
  }

  .intro-grid,
  .approach {
    grid-template-columns: 1fr;
  }

  .about-visual {
    margin-top: 0;
  }

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

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    right: auto;
    left: 10px;
    width: calc(100vw - 20px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(14, 42, 94, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(14, 42, 94, 0.1);
  }

  .brand {
    flex: 1 1 0;
    min-width: 0;
    font-size: 15px;
  }

  .brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .mobile-menu {
    display: block;
    position: relative;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: var(--color-primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .menu-button span {
    width: 22px;
    height: 2px;
    display: block;
    background: var(--color-white);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    top: 54px;
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 40px));
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    background: #f7fafc;
    border: 1px solid rgba(14, 42, 94, 0.09);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  }

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

  .mobile-menu.is-open .menu-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu.is-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.is-open .menu-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 7px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
  }

  .mobile-nav a:not(.nav-cta) {
    background: var(--color-white);
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 146px 20px 68px;
  }

  h1 {
    width: min(100%, 350px);
    font-size: 25px;
    line-height: 1.08;
    overflow-wrap: normal;
  }

  h2 {
    width: min(100%, 350px);
    font-size: 28px;
  }

  h2 {
    overflow-wrap: break-word;
  }

  .mobile-title-break {
    display: none;
  }

  .hero-copy,
  .lead-text p:first-child {
    width: min(100%, 350px);
    font-size: 18px;
  }

  .eyebrow {
    width: min(100%, 330px);
    font-size: 11px;
  }

  .services .section-heading p:not(.eyebrow) {
    white-space: normal;
  }

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

  .about-visual {
    min-height: 650px;
    padding: 0 0 32px;
  }

  .portrait-placeholder {
    width: 100%;
    min-height: 520px;
  }

  .portrait-placeholder img {
    height: 520px;
    object-position: 50% 35%;
  }

  .value-card {
    right: 0;
    left: 0;
    padding: 24px 20px;
    font-size: 14px;
  }

  .value-card ul {
    gap: 10px;
  }

  .value-card li {
    padding-left: 24px;
  }

  .cta-band .button {
    width: 100%;
  }

  .cta-band h2 {
    width: 100%;
    max-width: 100%;
    font-size: 24px;
    line-height: 1.15;
    hyphens: none;
    overflow-wrap: normal;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: auto;
  }

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

  .step span {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    margin-right: 20px;
    margin-left: 20px;
  }
}
