/* MedRefer — Trust & Credibility section styles. Scoped under .trust. */

.trust {
  padding: 80px 0 96px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.trust .tr-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.trust .tr-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  color: var(--teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 18px;
}
.trust .tr-kicker::before, .trust .tr-kicker::after {
  content:""; width: 24px; height: 1px; background: var(--teal-deep); opacity: 0.5;
}
.trust .tr-head h2 {
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: balance;
}
.trust .tr-head h2 .muted { color: var(--navy-3); font-weight: 400; }
.trust .tr-head p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 580px;
  text-wrap: pretty;
}

.trust .pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1080px;
  margin: 0 auto 72px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust .pillar {
  padding: 32px 24px 28px;
  text-align: center;
  border-right: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; align-items: center;
}
.trust .pillar:last-child { border-right: 0; }
.trust .pi-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid; place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0,191,166,0.2);
}
.trust .pi-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}
.trust .pi-line {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 220px;
  text-wrap: pretty;
}

.trust .statement-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 48px 56px 44px;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow:
    0 24px 56px -28px rgba(11,22,34,0.18),
    0 10px 20px -12px rgba(11,22,34,0.06);
  overflow: hidden;
}
.trust .statement-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
}
.trust .statement-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust .statement-eyebrow {
  font-size: 10.5px;
  color: var(--teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 16px;
}
.trust .statement-glyph { margin-bottom: 16px; }
.trust .statement-glyph .gtile {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid; place-items: center;
  border: 1px solid rgba(0,191,166,0.22);
  font-family: 'Poppins', serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 0.6;
  padding-top: 6px;
}
.trust p.statement-body {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--navy);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.trust p.statement-body .em {
  background: linear-gradient(180deg, transparent 64%, rgba(0,191,166,0.32) 64%);
  padding: 0 2px;
}
.trust .statement-attrib {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex; align-items: center; gap: 14px;
}
.trust .statement-attrib .sig-mark {
  width: 36px; height: 1px;
  background: var(--navy);
}
.trust .statement-attrib .who { display: flex; flex-direction: column; line-height: 1.3; }
.trust .statement-attrib .name {
  font-size: 14px; font-weight: 600;
  color: var(--navy); letter-spacing: -0.005em;
}
.trust .statement-attrib .role {
  font-size: 12px; color: var(--ink-2);
}

.trust .portrait-col {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.trust .portrait-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow:
    0 18px 40px -22px rgba(11,22,34,0.20),
    0 6px 12px -8px rgba(11,22,34,0.08);
}
.trust .portrait-frame::before,
.trust .portrait-frame::after {
  content:"";
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid var(--teal);
  z-index: 2;
  pointer-events: none;
}
.trust .portrait-frame::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 18px;
}
.trust .portrait-frame::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 18px;
}
.trust .portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.trust .portrait-caption {
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust .portrait-caption .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal);
}

.trust .legal { display: none; }

/* Search icon button in nav */
.nav .search-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav .search-icon:hover {
  background: var(--surface-2);
  border-color: #CFD5DE;
}

/* Search expand state */
.nav .search-expand {
  position: absolute;
  inset: 0;
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
  z-index: 5;
}
.nav[data-search="open"] .search-expand { display: flex; }
.nav[data-search="open"] .logo,
.nav[data-search="open"] .nav-links,
.nav[data-search="open"] .nav-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.search-expand .se-icon { color: var(--ink-2); flex: none; }
.search-expand input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.005em;
  height: 100%;
  min-width: 0;
}
.search-expand input::placeholder { color: var(--ink-3); }
.search-expand .se-hint {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff;
  flex: none;
}
.search-expand .se-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .15s, color .15s;
}
.search-expand .se-close:hover { background: var(--surface-2); color: var(--navy); }

@media (max-width: 720px) {
  .nav .search-expand { padding: 0 24px; }
  .search-expand .se-hint { display: none; }
}

@media (max-width: 900px) {
  .trust .pillars { grid-template-columns: repeat(2, 1fr); }
  .trust .pillar:nth-child(2) { border-right: 0; }
  .trust .pillar:nth-child(1), .trust .pillar:nth-child(2) {
    border-bottom: 1px solid var(--rule-soft);
  }
  .trust .statement-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust .portrait-col { order: -1; }
}
@media (max-width: 720px) {
  .trust { padding: 56px 0 64px; }
  .trust .pillars { grid-template-columns: 1fr; }
  .trust .pillar { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .trust .pillar:last-child { border-bottom: 0; }
  .trust .statement-card { padding: 32px 24px; }
}
