/* ============================================
   KAMDJOU Immigration Canada — Main Stylesheet
   ============================================ */

/* --- CSS Variables (KAMDJOU Diplomate Brand Tokens v1.0 — 2026-04-14) --- */
:root {
  /* Primary: Vert boréal (forest green) */
  --primary: #183928;
  --primary-light: #1F4E37;
  --primary-dark: #122920;

  /* Accent: Gold (used in logo + selective accents) */
  --accent: #B8952E;
  --accent-light: #D4A95C;
  --accent-dark: #8F6E1E;

  /* Semantic */
  --success: #1B5E20;
  --success-dark: #0D3B1A;
  --error: #C62828;
  --warning: #F57C00;
  --info: #1565C0;

  /* Neutrals (per Brand Tokens JSON) */
  --text: #141414;
  --text-light: #343A40;
  --text-muted: #6C757D;
  --bg: #FFFFFF;
  --bg-alt: #F5F3F0;
  --bg-dark: #122920;
  --border: #E9ECEF;
  --border-strong: #A5A6A8;

  /* Typography */
  --font-heading: "Orbitron", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-meta: "Darker Grotesque", "Nunito", sans-serif;

  /* Shadows, Spacing, Radius */
  --shadow: 0 2px 8px rgba(24, 57, 40, 0.1);
  --shadow-lg: 0 8px 30px rgba(24, 57, 40, 0.15);
  --shadow-md: 0 4px 16px rgba(24, 57, 40, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-mobile: 70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }

p {
  margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-cta {
  background: var(--success);
  color: #fff;
}

.btn-cta:hover {
  background: var(--success-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-alt);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.logo-mark {
  height: 42px;
  width: auto;
  display: block;
}

.logo-wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-wordmark-main {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-logo-mark {
  height: 50px;
  width: auto;
  display: block;
}
.footer-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.footer-logo-wordmark-main {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-logo-wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .logo-mark { height: 34px; }
  .logo-wordmark-main { font-size: 0.92rem; }
  .logo-wordmark-sub { font-size: 0.55rem; }
}
@media (max-width: 480px) {
  .logo-wordmark-sub { display: none; }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--primary-light);
  background: var(--bg-alt);
}

.nav-link.active {
  color: var(--primary);
  background: var(--bg-alt);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
}

.header-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a6bb5 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.6rem 1.1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge svg {
  flex-shrink: 0;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--primary);
}

/* --- Values / Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--primary);
}

.pillar-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.pillar-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* --- Consultation Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: var(--accent);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  border: 4px solid var(--accent);
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Pillar / KYC step lists (centered card, left-aligned list block) --- */
.ci-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem auto 0;
  max-width: max-content;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-light);
}

.ci-pillar-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.ci-pillar-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: -0.05em;
  font-size: 1.2rem;
  line-height: 1;
}

.ci-disclosure ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.ci-disclosure ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.ci-disclosure ul li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0.25rem;
  top: -0.05em;
  font-size: 1.2rem;
  line-height: 1;
}

/* --- Consultation Pricing Card --- */
.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-period {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- About Page --- */
.about-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.about-hero h1 {
  color: #fff;
}

.about-hero p {
  opacity: 0.9;
  max-width: 700px;
}

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

.bio-sidebar {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.bio-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--accent);

  /* Photo variant */
  object-fit: cover;
  object-position: center top;
}

