@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Nunito_Sans_700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Nunito_Sans_regular.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Lato_regular.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Lato_700.woff2") format("woff2");
}

:root {
  --primary: #1b3358;
  --secondary: #006daa;
  --primary-rgb: 27, 51, 88;
  --secondary-rgb: 0, 109, 170;
  --bg: #ffffff;
  --muted: #5f6b7a;
  --border: #e2e8ee;
  --soft: #f4f7fb;
  --container: 1160px;
  --header-h: 76px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 51, 88, 0.08);
  --shadow-soft: 0 4px 16px rgba(27, 51, 88, 0.06);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--primary);
  background: var(--bg);
  font-family: Lato, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.75rem;
  color: var(--primary);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,51,88,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}
.logo { flex: 0 0 auto; }
.logo img { height: 34px; width: auto; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  order: 3;
}
.nav-panel {
  order: 2;
  margin-left: auto;
  margin-right: 1rem;
}
.nav-panel-head,
.nav-mobile-cta,
.nav-backdrop { display: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: capitalize;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav > li { list-style: none; position: relative; }
.nav a {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover,
.nav a.active { color: var(--secondary); text-decoration: none; }
.nav .has-sub > button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--primary);
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav .has-sub > button:hover,
.nav .has-sub.open > button { color: var(--secondary); }
.chev {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform .2s ease;
}
.has-sub.open > button .chev { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  z-index: 70;
}
/* Invisible bridge above panel (safety for any residual gap) */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.dropdown.wide {
  min-width: min(920px, calc(100vw - 2rem));
  left: 50%;
  transform: translateX(-40%);
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  padding: 1rem 1.1rem;
}
.dropdown-col { min-width: 0; }
.dropdown-label {
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}
.dropdown a {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 400;
  text-transform: none;
}
.dropdown a:hover { background: var(--soft); color: var(--secondary); }
.has-sub.open > .dropdown { display: block; }
.has-sub.open > .dropdown.wide { display: grid; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #142744; color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border-color: #fff; }
.btn-secondary:hover { background: var(--soft); color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--secondary); color: #fff; }
.btn-accent:hover { background: #005994; color: #fff; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  min-height: min(72vh, 580px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(27,51,88,0.92) 0%, rgba(27,51,88,0.72) 42%, rgba(0,109,170,0.42) 100%),
    var(--hero-image) center/cover no-repeat;
}
.hero-inner { padding: 5rem 0 4.25rem; max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.08rem; max-width: 38rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.65rem; }
.hero.compact { min-height: 340px; }
.hero.compact .hero-inner { padding: 4rem 0; }

/* Sections */
.section { padding: 4.75rem 0; }
.section.alt { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.section-head h2 { margin-bottom: 0.65rem; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; align-items: stretch; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: #c9d7e6;
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card h3 { margin-bottom: 0.45rem; font-size: 1.15rem; }
.card p {
  color: var(--muted);
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.card > .btn { align-self: flex-start; margin-top: auto; }
.icon-row {
  width: 56px; height: 56px; object-fit: contain; margin-bottom: 0.85rem;
}
.pill {
  display: inline-block;
  background: rgba(0,109,170,0.1);
  color: var(--secondary);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* Pricing */
.plan-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 2rem;
}
.plan-toggle-note { margin: 0; font-size: 0.92rem; }
.plan-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  background: #fff;
  margin: 0;
}
.plan-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
}
.plan-toggle button.active {
  background: var(--primary);
  color: #fff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  border: 1px solid #d5e6f3;
  border-radius: 14px;
  background: #fff;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.price-card > .btn { margin-top: auto; align-self: stretch; }
.price-card h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.price-card .meta { color: var(--muted); font-size: 0.85rem; }
.price-card .amount {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}
.price-card .amount small { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  flex: 1;
}
.price-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--primary);
}
.price-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.75rem;
  top: 0.15rem;
}
.price-card.featured {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(0,109,170,0.12);
}

/* Forms */
.form {
  display: grid;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--primary);
  background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.88);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}
.footer-grid > * { min-width: 0; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.footer-brand p { margin: 0 0 0.85rem; max-width: 28rem; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.85;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(27,51,88,0.95), rgba(0,109,170,0.88)),
    url("../img/home/photo-change.jpg") center/cover;
  color: #fff;
  border-radius: 20px;
  padding: 2.65rem 2.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.92); max-width: 36rem; }
.cta-band .btn { flex-shrink: 0; }

.list-check { list-style: none; padding: 0; margin: 1rem 0; }
.list-check li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 0.85rem;
  border: 1px solid var(--border);
}
.media-frame img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 560px;
  margin-inline: auto;
  background: #fff;
  border-radius: 10px;
}
.media-frame.diagram {
  background: var(--soft);
  border: 1px solid rgba(27, 51, 88, 0.08);
  padding: 1rem;
}
.media-frame.diagram img {
  max-height: 640px;
  filter: none;
  background: transparent;
}
.media-frame img.light-photo {
  background: #fff;
  filter: none;
  max-height: none;
  border-radius: 10px;
}

.values-grid .card { text-align: left; }
.values-grid .card img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 0.75rem; }

.card img.thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--soft);
  padding: 0.75rem;
}
.card img.thumb.light {
  background: linear-gradient(180deg, #eef4f9 0%, #f7fafc 100%);
  object-fit: contain;
  padding: 0.85rem 0.75rem;
}
.card-module {
  padding-bottom: 1.25rem;
}
.card-module h3 {
  font-size: 1.12rem;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100dvh;
    margin: 0;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(27,51,88,0.14);
    transform: translateX(105%);
    transition: transform .25s ease;
    z-index: 80;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.nav-open .nav-panel { transform: translateX(0); }
  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
  }
  .nav-close {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    font: inherit;
    cursor: pointer;
    color: var(--primary);
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
  .nav > li > a,
  .nav .has-sub > button {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.85rem;
    font-size: 1rem;
  }
  .dropdown,
  .dropdown.wide {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    transform: none;
    left: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--soft);
    padding: 0.35rem 0.35rem 0.6rem 0.6rem;
    margin: 0 0 0.35rem;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dropdown::before { display: none; }
  .has-sub.open > .dropdown,
  .has-sub.open > .dropdown.wide {
    display: grid;
  }
  .dropdown-label {
    margin-top: 0.45rem;
  }
  .nav-mobile-cta {
    display: block;
    padding: 0.75rem 0.35rem 1rem;
  }
  .nav-mobile-cta .btn { width: 100%; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(27,51,88,0.45);
    z-index: 70;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .nav-backdrop[hidden] { display: none !important; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .form-row, .pricing-grid, .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .pricing-grid > * { min-width: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding-top: 4rem; }
  .hero { min-height: min(70vh, 520px); }
  .section { padding: 3rem 0; }
  .container {
    width: 100%;
    max-width: var(--container);
    padding-inline: 1.15rem;
    box-sizing: border-box;
  }
  .site-footer { padding: 2.75rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.75rem;
  }
  .media-frame,
  .media-frame.diagram { max-width: 100%; }
  .media-frame img,
  .media-frame.diagram img {
    max-width: 100%;
    height: auto;
  }
}
