@font-face {
  font-family: "Lato";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Lato-Light.woff2") format("woff2"),
       url("fonts/Lato-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Lato-Regular.woff2") format("woff2"),
       url("fonts/Lato-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Lato-Bold.woff2") format("woff2"),
       url("fonts/Lato-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Lato-Black.woff2") format("woff2"),
       url("fonts/Lato-Black.ttf") format("truetype");
}

:root {
  --legl-navy: #091C42;
  --legl-navy-soft: #14264d;
  --legl-grey: #F3F3F6;
  --legl-grey-mid: #e1e3ec;
  --legl-teal: #3ad6a8;
  --legl-teal-dark: #1fa680;
  --text: #091C42;
  --text-muted: #5a6478;
  --border: #e1e3ec;
  --shadow: 0 4px 24px rgba(9, 28, 66, 0.08);
  --danger: #c4364c;
  --danger-bg: #fde8eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--legl-grey);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.hero {
  background: var(--legl-navy);
  color: white;
  text-align: center;
  padding: 56px 24px 80px;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  height: 56px;
  width: auto;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero .subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-top: 12px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

main {
  max-width: 720px;
  margin: -48px auto 48px;
  padding: 0 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card h2 {
  margin-top: 0;
  color: var(--legl-navy);
  font-weight: 700;
  font-size: 24px;
}

.card h3 {
  color: var(--legl-navy);
  font-weight: 700;
  margin-top: 28px;
  font-size: 18px;
}

.hidden { display: none; }

label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--legl-navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  margin-top: 8px;
  font-family: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  background: white;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--legl-teal);
  box-shadow: 0 0 0 3px rgba(58, 214, 168, 0.18);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

button {
  background: var(--legl-teal);
  color: var(--legl-navy);
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.2px;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:hover { background: var(--legl-teal-dark); color: white; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(9, 28, 66, 0.2);
  border-top-color: var(--legl-navy);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-input-wrapper {
  position: relative;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  background: white;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}

.search-results.visible { display: block; }

.search-results li {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.search-results li:last-child { border-bottom: none; }
.search-results li:hover,
.search-results li[aria-selected="true"] { background: var(--legl-grey); }

.subtitle { color: var(--text-muted); font-weight: 300; }

.cta {
  background: var(--legl-grey);
  border-left: 4px solid var(--legl-teal);
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--legl-navy);
  margin: 16px 0 24px;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-error.visible { display: block; }

.results-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  word-break: break-word;
}

tr:last-child td { border-bottom: none; }

th {
  background: var(--legl-grey);
  color: var(--legl-navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
}

td { color: var(--text); }

.calendly-inline-widget {
  min-height: 720px;
  width: 100%;
}

.footer {
  background-color: #091c42;
  padding-top: 30px;
  margin-top: 48px;
  --neutral--000: #ffffff;
  --neutral--300: #c5cad3;
  --neutral--800: #253658;
  --neutral--900: #091c42;
  --spacing--s: 16px;
}

.footer * {
  box-sizing: border-box;
}

.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.footer-container {
  max-width: 996px;
  padding-left: 18px;
  padding-right: 18px;
}

.footer-row {
  border-bottom: 1px solid var(--neutral--800);
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  display: block;
}

.footer-row.footer-flex {
  align-items: center;
  padding: 20px 20px 12px 24px;
  display: flex;
}

.footer-logo {
  width: 94px;
  height: auto;
  display: block;
}

.footer-certified-logos {
  text-align: right;
  height: 83px;
}

.footer-certified-logos-image {
  height: 100%;
  margin-left: 7px;
  display: inline-block;
  vertical-align: middle;
}

.footer-certified-logos-image.footer-certified-logos-image-ism {
  height: 91%;
  margin-left: 6px;
}

.footer-certificate-text {
  color: var(--neutral--300);
  text-align: right;
  margin-top: 11px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 11.5px;
  line-height: 11px;
  text-decoration: none;
  display: block;
}

.footer-certificate-text.hide {
  display: none;
}

.footer-socials {
  padding: 0 18px;
  padding-top: 10px;
  padding-bottom: 11px;
}

.footer-social-link {
  padding: 6px 12px 6px 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-social-link:hover {
  color: var(--neutral--000);
  text-decoration: underline;
}

.footer-social-icon {
  margin-right: 4px;
}

.footer-basic-link {
  color: var(--neutral--000);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: inline;
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.w-list-unstyled {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.w-layout-hflex {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
}

.footer-nav {
  width: 100%;
  margin-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.footer-nav-list {
  padding-right: var(--spacing--s);
  color: var(--neutral--000);
  flex: 0 auto;
  min-width: 18.5%;
  margin-bottom: 0;
  padding-left: 0;
}

.footer-nav-list-item-simple {
  align-self: center;
  margin-bottom: 0;
}

.footer-nav-link {
  color: var(--neutral--000);
  margin-bottom: 0;
  padding: 6px 0 6px 12px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: block;
}

.footer-nav-link:hover {
  text-decoration: underline;
}

.footer-details {
  padding: 16px 16px 32px;
}

.footer-details-text {
  color: var(--neutral--300);
  padding-right: 2px;
  font-size: 12px;
  line-height: 16px;
  display: inline;
}

.underline {
  text-decoration: underline;
}

.hide {
  display: none;
}

/* ============================================================
   RESPONSIVE: Tablet (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 70px; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 16px; }
  .hero-logo { height: 48px; }

  main {
    margin: -32px auto 32px;
    padding: 0 16px;
  }

  .card { padding: 24px; border-radius: 14px; }
  .card h2 { font-size: 20px; }
  .card h3 { font-size: 16px; margin-top: 20px; }

  label { font-size: 12px; margin-bottom: 14px; }
  input[type="text"], input[type="email"], select { padding: 12px 14px; font-size: 16px; }
  button { padding: 14px 20px; font-size: 15px; }

  .calendly-inline-widget { min-height: 600px; }

  th, td { padding: 10px 12px; font-size: 13px; }

  .footer-row.footer-flex {
    flex-flow: column;
    padding-left: 0;
    padding-right: 0;
  }
  .footer-nav {
    flex-wrap: wrap;
    grid-row-gap: 24px;
  }
  .footer-nav-list {
    min-width: 50%;
  }
  .footer-certified-logos {
    text-align: center;
    border-top: 1px solid #263658;
    width: 100%;
    margin-top: 14px;
    padding-top: 18px;
  }
}

/* ============================================================
   RESPONSIVE: Phone (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 36px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .hero .subtitle { font-size: 15px; }
  .hero-logo { height: 42px; }

  main {
    margin: -28px auto 24px;
    padding: 0 12px;
  }

  .card { padding: 20px; border-radius: 12px; }
  .card h2 { font-size: 18px; }
  .card h3 { font-size: 15px; }

  .calendly-inline-widget { min-height: 540px; }

  .footer-nav-list { min-width: 100%; }
  .footer-logo { width: 70px; }
  .footer-certified-logos {
    height: auto;
    flex-wrap: wrap;
    padding: 18px 12px;
  }
  .footer-certified-logos-image {
    height: 56px;
    margin: 4px;
  }
  .footer-details { padding: 16px 12px 28px; }
  .footer-details-text { font-size: 11px; }
}

@media (max-width: 320px) {
  .hero h1 { font-size: 22px; }
  .hero .subtitle { font-size: 14px; }
  .card { padding: 16px; }
  .card h2 { font-size: 16px; }
  button { padding: 12px 16px; font-size: 14px; }
}
