/* =====================================================================
   FACTS Transcripts & Verification Inc. — RGUHS Transcript Website
   Master Stylesheet  |  assets/css/style.css
   Design system: luxury corporate, medical + education, glassmorphism
   Framework: Bootstrap 5.3 (overrides + custom components)
   Author: FACTS Transcripts in-house design system
   ===================================================================== */

/* ------------------------------------------------------------------
   1. DESIGN TOKENS (CSS custom properties)
   ------------------------------------------------------------------ */
:root {
  /* Brand palette */
  --facts-primary: #0057B8;
  --facts-primary-dark: #003f86;
  --facts-primary-light: #2b7de0;
  --facts-secondary: #00AEEF;
  --facts-accent: #00C853;
  --facts-accent-dark: #009e42;
  --facts-bg: #F8FAFC;
  --facts-surface: #FFFFFF;
  --facts-text: #1F2937;
  --facts-muted: #5b6472;
  --facts-border: #e4e9f2;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0057B8 0%, #00AEEF 100%);
  --grad-accent: linear-gradient(135deg, #00AEEF 0%, #00C853 100%);
  --grad-hero: linear-gradient(140deg, #003f86 0%, #0057B8 42%, #00AEEF 100%);
  --grad-soft: linear-gradient(135deg, #eef5ff 0%, #e6fbff 100%);

  /* Typography */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radius & shadow */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 40, 90, .06);
  --shadow: 0 12px 34px rgba(15, 40, 90, .10);
  --shadow-lg: 0 26px 60px rgba(15, 40, 90, .16);
  --shadow-glow: 0 10px 40px rgba(0, 174, 239, .28);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, .65);
  --glass-border: rgba(255, 255, 255, .55);
  --glass-blur: 16px;

  /* Layout */
  --header-h: 76px;
  --container-max: 1200px;
  --section-py: 88px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark mode overrides */
[data-theme="dark"] {
  --facts-bg: #0b1220;
  --facts-surface: #121b2e;
  --facts-text: #e8eef7;
  --facts-muted: #9fb0c9;
  --facts-border: #22304a;
  --glass-bg: rgba(18, 27, 46, .6);
  --glass-border: rgba(120, 150, 200, .18);
  --grad-soft: linear-gradient(135deg, #0f1a30 0%, #10222e 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--facts-text);
  background: var(--facts-bg);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--facts-text);
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin-bottom: 1.05rem; color: var(--facts-text); }
a { color: var(--facts-primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--facts-secondary); }

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

.container { max-width: var(--container-max); }

.section { padding-block: var(--section-py); position: relative; }
.section-sm { padding-block: 56px; }

.lead-muted { color: var(--facts-muted); font-size: 1.12rem; }
.text-muted-2 { color: var(--facts-muted) !important; }

/* Section heading kit */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--facts-primary);
  background: rgba(0, 87, 184, .08);
  padding: .4rem .9rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
[data-theme="dark"] .eyebrow { background: rgba(0, 174, 239, .14); color: var(--facts-secondary); }

.section-title { margin-bottom: .8rem; }
.section-intro { max-width: 760px; color: var(--facts-muted); font-size: 1.08rem; }
.section-head-center { text-align: center; }
.section-head-center .section-intro { margin-inline: auto; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------------ */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: .72rem 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border: none;
}
.btn:active { transform: translateY(1px); }

.btn-facts {
  background: var(--grad-primary); color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-facts:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 87, 184, .4); }

.btn-accent { background: var(--facts-accent); color: #fff; box-shadow: 0 10px 30px rgba(0, 200, 83, .3); }
.btn-accent:hover { color: #fff; background: var(--facts-accent-dark); transform: translateY(-3px); }

.btn-outline-facts {
  background: transparent; color: var(--facts-primary);
  border: 2px solid var(--facts-primary);
}
.btn-outline-facts:hover { background: var(--facts-primary); color: #fff; transform: translateY(-3px); }
[data-theme="dark"] .btn-outline-facts { color: var(--facts-secondary); border-color: var(--facts-secondary); }
[data-theme="dark"] .btn-outline-facts:hover { background: var(--facts-secondary); color: #05233a; }

.btn-ghost-light {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .26); color: #fff; transform: translateY(-3px); }

.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ------------------------------------------------------------------
   4. HEADER / NAV / MEGA MENU
   ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-glow); flex: none;
}
.brand-text { line-height: 1.05; }
.brand-text strong { font-size: 1.12rem; color: var(--facts-text); display: block; }
.brand-text span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--facts-muted); }

