/* BRAIDAN home redesign (LOCAL ONLY, not published). Loaded AFTER vantia-style-v3.css and proposal.css: it reuses their components (buttons, chips, service cards,
   advanced strip, real-case card, gallery, closing band, footer, mobile menu) and only adds what the new home needs. No prices, no checkout code. */
body.rd { background: #fff; }
body.rd .px-bar { display: none !important; }

/* ---------- dark header ---------- */
body.rd header { background: #071a30; border-bottom: 1px solid rgba(255,255,255,0.08); }
body.rd nav { padding: 12px 0; }
.rd-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.rd-brand img { height: 44.3px; width: 201.6px; object-fit: contain; object-position: left center; display: block; }
.rd-brand-text { display: flex; flex-direction: column; line-height: 1; }
.rd-brand-text strong { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 1.65rem; letter-spacing: 0.06em; color: #fff; }
.rd-brand { flex-shrink: 0; white-space: nowrap; }
.rd-brand-text small { white-space: nowrap; font-size: 0.56rem; letter-spacing: 0.34em; color: rgba(255,255,255,0.78); margin-top: 5px; font-weight: 600; }
body.rd .nav-links { gap: 22px; }
body.rd .nav-links a { color: rgba(255,255,255,0.86); font-size: 0.92rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
body.rd .nav-links a:hover { color: #fff; }
body.rd .nav-links a.active { color: #fff; border-bottom-color: var(--teal); }
body.rd .lang-btn { color: rgba(255,255,255,0.6); }
body.rd .lang-btn.active { color: #fff; border-bottom-color: var(--teal); }
body.rd .lang-globe { color: rgba(255,255,255,0.7); }
body.rd .menu-toggle span { background: #fff; }
body.rd .nav-actions .btn-primary { white-space: nowrap; }

/* ---------- hero ---------- */
.rd-hero { position: relative; background: radial-gradient(1200px 520px at 78% 30%, #123a63 0%, #0b2644 45%, #071a30 100%); color: #fff; overflow: hidden; }
.rd-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; }
.rd-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 42%; display: block; }
.rd-hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0a2542 0%, rgba(10,37,66,0.9) 8%, rgba(10,37,66,0.4) 24%, rgba(10,37,66,0) 42%); }
.rd-hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; background: linear-gradient(180deg, rgba(7,26,48,0) 0%, rgba(7,26,48,0.55) 100%); }
.rd-hero-inner { position: relative; z-index: 2; padding-top: 24px; padding-bottom: 28px; min-height: 0; display: flex; align-items: center; }
@media (min-width: 901px) { .rd-hero-inner { padding-left: 0; padding-right: 0; } }     /* desktop: the text column sits exactly where the approved reference has it */
.rd-hero-text { max-width: 640px; }
.rd-hero .badge-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #e8f1f8; }
.rd-hero h1 { color: #fff; font-size: clamp(2rem, 3.35vw, 2.9rem); line-height: 1.08; margin: 12px 0 10px; }
.rd-hero h1 .accent { color: var(--teal-light); display: block; }
.rd-hero .lead { color: rgba(236,244,250,0.9); font-size: 1rem; max-width: 520px; margin-bottom: 16px; }
.rd-hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rd-hero .btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; background: rgba(255,255,255,0.04); }
.rd-hero .btn-outline:hover { background: rgba(255,255,255,0.12); }
.rd-hero .chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-hero .chip { font-size: 0.8rem; padding: 6px 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2); color: #eaf2f8; }
.rd-hero-cap { position: absolute; z-index: 2; right: 18px; bottom: 12px; font-size: 0.72rem; color: rgba(255,255,255,0.7); max-width: 360px; text-align: right; }

/* ---------- services ---------- */
.rd-svc { padding: 64px 0 28px; background: #fff; }
.rd-svc .section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.rd-svc .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.rd-svc .section-head .eyebrow { color: var(--teal); }
.rd-svc .px-svc-grid { align-items: stretch; }
.rd-svc .px-card { position: relative; }
.rd-svc .px-card.is-essential { border-color: rgba(22,184,146,0.55); box-shadow: 0 8px 26px rgba(22,184,146,0.10); }
.rd-card-note { margin: 4px 0 12px; padding: 9px 0 0 12px; border-top: 1px solid var(--line); border-left: 0; color: #5B6472; font-size: 0.8rem; line-height: 1.45; font-style: italic; position: relative; }
.rd-card-note::before { content: ""; position: absolute; left: 0; top: 13px; width: 3px; height: calc(100% - 17px); border-radius: 2px; background: rgba(22,184,146,0.55); }
.rd-card.is-essential .rd-card-note::before { background: var(--teal); }
.rd-card ul { flex: 1; }
.rd-card .px-card-head { min-height: 52px; }
.rd-card .px-sub { margin-top: 0; }
.rd-essential-band { margin: 26px auto 0; max-width: 1040px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 14px; background: linear-gradient(135deg, #0b2644, #123a63); color: #fff; }
.rd-essential-band .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(95,217,187,0.18); display: flex; align-items: center; justify-content: center; }
.rd-essential-band h3 { color: #fff; font-size: 1.05rem; margin: 0 0 3px; }
.rd-essential-band p { margin: 0; color: rgba(236,244,250,0.88); font-size: 0.9rem; }

/* ---------- client portals ---------- */
.rd-portals { padding: 72px 0 64px; background: linear-gradient(180deg, #F4F8FC 0%, #EAF1F8 100%); }
.rd-portals .section-head { max-width: 800px; margin: 0 auto 28px; text-align: center; }
.rd-portals .section-head h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
.rd-portals .eyebrow { color: var(--teal); }
.rd-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.rd-tab { appearance: none; border: 1px solid #CBD8E6; background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 0.9rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.rd-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(16,27,48,0.18); }
.rd-tab:focus-visible { outline: 3px solid rgba(22,184,146,0.55); outline-offset: 2px; }
.rd-portals .wrap { max-width: 1260px; }
.rd-portal-stage { display: grid; grid-template-columns: 2fr 1fr; gap: 38px; align-items: center; }
.rd-browser { background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(16,27,48,0.22), 0 2px 0 rgba(255,255,255,0.6) inset; overflow: hidden; border: 1px solid #D7E1EC; }
.rd-browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #EEF2F7; border-bottom: 1px solid #DCE4EE; }
.rd-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C7D1DD; display: block; }
.rd-browser-bar span { margin-left: 10px; font-size: 0.74rem; color: #5B6472; background: #fff; border-radius: 6px; padding: 3px 12px; border: 1px solid #DCE4EE; }
.rd-browser img { display: block; width: 100%; height: auto; }
.rd-portal-panel { display: none; }
.rd-portal-panel.is-on { display: block; }
.rd-portal-copy h3 { font-size: 1.35rem; margin-bottom: 8px; }
.rd-portal-copy > p { color: var(--muted); margin-bottom: 14px; }
.rd-portal-copy ul { display: flex; flex-direction: column; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.rd-portal-copy li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.rd-portal-copy li svg { flex-shrink: 0; margin-top: 4px; }
.rd-portal-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 18px; }
.rd-portal-note { margin-top: 20px; text-align: center; color: #5B6472; font-size: 0.82rem; }
.rd-portal-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; }
.rd-portal-pills > span { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #D5E5F4; border-radius: 999px; padding: 9px 15px; font-size: 0.86rem; font-weight: 600; color: var(--navy); }

/* ---------- advanced strip / case / gallery spacing (components reused as they are) ---------- */
.rd-adv { background: #fff; padding: 36px 0 12px; }
.rd-case { padding: 28px 0 52px; background: #fff; }
.rd-draft { position: fixed; left: 12px; bottom: 12px; z-index: 90; background: #0b2644; color: #fff; font-size: 0.72rem; padding: 6px 10px; border-radius: 8px; opacity: 0.9; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body.rd .nav-links { gap: 14px; }
  body.rd .nav-links a { font-size: 0.85rem; }
  .rd-hero-photo { width: 72%; }
  .rd-portal-stage { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body.rd .nav-links { display: none; }
  .rd-hero { display: flex; flex-direction: column; }
  .rd-hero-inner { order: 1; min-height: 0; padding-top: 34px; padding-bottom: 0; display: block; }
  .rd-hero-photo { order: 2; position: relative; width: 100%; height: auto; margin-top: 26px; }
  .rd-hero-photo img { height: auto; aspect-ratio: 3 / 2; }
  .rd-hero-photo::before { background: linear-gradient(180deg, #0a2542 0%, rgba(10,37,66,0) 22%); }
  .rd-hero-photo img { object-position: 78% 50%; }
  .rd-hero-cap { order: 3; position: static; text-align: left; padding: 8px 20px 18px; max-width: none; }
  .rd-hero-text { max-width: none; }
  .rd-essential-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rd-brand img { height: 38px; width: auto; }
  .rd-brand-text strong { font-size: 1.35rem; }
  .rd-hero h1 { font-size: 2rem; }
  .rd-tab { padding: 9px 14px; font-size: 0.84rem; }
  .rd-portals { padding: 52px 0 46px; }
}

/* ---------- placeholder page of the future portals page ---------- */
.rd-soon { padding: 84px 0 96px; background: linear-gradient(180deg, #F4F8FC 0%, #EAF1F8 100%); text-align: center; }
.rd-soon .wrap { max-width: 760px; }
.rd-soon h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.rd-soon p { color: var(--muted); font-size: 1.02rem; margin-bottom: 26px; }
.rd-soon .rd-portal-foot { justify-content: center; }


/* ---------- portals page ---------- */
body.rp .rd-hero-inner { min-height: 0; }
.rp-hero { position: relative; background: radial-gradient(1100px 520px at 80% 25%, #123a63 0%, #0b2644 50%, #071a30 100%); color: #fff; padding: 56px 0 60px; overflow: hidden; }
.rp-hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.rp-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.1; margin: 12px 0 14px; }
.rp-hero .eyebrow { color: var(--teal-light); }
.rp-hero .lead { color: rgba(236,244,250,0.9); max-width: 520px; margin-bottom: 22px; }
.rp-hero .btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; background: rgba(255,255,255,0.04); }
.rp-hero .rd-browser { box-shadow: 0 28px 70px rgba(0,0,0,0.45); }
.rp-how { padding: 64px 0 28px; background: #fff; }
.rp-how .section-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.rp-how .section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.rp-how .eyebrow { color: var(--teal); }
.rp-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rp-how-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 6px 20px rgba(16,27,48,0.05); }
.rp-how-card .n { width: 34px; height: 34px; border-radius: 10px; background: rgba(22,184,146,0.14); color: var(--teal); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rp-how-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.rp-how-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.rp-mod { padding: 60px 0; }
.rp-mod:nth-of-type(odd) { background: #F4F8FC; }
.rp-mod-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
.rp-mod.is-flip .rp-mod-grid { grid-template-columns: 1.35fr 1fr; }
.rp-mod.is-flip .rp-mod-copy { order: 2; }
.rp-with { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #CBE9DF; color: #0d7a5f; font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.rp-mod h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.rp-mod .rp-lead { color: var(--muted); margin-bottom: 16px; }
.rp-mod ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 11px; }
.rp-mod li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink); line-height: 1.45; }
.rp-mod li svg { flex-shrink: 0; margin-top: 4px; }
.rp-note { color: #5B6472; font-size: 0.82rem; font-style: italic; border-left: 3px solid rgba(22,184,146,0.55); padding-left: 12px; }
.rp-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-shot { margin: 0; }
.rp-shot.is-main { grid-column: 1 / -1; }
.rp-shot a { display: block; text-decoration: none; }
.rp-shot .rd-browser { border-radius: 12px; }
.rp-shot img { display: block; width: 100%; height: auto; }
.rp-shot figcaption { margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--navy); text-align: center; }
.rp-demo { text-align: center; color: #5B6472; font-size: 0.82rem; margin: 26px auto 0; max-width: 860px; }
.rp-cta { padding: 56px 0 64px; background: linear-gradient(135deg, #0b2644, #123a63); color: #fff; text-align: center; }
.rp-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.rp-cta p { color: rgba(236,244,250,0.88); margin-bottom: 20px; }
.rp-cta .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
@media (max-width: 1000px) {
  .rp-hero-grid, .rp-mod-grid, .rp-mod.is-flip .rp-mod-grid { grid-template-columns: 1fr; }
  .rp-mod.is-flip .rp-mod-copy { order: 0; }
  .rp-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rp-how-grid, .rp-shots { grid-template-columns: 1fr; }
  .rp-hero { padding: 40px 0 44px; }
}