.bio-name {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.bio-title {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.bio-credentials {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.bio-credentials li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.bio-credentials li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.bio-content h2 {
  margin-bottom: 1rem;
}

.bio-content p {
  color: var(--text-light);
  line-height: 1.8;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}

.vm-card h3 {
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vm-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Accreditations grid (default 3 cards). 2-card variant via .accred-grid-2 (post Dr K 2026-05-08, CCIC card removed). --- */
.accred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.accred-grid.accred-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
}

.accred-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition);
}

.accred-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.accred-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.accred-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.accred-logo.accred-logo-empty {
  display: none;
}

/* Bare logo container (no border, no padding, no bg). Per Dr K 2026-05-08 for ACCPI/CAPIC mark. */
.accred-logo.accred-logo-bare {
  width: auto;
  max-width: 280px;
  height: auto;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.accred-logo.accred-logo-bare img {
  width: 100%;
  height: auto;
  max-height: none;
}

/* Official CCIC bilingual Insignia (RCIC-IRB / CRIC-CISR) — fixed display ratio per Insignia Usage Guidelines (Jan 2022) */
.accred-logo.accred-logo-insignia {
  width: 220px;
  height: 80px;
  background: #fff;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
}

.accred-logo.accred-logo-insignia img {
  width: 100%;
  height: auto;
}

/* Typographic logo placeholder (compliance: CCIC corporate logo + recreated insignias forbidden per Jan 2022 Insignia Usage Guidelines) */
.accred-logo.accred-logo-typographic {
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 200px;
  height: 80px;
  padding: 0.5rem 1rem;
  gap: 0.15rem;
}

.accred-logo-acronym {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  line-height: 1;
}

.accred-logo-class {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 600;
}

.accred-card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.accred-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.accred-card p:last-of-type {
  margin-bottom: 1.25rem;
}

.accred-card .btn {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .accred-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 1.25rem;
  }
}

/* About-hero bio-section: fix empty space below short bio-content
   Bio-sidebar is taller than bio-content, leaving whitespace below the right column.
   Center bio-content vertically so it visually fills the row instead of leaving void. */
.about-hero {
  padding-bottom: 2rem;
}

.bio-section {
  align-items: stretch;
}

.bio-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .bio-section {
    align-items: start;
  }
  .bio-content {
    display: block;
  }
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-details li:last-child {
  border-bottom: none;
}

.contact-details svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-details strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: rgba(255,255,255,0.8);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Warning Box --- */
.warning-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box h4 {
  color: #e65100;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

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

.site-footer .footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.site-footer .logo-text {
  color: #fff;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-credential {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-credential small {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.footer-office {
  margin-bottom: 1rem;
}

.footer-office-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

.footer-address a {
  color: rgba(255,255,255,0.85);
}

.footer-address a:hover {
  color: var(--accent);
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-weight: 600;
  color: #25D366;
}

.footer-whatsapp:hover {
  color: #1ea854;
}

.footer-license {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-ccic a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-decoration: underline;
}

.footer-ccic a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-right: 0.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bio-section {
    grid-template-columns: 1fr;
  }

  .bio-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillar-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .pillar-icon {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }

  .pillar-card h3 {
    margin-bottom: 0.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps-grid::before {
    display: none;
  }

  .step-number {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-items {
    gap: 1.5rem;
  }

  .trust-item {
    font-size: 0.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-card {
    padding: 2rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .trust-items {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Mobile nav overlay --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ======================================================================
   Client Portal — added Phase 3
   ====================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr; }
}

.portal-card {
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius, 12px);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.portal-card-secondary {
  background: #f8f9fa;
}
.portal-card h3 { margin-top: 0; }
.portal-card h4 { margin-top: 0; }

.portal-subnav {
  background: #f8f9fa;
  border-top: 1px solid var(--border, #e5e5e5);
  border-bottom: 1px solid var(--border, #e5e5e5);
  padding: 0.6rem 0;
}
.portal-subnav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.portal-subnav-list a {
  color: var(--text, #1a1a1a);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.portal-subnav-list a:hover { background: #e9ecef; }
.portal-subnav-list a.active {
  background: var(--primary, #183928);
  color: #fff;
}
.portal-logout-form {
  display: inline;
  margin-left: auto;
}
.portal-logout-btn {
  background: none;
  border: 1px solid var(--border, #e5e5e5);
  color: #b00020;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.portal-logout-btn:hover { background: #fdecea; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
.dashboard-side {
  display: grid;
  gap: 1rem;
}

.portal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.portal-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #d3d3d3;
}
.portal-steps li.done {
  border-left-color: #2e7d32;
  background: #f0f9f3;
}
.portal-steps li.current {
  border-left-color: var(--primary, #183928);
  background: #fff8e1;
}
.portal-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d3d3d3;
  font-weight: 700;
}
.portal-steps li.done .step-num { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.portal-steps li.current .step-num { background: var(--primary, #183928); color: #fff; border-color: var(--primary, #183928); }
.step-status { color: #2e7d32; font-weight: 600; font-size: 0.85rem; margin-left: 0.5rem; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

.kyc-section {
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
}
.kyc-section legend {
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  padding: 0 0.6rem;
  color: var(--primary, #183928);
}

.portal-table th { font-weight: 600; font-size: 0.9rem; }
.portal-table td { font-size: 0.95rem; }

@media (max-width: 768px) {
  .messages-grid { grid-template-columns: 1fr !important; }
}

/* ======================================================================
   PORTAL UI — Premium consultancy redesign (2026-05)
   Diplomate brand: forest green primary, gold accent
   ====================================================================== */

/* --- Shell + structural --- */
.portal-shell {
  min-height: calc(100vh - var(--header-height) - 200px);
  background: var(--bg-alt);
}

.portal-hero-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: calc(var(--header-height) + 2rem) 0 2rem;
  position: relative;
  overflow: hidden;
}
.portal-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(184, 149, 46, 0.18), transparent 55%);
  pointer-events: none;
}
.portal-hero-band .container { position: relative; z-index: 1; }
.portal-hero-band h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.portal-hero-band .portal-hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0;
  max-width: 56ch;
}
.portal-hero-band-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.78);
}
.portal-hero-band-meta a { color: var(--accent-light); text-decoration: none; }
.portal-hero-band-meta a:hover { color: #fff; text-decoration: underline; }
.portal-hero-band-logout {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.portal-hero-band-logout:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }

/* --- Split-screen (login / register) --- */
.portal-split {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}
.portal-split-login { grid-template-columns: 1.5fr 1fr; }
.portal-split-register { grid-template-columns: 1fr 1.2fr; }

.portal-split-left {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.portal-split-left::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 540px;
  background: url("../img/Pictogram Logo Color=Yellow.svg") center/contain no-repeat;
  opacity: 0.11;
  pointer-events: none;
}
.portal-split-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 100%, rgba(184, 149, 46, 0.18), transparent 55%);
  pointer-events: none;
}
.portal-split-left > * { position: relative; z-index: 1; }

.portal-split-logo { display: block; }
.portal-split-logo img { height: 56px; width: auto; }

.portal-split-headline {
  margin-top: 3rem;
}
.portal-split-headline h2,
.portal-split-headline h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.portal-split-headline p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 44ch;
}

.portal-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  margin-top: auto;
}
.portal-trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.portal-trust-strip-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.portal-trust-strip-item a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.portal-trust-strip-item a:hover { color: #fff; }

.portal-split-right {
  background: #fff;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-split-form-wrap {
  width: 100%;
  max-width: 440px;
}
.portal-split-form-wrap.is-wide { max-width: 560px; }

.portal-split-form-wrap h2,
.portal-split-form-wrap h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.portal-split-form-wrap .portal-form-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

/* --- Forms --- */
.portal-form .form-group { margin-bottom: 1.1rem; }
.portal-form label,
.portal-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="tel"],
.portal-form input[type="password"],
.portal-form input[type="number"],
.portal-form input[type="date"],
.portal-form select,
.portal-form textarea,
.portal-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.portal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 46, 0.18);
}
.portal-form input::placeholder { color: #adb5bd; }

.portal-form-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
}
.portal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.portal-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.portal-checkbox-row label { margin: 0; font-weight: 500; cursor: pointer; }
.portal-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.portal-link:hover { color: var(--accent-dark); text-decoration: underline; }

.portal-error {
  display: block;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

.portal-alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.portal-alert.is-error {
  background: #fdecea;
  color: #7a1f1f;
  border-color: #f5c6cb;
}
.portal-alert.is-success {
  background: #e7f4ec;
  color: #1b5e20;
  border-color: #c5e2cf;
}
.portal-alert.is-warning {
  background: #fff8e1;
  color: #715b08;
  border-color: #f3deaa;
}

/* --- Buttons (portal namespace, brand-correct) --- */
.portal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(24, 57, 40, 0.15);
}
.portal-btn-primary:hover,
.portal-btn-primary:focus {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 6px 18px rgba(24, 57, 40, 0.22), inset 0 0 0 1.5px var(--accent);
  transform: translateY(-1px);
}
.portal-btn-primary[disabled] {
  background: #9aa3a0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.portal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.portal-btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.portal-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.portal-btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }

.portal-btn-block { width: 100%; }
.portal-btn-inline { width: auto; }

/* --- Form footer separator + secondary CTA --- */
.portal-form-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-form-divider::before,
.portal-form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 2.5rem);
  height: 1px;
  background: var(--border);
}
.portal-form-divider::before { left: 0; }
.portal-form-divider::after { right: 0; }

.portal-form-foot {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Aside: numbered timeline (register page) --- */
.portal-aside-timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.portal-aside-timeline li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.portal-aside-timeline-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(184, 149, 46, 0.15);
  border: 1.5px solid var(--accent);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-aside-timeline-body strong {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.portal-aside-timeline-body span {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}
.portal-aside-footnote {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- Step indicator (horizontal progress, dashboard + KYC) --- */
.portal-step-indicator {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 0 2rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.portal-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}
.portal-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.portal-step.is-complete:not(:last-child)::after { background: var(--primary); }
.portal-step-bullet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}
.portal-step.is-active .portal-step-bullet {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(184, 149, 46, 0.2);
}
.portal-step.is-complete .portal-step-bullet {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.portal-step-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 12ch;
}
.portal-step.is-active .portal-step-label,
.portal-step.is-complete .portal-step-label { color: var(--primary); }

@media (max-width: 768px) {
  .portal-step-indicator {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .portal-step {
    flex-direction: row;
    text-align: left;
    gap: 0.85rem;
    align-items: center;
  }
  .portal-step:not(:last-child)::after {
    top: 36px;
    left: 18px;
    width: 2px;
    height: calc(100% - 18px);
  }
  .portal-step-label { max-width: none; margin-top: 0; font-size: 0.9rem; }
}

/* --- Status grid (dashboard cards) --- */
.portal-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 960px) { .portal-status-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portal-status-grid { grid-template-columns: 1fr; } }

.portal-status-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  color: inherit;
}
.portal-status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.portal-status-card.is-pending { border-left-color: var(--warning); }
.portal-status-card.is-complete { border-left-color: var(--primary); }

.portal-status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.portal-status-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(24, 57, 40, 0.07);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.portal-status-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.01em;
}
.portal-status-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.portal-status-card-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0;
}
.portal-status-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.portal-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-badge.is-pending { background: #fff3cd; color: #715b08; }
.portal-badge.is-complete { background: #e7f4ec; color: #1b5e20; }
.portal-badge.is-active { background: rgba(184, 149, 46, 0.18); color: var(--accent-dark); }
.portal-badge.is-muted { background: var(--bg-alt); color: var(--text-muted); }

/* --- KYC sticky progress + cards --- */
.portal-kyc-progress {
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(24, 57, 40, 0.05);
}
.portal-kyc-progress-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.portal-kyc-progress-bar {
  flex: 1 1 200px;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.portal-kyc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width var(--transition);
}
.portal-kyc-progress-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.portal-kyc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.portal-kyc-card legend,
.portal-kyc-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.portal-kyc-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-kyc-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin: 2rem -1.5rem 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -4px 12px rgba(24, 57, 40, 0.06);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.portal-kyc-actions .portal-btn-primary { width: auto; min-width: 200px; }

/* --- Checkout summary (pay) --- */
.portal-checkout-wrap {
  max-width: 580px;
  margin: 2rem auto;
}
.portal-checkout-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.portal-checkout-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 1.5rem 1.75rem;
}
.portal-checkout-head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.portal-checkout-head p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.portal-checkout-body { padding: 1.75rem; }
.portal-checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.portal-checkout-line:last-of-type { border-bottom: none; }
.portal-checkout-line strong { color: var(--primary-dark); font-weight: 600; }
.portal-checkout-line .checkout-meta { color: var(--text-muted); font-size: 0.85rem; }
.portal-checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0 0.5rem;
  border-top: 2px solid var(--primary);
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}
.portal-checkout-includes {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.portal-checkout-includes h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--primary);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.portal-checkout-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.portal-checkout-includes li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.portal-checkout-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.portal-checkout-trust {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.portal-checkout-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* --- Confirmed celebration --- */
.portal-celebration {
  max-width: 640px;
  margin: 2rem auto;
  text-align: center;
}
.portal-celebration-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 30px rgba(184, 149, 46, 0.3);
}
.portal-celebration h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}
.portal-celebration p { color: var(--text-light); font-size: 1.05rem; margin: 0; }
.portal-next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}
@media (max-width: 720px) { .portal-next-steps { grid-template-columns: 1fr; } }
.portal-next-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.portal-next-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.portal-next-step h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0 0 0.4rem;
}
.portal-next-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