.main-nav .nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--facts-text); padding: .5rem .9rem !important; border-radius: 10px;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--facts-primary); background: rgba(0, 87, 184, .07); }
[data-theme="dark"] .main-nav .nav-link:hover, [data-theme="dark"] .main-nav .nav-link.active { color: var(--facts-secondary); background: rgba(0, 174, 239, .12); }

/* Mega menu */
.has-mega { position: static; }
.mega-menu {
  border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--facts-surface);
  padding: 1.4rem;
  margin-top: .6rem !important;
  min-width: min(920px, 94vw);
}
.mega-col h6 {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--facts-muted); margin-bottom: .7rem; font-family: var(--font-head);
}
.mega-link {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem .6rem; border-radius: 12px; color: var(--facts-text);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.mega-link:hover { background: var(--grad-soft); transform: translateX(3px); color: var(--facts-primary); }
.mega-link i { color: var(--facts-secondary); font-size: 1.05rem; margin-top: .18rem; }
.mega-link strong { display: block; font-family: var(--font-head); font-size: .95rem; font-weight: 600; }
.mega-link small { color: var(--facts-muted); font-size: .8rem; }

.dropdown-menu { border-radius: var(--radius); border: 1px solid var(--facts-border); box-shadow: var(--shadow-lg); background: var(--facts-surface); }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-size: .93rem; color: var(--facts-text); }
.dropdown-item:hover { background: var(--grad-soft); color: var(--facts-primary); }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--facts-border);
  background: var(--facts-surface); color: var(--facts-text); display: grid; place-items: center;
  cursor: pointer; transition: transform .3s var(--ease), color .3s var(--ease);
}
.theme-toggle:hover { transform: rotate(15deg); color: var(--facts-primary); }

/* ------------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding-block: clamp(70px, 12vw, 130px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(10px); opacity: .5; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,200,83,.45), transparent 70%); top: -140px; right: -80px; }
.hero::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); bottom: -160px; left: -100px; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .92); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  padding: .45rem 1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .88rem;
  backdrop-filter: blur(6px); margin-bottom: 1.3rem;
}
.hero-badge i { color: #ffd166; }

.hero-page {
  background: var(--grad-hero); color: #fff;
  padding-block: clamp(60px, 9vw, 96px);
  position: relative; overflow: hidden;
}
.hero-page::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,83,.4), transparent 70%);
  top: -120px; right: -60px; filter: blur(8px);
}
.hero-page h1 { color: #fff; }
.hero-page p { color: rgba(255, 255, 255, .92); }
.hero-page .container { position: relative; z-index: 2; }

/* ------------------------------------------------------------------
   6. GLASS / CARDS
   ------------------------------------------------------------------ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-facts {
  background: var(--facts-surface);
  border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.7rem;
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-facts:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(0, 174, 239, .5); }

.icon-badge {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: var(--grad-primary); box-shadow: var(--shadow-glow); margin-bottom: 1.1rem;
}
.icon-badge.accent { background: var(--grad-accent); box-shadow: 0 10px 30px rgba(0,200,83,.3); }

.card-facts h3, .card-facts h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.card-facts p { color: var(--facts-muted); font-size: .97rem; margin-bottom: 0; }

/* Agency chips grid */
.agency-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius); padding: 1.1rem .8rem; height: 100%;
  text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  color: var(--facts-text);
}
.agency-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--facts-primary); }
.agency-chip .ac-abbr { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.agency-chip small { color: var(--facts-muted); font-size: .78rem; line-height: 1.3; }

/* ------------------------------------------------------------------
   7. STAT COUNTERS
   ------------------------------------------------------------------ */
.stats-band { background: var(--grad-primary); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stat-item { text-align: center; padding: 1.4rem 1rem; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat-num .plus { font-size: .7em; }
.stat-label { font-size: .95rem; opacity: .92; margin-top: .35rem; letter-spacing: .02em; }
.stat-divider { border-right: 1px solid rgba(255,255,255,.25); }

.mini-stat { display: flex; align-items: center; gap: .8rem; }
.mini-stat i { font-size: 1.5rem; color: var(--facts-accent); }
.mini-stat strong { font-family: var(--font-head); display: block; font-size: 1.4rem; line-height: 1; }
.mini-stat span { color: var(--facts-muted); font-size: .85rem; }

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.trust-pill i { color: var(--facts-accent); }
.hero .trust-pill { color: var(--facts-text); }

/* ------------------------------------------------------------------
   8. HOW IT WORKS / TIMELINE
   ------------------------------------------------------------------ */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(var(--facts-secondary), var(--facts-accent)); border-radius: 3px;
}
.timeline-item { position: relative; padding-left: 76px; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-primary); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow-glow);
}
.timeline-item h4 { font-size: 1.15rem; margin-bottom: .35rem; }
.timeline-item p { color: var(--facts-muted); margin-bottom: 0; }

