/* ==========================================================================
   Athovia — Design Tokens (v2: Indigo / Ivory / Teal / Gold)
   ========================================================================== */
:root {
  --indigo: #24345B;
  --midnight: #18233F;
  --ivory: #FAF8F3;
  --white: #FFFFFF;
  --teal: #4FAF9F;
  --teal-dark: #3B8B7D;
  --gold: #D8B56A;
  --gold-dark: #8a6d2f;
  --charcoal: #252936;
  --slate: #697080;
  --sage: #EEF5F2;
  --border: #E5E7EB;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 80px;
  --radius: 9px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(36, 52, 91, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--indigo);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--slate); }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--indigo); color: #fff; padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ==========================================================================
   Buttons — 8-10px radius, not pill-shaped
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--midnight); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(36,52,91,0.25); }

.btn-secondary { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-secondary:hover { background: var(--indigo); color: #fff; }

.btn-teal { background: var(--teal); color: #04342c; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-header-cta { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; height: 100%; margin: 0; padding: 0; }
.brand-logo { height: 100%; width: auto; max-height: var(--header-height); display: block; margin: 0; padding: 0; }
.main-nav { display: none; align-items: center; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.main-nav a { color: var(--charcoal); }
.main-nav a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-toggle { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--indigo); }

@media (min-width: 900px) {
  .main-nav { display: flex; flex: 1; margin-left: 32px; }
  .btn-header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
.main-nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--header-height); left: 0; right: 0;
  background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   "A" watermark utility — subtle background element
   ========================================================================== */
.a-watermark { position: relative; overflow: hidden; }
.a-watermark::before {
  content: "";
  position: absolute;
  top: -10%; right: -8%;
  width: 620px; height: 620px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10 L170 190 M100 10 L30 190 M60 120 L140 120' stroke='%2324345B' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.a-watermark > * { position: relative; z-index: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--sage) 0%, var(--ivory) 100%);
  padding: 96px 0 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal-dark); background: rgba(79,175,159,0.12);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-sub { max-width: 640px; margin: 20px auto 32px; font-size: 1.15rem; color: var(--slate); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-small-line { font-size: 0.85rem; color: var(--teal-dark); font-weight: 600; }

/* Smaller hero for inner pages (~35% viewport height vs homepage's full hero) */
.hero-sm {
  background: linear-gradient(180deg, var(--sage) 0%, var(--ivory) 100%);
  padding: 44px 0;
  min-height: 30vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-sm h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 720px; margin: 0 auto; }
.hero-sm .hero-sub { margin: 14px auto 0; font-size: 1rem; }
.hero-sm::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,60 480,0 720,20 C960,40 1200,10 1440,30 L1440,60 L0,60 Z' fill='%23FAF8F3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   Hero banner slider (homepage — config-driven, multiple rotating banners)
   ========================================================================== */
.hero-slider { position: relative; min-height: 560px; overflow: hidden; }
.hero-slider::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,60 480,0 720,20 C960,40 1200,10 1440,30 L1440,60 L0,60 Z' fill='%23FAF8F3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
  pointer-events: none;
}
.hero-slide {
  align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center;
  padding: 40px 24px;
  width: 100%;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,248,243,0.85) 0%, rgba(250,248,243,0.94) 100%);
  z-index: 0;
}
.hero-slide-content { position: relative; z-index: 1; max-width: 720px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; position: relative; z-index: 2; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border);
  border: none; cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active { background: var(--teal); transform: scale(1.3); }

/* ==========================================================================
   Learning-path motif
   ========================================================================== */
.learning-path-wrap { max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 44px 0; }
.section-soft { background: var(--sage); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-header p { font-size: 1.05rem; }
.section-eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--teal-dark); text-transform: uppercase; margin-bottom: 10px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }

.step-list { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-number {
  counter-increment: step; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.step-number::before { content: counter(step); }

/* Program / course cards */
.course-card { display: flex; flex-direction: column; height: 100%; border-top: 3px solid var(--teal); }
.course-card .price { font-family: var(--font-display); font-size: 1.5rem; color: var(--indigo); font-weight: 700; margin: 10px 0; }
.course-card .duration { color: var(--teal-dark); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.course-card .btn { margin-top: auto; }
.course-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }

/* Pillar cards (Athovia Learning Model) */
.pillar-card { text-align: center; }
.pillar-num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: var(--teal);
  letter-spacing: 0.05em; margin-bottom: 8px; display: block;
}

/* Human + AI visual */
.human-ai-flow {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin: 32px 0;
}
.human-ai-node {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; text-align: center; min-width: 160px; box-shadow: var(--shadow);
}
.human-ai-node .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.human-ai-node .label { font-family: var(--font-display); font-weight: 700; color: var(--indigo); font-size: 0.9rem; }
.human-ai-arrow { font-size: 1.4rem; color: var(--teal); font-weight: 700; }

/* Explore More — 3 boxes in one row */
.explore-more-box { text-align: center; }
.explore-more-box .icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }

/* Testimonial country flag */
.testimonial-flag { font-size: 1rem; margin-left: 6px; }

.program-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px;
  background: rgba(79,175,159,0.15); color: var(--teal-dark); margin-bottom: 10px;
}

/* Testimonials / Learning Stories */
.testimonial-card blockquote { font-family: var(--font-display); font-size: 1.02rem; color: var(--indigo); margin: 0 0 14px; font-weight: 500; }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--slate); font-size: 0.9rem; }
.testimonial-card .score-badge {
  display: inline-block; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700;
  color: var(--gold-dark); background: rgba(216,181,106,0.18); padding: 3px 12px; border-radius: 999px; font-size: 0.85rem;
}

/* Resource / blog cards */
.blog-card .blog-date { font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; }

/* Final CTA band */
.cta-band { background: var(--indigo); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); }

/* Portal preview mockup */
.portal-mock {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto;
}
.portal-mock-header { background: var(--indigo); color: #fff; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.portal-mock-body { padding: 20px; background: #F6F7F9; }
.portal-mock-row { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.portal-mock-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); font-weight: 700; margin-bottom: 6px; }
.portal-progress-track { background: var(--border); border-radius: 999px; height: 8px; margin-top: 8px; overflow: hidden; }
.portal-progress-fill { background: var(--teal); height: 100%; border-radius: 999px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--indigo); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79,175,159,0.18); }
textarea { resize: vertical; min-height: 120px; }

.form-error { background: rgba(226,75,74,0.08); color: #A32D2D; border: 1px solid rgba(226,75,74,0.25); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 0.9rem; }
.form-success { background: rgba(79,175,159,0.1); color: var(--teal-dark); border: 1px solid rgba(79,175,159,0.3); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 0.9rem; }
.field-note { font-size: 0.8rem; color: var(--slate); margin-top: 4px; }
.form-narrow { max-width: 560px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--indigo); color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 12px; }
.footer-logo { height: 34px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  display: none !important;
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto;
  background: var(--indigo); color: #fff; border-radius: var(--radius-lg); padding: 18px 22px;
  align-items: center; gap: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); z-index: 200;
}
.cookie-banner.is-visible { display: flex !important; }
.cookie-banner p { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin: 0; }
.cookie-banner a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(79,175,159,0.15); color: var(--teal-dark); }
.badge-pending { background: rgba(216,181,106,0.2); color: var(--gold-dark); }
.badge-resolved { background: rgba(79,175,159,0.15); color: var(--teal-dark); }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.data-table th, table.data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.data-table th { color: var(--slate); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

.dashboard-shell { display: flex; min-height: calc(100vh - var(--header-height)); }
.dashboard-sidebar { width: 220px; background: var(--sage); border-right: 1px solid var(--border); padding: 0 16px 24px; flex-shrink: 0; }
.dashboard-sidebar-user {
  padding: 20px 12px 16px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
}
.dashboard-sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 8px;
}
.dashboard-sidebar-name { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.dashboard-sidebar-role {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-dark); font-weight: 700;
}
.dashboard-sidebar a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--charcoal); font-weight: 500; font-size: 0.9rem; margin-bottom: 4px; border-left: 3px solid transparent; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { background: var(--white); color: var(--teal-dark); text-decoration: none; box-shadow: var(--shadow); border-left-color: var(--teal); }
.dashboard-content { flex: 1; padding: 32px; }
.dashboard-content h1 { display: flex; align-items: center; gap: 10px; }
.dashboard-stat-card { border-top: 3px solid var(--teal); }
.dashboard-stat-card h3 { font-family: var(--font-display); font-size: 2rem; color: var(--indigo); margin-bottom: 4px; }
.dashboard-stat-card p { margin: 0; font-size: 0.85rem; color: var(--slate); }
/* ==========================================================================
   Auth pages — split screen (promo left, form right)
   APPEND THIS to the end of your existing public_html/assets/css/style.css
   ========================================================================== */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
}
.auth-promo {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--midnight) 100%);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-promo::before {
  content: "";
  position: absolute;
  top: -15%; right: -15%;
  width: 500px; height: 500px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10 L170 190 M100 10 L30 190 M60 120 L140 120' stroke='%23FFFFFF' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}
.auth-promo-content { position: relative; z-index: 1; max-width: 420px; }
.auth-promo h2 { color: #fff; font-size: 1.7rem; margin-bottom: 16px; }
.auth-benefit-list { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-benefit-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9); font-size: 0.95rem;
}
.auth-benefit-list li:last-child { border-bottom: none; }
.auth-benefit-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(79,175,159,0.25); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.auth-form-panel {
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.auth-form-inner { width: 100%; max-width: 380px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.auth-links a { font-weight: 600; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-promo { padding: 40px 24px; text-align: center; }
  .auth-promo-content { margin: 0 auto; }
  .auth-benefit-list li { text-align: left; }
}
.human-ai-icon-img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 8px; display: block; }