/* --- Contract two-column layout --- */
.portal-contract-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 960px) { .portal-contract-grid { grid-template-columns: 1fr; } }

.portal-contract-doc {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  border: 1px solid var(--border);
}
.portal-contract-doc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.01em;
}
.portal-contract-doc-body {
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-light);
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.portal-contract-doc-body::-webkit-scrollbar { width: 8px; }
.portal-contract-doc-body::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 4px; }
.portal-contract-doc-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.portal-contract-sign {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
}
.portal-contract-sign h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.portal-contract-sign-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* --- Section spacing for portal pages --- */
.portal-section { padding: 2rem 0 4rem; }

/* --- Mobile breakpoints --- */
@media (max-width: 880px) {
  .portal-split-login,
  .portal-split-register {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .portal-split-left {
    padding: 2rem 1.5rem 1.75rem;
    min-height: auto;
  }
  .portal-split-left::before { display: none; }
  .portal-split-headline { margin-top: 1.5rem; }
  .portal-split-headline h2,
  .portal-split-headline h1 { font-size: 1.6rem; }
  .portal-trust-strip { margin-top: 1.25rem; gap: 0.85rem; }
  .portal-split-right { padding: 2rem 1.5rem; }
  .portal-aside-timeline { gap: 0.75rem; margin-top: 1rem; }
  .portal-aside-timeline-num { width: 30px; height: 30px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .portal-split-left { padding: 1.5rem 1.25rem; }
  .portal-split-right { padding: 1.5rem 1.25rem; }
  .portal-checkout-body { padding: 1.25rem; }
  .portal-contract-doc { padding: 1.25rem; }
  .portal-kyc-card { padding: 1.25rem; }
  .portal-status-card { padding: 1.25rem; }
}


/* ============================================================================
   PORTAL UI v2 — Premium consultancy redesign
   Diplomate brand: forest green primary, gold accent, Orbitron + Nunito
   ============================================================================ */

/* === Split-screen container (login + register) ============================ */
.portal-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  background: var(--bg);
}

.portal-split-register { grid-template-columns: 1fr 1.15fr; }

@media (max-width: 960px) {
  .portal-split,
  .portal-split-register {
    grid-template-columns: 1fr;
  }
}

/* Left brand panel (forest green) */
.portal-split-left {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 75%, #0a1f15 100%);
  color: #fff;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.portal-split-left > * { position: relative; z-index: 1; }

.portal-split-left::before {
  /* subtle Diplomate shield motif via radial gradient */
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center,
    rgba(184, 149, 46, 0.18) 0%,
    rgba(184, 149, 46, 0.06) 35%,
    transparent 60%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .portal-split-left { padding: 3rem 1.5rem; min-height: auto; }
}

.portal-split-logo {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0;
}
.portal-split-logo img {
  height: 110px; width: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.28));
}
@media (max-width: 960px) {
  .portal-split-logo img { height: 80px; }
}