.step-card { position: relative; }
.step-num {
  position: absolute; top: -18px; right: 18px; font-family: var(--font-head); font-weight: 800;
  font-size: 3rem; color: rgba(0, 87, 184, .10); line-height: 1;
}
[data-theme="dark"] .step-num { color: rgba(0, 174, 239, .16); }

/* ------------------------------------------------------------------
   9. TESTIMONIALS / REVIEWS
   ------------------------------------------------------------------ */
.testimonial-card {
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg); padding: 1.8rem; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial-card .stars { color: #ffb400; margin-bottom: .8rem; }
.testimonial-card blockquote { font-size: 1rem; color: var(--facts-text); margin-bottom: 1.2rem; }
.tm-author { display: flex; align-items: center; gap: .8rem; }
.tm-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none;
}
.tm-author strong { display: block; font-family: var(--font-head); font-size: .96rem; }
.tm-author small { color: var(--facts-muted); }

.review-summary {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sm);
}
.review-score { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--facts-primary); line-height: 1; }

/* ------------------------------------------------------------------
   10. FAQ ACCORDION
   ------------------------------------------------------------------ */
.accordion-facts .accordion-item {
  border: 1px solid var(--facts-border); border-radius: var(--radius) !important;
  margin-bottom: .9rem; overflow: hidden; background: var(--facts-surface);
}
.accordion-facts .accordion-button {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--facts-text);
  background: var(--facts-surface); padding: 1.1rem 1.3rem;
}
.accordion-facts .accordion-button:not(.collapsed) { color: var(--facts-primary); background: var(--grad-soft); box-shadow: none; }
.accordion-facts .accordion-button:focus { box-shadow: none; border-color: var(--facts-secondary); }
.accordion-facts .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230057B8' stroke-width='2.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
}
.accordion-facts .accordion-body { color: var(--facts-muted); padding: 0 1.3rem 1.2rem; }
[data-theme="dark"] .accordion-facts .accordion-button { color: var(--facts-text); }

/* ------------------------------------------------------------------
   11. BLOG CARDS
   ------------------------------------------------------------------ */
.blog-card {
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 170px; background: var(--grad-primary); position: relative; display: grid; place-items: center; color: #fff; }
.blog-thumb i { font-size: 2.6rem; opacity: .9; }
.blog-thumb.alt { background: var(--grad-accent); }
.blog-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--facts-secondary); font-weight: 700; }
.blog-body h3 { font-size: 1.12rem; margin: .4rem 0 .5rem; }
.blog-body p { color: var(--facts-muted); font-size: .93rem; flex: 1; }
.blog-meta { font-size: .82rem; color: var(--facts-muted); display: flex; gap: 1rem; margin-top: .6rem; }

/* ------------------------------------------------------------------
   12. FORMS
   ------------------------------------------------------------------ */
.form-card {
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem;
}
.form-label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--facts-text); margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1px solid var(--facts-border); padding: .7rem .95rem;
  background: var(--facts-bg); color: var(--facts-text); font-size: .97rem;
}
.form-control:focus, .form-select:focus { border-color: var(--facts-secondary); box-shadow: 0 0 0 .2rem rgba(0, 174, 239, .18); background: var(--facts-surface); }
.form-control::placeholder { color: #9aa4b4; }
.form-note { font-size: .82rem; color: var(--facts-muted); }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(0, 200, 83, .12); color: var(--facts-accent-dark); border: 1px solid rgba(0, 200, 83, .3); }

