/* ================================================================
 * Tư Vấn Bảo Hiểm — Main CSS (Vanilla, < 50KB target)
 * Core Web Vitals: LCP < 2.5s, CLS < 0.1, INP < 200ms
 * Design tokens & pixel-perfect components
 * ================================================================ */

/* --- Design tokens --- */
:root {
  /* Brand */
  --c-primary: #1a2440;
  --c-primary-blue: #2563eb;
  --c-accent-green: #10b981;
  --c-accent-green-dark: #059669;
  --c-cta: #f97316;
  --c-cta-hover: #ea580c;

  /* Card tints */
  --c-card-blue: #dbeafe;
  --c-card-green: #d1fae5;
  --c-card-pink: #fee2e2;
  --c-card-purple: #ede9fe;
  --c-card-yellow: #fef3c7;

  /* Neutrals */
  --c-bg: #ffffff;
  --c-bg-soft: #f8fafc;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;

  /* Form */
  --c-form-bg: #ecfdf5;

  /* Typography — self-hosted Inter via critical-header.css */
  --font-base: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Brush Script MT', cursive;
  --fs-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2rem);

  /* Layout */
  --container-max: 1280px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
  --shadow-cta: 0 4px 14px rgba(249,115,22,.35);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  color: var(--c-text);
  line-height: 1.6;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul { list-style: none; }
.sr-only, .screen-reader-text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; border-radius: 8px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn-hero { background: var(--c-cta); color: #fff; padding: 0.9rem 2.25rem; border-radius: 14px; font-size: 1.05rem; min-height: 52px; box-shadow: var(--shadow-cta); letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.btn-submit { width: 100%; background: var(--c-accent-green); color: #fff; padding: .95rem; border-radius: 8px; font-weight: 700; font-size: 1rem; }
.btn-submit:hover { background: var(--c-accent-green-dark); }

/* ============================================================ */
/* HEADER REMOVED — Now in assets/css/critical-header.css        */
/* Inlined via inc/header-hooks.php::inline_critical_header_css  */
/* ============================================================ */

/* ============================================================ */
/* HERO — Premium Insurance v6.0 (scoped BEM)                   */
/* ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 35vh;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 75% 60% at 72% 45%, rgba(219,234,254,0.55) 0%, transparent 68%),
    radial-gradient(ellipse 50% 45% at 20% 25%, rgba(191,219,254,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(224,242,254,0.20) 0%, transparent 50%),
    linear-gradient(155deg, #eef4fa 0%, #dce8f5 30%, #d6e4f2 55%, #eaf2f9 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero__content {
  max-width: 750px;
}

.hero__headline {
  font-size: calc(var(--fs-h1) * 0.9);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-primary);
  letter-spacing: -0.025em;
}

.hero__headline-line2 {
  display: block;
  margin-top: 0.15rem;
  font-size: calc(var(--fs-h1) * 0.855);
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  margin: 1.25rem 0 1.75rem;
  color: #475569;
  max-width: 460px;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* --- CTA (hero scoped override for global .btn-hero) --- */
.hero .btn-hero {
  padding: 0.9rem 2.25rem;
  border-radius: 14px;
  font-size: 1.05rem;
  min-height: 52px;
  box-shadow:
    0 4px 14px rgba(249,115,22,0.30),
    0 8px 28px -4px rgba(249,115,22,0.15);
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}

.hero .btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 100%);
  pointer-events: none;
}

.hero .btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(249,115,22,0.40),
    0 12px 40px -8px rgba(249,115,22,0.20);
  background: var(--c-cta-hover);
}

.btn-hero__arrow {
  display: inline-flex;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.hero .btn-hero:hover .btn-hero__arrow {
  transform: translateX(4px);
}

/* --- Hero trust badges (scoped — no collision with .trust section) --- */
.hero__trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: #475569;
  letter-spacing: 0.01em;
}

.hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.hero__trust-label {
  font-weight: 500;
  line-height: 24px;
}

/* --- Hero visual --- */
.hero__visual {
  position: relative;
  width: 100%;
  align-self: stretch;
}

.hero__visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 85%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* --- Decorative leaves (reduced: 4) --- */
.hero__leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  color: #6b9bc7;
}

.hero__leaf {
  position: absolute;
  opacity: 0.08;
  will-change: transform;
}

.hero__leaf--1 {
  top: 12%;
  left: 5%;
  animation: hero-leaf-drift 24s ease-in-out infinite;
}

.hero__leaf--2 {
  bottom: 18%;
  left: 16%;
  animation: hero-leaf-rise 28s ease-in-out infinite;
  opacity: 0.06;
}

.hero__leaf--3 {
  top: 25%;
  right: 10%;
  animation: hero-leaf-drift 32s ease-in-out infinite;
  opacity: 0.05;
}

.hero__leaf--4 {
  top: 55%;
  left: 40%;
  animation: hero-leaf-rise 22s ease-in-out infinite;
  opacity: 0.07;
}

@keyframes hero-leaf-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(10px, -12px) rotate(3deg); }
  50%      { transform: translate(4px, -18px) rotate(-2.5deg); }
  75%      { transform: translate(-6px, -6px) rotate(3.5deg); }
}

@keyframes hero-leaf-rise {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(-8px, -16px) rotate(-3.5deg); }
  60%      { transform: translate(6px, -20px) rotate(4deg); }
  85%      { transform: translate(-3px, -8px) rotate(-2deg); }
}

