/* ============================================================
   CREA Certification — Global Stylesheet
   Shared across all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0a2540;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
[id] { scroll-margin-top: 80px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── Variables ─────────────────────────────────────── */
:root {
  --navy:       #0a2540;
  --navy-light: #0f3750;
  --teal:       #0099a8;
  --teal-dark:  #007d8a;
  --teal-light: #00b8cc;
  --gold:       #c8922a;
  --gold-dark:  #9a6e1a;
  --cream:      #f9f8f5;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --radius:     12px;
  --radius-lg:  20px;
}

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 40px; } }

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,37,64,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { width: 34px; height: 34px; }
.nav-logo-text { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(10,37,64,0.6);
  padding: 7px 13px; border-radius: 8px; transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--gray-100); }
.nav-right { display: none; align-items: center; gap: 10px; }
@media (min-width: 768px) { .nav-right { display: flex; } }
.nav-pill-bar { height: 2px; background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--teal-light)); }
.nav-hamburger { display: flex; padding: 8px; color: var(--navy); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-mobile { display: none; border-top: 1px solid var(--gray-200); background: #fff; flex-direction: column; padding: 12px 16px 16px; gap: 2px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--navy); border-radius: 8px; transition: background 0.15s; }
.nav-mobile a:hover { background: var(--gray-100); }
.nav-mobile .btn-teal { margin-top: 8px; text-align: center; }

/* ── Buttons ───────────────────────────────────────── */
.btn-teal {
  background: var(--teal); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; display: inline-block;
  transition: background 0.15s; letter-spacing: -0.01em;
}
.btn-teal:hover { background: var(--teal-dark); }
.btn-teal-lg { font-size: 16px; padding: 14px 30px; border-radius: 12px; }
.btn-ghost {
  font-size: 14px; font-weight: 500; color: rgba(10,37,64,0.65);
  padding: 10px 16px; border-radius: 10px; display: inline-block;
  transition: all 0.15s;
}
.btn-ghost:hover { color: var(--navy); background: var(--gray-100); }
.btn-outline {
  border: 1.5px solid var(--teal); color: var(--teal); font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; display: inline-block; transition: all 0.15s;
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-lg { font-size: 16px; padding: 14px 30px; border-radius: 12px; }
.btn-gold {
  background: var(--gold); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; display: inline-block; transition: background 0.15s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-gold-lg { font-size: 16px; padding: 14px 30px; border-radius: 12px; }
.btn-navy {
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; display: inline-block; transition: background 0.15s;
}
.btn-navy:hover { background: var(--navy-light); }
.btn-white {
  background: #fff; color: var(--navy); font-size: 16px; font-weight: 700;
  padding: 14px 30px; border-radius: 12px; display: inline-block; transition: background 0.15s;
}
.btn-white:hover { background: var(--cream); }

/* ── Section headers ───────────────────────────────── */
.label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em;
}
h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15; color: var(--navy); letter-spacing: -0.02em;
}
h3 { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.lead { font-size: 18px; color: var(--gray-600); line-height: 1.7; margin-top: 16px; }
.center { text-align: center; }
.center .lead { max-width: 600px; margin: 16px auto 0; }

/* ── Page Hero (inner pages) ───────────────────────── */
.page-hero {
  padding-top: 100px;
  padding-bottom: 60px;
  background: linear-gradient(160deg, #f0f9fa 0%, #fff 60%);
  border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 52px); }

/* ── Section spacing ───────────────────────────────── */
section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(10,37,64,0.09); transform: translateY(-2px); }

/* ── Grid helpers ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(4,1fr); }
}

/* ── Scroll reveal ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s cubic-bezier(.16,1,.3,1), transform 0.65s cubic-bezier(.16,1,.3,1); }
.reveal.up { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 32px; height: 32px; }
.footer-logo-text { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 15px; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-badges { display: flex; gap: 10px; margin-top: 18px; }
.footer-badges img { width: 42px; height: 42px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.6; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 12px; color: rgba(255,255,255,0.28); transition: color 0.15s; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ── Chatbot ───────────────────────────────────────── */
.chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%; background: var(--teal);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,153,168,0.45); font-size: 20px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.chat-btn:hover { background: var(--teal-dark); transform: scale(1.06); }
.chat-dot { position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; background: #22c55e; border-radius: 50%; border: 2px solid #fff; }
.chat-window {
  display: none; position: fixed; bottom: 92px; right: 24px; z-index: 200;
  width: 350px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(10,37,64,0.15); border: 1px solid var(--gray-200);
  flex-direction: column; overflow: hidden; max-height: 480px;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--navy); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.chat-hname { font-weight: 600; font-size: 13px; color: #fff; }
.chat-hstatus { font-size: 11px; color: var(--teal-light); display: flex; align-items: center; gap: 4px; }
.chat-hstatus::before { content: ''; width: 5px; height: 5px; background: #22c55e; border-radius: 50%; display: inline-block; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 7px; align-items: flex-end; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-bubble.bot { background: var(--gray-100); color: var(--navy); border-bottom-left-radius: 3px; }
.chat-bubble.user { background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }
.chat-bot-av { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,153,168,0.12); border: 1px solid rgba(0,153,168,0.2); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.chat-chips { padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.chat-chip { font-size: 11px; border: 1px solid rgba(0,153,168,0.3); color: var(--teal); padding: 4px 9px; border-radius: 100px; cursor: pointer; background: none; transition: all 0.15s; }
.chat-chip:hover { background: rgba(0,153,168,0.08); }
.chat-input-row { padding: 10px; border-top: 1px solid var(--gray-100); display: flex; gap: 7px; }
.chat-input { flex: 1; font-size: 13px; background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 9px 13px; outline: none; transition: border-color 0.15s; }
.chat-input:focus { border-color: var(--teal); }
.chat-send { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 14px; transition: background 0.15s; }
.chat-send:hover { background: var(--teal-dark); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.typing { display: flex; gap: 4px; align-items: center; }
.typing span { width: 5px; height: 5px; background: var(--gray-400); border-radius: 50%; animation: tdot 1.2s infinite; display: inline-block; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%,60%,100%{opacity:.2;transform:scale(1)} 30%{opacity:1;transform:scale(1.3)} }

/* ── Accordion (modules, FAQ) ──────────────────────── */
.acc-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; width: 100%; text-align: left; background: #fff;
  border: none; cursor: pointer; transition: background 0.15s;
}
.acc-trigger:hover { background: var(--gray-50); }
.acc-chevron { color: var(--gray-400); font-size: 18px; flex-shrink: 0; transition: transform 0.2s; display: inline-block; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-body { display: none; border-top: 1px solid var(--gray-100); }
.acc-item.open .acc-body { display: block; }

/* ── Testimonial card ──────────────────────────────── */
.t-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; }
.stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.t-text { font-size: 15px; color: var(--gray-600); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.t-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.t-role { font-size: 12px; color: var(--gray-400); }
