/* ==========================================================================
   ImproveMentors — Design System & Stylesheet
   Brand Palette: Navy #03294d | Teal #057485 | Surface #f7f7f5 | Ink #191919
   Typography: League Spartan (Headings) | Nunito Sans (Body) | Noto Sans Mono
   ========================================================================== */

:root {
  --navy: #03294d;
  --navy-dark: #021c35;
  --navy-mid: #0a3d6e;
  --teal: #057485;
  --teal-hover: #045f6d;
  --teal-light: #0a96ab;
  --teal-tint: #e8f4f6;
  --surface: #f7f7f5;
  --surface-alt: #eef2f5;
  --white: #ffffff;
  --ink: #191919;
  --ink-soft: #4a5562;
  --ink-muted: #667483;
  --border: #e1e7ec;
  --shadow-sm: 0 2px 10px rgba(3, 41, 77, 0.06);
  --shadow-md: 0 12px 32px rgba(3, 41, 77, 0.1);
  --shadow-lg: 0 20px 50px rgba(3, 41, 77, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-heading: 'League Spartan', 'Spartan', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Noto Sans Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1200px;
  --header-h: 82px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.65em;
  font-weight: 700;
}

h1, h2, h3 {
  text-wrap: balance;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

:focus-visible {
  outline: 2.5px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--navy-dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid #7de2f0;
  box-shadow: var(--shadow-lg);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

h1 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.18rem; }

p {
  margin: 0 0 1.1em;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

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

.container--narrow {
  width: min(100% - 2.5rem, 860px);
  margin-inline: auto;
}

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

/* ---------- Top Utility Bar & Sticky Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.topbar__contacts,
.topbar__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 41, 77, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(2, 28, 53, 0.25);
  background: rgba(3, 41, 77, 0.99);
}

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

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

.site-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-caret {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}

.nav-item--has-dropdown:hover .nav-caret,
.nav-item--has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 0.55rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.62rem 0.9rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
}

.nav-dropdown a:hover {
  background: var(--teal-tint);
  color: var(--teal);
}

.header-cta {
  margin-left: 0.5rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(5, 116, 133, 0.28);
}

.btn--primary:hover {
  background: var(--teal-hover);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(5, 116, 133, 0.36);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(3, 41, 77, 0.22);
}

.btn--navy:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.86rem;
}

/* ---------- Eyebrows & Section Headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: #7de2f0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 3rem;
}

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

.section-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
}

.section--surface {
  background: var(--surface);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.84);
}

.section--gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal) 100%);
  color: var(--white);
}

.section--gradient h2,
.section--gradient h3 {
  color: var(--white);
}

.section--gradient p {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Hero Sections ---------- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(5.5rem, 11vw, 8.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(2, 28, 53, 0.92) 0%, rgba(3, 41, 77, 0.82) 55%, rgba(5, 116, 133, 0.68) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.6vw, 4.35rem);
  line-height: 1.08;
}

.hero h1 span {
  color: #6cdbe9;
}

.hero__lead {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.page-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(3.75rem, 8vw, 5.75rem) 0;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(2, 28, 53, 0.93) 0%, rgba(3, 41, 77, 0.84) 60%, rgba(5, 116, 133, 0.72) 100%);
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.9rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #7de2f0;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------- Grids & Split Layouts ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5-balanced {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid--5-balanced > :nth-child(-n+3) {
  grid-column: span 2;
}
.grid--5-balanced > :nth-child(n+4) {
  grid-column: span 3;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 116, 133, 0.35);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.card__title a {
  color: var(--navy);
}

.card__title a:hover {
  color: var(--teal);
}

.card__text {
  font-size: 0.96rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

.card__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link:hover {
  color: var(--navy);
  gap: 0.65rem;
}

/* Feature / Icon Cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.feature-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.feature-card--dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 226, 240, 0.5);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
}

.feature-card--dark .feature-card__icon {
  background: rgba(108, 219, 233, 0.18);
  color: #7de2f0;
}

/* Methodology / Expertise Pills Grid */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.pill-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--navy);
  background: var(--teal-tint);
}

.pill-card--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  border-left: 4px solid #6cdbe9;
  color: var(--white);
  box-shadow: none;
}