.portal-split-headline { position: relative; z-index: 1; max-width: 480px; }
.portal-split-headline h1,
.portal-split-headline h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.portal-split-headline p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Trust strip (login left panel) */
.portal-trust-strip {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.portal-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}
.portal-trust-strip-item svg {
  width: 22px; height: 22px;
  color: var(--accent-light);
  flex-shrink: 0;
}
.portal-trust-strip-item a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(212, 169, 92, 0.35);
  text-underline-offset: 3px;
}
.portal-trust-strip-item a:hover { color: #fff; }

/* Aside timeline (register left panel) */
.portal-aside-timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.portal-aside-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.portal-aside-timeline-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(184, 149, 46, 0.18);
  border: 1.5px solid var(--accent);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.portal-aside-timeline-body { color: rgba(255,255,255,0.92); line-height: 1.45; }
.portal-aside-timeline-body strong {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.portal-aside-timeline-body span { font-size: 0.88rem; color: rgba(255,255,255,0.72); }

.portal-aside-footnote {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  position: relative; z-index: 1;
}

/* === Right form panel ===================================================== */
.portal-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--bg);
}

@media (max-width: 960px) {
  .portal-split-right { padding: 2.5rem 1.5rem; }
}

.portal-split-form-wrap {
  width: 100%;
  max-width: 440px;
}
.portal-split-form-wrap.is-wide { max-width: 540px; }