/* ------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------ */
.site-footer { background: #0a1424; color: #c9d4e5; padding-top: 72px; }
[data-theme="dark"] .site-footer { background: #060c17; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: #b7c4da; font-size: .93rem; display: inline-block; padding: .18rem 0; }
.site-footer a:hover { color: var(--facts-secondary); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8296b3; }
footer p { color: #c9d4e5; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--facts-secondary); margin-top: .25rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: #fff; margin-right: .5rem; transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--grad-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 22px 0; font-size: .86rem; color: #8296b3; }
.footer-disclaimer { font-size: .8rem; color: #6f83a3; margin-top: .6rem; }

/* ------------------------------------------------------------------
   14. FLOATING ACTION BUTTONS
   ------------------------------------------------------------------ */
.fab-stack { position: fixed; right: 20px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: .7rem; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.4rem; box-shadow: var(--shadow-lg); cursor: pointer; border: none;
  transition: transform .25s var(--ease); text-decoration: none;
}
.fab:hover { transform: scale(1.1); color: #fff; }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--grad-primary); }
.fab-top { background: var(--facts-text); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .25s var(--ease); }
.fab-top.show { opacity: 1; pointer-events: auto; }
[data-theme="dark"] .fab-top { background: #2b3a55; }

/* Live chat placeholder */
.chat-widget {
  position: fixed; left: 20px; bottom: 22px; z-index: 1040;
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem .55rem .6rem;
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--facts-text);
}
.chat-widget .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; color: #fff; }
.chat-panel {
  position: fixed; left: 20px; bottom: 84px; z-index: 1041; width: min(330px, 90vw);
  background: var(--facts-surface); border: 1px solid var(--facts-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.2rem; display: none;
}
.chat-panel.show { display: block; }

/* ------------------------------------------------------------------
   15. BREADCRUMB
   ------------------------------------------------------------------ */
.breadcrumb-bar { background: transparent; padding-top: 1rem; }
.breadcrumb { margin-bottom: 0; font-size: .86rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.breadcrumb-item.active { color: rgba(255,255,255,.75); }

/* ------------------------------------------------------------------
   16. CONTENT (long-form article) helpers
   ------------------------------------------------------------------ */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  border-left: 4px solid var(--facts-secondary); padding: .8rem 1.2rem; margin: 1.4rem 0;
  background: var(--grad-soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--facts-text);
}
.info-box {
  background: var(--grad-soft); border: 1px solid var(--facts-border);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0;
}
.info-box h4 { font-size: 1.05rem; color: var(--facts-primary); }
.info-box p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .1rem; color: var(--facts-accent);
}

.table-facts { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-facts thead { background: var(--grad-primary); color: #fff; }
.table-facts th, .table-facts td { padding: .85rem 1rem; vertical-align: middle; }
.table-facts tbody tr:nth-child(even) { background: var(--grad-soft); }

.toc-card { position: sticky; top: calc(var(--header-h) + 20px); }
.toc-card a { display: block; padding: .35rem 0; color: var(--facts-muted); font-size: .92rem; border-left: 2px solid transparent; padding-left: .8rem; }
.toc-card a:hover { color: var(--facts-primary); border-left-color: var(--facts-secondary); }

/* CTA banner */
.cta-banner {
  background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.2rem); position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-banner::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,200,83,.4), transparent 70%); top: -100px; right: -60px; }
.cta-banner h2, .cta-banner p { color: #fff; position: relative; z-index: 2; }
.cta-banner .container-inner { position: relative; z-index: 2; }

/* ------------------------------------------------------------------
   17. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  :root { --section-py: 60px; }
  .navbar-collapse {
    background: var(--facts-surface); border: 1px solid var(--facts-border);
    border-radius: var(--radius); padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow-lg);
  }
  .mega-menu { min-width: 100%; box-shadow: none; border: none; padding: .4rem; }
  .stat-divider { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .toc-card { position: static; margin-bottom: 2rem; }
}
@media (max-width: 575.98px) {
  body { font-size: .98rem; overflow-x: hidden; }
  .site-header { height: auto; min-height: var(--header-h); padding: .5rem 0; }
  .navbar-brand { gap: .5rem; }
  .brand-logo-img { height: 44px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text span { font-size: .58rem; }
  .fab-stack { right: 12px; bottom: 14px; gap: .5rem; }
  .fab { width: 42px; height: 42px; font-size: 1.05rem; }
  .fab-top { display: none; }
  .chat-widget { left: 12px; bottom: 14px; padding: .4rem; }
  .chat-widget .dot { width: 30px; height: 30px; }
  .chat-widget span { display: none; }
}

/* Accessibility helpers */
.visually-hidden-focusable:focus { position: static !important; width: auto !important; height: auto !important; }
:focus-visible { outline: 3px solid var(--facts-secondary); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--facts-primary); color: #fff; padding: .6rem 1rem; z-index: 2000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

.brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  flex: none;
}
.footer-brand .brand-logo-img {
  height: 52px;
}