/* ============================================================ */
/* SERVICES — Standalone (Full Width)                           */
/* ============================================================ */
.services { padding: 4.5rem 0; background: #fff; }
.services-heading {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; width: 100%; }

.service-card {
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card--blue   { background: var(--c-card-blue); }
.service-card--green  { background: var(--c-card-green); }
.service-card--pink   { background: var(--c-card-pink); }
.service-card--purple { background: var(--c-card-purple); }
.service-card--yellow { background: var(--c-card-yellow); }

.service-illu { width: 100%; height: 110px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-illu img, .service-illu svg { width: auto; height: 100%; max-width: 100%; flex-shrink: 0; }

.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--c-primary); margin-bottom: .5rem; }
.service-card p { font-size: .85rem; color: #334155; line-height: 1.55; margin-bottom: 1rem; flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; }
.service-card--blue   .service-link { color: #2563eb; }
.service-card--green  .service-link { color: var(--c-accent-green-dark); }
.service-card--pink   .service-link { color: #dc2626; }
.service-card--purple .service-link { color: #7c3aed; }
.service-card--yellow .service-link { color: #d97706; }

/* ============================================================ */
/* TƯ VẤN & RỦI RO — 2 Cột (Form + Video Feed)                */
/* LEGACY: .consult-risk namespace kept for backward compat.    */
/* New sections use .consultation-form / .risk-alert instead.   */
/* Selector dependency map:                                      */
/*   .consult-risk         → legacy section wrapper (DO NOT USE) */
/*   .consult-risk-layout  → legacy 2-col grid (DO NOT USE)    */
/*   .consult-form         → STILL USED by .consultation-form   */
/*   .consult-form-wrap    → STILL USED by .consultation-form   */
/*   .form-row             → STILL USED by .consultation-form   */
/*   .form-row.single      → STILL USED by .consultation-form   */
/*   .btn-submit           → STILL USED by .consultation-form   */
/*   .consent              → STILL USED by .consultation-form   */
/*   .form-hint            → STILL USED by .consultation-form  */
/*   .yt-feed-*            → ONLY used in legacy risk-news       */
/* ============================================================ */
.consult-risk {
  padding: 5rem 0;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.consult-risk-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Form column */
.consult-form-wrap { position: relative; width: 100%; }
.consult-form {
  background: var(--c-form-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.consult-form h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: .35rem;
  position: relative;
  padding-bottom: .65rem;
}
.consult-form h2::after { content:''; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; background: var(--c-accent-green); border-radius: 2px; }
.consult-form .lead { color: var(--c-text-muted); font-size: .9rem; margin-bottom: 1.25rem; }

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

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  font-size: .92rem;
  color: var(--c-text);
}
.consult-form textarea { min-height: 75px; resize: vertical; }
.consult-form input::placeholder,
.consult-form select,
.consult-form textarea::placeholder { color: #94a3b8; }
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--c-accent-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; color: var(--c-text-muted); margin: .85rem 0 1rem; }
.consent svg { flex-shrink: 0; margin-top: 1px; color: var(--c-accent-green); }

.form-hint {
  position: absolute;
  right: -110px;
  top: 40%;
  font-family: var(--font-script);
  color: var(--c-accent-green-dark);
  font-size: 1.4rem;
  width: 95px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(8deg);
}
.form-hint::before {
  content: '';
  display: block;
  width: 50px; height: 32px;
  margin: 0 auto .25rem;
  border: 2px solid var(--c-accent-green-dark);
  border-color: var(--c-accent-green-dark) transparent transparent transparent;
  border-radius: 50% 50% 0 0;
  transform: rotate(-30deg);
}

/* Risk news / video feed column */
.risk-news-column { width: 100%; }
.risk-news-column .column-header { margin-bottom: 2rem; }
.risk-news-column .column-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.risk-news-column .column-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
}

.yt-feed-server {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}
.yt-feed-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  cursor: pointer;
  padding: 0;
  width: 100%;
}
.yt-feed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.yt-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.yt-video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.4;
  flex: 1;
}

/* ============================================================ */
/* TRUST BADGES                                                 */
/* ============================================================ */
.trust { padding: 1rem 0 4.5rem; background: #fff; }
.trust-row {
  background: #f1f5fb;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.advisor-profile .trust {
  padding: 0;
  background: transparent;
}
.advisor-profile .trust-row {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--c-border);
}
.trust-item { display: flex; gap: .75rem; align-items: flex-start; }
.trust-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.trust-icon--green  { background: #10b981; }
.trust-icon--blue   { background: #3b82f6; }
.trust-icon--yellow { background: #f59e0b; }
.trust-icon--red    { background: #ef4444; }
.trust-text h4 { font-size: .95rem; font-weight: 700; color: var(--c-primary); margin-bottom: .15rem; }
.trust-text p { font-size: .8rem; color: var(--c-text-muted); line-height: 1.45; }

/* ============================================================ */
/* SECTION HEADER — Shared pattern                              */
/* ============================================================ */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.section-header .section-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================ */
/* CUSTOMER NEEDS                                               */
/* ============================================================ */
.customer-needs { padding: 4.5rem 0; background: #fff; }
.needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.need-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.need-image-wrap { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.need-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.need-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.need-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.need-title { font-size: 1.05rem; font-weight: 700; color: var(--c-primary); margin-bottom: 0.5rem; }
.need-desc { font-size: 0.88rem; color: #475569; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.btn-need { align-self: flex-start; background: var(--c-primary-blue); color: #fff; padding: 0.5rem 1.25rem; font-size: 0.85rem; border-radius: 8px; }
.btn-need:hover { background: #1d4ed8; }

/* ============================================================ */
/* RISK ALERT — Layout variants + Card anatomy + Modal          */
/* ============================================================ */
.risk-alert { padding: 5rem 0; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

/* --- Grid: featured vs uniform --- */
.ra-grid {
  display: grid;
  gap: 1.25rem;
}
.ra-grid--uniform {
  grid-template-columns: repeat(3, 1fr);
}
.ra-grid--featured {
  grid-template-columns: 2fr 1fr 1fr;
}
.ra-grid--featured .ra-card--featured {
  grid-row: span 2;
}

/* ============================================================ */
/* RISK ALERT v4 — moved to assets/css/components/              */
/* ============================================================ */



/* --- DEPRECATED: consult-risk (old layout) --- */
/* .consult-risk and .consult-risk-layout are deprecated — use .risk-alert / .ra-grid instead */

/* ============================================================ */
/* CONSULTATION FORM — Standalone Full-Width                    */
/* ============================================================ */
.consultation-form {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #d4f4e2 100%);
}
.consultation-form .container { max-width: 720px; }
.consultation-form .consult-form-wrap {
  position: relative;
  width: 100%;
}
.consultation-form .form-hint {
  right: -130px;
  top: 35%;
}

/* ============================================================ */
/* PROCESS — 3-4 Steps Flow                                     */
/* ============================================================ */
.process {
  padding: 4.5rem 0;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-primary-blue);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.process-step-body { padding: 0 0.5rem; }
.process-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.process-step-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}
.process-connector {
  display: none;
}

/* ============================================================ */
/* TESTIMONIALS — Slider (Vanilla)                              */
/* ============================================================ */
.testimonials {
  padding: 4.5rem 0;
  background: var(--c-bg-soft);
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}
.testimonials-slider {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
@media (max-width: 768px) {
  .testimonials-slider { min-height: 380px; }
}
@media (max-width: 480px) {
  .testimonials-slider { min-height: 420px; }
}
.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: 100%;
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1rem;
}
.testimonial-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
  font-style: italic;
  margin-bottom: 1.25rem;
  quotes: none;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-meta { text-align: left; }
.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.95rem;
  font-style: normal;
}
.testimonial-role {
  display: block;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.testimonials-prev,
.testimonials-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  color: var(--c-text-muted);
}
.testimonials-prev:hover,
.testimonials-next:hover {
  background: var(--c-bg-soft);
  border-color: var(--c-primary-blue);
  color: var(--c-primary-blue);
}
.testimonials-prev:focus-visible,
.testimonials-next:focus-visible {
  outline: 2px solid var(--c-primary-blue);
  outline-offset: 2px;
}
.testimonials-dots {
  display: flex;
  gap: 0.5rem;
}
.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.testimonials-dot.is-active {
  background: var(--c-primary-blue);
  border-color: var(--c-primary-blue);
}
.testimonials-dot:hover {
  border-color: var(--c-primary-blue);
}
.testimonials-dot:focus-visible {
  outline: 2px solid var(--c-primary-blue);
  outline-offset: 2px;
}

/* ============================================================ */
/* FAQ ACCORDION                                                */
/* ============================================================ */
.faq {
  padding: 4.5rem 0;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.4;
}
.faq-toggle:hover { color: var(--c-primary-blue); }
.faq-toggle:focus-visible {
  outline: 2px solid var(--c-primary-blue);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-question-text { flex: 1; }
.faq-icon {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--c-text-muted);
}
.faq-toggle[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--c-primary-blue); }
.faq-panel { overflow: hidden; }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}
.faq-answer p { margin-bottom: 0.5rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #ecfdf5 0%, #d4f4e2 100%);
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.5fr;
  gap: 2rem;
  position: relative; z-index: 1;
}
.footer-col h3 { font-size: 1rem; font-weight: 700; color: var(--c-primary); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul a { color: #334155; font-size: .9rem; }
.footer-col ul a:hover { color: var(--c-primary-blue); }

.footer-about .site-logo { margin-bottom: 1rem; display: flex; align-items: center; gap: .625rem; text-decoration: none; color: inherit; }
.footer-about .site-logo .logo-icon { width: 40px; height: 48px; flex-shrink: 0; display: block; }
.footer-about .site-logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-about .site-logo .logo-brand { display: flex; align-items: baseline; gap: .25rem; font-size: 1.15rem; white-space: nowrap; }
.footer-about .site-logo .logo-brand--dark { font-weight: 700; color: var(--c-primary); letter-spacing: -0.01em; }
.footer-about .site-logo .logo-brand--light { font-weight: 800; color: var(--c-primary-blue); letter-spacing: -0.01em; }
.footer-about .site-logo .logo-slogan { font-size: .56rem; font-weight: 600; color: var(--c-text-muted); letter-spacing: .22em; text-transform: uppercase; margin-top: 1px; white-space: nowrap; }
.footer-about p { font-size: .9rem; color: var(--c-text-muted); margin-bottom: 1rem; line-height: 1.6; max-width: 280px; }
.social-icons { display: flex; gap: .55rem; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-icons .fb { background: #1877f2; }
.social-icons .ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icons .ln { background: #0a66c2; }
.social-icons .yt { background: #ff0000; }

.contact-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .65rem; font-size: .9rem; color: #334155; }
.contact-list .ic { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--c-primary-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }

.footer-illu {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: 220px;
  height: 180px;
  opacity: .9;
  pointer-events: none;
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__content { max-width: 440px; }
  .consult-risk-layout { grid-template-columns: 1fr; gap: 3rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .form-hint { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :nth-child(4),
  .footer-grid > :nth-child(5) { grid-column: span 1; }
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-grid--uniform { grid-template-columns: repeat(2, 1fr); }
  .ra-grid--featured { grid-template-columns: 1fr 1fr; }
  .ra-grid--featured .ra-card--featured { grid-row: span 1; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { min-height: 0; padding: 3rem 0 3.5rem; }
  .hero__content { max-width: 100%; }
  .hero__headline { font-size: 2.025rem; }
  .hero__sub { font-size: 1rem; margin: 1rem 0 1.5rem; }
  .hero .btn-hero { padding: 0.85rem 2rem; min-height: 48px; font-size: 1rem; }
  .hero__visual { max-width: 480px; justify-self: center; }
  .hero__leaf--3, .hero__leaf--4 { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-illu { display: none; }
  .needs-grid { grid-template-columns: 1fr; }
  .ra-grid--uniform,
  .ra-grid--featured { grid-template-columns: 1fr; }
  .ra-grid--featured .ra-card--featured { grid-row: span 1; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .process-step { display: flex; align-items: flex-start; text-align: left; gap: 1rem; }
  .process-step-number { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 1.1rem; }
  .consultation-form .form-hint { display: none; }
}
@media (max-width: 580px) {
  .yt-feed-server { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 2rem 0 2.5rem; }
  .hero__headline { font-size: clamp(1.5rem, 5vw, 1.75rem); }
  .hero__headline-line2 { margin-top: 0.1rem; }
  .hero__sub { font-size: 0.9rem; margin: 0.85rem 0 1.25rem; }
  .hero .btn-hero { padding: 0.75rem 1.5rem; min-height: 44px; font-size: 0.925rem; width: 100%; justify-content: center; }
  .hero__trust { gap: 0.6rem; margin-top: 1.25rem; flex-direction: column; }
  .hero__trust-item { gap: 0.45rem; font-size: 0.825rem; }
  .hero__trust-icon { width: 20px; height: 20px; }
  .hero__trust-label { line-height: 20px; }
  .hero__visual { max-width: 100%; }
  .hero__leaf--3, .hero__leaf--4 { display: none; }
  .hero__leaf--1, .hero__leaf--2 { opacity: 0.04; }
  .service-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .customer-needs { padding: 3rem 0; }
  .risk-alert { padding: 3rem 0; }
  .consultation-form { padding: 3rem 0; }
  .process { padding: 3rem 0; }
  .testimonials { padding: 3rem 0; }
  .faq { padding: 3rem 0; }
  .testimonial-card { padding: 1.25rem; }
  .ra-modal-content { width: 100vw; border-radius: 0; }
  .ra-modal-close { top: 10px; right: 10px; background: rgba(0,0,0,0.5); }
}

/* --- Mobile menu — Now handled in critical-header.css --- */

/* ============================================================ */
/* RISK ALERT v4 — Carousel Responsive moved to components/     */
/* ============================================================ */

@media (max-width: 480px) {
  .ra-modal__content {
    width: 100vw;
    border-radius: 0;
  }

  .ra-modal__close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
  }
}

/* ============================================================ */
/* PAIN POINTS                                                   */
/* ============================================================ */
.pain-points {
  padding: 4.5rem 0;
  background: var(--c-bg-soft);
  text-align: center;
}
.pain-points__inner {
  max-width: 820px;
  margin: 0 auto;
}
.pain-points__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.pain-points__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.pain-points__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}
.pain-points__icon {
  flex-shrink: 0;
  color: var(--c-primary-blue);
  margin-top: 2px;
}
.pain-points__bridge {
  font-size: 1rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ============================================================ */
/* COMMITMENTS                                                   */
/* ============================================================ */
.commitments {
  padding: 4.5rem 0;
  background: #fff;
}
.commit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.commit-card {
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--c-border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.commit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.commit-card__icon {
  color: var(--c-primary-blue);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}
.commit-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.commit-card__desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}
.commitments__cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================================ */
/* ADVISOR PROFILE                                               */
/* ============================================================ */
.advisor-profile {
  padding: 4.5rem 0;
  background: var(--c-bg-soft);
}
.advisor-profile__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.advisor-profile__visual {
  position: sticky;
  top: 2rem;
}
.advisor-profile__img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.advisor-profile__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.advisor-profile__intro {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.advisor-profile__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.advisor-profile__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #475569;
}
.advisor-profile__bullets svg {
  flex-shrink: 0;
  color: var(--c-accent-green);
  margin-top: 3px;
}
.advisor-profile__benefits {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--c-border);
}
.advisor-profile__benefits-title {
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.advisor-profile__benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.advisor-profile__benefit-item {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.4;
  padding-left: 0.75rem;
  border-left: 2px solid var(--c-accent-green);
}

/* ============================================================ */
/* HERO — CTA Group                                              */
/* ============================================================ */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.hero__micro {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ============================================================ */
/* FAQ — Final CTA                                               */
/* ============================================================ */
.faq-final-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.faq-final-cta__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

/* ============================================================ */
/* STICKY MOBILE CTA BAR                                        */
/* ============================================================ */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 0.65rem 1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-mobile-cta__inner {
  display: flex;
  gap: 0.5rem;
}
.sticky-mobile-cta .btn-zalo {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}
.sticky-mobile-cta .btn-zalo-outline {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .pain-points__title {
    font-size: 1.35rem;
  }
  .pain-points__item {
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
  }
  .commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advisor-profile__grid {
    grid-template-columns: 1fr;
  }
  .advisor-profile__visual {
    position: static;
    text-align: center;
  }
  .advisor-profile__img {
    max-width: 260px;
    margin: 0 auto;
  }
  .advisor-profile__benefits-grid {
    grid-template-columns: 1fr;
  }
  .faq-final-cta {
    padding: 1.5rem;
  }
  .faq-final-cta__text {
    font-size: 0.95rem;
  }
  .sticky-mobile-cta {
    display: block;
  }
}

@media (max-width: 480px) {
  .pain-points {
    padding: 2.5rem 0;
  }
  .commitments {
    padding: 2.5rem 0;
  }
  .advisor-profile {
    padding: 2.5rem 0;
  }
  .commit-grid {
    grid-template-columns: 1fr;
  }
  .commit-card {
    padding: 1rem 0.85rem;
  }
  .hero__cta-group {
    flex-direction: column;
  }
  .hero__cta-group .btn-zalo,
  .hero__cta-group .btn-zalo-outline {
    width: 100%;
    justify-content: center;
  }
}