.portal-split-form-wrap > h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.portal-form-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* === Form elements ======================================================== */
.portal-form .form-group { margin-bottom: 1.1rem; }

.portal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .portal-form .form-row { grid-template-columns: 1fr; }
}

.portal-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="password"],
.portal-form input[type="tel"],
.portal-form input[type="number"],
.portal-form input[type="date"],
.portal-form select,
.portal-form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.portal-form input::placeholder { color: #b3b8bf; }

.portal-form input:hover,
.portal-form select:hover,
.portal-form textarea:hover { border-color: #c8cdd2; }

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 46, 0.18);
}

.portal-form input[aria-invalid="true"],
.portal-form input.is-error { border-color: var(--error); }

.portal-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 500;
}

/* Form-row meta (remember + forgot) */
.portal-form-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.portal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.portal-checkbox-row input[type="checkbox"],
.portal-checkbox-row input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.portal-btn-primary,
.portal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.portal-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.portal-btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 57, 40, 0.22);
}
.portal-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 149, 46, 0.3);
}

.portal-btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.portal-btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.portal-btn-block { width: 100%; }
.portal-btn-inline { width: auto; padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* Divider + foot */
.portal-form-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.portal-form-divider::before,
.portal-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.portal-form-divider::before { margin-right: 1rem; }
.portal-form-divider::after { margin-left: 1rem; }

.portal-form-foot {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.portal-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition-fast);
}
.portal-link:hover {
  color: var(--primary-dark);
  border-color: var(--accent);
}

