/*
 * Practice Hub × GoHighLevel pages (/en/practice-hub-gohighlevel, /en/switch-from-gohighlevel).
 * Loaded after /integrar-whatsapp-practicehub/styles.css and reuses its tokens and phw- components.
 */

/* Hero visual: patient record */
.phg-hero-visual { min-height: 610px; }

.phg-record {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(88%, 440px);
  overflow: hidden;
  border: 1px solid var(--phw-line);
  border-radius: 20px;
  background: var(--phw-white);
  box-shadow: var(--phw-shadow);
}

.phg-record-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--phw-line);
}

.phg-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--phw-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.phg-record-head strong,
.phg-record-head small { display: block; }
.phg-record-head strong { color: var(--phw-ink); font-size: 16px; line-height: 1.3; }
.phg-record-head small { margin-top: 2px; color: var(--phw-muted); font-size: 12px; }

.phg-synced {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f9ef;
  color: #11733a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.phg-record-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.phg-record-fields div {
  padding: 13px 22px;
  border-bottom: 1px solid var(--phw-line);
}

.phg-record-fields div:nth-child(odd) { border-right: 1px solid var(--phw-line); }

.phg-record-fields dt {
  color: var(--phw-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.phg-record-fields dd {
  margin: 3px 0 0;
  color: var(--phw-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.phg-record-history {
  margin: 0;
  padding: 16px 22px 20px;
  list-style: none;
}

.phg-record-history li {
  position: relative;
  padding: 0 0 10px 18px;
  color: var(--phw-text);
  font-size: 13px;
  line-height: 1.4;
}

.phg-record-history li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phw-blue);
  content: "";
}

.phg-record-history li:last-child { padding-bottom: 0; }
.phg-record-history time { color: var(--phw-muted); }

.phg-hero-visual .phw-event-card { bottom: 150px; }

/* Fact strip under the hero */
.phg-facts {
  border-top: 1px solid var(--phw-line);
  border-bottom: 1px solid var(--phw-line);
  background: var(--phw-white);
}

.phg-facts-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.phg-facts-inner div {
  padding: 30px 28px;
  border-left: 1px solid var(--phw-line);
}

.phg-facts-inner div:first-child { padding-left: 0; border-left: 0; }

.phg-facts-inner strong {
  display: block;
  color: var(--phw-ink);
  font-size: 20px;
  line-height: 1.3;
}

.phg-facts-inner p {
  margin: 6px 0 0;
  color: var(--phw-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Two-column feature: copy + visual */
.phg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.phg-split-copy > p {
  margin: 0 0 22px;
  color: var(--phw-text);
  font-size: 18px;
  line-height: 1.7;
}

.phw-section-dark .phg-split-copy > p { color: #c9cdd2; }

.phg-data-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.phg-data-list li {
  padding: 14px 16px;
  border: 1px solid var(--phw-line);
  border-radius: 12px;
  background: var(--phw-white);
  color: var(--phw-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.phg-data-list li small {
  display: block;
  margin-top: 3px;
  color: var(--phw-muted);
  font-size: 13px;
  font-weight: 400;
}

.phg-quote {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--phw-blue);
  border-radius: 0 12px 12px 0;
  background: var(--phw-soft);
}

.phg-quote p {
  margin: 0;
  color: var(--phw-ink);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
}

.phg-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--phw-muted);
  font-size: 13px;
  font-style: normal;
}

.phw-section-dark .phg-quote { background: rgba(255, 255, 255, .06); }
.phw-section-dark .phg-quote p { color: #fff; }
.phw-section-dark .phg-quote cite { color: #9aa0a6; }

/* Large patient record (in-section) */
.phg-record-static {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

/* One diary flow */
.phg-diary {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
}

.phg-diary-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.phg-diary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.phg-diary-row:first-child { padding-top: 0; }

.phg-diary-row .phw-platform-mark { width: 36px; height: 36px; }
.phg-diary-row strong { display: block; color: #fff; font-size: 16px; line-height: 1.35; }
.phg-diary-row small { display: block; margin-top: 4px; color: #9aa0a6; font-size: 14px; line-height: 1.5; }

/* Reactivation segments */
.phg-segments {
  padding: 26px;
  border-radius: 20px;
  background: var(--phw-ink);
  box-shadow: var(--phw-shadow);
}

.phg-segments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: #c2c6cb;
  font-size: 12px;
}

.phg-segment {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
}

.phg-segment + .phg-segment { margin-top: 12px; }

.phg-segment strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.phg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.phg-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(36, 123, 254, .18);
  color: #a9cbff;
  font-size: 12px;
  line-height: 1.3;
}

.phg-segment-action {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: #9fedae;
  font-size: 12px;
  font-weight: 600;
}

/* Troubleshooting list */
.phg-checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phg-check;
}

.phg-checks li {
  position: relative;
  padding: 22px 24px 22px 74px;
  border: 1px solid var(--phw-line);
  border-radius: 14px;
  background: var(--phw-white);
  counter-increment: phg-check;
}

.phg-checks li::before {
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--phw-soft);
  color: var(--phw-blue);
  font-size: 13px;
  font-weight: 800;
  content: counter(phg-check, decimal-leading-zero);
}

.phg-checks h3 {
  margin: 4px 0 6px;
  color: var(--phw-ink);
  font-size: 19px;
  line-height: 1.35;
}

.phg-checks p {
  margin: 0;
  color: var(--phw-text);
  font-size: 16px;
  line-height: 1.6;
}

/* Channels by region */
.phg-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.phg-region {
  padding: 26px;
  border: 1px solid var(--phw-line);
  border-radius: 16px;
  background: var(--phw-white);
}

.phg-region span {
  color: var(--phw-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.phg-region h3 {
  margin: 10px 0 8px;
  color: var(--phw-ink);
  font-size: 21px;
  line-height: 1.3;
}

.phg-region p {
  margin: 0;
  color: var(--phw-text);
  font-size: 15px;
  line-height: 1.6;
}

/* Quotes grid (migration page) */
.phg-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.phg-quotes .phg-quote { margin: 0; background: var(--phw-white); }

/* Layers: what QuiroHiro is */
.phg-layers {
  display: grid;
  gap: 12px;
}

.phg-layer {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--phw-line);
  border-radius: 16px;
  background: var(--phw-white);
}

.phg-layer > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--phw-soft);
  color: var(--phw-blue);
  font-size: 14px;
  font-weight: 800;
}

.phg-layer.is-base > span { background: var(--phw-ink); color: #fff; }
.phg-layer.is-ours { border-color: rgba(14, 94, 203, .35); box-shadow: 0 16px 40px rgba(14, 94, 203, .08); }
.phg-layer.is-ours > span { background: var(--phw-blue); color: #fff; }

.phg-layer h3 {
  margin: 2px 0 6px;
  color: var(--phw-ink);
  font-size: 20px;
  line-height: 1.35;
}

.phg-layer p {
  margin: 0;
  color: var(--phw-text);
  font-size: 16px;
  line-height: 1.6;
}

/* Migration hero card */
.phg-move {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(90%, 450px);
  padding: 24px;
  border: 1px solid var(--phw-line);
  border-radius: 20px;
  background: var(--phw-white);
  box-shadow: var(--phw-shadow);
}

.phg-move-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--phw-muted);
  font-size: 12px;
}

.phg-move-head strong { color: var(--phw-ink); font-size: 15px; }

.phg-move ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phg-move li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--phw-line);
  color: var(--phw-ink);
  font-size: 14px;
  font-weight: 600;
}

.phg-move li:last-child { border-bottom: 0; padding-bottom: 0; }

.phg-move li > span:first-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9f9ef;
  color: #11733a;
  font-size: 13px;
}

.phg-move li small { color: var(--phw-muted); font-size: 12px; font-weight: 500; }

/* Big objection answer */
.phg-objection {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.phg-objection-answer {
  padding: 34px;
  border-radius: 20px;
  background: var(--phw-soft);
}

.phg-objection-answer > p {
  margin: 0 0 18px;
  color: var(--phw-text);
  font-size: 18px;
  line-height: 1.7;
}

.phg-objection-answer .phw-check-list { margin-top: 8px; }

/* Further reading */
.phg-reading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.phg-reading a {
  display: block;
  padding: 26px;
  border: 1px solid var(--phw-line);
  border-radius: 16px;
  background: var(--phw-white);
  color: var(--phw-ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.phg-reading a:hover { border-color: var(--phw-blue); transform: translateY(-3px); }

.phg-reading span {
  color: var(--phw-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.phg-reading strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.phg-reading p {
  margin: 0;
  color: var(--phw-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .phg-split,
  .phg-objection { grid-template-columns: 1fr; }
  .phg-regions,
  .phg-quotes,
  .phg-reading { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .phg-hero-visual { min-height: 680px; }
  .phg-page .phw-platform-flow { grid-template-columns: 1fr 26px 1fr; gap: 6px; }
  .phg-page .phw-platform { gap: 8px; }
  .phg-record { width: 94%; }
  .phg-hero-visual .phw-event-card { bottom: auto; top: 150px; }
  .phg-facts-inner { grid-template-columns: 1fr; }
  .phg-facts-inner div { padding: 22px 0; border-left: 0; border-top: 1px solid var(--phw-line); }
  .phg-facts-inner div:first-child { border-top: 0; }
  .phg-data-list { grid-template-columns: 1fr; }
  .phg-record-fields div { padding: 11px 16px; }
  .phg-record-head,
  .phg-record-history { padding-right: 16px; padding-left: 16px; }
  .phg-checks li { padding: 20px 18px 20px 62px; }
  .phg-checks li::before { left: 18px; }
  .phg-move { width: 96%; padding: 18px; }
  .phg-objection-answer { padding: 24px; }
}

/* Longer keyword-led H1s on these pages */
.phg-page .phw-hero h1 { font-size: clamp(40px, 4.1vw, 60px); line-height: 1.06; }
@media (max-width: 767px) {
  .phg-page .phw-hero h1 { font-size: clamp(34px, 9.5vw, 46px); }
}

/* Sync timeline (replaces the speed bars) */
.phg-sync-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
.phg-sync-steps div {
  padding: 22px 24px;
  border: 1px solid var(--phw-line);
  border-radius: 14px;
  background: var(--phw-white);
}
.phg-sync-steps span {
  color: var(--phw-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.phg-sync-steps strong {
  display: block;
  margin-top: 8px;
  color: var(--phw-ink);
  font-size: 17px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .phg-sync-steps { grid-template-columns: 1fr; }
}

/* Paraphrased pains (no quote marks or attribution) */
.phg-quote-plain p { font-style: normal; }

/* "Example data" label on illustrative patient records */
.phg-example {
  padding: 9px 22px;
  border-top: 1px solid var(--phw-line);
  background: #f7f9fb;
  color: var(--phw-muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
