/* ============================================================
   STAMFORD ASSOCIATES LLP — MAIN STYLESHEET
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #0b1c3a;
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================================
   LEGACY UTILITY CLASSES (kept for compatibility)
   ============================================================ */
.text  { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #003366; }
.htext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #003366; }
a.left { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #0d1542; text-decoration: none; }
a.left:hover { text-decoration: underline; }
a.dn   { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #0d1542; text-decoration: none; }
a.dn:hover { color: #016fc8; }
.cop   { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #000; }
.ht    { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000; font-weight: bold; }
.ht1   { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000066; font-weight: bold; }
.txt   { border: 1px solid #003399; font-size: 11px; background: #eef7f6; color: #003399; font-family: Verdana; }
.button { border: 1px solid #000; font-size: 11px; background: #fff; color: #000; font-family: Verdana; }
.txtcp { border: 1px solid #000; font-size: 11px; background: #fff; color: #000; font-family: Verdana; }
.cont  { font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #000; }
.t1    { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #032d61; text-decoration: none; }
a.read { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #016fc8; text-decoration: none; }
a.read:hover { text-decoration: underline; color: #0158a0; }
a.site { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #003366; text-decoration: none; }
a.site:hover { color: #0066CC; }

/* ============================================================
   WAVE RIBBON (above header)
   ============================================================ */
.hero-wave-wrap {
  height: 32px;
  /* Dark base matches the header so scallops blend in seamlessly */
  background-color: #0b1c3a;
  /* Blue scallop shapes point downward into the header */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L120,0 L120,28 C90,28 90,44 60,44 C30,44 30,28 0,28 Z' fill='%23016fc8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 88px 100%;
  background-position: top;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #0b1c3a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__logo {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.site-brand__text {
  display: block;
  line-height: 1.15;
}

.site-brand__name {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Tagline intentionally hidden from header */
.site-brand__tagline { display: block; font-size: 10px; font-weight: 500; opacity: 0.65; letter-spacing: 0.03em; margin-top: 1px; }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
}

.nav-item {
  position: relative;
}

.site-nav > a,
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.site-nav > a:hover,
.nav-item > a:hover,
.site-nav > a.nav-active,
.nav-item > a.nav-active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Dropdown chevron */
.nav-chevron {
  display: inline-block;
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-item:hover .nav-chevron,
.nav-item.nav-open .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #dde5ed;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 6px;
  padding-top: 10px;
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block !important;
  padding: 9px 12px !important;
  border-radius: 6px !important;
  color: #0b1c3a !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.nav-dropdown a:hover {
  background: #e8f3fc !important;
  color: #0158a0 !important;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 10px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
  font-size: 26px;
}

/* Japanese language nav button */
.nav-jp-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-left: 6px;
  border: 1.5px solid rgba(1,111,200,0.55);
  border-radius: 6px;
  color: #7cbde8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none;
  background: rgba(1,111,200,0.1);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-jp-btn:hover {
  background: rgba(1,111,200,0.22) !important;
  border-color: rgba(1,111,200,0.8) !important;
  color: #fff !important;
}

/* Sidebar contact CTA — visually distinct from service links */
.side-cta {
  display: block !important;
  margin-top: 10px !important;
  padding: 13px 16px !important;
  background: #016fc8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}
.side-cta:hover {
  background: #0158a0 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(1,111,200,0.3) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 20px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.button-primary {
  background: #016fc8;
  color: #fff;
  border-color: #016fc8;
}

.button-primary:hover {
  background: #0158a0;
  border-color: #0158a0;
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button-secondary:hover {
  background: rgba(1,111,200,0.08);
}

/* Secondary button variants for dark backgrounds */
.home-hero .button-secondary {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.45);
}
.home-hero .button-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #016fc8;
}

.home-hero .eyebrow,
.page-hero .eyebrow { color: #7cbde8; }

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.home-page { background: #f4f7fb; }
.home-page main { overflow: hidden; }

.home-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #0b1c3a url("../images/hero-background.jpg") center right / cover no-repeat;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,28,40,0.88) 45%, rgba(15,28,40,0.45) 100%);
}

.home-hero__content {
  position: relative;
  max-width: 720px;
  padding: 80px 24px;
  margin-left: max(24px, calc((100% - 1180px) / 2));
  color: #fff;
}

.home-hero h1 {
  margin: 0;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.8px;
}

.home-hero__intro {
  max-width: 600px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

/* CTA buttons — prominent above stats */
.home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Stats — subtle, below buttons */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats dt {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin: 0;
}

.hero-stats dd {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.3px;
}

/* ============================================================
   HOME PAGE — SECTIONS
   ============================================================ */
.home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.home-section--intro {
  max-width: none;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-bottom: 48px;
}

.home-section--bg-white {
  max-width: none;
  background: #fff;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

.home-grid { display: grid; gap: 44px; }

.home-grid--intro {
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.home-grid--intro > div > :first-child {
  margin-top: 0;
}

.home-section h2,
.home-contact h2 {
  margin: 0;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  color: #0b1c3a;
  letter-spacing: -0.4px;
}

.home-section p,
.home-contact p {
  font-size: 16px;
  line-height: 1.75;
  color: #2e3f50;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: block;
  padding: 24px;
  border: 1px solid #dde5ed;
  border-radius: 10px;
  background: #fff;
  color: #0b1c3a;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.service-card:hover {
  border-color: #016fc8;
  background: #f8fbff;
  box-shadow: 0 4px 16px rgba(1,111,200,0.1);
  transform: translateY(-2px);
}

.service-card span {
  display: block;
  margin-bottom: 18px;
  font-size: 10.5px;
  font-weight: 800;
  color: #016fc8;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1c3a;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4f6070;
}

/* ============================================================
   CREDENTIALS — ANIMATED CAROUSEL
   ============================================================ */
.home-section--credentials {
  background: #e8f3fc;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 48px;
  align-items: center;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

.cred-carousel {
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.cred-carousel::before,
.cred-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.cred-carousel::before { left: 0;  background: linear-gradient(to right, #e8f3fc, transparent); }
.cred-carousel::after  { right: 0; background: linear-gradient(to left,  #e8f3fc, transparent); }

.cred-carousel__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: credScroll 30s linear infinite;
}

.cred-carousel__track:hover { animation-play-state: paused; }

@keyframes credScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Credential items (carousel + grid) */
.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 16px 18px 28px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dde5ed;
  color: #0b1c3a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  flex-shrink: 0;
  min-width: 140px;
  height: 180px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.credential-item:hover {
  border-color: #016fc8;
  box-shadow: 0 4px 12px rgba(1,111,200,0.12);
}

.credential-item img {
  display: block;
  max-width: 108px;
  width: auto;
  max-height: 54px;
  height: auto;
  object-fit: contain;
  margin-bottom: auto;
  margin-top: auto;
}

.credential-item span {
  flex-shrink: 0;
  padding-top: 12px;
}

.cred-carousel .credential-item {
  min-width: 176px;
  height: 210px;
}

.cred-carousel .credential-item img {
  max-width: 148px;
  max-height: 82px;
}

/* Grid layout for resources page */
.credential-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.credential-list .credential-item { min-width: 0; height: auto; min-height: 130px; }
.credential-list--resources { margin: 24px 0 34px; }

.credential-list--resources .credential-item {
  min-height: 190px;
}

.credential-list--resources .credential-item img {
  max-width: 170px;
  max-height: 92px;
}

/* ============================================================
   INDUSTRY CLOUD
   ============================================================ */
.industry-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-cloud li {
  border: 1px solid #dde5ed;
  border-radius: 20px;
  background: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #0b1c3a;
}

/* ============================================================
   HOME — PARTNERS & CONTACT
   ============================================================ */
.home-section--partners {
  max-width: none;
  background: #fff;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

.home-section--partners .home-grid--intro > div + div {
  padding-top: 0;
}

.home-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  max-width: none;
  background: #0b1c3a;
  padding: 64px max(24px, calc((100% - 1180px) / 2)) 80px;
}

.home-contact h2 { color: #fff; }
.home-contact p { color: rgba(255,255,255,0.72); }
.home-contact a:not(.button-primary):not(.button-secondary) { color: rgba(255,255,255,0.72); }
.home-contact .button-secondary {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.45);
}
.home-contact .button-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.home-contact__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
}

/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.why-choose-item {
  padding: 22px 24px;
  border: 1px solid #dde5ed;
  border-radius: 10px;
  background: #fff;
}

.why-choose-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0b1c3a;
}

.why-choose-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4f6070;
}

.why-choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f3fc;
  color: #016fc8;
  margin-bottom: 14px;
}
.why-choose-icon svg { display: block; }

/* ============================================================
   FOOTER — SITEMAP
   ============================================================ */
.site-footer {
  background: #06111f;
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 0;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.footer-col p {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.58);
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.footer-uen {
  font-size: 12px !important;
  color: rgba(255,255,255,0.3) !important;
  margin-bottom: 16px !important;
}

.footer-antea {
  display: inline-block !important;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none;
}
.footer-antea:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.85) !important; }

.site-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
}

.site-footer__bottom a {
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.site-footer__bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   INNER PAGES
   ============================================================ */
.inner-page { background: #f4f7fb; color: #0b1c3a; }

.page-hero {
  background: #0b1c3a;
  padding: 52px max(48px, calc((100% - 1180px) / 2 + 24px)) 44px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.5px;
}

.page-hero > p,
.page-hero__intro {
  max-width: 660px;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,0.72);
  margin: 14px 0 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }

.breadcrumb__sep { color: rgba(255,255,255,0.25); font-size: 12px; }

/* Page content shell */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 84px;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.contact-layout {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.page-panel,
.side-panel,
.contact-form {
  background: #fff;
  border: 1px solid #dde5ed;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(1,111,200,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.page-panel h2,
.side-panel h2,
.contact-form h2 {
  margin: 0 0 14px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  color: #0b1c3a;
  letter-spacing: -0.3px;
}

.page-panel p,
.side-panel p,
.contact-form p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #2e3f50;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel a,
.resource-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #dde5ed;
  border-radius: 8px;
  color: #016fc8;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.side-panel a:hover,
.resource-list a:hover {
  border-color: #016fc8;
  background: #e8f3fc;
  color: #0158a0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border-left: 3px solid #016fc8;
  border-radius: 6px;
  background: #f4f7fb;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1c3a;
}

.resource-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { display: grid; gap: 16px; }

.contact-form label {
  font-size: 15px;
  font-weight: 700;
  color: #26384a;
  line-height: 1.25;
}

.required-marker {
  color: #d22f27;
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: -2px 0 0;
  color: #2e3f50;
  font-size: 14px;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  color: #d22f27;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid #dde5ed;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  background: #fff;
  color: #0b1c3a;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #016fc8;
  box-shadow: 0 0 0 3px rgba(1,111,200,0.12);
}

.turnstile-wrap {
  min-height: 65px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.form-actions input {
  width: auto;
  cursor: pointer;
  padding: 11px 20px;
  font-family: Aptos, "Aptos Display", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}

.form-actions input.button-primary {
  background: #016fc8;
  border-color: #016fc8;
  color: #fff;
}

.form-actions input.button-primary:disabled {
  background: #8fb8da;
  border-color: #8fb8da;
  cursor: wait;
}

.form-actions input.button-primary:hover,
.form-actions input.button-primary:focus {
  background: #0158a0;
  border-color: #0158a0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(1,111,200,0.28);
}

.form-actions input.button-secondary {
  background: transparent;
  border-color: #0b1c3a;
  color: #0b1c3a;
}

.form-actions input.button-secondary:hover,
.form-actions input.button-secondary:focus {
  background: rgba(1,111,200,0.08);
  border-color: #016fc8;
  color: #0158a0;
}

/* ============================================================
   PARTNERS PAGE
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.partner-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border: 1px solid #dde5ed;
  border-radius: 10px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(1,111,200,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.partner-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #0b1c3a;
  letter-spacing: -0.3px;
}

.partner-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
}

.partner-role         { margin-top: 0 !important; font-weight: 700; color: #016fc8; }
.partner-qualifications { font-weight: 700; color: #4f6070; }

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.partner-list li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #dde5ed;
  border-left: 3px solid #016fc8;
  border-radius: 8px;
  background: #f8fbff;
}

.partner-list__role {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #0b1c3a;
}

.partner-list__details,
.partner-list__experience {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4f6070;
}

.partner-list__experience {
  font-weight: 700;
  color: #016fc8;
}

/* Circle partner photos */
.partner-photo {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #e8f3fc;
  border: 3px solid #e8f3fc;
  box-shadow: 0 0 0 3px rgba(1,111,200,0.12);
}

.partner-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #016fc8;
}

.about-cta { margin-top: 22px; }

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding: 10px 20px;
    position: relative;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand__text {
    min-width: 0;
  }

  .site-brand__name {
    font-size: clamp(15px, 4.6vw, 18px);
    letter-spacing: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }

  .site-nav.nav-open { display: flex; }

  .nav-item { width: 100%; }

  .site-nav > a,
  .nav-item > a {
    padding: 11px 10px;
    font-size: 14px;
  }

  /* Mobile dropdowns: shown inline below trigger */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 4px 0 4px 14px;
    margin-top: 2px;
    display: none;
  }

  .nav-item.nav-open .nav-dropdown { display: block; }
  /* Disable hover-based dropdown on mobile */
  .nav-item:hover .nav-dropdown { display: none; }
  .nav-item.nav-open .nav-dropdown { display: block; }

  .nav-dropdown a {
    color: rgba(255,255,255,0.7) !important;
    background: transparent !important;
    font-size: 13.5px !important;
  }

  .nav-dropdown a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.07) !important;
  }

  /* Hero */
  .home-hero { min-height: 440px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero__intro { font-size: 16px; }

  /* Layouts */
  .home-grid--intro,
  .home-contact { display: block; }

  .home-grid--intro > div + div {
    padding-top: 20px;
  }

  .home-contact__actions { margin-top: 24px; }

  .home-section--credentials {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero-stats { gap: 22px; }

  .two-column, .contact-layout { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .partner-list { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-choose-grid { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 34px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .site-header__inner { padding: 10px 22px; }

  .site-brand {
    gap: 11px;
  }

  .site-brand__logo {
    width: 38px;
    height: 38px;
  }

  .site-brand__tagline {
    display: none;
  }

  .home-hero {
    min-height: 400px;
    background-position: center;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(6,17,31,0.9) 0%, rgba(6,17,31,0.86) 100%);
  }

  .home-hero__content { padding: 56px 22px 52px; margin-left: 0; }
  .home-hero h1 { font-size: 28px; letter-spacing: -0.4px; text-shadow: 0 2px 14px rgba(0,0,0,0.28); }
  .home-hero__intro { font-size: 15px; color: rgba(255,255,255,0.9); }
  .hero-stats { gap: 20px; }
  .hero-stats dd { font-size: 19px; }

  .home-section { padding: 48px 22px; }
  .home-section--intro,
  .home-section--credentials { padding-left: 22px; padding-right: 22px; }
  .home-contact { padding: 44px 22px 60px; }
  .home-section h2, .home-contact h2 { font-size: 26px; }

  .home-section--partners .home-grid--intro > div + div {
    padding-top: 20px;
  }

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

  .page-hero { padding: 40px 16px 36px; }
  .page-hero h1 { font-size: 27px; }
  .page-shell { padding: 24px 16px 56px; }

  .page-panel,
  .side-panel,
  .contact-form { padding: 20px; }

  .partner-card { grid-template-columns: 1fr; }
  .partner-photo { width: 90px; height: 90px; }

  .site-footer { padding: 40px 16px 0; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 24px; }
}

@media (max-width: 420px) {
  .site-header__inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-brand__logo {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    padding: 8px;
  }
}
