/*==========================================================
  ORIGAMI — Branding & Resources page  (/pages/branding)
  Scoped to .br-* classes. Loaded after hs-page.css, which
  sets html { font-size: 62.5% } — so this file uses px, not rem.
==========================================================*/

:root {
  --br-navy:   #16323B;
  --br-muted:  #4A6068;
  --br-soft:   #718096;
  --br-line:   #E2E8F0;
  --br-bg:     #F8F9FA;
  --br-orange: #12857A;
  --br-orange-dark: #0D6B62;
  --br-teal:   #1B8E72;
}

.br-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.br-section { padding: 96px 0; background: #fff; }
.br-section-alt { background: var(--br-bg); }

/* ── SECTION HEAD ────────────────────────────────────────── */
.br-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.br-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--br-orange);
  margin-bottom: 14px;
}
.br-title {
  font-size: clamp(30px, 4vw, 42px); font-weight: 300; line-height: 1.15;
  letter-spacing: -.02em; color: var(--br-navy);
}
.br-title span {
  background: linear-gradient(135deg, #0D6B62 0%, #12857A 55%, #55bdb2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.br-sub { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--br-muted); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.br-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font: 700 14px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s, box-shadow .22s, background .2s, border-color .2s, color .2s;
}
.br-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; flex-shrink: 0; }
.br-btn:hover { transform: translateY(-2px); }
.br-btn:focus-visible { outline: 3px solid rgba(85,189,178,.45); outline-offset: 2px; }
.br-btn-fill {
  background: linear-gradient(135deg, #12857A, #1A9A8D); color: #fff;
  box-shadow: 0 6px 18px rgba(85,189,178,.28);
}
.br-btn-fill:hover { box-shadow: 0 10px 26px rgba(85,189,178,.4); }
.br-btn-line { background: #fff; color: var(--br-navy); border-color: var(--br-line); }
.br-btn-line:hover { border-color: var(--br-orange); color: var(--br-orange-dark); }

/* ── CATEGORY CHIP ───────────────────────────────────────── */
.br-chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: #E3F3F0; color: #12857A;
}
.br-chip-health  { background: #e6f5f2; color: #12857A; }
.br-chip-web     { background: #e8eefb; color: #2b4a9a; }
.br-chip-archive { background: #EEF0F3; color: #5A6473; }

/* ── POSTERS ─────────────────────────────────────────────── */
.br-posters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.br-poster {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--br-line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(22,50,59,.04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.br-poster:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(22,50,59,.12); border-color: rgba(85,189,178,.35); }

.br-poster-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1 / 1; overflow: hidden; background: #EEF2F0;
}
.br-poster-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}
.br-poster:hover .br-poster-media img { transform: scale(1.04); }
.br-poster-zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(22,50,59,.82); color: #fff; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.br-poster-zoom svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.br-poster:hover .br-poster-zoom, .br-poster-media:focus-visible .br-poster-zoom { opacity: 1; transform: translateY(0); }

.br-poster-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.br-poster-title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--br-navy); }
.br-poster-desc { font-size: 15px; line-height: 1.65; color: var(--br-muted); flex: 1; }
.br-poster-meta { font-size: 12.5px; color: var(--br-soft); font-weight: 600; }
.br-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ── FILTER TABS ─────────────────────────────────────────── */
.br-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px 0 40px; }
.br-filter {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 inherit; font-family: inherit;
  background: #fff; color: var(--br-muted); border: 1.5px solid var(--br-line);
  transition: background .2s, color .2s, border-color .2s;
}
.br-filter:hover { border-color: var(--br-orange); color: var(--br-orange-dark); }
.br-filter[aria-pressed="true"] { background: #12857A; border-color: #12857A; color: #fff; }
.br-filter:focus-visible { outline: 3px solid rgba(85,189,178,.45); outline-offset: 2px; }
.br-filter small { font-size: 12px; font-weight: 700; opacity: .65; margin-left: 4px; }

/* ── DOCUMENT CARDS ──────────────────────────────────────── */
.br-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 26px; }
.br-doc {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--br-line); border-radius: 20px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s, opacity .3s;
}
.br-doc[hidden] { display: none; }
.br-doc:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(22,50,59,.12); border-color: rgba(85,189,178,.35); }

