:root {
  --color-primary: #0b4c7c;
  --color-secondary: #25a6c1;
  --color-accent: #1f8a5a;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f7fb;
  --color-text: #102a43;
  --color-muted: #526d82;
  --color-border: #dde5ef;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-surface-alt);
  color: var(--color-text);
}

form input.error,
form textarea.error,
form select.error {
  border-color: rgba(220, 55, 60, 0.25) !important;
  background: rgba(220, 55, 60, 0.08) !important;
  color: #dc373c !important;
}

a[role="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: normal;
}

.status {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(11, 76, 124, 0.06);
}

.status strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.status-success {
  border-color: rgba(31, 138, 90, 0.25);
  background: rgba(31, 138, 90, 0.08);
  color: #1f8a5a;
}

.status-error {
  border-color: rgba(220, 55, 60, 0.25);
  background: rgba(220, 55, 60, 0.08);
  color: #dc373c;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

section.container:not(.hero) {
  padding-block: 2rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem;
}

.brand,
.footer-brand {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
  width: auto;
  height: 40px;
}

.brand img,
.footer-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.primary-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: block;
}

.primary-menu a,
.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 0.15rem;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-primary);
}

.primary-menu a.active,
.footer-links a.active {
  color: var(--color-primary);
  padding-bottom: 0.35rem;
}

.footer-links a.active {
  font-weight: bold;
}

.primary-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
}

.primary-menu a,
.footer-links a {
  position: relative;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 841px) {
  .nav-toggle,
  .nav-toggle-label {
    display: none !important;
  }

  .primary-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.page-title-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding-block: 3rem;
  max-width: 960px;
  margin-inline: auto;
}

.page-title-header .eyebrow,
.page-title-header h1,
.page-title-header p {
  margin: 0;
}

.page-title-header p {
  max-width: 760px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.75rem;
  display: grid;
  gap: 1rem;
}

.section-heading h2,
.hero-body h1,
.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.5vw, 2.7rem);
}

.section-heading p,
.hero-body p,
.hero-copy p {
  color: var(--color-muted);
}

.section-heading .contrast {
  width: fit-content;
}

.section-panel {
  background: var(--color-surface);
  border: none;
  border-radius: 1.5rem;
  background-clip: padding-box;
  overflow: hidden;
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px var(--color-border), 0 24px 48px rgba(11, 76, 124, 0.06);
}

.section-panel h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.section-panel p {
  color: var(--color-muted);
}

.feature-card,
.work-cards article,
.values-list article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 18px 34px rgba(11, 76, 124, 0.05);
}

.feature-card h3,
.work-cards h3,
.values-list h3 {
  margin-top: 0;
}

.feature-grid article.section-heading {
  grid-column: 1 / -1;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero.container,
.site-footer.container,
.page-header.container {
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

.hero-body,
.hero-copy {
  max-width: 800px;
}

.hero-copy p {
  color: var(--color-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.05;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.hero-text,
.values-copy p,
footer p,
.feature-card p,
.work-cards p,
.values-list p {
  color: var(--color-muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.visual-panel {
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(36, 166, 193, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(11, 76, 124, 0.08);
  padding: 1.75rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(37, 166, 193, 0.12);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.visual-body {
  background: var(--color-surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 76, 124, 0.08);
}

.visual-grid {
  display: grid;
  gap: 1rem;
}

.visual-grid div {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
}

.visual-grid h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

form .grid {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

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

.grid-aside {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  align-items: start;
}

.grid-body {
  min-width: 0;
  width: 100%;
}

.grid-body h3,
.grid-body h2,
.grid-body h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.grid-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  border-radius: 1rem;
}
.grid-visual.compact {
  max-width: 120px;
}

.grid-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 18px 34px rgba(11, 76, 124, 0.05);
}

.product-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.product-card p {
  color: var(--color-muted);
  line-height: 1.75;
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(37, 166, 193, 0.12);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-visual {
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 34px rgba(11, 76, 124, 0.05);
  background: var(--color-surface);
}

.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-copy,
.hero-visual {
  width: 100%;
}

.hero-visual {
  align-self: center;
}

.feature-grid,
.work-grid,
.values {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-grid article:first-child {
  grid-column: 1 / -1;
}

.feature-card,
.work-cards article,
.values-list article {
  border-radius: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.4rem;
}

.feature-card h3,
.work-cards h3,
.values-list h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.work-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.timeline {
  position: relative;
  padding-left: 2.25rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-step {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -0.05rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(11, 76, 124, 0.12);
}

.timeline-step h3 {
  margin-top: 0;
  margin-left: 55px;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.75;
}

@media (max-width: 840px) {
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: 0.65rem;
  }

  .timeline-marker {
    left: 0;
  }
}

.work-cards article {
  min-height: 145px;
}

.values {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.values-list {
  display: grid;
  gap: 1rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 1.5rem;
}

.cta-panel h2,
.cta-panel .eyebrow {
  color: #fff;
  line-height: 1.25;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer {
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-top > * {
  min-width: 0;
}

.footer-newsletter h3,
.footer-links h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-newsletter p,
.site-footer p,
.footer-links li a {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .footer-links ul,
.site-footer .footer-links li,
.site-footer .footer-top ul,
.site-footer .footer-top li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .about-brand {

}

.site-footer .about-brand p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.footer-links li + li {
  margin-top: 0.75rem;
}

.footer-newsletter {
  display: grid;
  gap: 1rem;
}

.footer-newsletter form {
  display: grid;
  gap: 0.85rem;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font: inherit;
}

.footer-newsletter button {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  color: var(--color-muted);
}

.contrast,
.secondary,
.button.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contrast {
  background: var(--color-primary);
  color: #fff;
}

.secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.button.light {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid rgba(11, 76, 124, 0.12);
}

.contrast:hover,
.secondary:hover,
.button.light:hover,
.contrast:focus-visible,
.secondary:focus-visible,
.button.light:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(11, 76, 124, 0.08);
}

@media (max-width: 960px) {
  .feature-grid,
  .work-grid,
  .values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .nav-toggle-label {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-inline: 0.5rem;
    box-sizing: border-box;
  }

  .primary-menu {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .nav-toggle:checked + .nav-toggle-label + .primary-menu {
    display: block;
  }

  .primary-menu ul {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.4rem;
  }

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

  .hero-visual,
  .work-cards article,
  .feature-card,
  .values-list article {
    width: 100%;
  }

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