/* MERP — static site styles */

:root {
  --brand: #00a0e0;
  --brand-dark: #0077ad;
  --brand-deep: #00527a;
  --navy: #0b2239;
  --navy-2: #10314f;
  --ink: #1d3247;
  --muted: #5a7186;
  --bg: #ffffff;
  --bg-soft: #f2f6fa;
  --line: #dbe5ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 34, 57, 0.16);
  --container: 1140px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
}

a:hover {
  color: var(--brand-deep);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1.1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-2);
}

.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
}

.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.lang-switch {
  border: 1.5px solid var(--brand) !important;
  color: var(--brand-dark) !important;
}

.lang-switch:hover {
  background: var(--brand) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.55rem;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.25rem;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 1.05rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(0, 160, 224, 0.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(0, 119, 173, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--brand-deep) 130%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}

.hero h1 .brand-word {
  display: block;
  color: var(--brand);
  font-size: 0.72em;
  letter-spacing: 0.12em;
}

.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.9rem;
  max-width: 34ch;
}

.hero-figure img {
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 860px) {
  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
    max-width: 42ch;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 160, 224, 0.4);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

/* Split text + image rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split + .split {
  margin-top: 3.5rem;
}

.split .split-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split.flip .split-img {
  order: 2;
}

@media (max-width: 860px) {
  .section {
    padding: 3.25rem 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split.flip .split-img {
    order: 0;
  }
}

/* ---------- Benefit cards ---------- */

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

.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.benefit svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
}

.benefit strong {
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.45;
}

.icon-round {
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
}

/* ---------- Applications ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 980px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

.apps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.75rem;
}

.apps-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
}

.apps-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.security-card {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-lg);
}

.security-card h3 {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.security-card h3 svg {
  width: 22px;
  height: 22px;
  fill: var(--brand);
}

.security-card .ssl-label {
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 0.35rem;
}

.security-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 340px at 90% 120%, rgba(0, 160, 224, 0.4), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--brand-deep) 120%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Page hero (contact) ---------- */

.page-hero {
  background:
    radial-gradient(700px 380px at 80% -20%, rgba(0, 160, 224, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--brand-deep) 130%);
  color: #fff;
  padding: 3.5rem 0;
}

.page-hero h1 {
  color: #fff;
  margin: 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.4rem 0 0;
}

/* ---------- Contact ---------- */

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}

.office-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}

.office-card address {
  font-style: normal;
  margin: 0;
}

.contact-line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.contact-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.32rem;
  fill: var(--brand-dark);
}

.contact-line a {
  text-decoration: none;
  font-weight: 600;
}

.contact-line a:hover {
  text-decoration: underline;
}

#map {
  width: 100%;
  height: min(480px, 70vw);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.map-fallback {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.map-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ---------- Form ---------- */

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-inline: auto;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 160, 224, 0.18);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer img.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.45rem;
}

.footer-office + .footer-office {
  margin-top: 1rem;
}

.footer-office strong {
  color: #fff;
  display: block;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