.br-doc-thumb {
  position: relative; display: block; overflow: hidden;
  height: 290px;                     /* definite height so the img max-height % resolves */
  background:
    radial-gradient(circle at 20% 15%, rgba(85,189,178,.08), transparent 55%),
    linear-gradient(160deg, #F3F6F5 0%, #E9EEF0 100%);
}
/* centred "sheet of paper" — absolute so a portrait page can never stretch the card */
.br-doc-thumb img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 44px); max-height: calc(100% - 44px);
  width: auto; height: auto; display: block;
  border-radius: 6px; background: #fff;
  box-shadow: 0 10px 26px rgba(22,50,59,.18), 0 1px 3px rgba(22,50,59,.12);
  transition: transform .45s cubic-bezier(.23,1,.32,1);
}
.br-doc:hover .br-doc-thumb img { transform: translate(-50%, calc(-50% - 4px)) scale(1.03); }
.br-doc-pages {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(22,50,59,.78); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

.br-doc-body { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px 22px; flex: 1; }
.br-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.br-doc-size { font-size: 12.5px; font-weight: 600; color: var(--br-soft); }
.br-doc-title { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--br-navy); }
.br-doc-desc { font-size: 14.5px; line-height: 1.6; color: var(--br-muted); flex: 1; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.br-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 24px; background: rgba(15,20,30,.9);
}
.br-lightbox.br-open { display: flex; }
.br-lightbox img {
  max-width: min(94vw, 1100px); max-height: calc(100vh - 130px);
  width: auto; height: auto; border-radius: 12px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.br-lightbox-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.br-lightbox-title { color: #fff; font-size: 15px; font-weight: 700; }
.br-lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.br-lightbox-close:hover { background: rgba(255,255,255,.28); }
.br-lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ── CTA BAND ────────────────────────────────────────────── */
.br-cta {
  background: linear-gradient(135deg, #13322A 0%, #16323B 100%);
  color: #fff; padding: 72px 0;
}
.br-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.br-cta h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.br-cta p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 560px; }
.br-cta .br-actions { margin-top: 0; }
.br-cta .br-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.br-cta .br-btn-line:hover { border-color: #fff; color: #fff; }

/* ── TOAST ───────────────────────────────────────────────── */
#brToast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--br-navy); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .28s, transform .28s; max-width: 90vw;
}
#brToast.br-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLL-IN ───────────────────────────────────────────── */
.br-poster, .br-doc { opacity: 0; transform: translateY(24px); }
.br-poster.hs-anim-visible, .br-doc.hs-anim-visible { opacity: 1; transform: translateY(0); }
.br-poster.hs-anim-visible:hover, .br-doc.hs-anim-visible:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .br-poster, .br-doc { opacity: 1; transform: none; transition: none; }
  .br-poster img, .br-doc-thumb img { transition: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .br-posters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .br-section { padding: 64px 0; }
  .br-wrap { padding: 0 18px; }
  .br-head { margin-bottom: 36px; }
  .br-posters { grid-template-columns: 1fr; gap: 22px; }
  .br-docs { grid-template-columns: 1fr; gap: 22px; }
  .br-cta { padding: 56px 0; }
  .br-cta-inner { flex-direction: column; align-items: flex-start; }
  .br-poster-zoom { opacity: 1; transform: none; }   /* no hover on touch */
}
@media (max-width: 420px) {
  .br-actions .br-btn { flex: 1 1 100%; }
}

/* Hero: a brand card (logo on soft teal) instead of the Health Suite photo */
#hero .hs-hero-bg {
  background: var(--teal-soft) url('../downloads/app_logo.png') center / min(46%, 26rem) no-repeat;
}
