/* ===========================================================
Advisor hero module CSS  (Figma v2)  – scoped under .advisor-hero
=========================================================== */

.advisor-hero {
  /* ---- Tweakable tokens ---- */
  --ah-title: #221F20;
  --ah-text: #666363;
  --ah-trust: #666363;
  --ah-btn-dark: #221F20;           /* placeholder primary button */
  --ah-radius-btn: 999px;

  --ah-display-font: "Inter", sans-serif;
  --ah-body-font: "Inter", sans-serif;

  font-family: var(--ah-body-font);
  -webkit-font-smoothing: antialiased;
}

.advisor-hero *,
.advisor-hero *::before,
.advisor-hero *::after { box-sizing: border-box; }

.ah-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.20fr 0.80fr;
  align-items: center;
  gap: 70px;
}

/* ---------------- Headline (richtext) ---------------- */
.ah-title h1 {
  color: var(--ah-title);
  font-family: var(--ah-display-font);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 300;                 /* "light" by default */
}
.ah-title p { margin: 0; }
.ah-title p + p { margin-top: 0.1em; }
.ah-title strong,
.ah-title b { font-weight: 800; }   /* "bold" toggle in the editor */

/* ---------------- Subline ---------------- */
.ah-desc {
  margin-top: clamp(20px, 2.4vw, 28px);
  color: var(--ah-text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  max-width: 80%
}
.ah-desc p { margin: 0; }
.ah-desc p + p { margin-top: 0.75em; }

/* ---------------- Buttons ---------------- */
.ah-actions {
  margin-top: clamp(26px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid transparent;    /* border-color set inline per button */
  border-radius: var(--ah-radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.ah-btn:hover { opacity: 0.88; }     /* works with any custom color */
.ah-btn:active { transform: translateY(1px); }
.ah-btn:focus-visible { outline: 2px solid var(--ah-title); outline-offset: 3px; opacity: 1; }

/* Defaults for the placeholder buttons only (real ones are colored inline) */
.ah-btn--primary { background: var(--ah-btn-dark); color: #fff; border-color: var(--ah-btn-dark); }
.ah-btn--secondary { background: #fff; color: var(--ah-title); border-color: var(--ah-btn-light-border); }

/* ---------------- Small texts ---------------- */
.ah-trust {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  color: var(--ah-trust);
  font-size: 0.8125rem;
}
.ah-trust-item { display: inline-flex; align-items: center; }
.ah-trust-item:not(:first-child)::before {
  content: "·";
  margin: 0 14px;
  opacity: 0.7;
}

/* ---------------- Visual (image / video) ---------------- */
.ah-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ah-visual-media {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
}
.ah-visual-video {
  border-radius: var(--ah-video-radius);
  background: #000;
}
.ah-visual-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #c4c2bc;
  border-radius: 16px;
  color: #9b988f;
  font-size: 0.9rem;
}
.video-frame {
    padding: 10px;
    background: url('https://www.hello-charles.com/hubfs/phone-frame.png');
    background-size: cover;
    background-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-btn { transition: none; }
  .ah-btn:active { transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .ah-container {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 56px);
  }
  .ah-content { max-width: 600px; }
  .ah-visual-media { max-width: 360px; }
  .ah-desc { max-width: 100%; }
}

@media (max-width: 420px) {
  .ah-actions { gap: 12px; }
  .ah-btn { flex: 1 1 auto; }
  .ah-trust { justify-content: center; }
}