@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green:        #1D9E75;
  --green-dark:   #0F6E56;
  --green-deeper: #085041;
  --green-light:  #E1F5EE;
  --green-mid:    #9FE1CB;
  --navy:         #0D1B2A;
  --navy-mid:     #1A2E3F;
  --gold:         #C9A84C;
  --gold-light:   #FAF0DC;
  --cream:        #F8F6F1;
  --white:        #FFFFFF;
  --text-dark:    #0D1B2A;
  --text-mid:     #3A4A5C;
  --text-muted:   #6B7A8D;
  --border:       rgba(13,27,42,0.10);
  --border-mid:   rgba(13,27,42,0.18);
  --shadow-sm:    0 1px 4px rgba(13,27,42,0.07);
  --shadow-md:    0 4px 20px rgba(13,27,42,0.10);
  --shadow-lg:    0 12px 48px rgba(13,27,42,0.13);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --max-w:        1200px;
  --max-w-narrow: 780px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.2; }
.display-xl { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 400; letter-spacing: -0.01em; color: var(--navy); }
.display-lg { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--navy); }
.display-md { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400; color: var(--navy); }
.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 1.125rem; color: var(--text-mid); line-height: 1.7; }
.body-sm { font-size: 0.875rem; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 24px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; border: none; transition: all 0.2s ease; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,158,117,0.32); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--border-mid); }
.btn-secondary:hover { background: var(--cream); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green-mid); }
.btn-ghost:hover { background: var(--green-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8952e; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn svg, .btn i { font-size: 1em; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; }
.badge-green { background: var(--green-light); color: var(--green-deeper); }
.badge-gold { background: var(--gold-light); color: #7a5c1a; }
.badge-navy { background: rgba(13,27,42,0.08); color: var(--navy); }
.badge-locked { background: #f0f0f0; color: #888; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--green);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .name { font-size: 0.875rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.nav-logo-text .tagline { font-size: 0.675rem; color: var(--text-muted); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-mid); transition: all 0.15s; font-weight: 400; }
.nav-link:hover { background: var(--cream); color: var(--navy); }
.nav-link.active { color: var(--green); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-mobile-toggle { display: none; background: none; border: none; padding: 8px; color: var(--navy); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 100px 0 90px;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(29,158,117,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(29,158,117,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.hero-eyebrow { color: var(--green-mid); margin-bottom: 1.5rem; }
.hero-title { font-family: var(--serif); font-size: clamp(2.8rem, 5.5vw, 4.5rem); font-weight: 400; color: #fff; line-height: 1.12; margin-bottom: 1.5rem; max-width: 800px; }
.hero-title em { color: var(--green-mid); font-style: italic; }
.hero-sub { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 580px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-val { font-family: var(--serif); font-size: 2.25rem; color: #fff; line-height: 1; }
.hero-stat-lbl { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all 0.2s ease;
}
.feature-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; background: var(--green-light);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--green-dark); font-size: 1.25rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--navy); }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── CERT CARDS ── */
.cert-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.cert-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.2s ease; display: flex; flex-direction: column;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-card-stripe { height: 5px; }
.cert-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.cert-card-num { font-family: var(--serif); font-size: 3rem; color: var(--border-mid); line-height: 1; margin-bottom: 0.5rem; }
.cert-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3; }
.cert-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.cert-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--cream); display: flex; align-items: center; justify-content: space-between; }

/* ── TESTIMONIALS / QUOTES ── */
.quote-block { border-left: 3px solid var(--green); padding-left: 1.5rem; }
.quote-block blockquote { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--navy); line-height: 1.6; margin-bottom: 0.875rem; }
.quote-attr { font-size: 0.8125rem; color: var(--text-muted); }

/* ── STEPS / PROCESS ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { width: 44px; height: 44px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif); font-size: 1.125rem; flex-shrink: 0; }
.step h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.375rem; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--navy); margin-bottom: 0.375rem; }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-mid); border-radius: var(--radius-md);
  font-family: var(--sans); font-size: 0.9375rem;
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
.form-input::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7A8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }

/* ── PRICING CARDS ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pricing-card { border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; transition: all 0.2s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--green); background: linear-gradient(135deg, rgba(29,158,117,0.03) 0%, transparent 60%); }
.pricing-price { font-family: var(--serif); font-size: 2.5rem; color: var(--navy); margin: 1rem 0 0.25rem; }
.pricing-per { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li { font-size: 0.875rem; color: var(--text-mid); padding: 0.4rem 0; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

/* ── PORTAL LAYOUT (used inside portal.html) ── */
.portal-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.portal-sidebar { background: var(--navy); color: rgba(255,255,255,0.85); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo .name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-section-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 0.875rem 1.5rem 0.375rem; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 0.625rem 1.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.65); transition: all 0.15s; cursor: pointer; border-left: 2px solid transparent; }
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.sidebar-item.active { background: rgba(29,158,117,0.15); color: #fff; border-left-color: var(--green); }
.sidebar-item.completed { color: var(--green-mid); }
.sidebar-item.locked { opacity: 0.4; cursor: default; }
.sidebar-item i { font-size: 0.9375rem; flex-shrink: 0; }
.sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.portal-main { background: #f5f7f6; }
.portal-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.8125rem; padding: 0.25rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--green-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8125rem; }

/* ── PROGRESS BAR ── */
.progress-bar-wrap { background: rgba(255,255,255,0.1); border-radius: 4px; height: 4px; }
.progress-bar { height: 4px; border-radius: 4px; background: var(--green); transition: width 0.4s; }
.progress-bar-track { background: #e8ede9; border-radius: 4px; height: 6px; }
.progress-bar-fill { background: var(--green); height: 6px; border-radius: 4px; transition: width 0.4s; }

/* ── ALERTS / BANNERS ── */
.alert { padding: 0.875rem 1.25rem; border-radius: var(--radius-md); font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--green-light); color: var(--green-deeper); border: 1px solid var(--green-mid); }
.alert-info { background: #e8f4fd; color: #1a5276; border: 1px solid #aed6f1; }
.alert-warning { background: #fef9e7; color: #7d6608; border: 1px solid #f9e79f; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeUp 0.5s ease both; }
.animate-fade-up-1 { animation: fadeUp 0.5s 0.1s ease both; }
.animate-fade-up-2 { animation: fadeUp 0.5s 0.2s ease both; }
.animate-fade-up-3 { animation: fadeUp 0.5s 0.3s ease both; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero { padding: 72px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .portal-wrap { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .section { padding: 64px 0; }
  .container { padding: 0 1.25rem; }
}