/* Alerts */
.portal-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid;
}
.portal-alert.is-error {
  background: #fdecea;
  color: #8d2a1f;
  border-color: var(--error);
}
.portal-alert.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: var(--success);
}

/* === Dashboard hero band ================================================== */
.portal-hero-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem 0 4rem;
  margin-top: var(--header-height);
}
.portal-hero-band h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.portal-hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin: 0;
}
.portal-hero-band-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.portal-hero-band-logout {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.portal-hero-band-logout:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

.portal-section { padding: 3rem 0; background: var(--bg-alt); }

/* === Step indicator (5-step horizontal) =================================== */
.portal-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -3rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.portal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  text-align: center;
}
.portal-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.portal-step.is-complete:not(:last-child)::after { background: var(--success); }
.portal-step-bullet {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}
.portal-step.is-active .portal-step-bullet {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(184, 149, 46, 0.18);
}
.portal-step.is-complete .portal-step-bullet {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.portal-step-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
.portal-step.is-active .portal-step-label { color: var(--primary); font-weight: 700; }
.portal-step.is-complete .portal-step-label { color: var(--success-dark); font-weight: 600; }

@media (max-width: 768px) {
  .portal-step-indicator { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; }
  .portal-step { flex-direction: row; justify-content: flex-start; text-align: left; }
  .portal-step:not(:last-child)::after { display: none; }
  .portal-step-label { font-size: 0.95rem; }
}

/* === Status grid (dashboard cards) ======================================== */
.portal-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.portal-status-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.portal-status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
  color: var(--text);
}
.portal-status-card.is-pending { border-left-color: var(--warning); }
.portal-status-card.is-complete { border-left-color: var(--success); }

.portal-status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.portal-status-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.portal-status-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.4rem;
}
.portal-status-card-meta { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.portal-status-card-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0 0;
}
.portal-status-card-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Badge */
.portal-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.portal-badge.is-active { background: rgba(184, 149, 46, 0.16); color: var(--accent-dark); }
.portal-badge.is-complete { background: rgba(27, 94, 32, 0.12); color: var(--success-dark); }
.portal-badge.is-muted { background: var(--bg-alt); color: var(--text-muted); }