.pill-card--dark:hover {
  background: rgba(255, 255, 255, 0.13);
}

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card__avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--teal-tint);
  box-shadow: 0 8px 20px rgba(3, 41, 77, 0.12);
}

.team-card__role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.team-card__name {
  margin-bottom: 0;
  font-size: 1.35rem;
}

/* ---------- Accreditation & Trust Strip ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.trust-card__badge {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Tabs (AI Industries, Power Platform) ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.tab-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.tab-panel.is-active {
  display: block;
}

/* ---------- Accordion / FAQ ---------- */
.accordion {
  display: grid;
  gap: 0.85rem;
}

.accordion__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.accordion__trigger:hover {
  color: var(--teal);
}

.accordion__icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal);
  transition: transform var(--transition);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  display: none;
  padding: 0 1.5rem 1.35rem;
  color: var(--ink-soft);
}

.accordion__item.is-open .accordion__body {
  display: block;
}

/* ---------- Checklists ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.95rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section--navy .check-list li {
  color: rgba(255, 255, 255, 0.88);
}

.section--navy .check-list li::before {
  background: rgba(108, 219, 233, 0.2);
  color: #7de2f0;
}

/* ---------- Stats Row ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.stat-box__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 800;
  color: #7de2f0;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-box__label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(5, 116, 133, 0.15);
}

.form-control.is-invalid {
  border-color: #c92a2a;
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.12);
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status--ok { background: #e6f7ef; color: #0f5132; border: 1px solid #badbcc; }
.form-status--err { background: #fdecec; color: #842029; border: 1px solid #f5c2c7; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Blog / KnowledgeHub ---------- */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-search {
  min-width: 260px;
  max-width: 380px;
  flex: 1;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Article prose */
.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.25rem;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.82;
  color: #2c3742;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.32rem;
}

.prose h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: var(--navy);
}

.prose img {
  border-radius: var(--radius-md);
  margin: 1.75rem auto;
  box-shadow: var(--shadow-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.94rem;
  overflow-x: auto;
  display: block;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.95rem;
  text-align: left;
}

.prose thead th {
  background: var(--navy);
  color: var(--white);
}

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.prose video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
  background: var(--navy-dark);
}

.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(125, 226, 240, 0.2);
  color: #7de2f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-badge--dark {
  background: var(--teal-tint);
  color: var(--teal);
}

/* ---------- CTA Banner ---------- */
.cta-band {
  background: linear-gradient(125deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4.25rem 0 2rem;
}

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

.footer-brand img {
  height: 52px;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: #7de2f0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.nav-mobile-contact {
  display: none;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25d366;
  color: #062a16 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  line-height: 1.2;
}

.whatsapp-link:hover {
  background: #1ebe5b;
  color: #041d0f !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-link--topbar {
  padding: 0.28rem 0.72rem;
  font-size: 0.78rem;
}

.whatsapp-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-social a.social-wa {
  background: #25d366;
  color: #062a16;
}

.footer-social a.social-wa:hover {
  background: #1ebe5b;
  color: #041d0f;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5-balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5-balanced > :nth-child(-n+3),
  .grid--5-balanced > :nth-child(n+4) { grid-column: auto; }
  .grid--5-balanced > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-dark);
    padding: 1.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
    z-index: 999;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-link {
    padding: 0.85rem 1rem;
    min-height: 44px;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0 0.5rem 0.75rem;
  }
  .nav-dropdown a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.72rem 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #7de2f0;
  }
  .header-cta {
    margin: 1rem 0 0;
    width: 100%;
  }
  .header-cta .btn {
    width: 100%;
    min-height: 46px;
  }
  .nav-mobile-contact {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .nav-mobile-contact a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.94rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-mobile-contact .whatsapp-link {
    justify-content: center;
    width: 100%;
    min-height: 46px;
  }
  .split, .trust-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .grid--5-balanced, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid--5-balanced > :last-child:nth-child(odd) {
    grid-column: auto;
  }
  .trust-card {
    flex-direction: column;
    text-align: center;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .tab-btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .card:hover,
  .card:hover .card__media img,
  .feature-card:hover,
  .pill-card:hover,
  .team-card:hover,
  .footer-social a:hover,
  .whatsapp-link:hover {
    transform: none;
  }
}