/* === Checkout (pay.html) ================================================= */
.portal-checkout-wrap {
  max-width: 580px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.portal-checkout-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.portal-checkout-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.75rem 2rem;
}
.portal-checkout-head h1 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.portal-checkout-head p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }
.portal-checkout-body { padding: 1.75rem 2rem; }
.portal-checkout-line {
  display: flex; justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.portal-checkout-line:last-of-type { border-bottom: none; }
.portal-checkout-total {
  display: flex; justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.portal-checkout-includes { margin: 1.5rem 0; padding-left: 1.25rem; }
.portal-checkout-includes li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.portal-checkout-trust {
  display: flex; justify-content: center; gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* === Confirmation page =================================================== */
.portal-celebration {
  max-width: 580px; margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.portal-celebration-check {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(184, 149, 46, 0.18);
  border: 3px solid var(--accent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.portal-next-steps {
  display: flex; flex-direction: column; gap: 1rem;
  margin: 2rem 0; text-align: left;
}
.portal-next-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portal-next-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

/* === Contract page ======================================================= */
.portal-contract-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin: 2rem 0 4rem;
}
@media (max-width: 900px) { .portal-contract-grid { grid-template-columns: 1fr; } }
.portal-contract-doc {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
}
.portal-contract-doc-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--accent);
}
.portal-contract-doc-body { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.portal-contract-doc-body h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.portal-contract-sign {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
}
.portal-contract-sign h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.portal-contract-sign-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* === KYC form =========================================================== */
.portal-kyc-progress {
  position: sticky;
  top: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 50;
  margin-top: var(--header-height);
}
.portal-kyc-progress-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.portal-kyc-progress-label { font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
.portal-kyc-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.portal-kyc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}
.portal-kyc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
}
.portal-kyc-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.75rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.portal-kyc-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}
.portal-kyc-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.portal-kyc-actions button { flex: 1; min-width: 200px; }

/* === Sub-nav (replaces existing) ========================================= */
.portal-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.portal-subnav-list {
  display: flex; gap: 0.25rem;
  padding: 0.75rem 0;
  list-style: none;
  overflow-x: auto;
}
.portal-subnav-list a {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.portal-subnav-list a:hover { background: var(--bg-alt); color: var(--primary); }
.portal-subnav-list a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Tables */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portal-table th, .portal-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.portal-table th {
  background: var(--bg-alt);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.portal-table tr:last-child td { border-bottom: none; }

/* Scrollable wrapper for invoice / mandate tables on narrow viewports.
   Tables stay structurally a <table> (a11y, screen readers, server render
   cost) but the parent scrolls horizontally on phones instead of busting
   the layout. */
.portal-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portal-table-scroll > table { min-width: 560px; }
@media (max-width: 640px) {
  .portal-table-scroll { border-radius: 0; }
}

/* ---------------------------------------------------------------------
   Portal: messages + invoices pages (design-system rebuild)
   --------------------------------------------------------------------- */

/* Messages page grid */
.portal-messages-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .portal-messages-grid {
    grid-template-columns: 1fr;
  }
}

/* Compose button spacing inside inbox aside */
.portal-messages-compose-btn {
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Inbox list */
.portal-messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.portal-messages-list > li {
  border-bottom: 1px solid var(--border-soft, #efefef);
}
.portal-messages-list-item {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  color: inherit;
}
.portal-messages-list-item.is-active {
  background: var(--bg-alt, #f9f7f1);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 6px;
}
.portal-messages-list-item .is-unread {
  color: var(--primary);
}
.portal-messages-new-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  margin-left: 0.3rem;
}
.portal-messages-empty {
  color: var(--text-muted);
}

/* Thread (right side) */
.portal-messages-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.portal-messages-body {
  white-space: pre-wrap;
  line-height: 1.7;
  padding-top: 0.5rem;
}
.portal-messages-reply-row {
  border-top: 1px solid var(--border-soft, #efefef);
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.portal-messages-lead {
  color: var(--text-muted);
}

/* Compose form */
.portal-messages-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.portal-form-label {
  font-weight: 600;
  color: var(--primary);
  display: block;
}
.portal-form-label .portal-input {
  margin-top: 0.3rem;
}
.portal-input-textarea {
  font-family: inherit;
  resize: vertical;
}

/* Invoices page helpers */
.portal-section-title {
  margin-top: 2rem;
}
.portal-section-title:first-of-type {
  margin-top: 0;
}
.portal-card-flush {
  padding: 0;
  overflow: hidden;
}
.portal-invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.portal-invoice-table thead {
  background: var(--bg-alt, #f9f7f1);
  color: var(--primary, #183928);
}
.portal-invoice-table th,
.portal-invoice-table td {
  text-align: left;
  padding: 0.8rem 1rem;
}
.portal-invoice-table th.is-numeric,
.portal-invoice-table td.is-numeric {
  text-align: right;
}
.portal-invoice-table tbody tr {
  border-top: 1px solid var(--border-soft, #efefef);
}
.portal-text-muted {
  color: var(--text-muted, #5a5a5a);
}
.portal-text-strong {
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Testimonials section (marketing pages)
   --------------------------------------------------------------------- */
.testimonials-section {
  padding: 4rem 0;
  background: var(--bg-alt, #f9f7f1);
}
.testimonials-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary, #183928);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent, #B8952E);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.testimonial-quote {
  margin: 0 0 1rem 0;
  padding: 0;
  font-style: italic;
  color: var(--text, #2a2a2a);
  line-height: 1.6;
  border: 0;
}
.testimonial-quote::before { content: "\201C"; color: var(--accent, #B8952E); font-size: 1.5rem; margin-right: 0.2rem; }
.testimonial-quote::after { content: "\201D"; color: var(--accent, #B8952E); font-size: 1.5rem; margin-left: 0.2rem; }
.testimonial-attribution {
  font-size: 0.9rem;
  color: var(--text, #2a2a2a);
}
.testimonial-attribution strong { color: var(--primary, #183928); }
.testimonial-country { color: var(--text-muted, #5a5a5a); }
.testimonial-service { color: var(--text-muted, #5a5a5a); font-style: italic; }

/* ---------------------------------------------------------------------
   File-upload drop-zone (documents + KYC pages)
   --------------------------------------------------------------------- */
.portal-dropzone {
  position: relative;
  border: 2px dashed #c8c2b4;
  border-radius: 8px;
  background: #fafaf5;
  padding: 1.5rem;
  transition: all 0.15s ease;
}
.portal-dropzone.is-dragging,
.portal-dropzone:hover {
  border-color: var(--primary, #183928);
  background: #f9f7f1;
}
.portal-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.portal-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  cursor: pointer;
  color: var(--text, #2a2a2a);
  pointer-events: none;
}
.portal-dropzone-label svg {
  color: var(--primary, #183928);
}
.portal-dropzone-text {
  font-size: 0.95rem;
}
.portal-dropzone-text strong {
  color: var(--primary, #183928);
}
.portal-dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #5a5a5a);
}
.portal-dropzone-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.portal-dropzone-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid #e3e0d8;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}
.portal-dropzone-name {
  color: var(--primary, #183928);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}
.portal-dropzone-size {
  color: var(--text-muted, #5a5a5a);
}

/* --- Blog article figures (charts, callouts, stepper, photos) ---
   Mirrors the validated article PDF design (Diplomate: forest + gold).
   Emitted by the article body pipeline; scoped to .article-body. */
.article-body .figure {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
  margin: 1.5rem 0 2rem;
}
.article-body .figtitle {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.article-body .chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 230px;
}
.article-body .chart .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.article-body .chart .val {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  white-space: nowrap;
}
.article-body .chart .barwrap {
  flex: 0 0 150px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  margin-top: 0.3rem;
}
.article-body .chart .bar {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}
.article-body .chart .bar-hi { background: var(--accent); }
.article-body .chart .bar-part { background: var(--accent-light); }
.article-body .chart .yr {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
  border-top: 2px solid var(--text);
  padding-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-body .figsrc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.5;
}
.article-body .callout {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
}
.article-body .callout-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  white-space: nowrap;
}
.article-body .callout-body p { margin: 0 0 0.3rem; font-size: 0.92rem; }
.article-body .stepper {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
.article-body .stepper .step {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 8px;
  text-align: center;
  padding: 1rem 0.5rem 0.9rem;
}
.article-body .stepper .stepnum {
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent-light);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 0.5rem;
}
.article-body .stepper .steplbl {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary);
}
.article-body .article-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.25rem 0 1.75rem;
}
@media (max-width: 640px) {
  .article-body .chart { height: 190px; gap: 0.2rem; }
  .article-body .chart .barwrap { flex-basis: 110px; height: 110px; }
  .article-body .chart .val { font-size: 0.55rem; }
  .article-body .chart .yr { font-size: 0.58rem; }
  .article-body .stepper { flex-wrap: wrap; }
  .article-body .stepper .step { flex: 1 1 40%; }
  .article-body .callout { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
