/* HealthNova AI - style.css (v17)
   Blue/Green contrasted background, sized for 100% zoom, single external stylesheet.
*/

/* Reset & utils */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

img { max-width: 100%; height: auto; display: block; }



a { text-decoration: none; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
html { scroll-behavior: smooth; }

/* Theme tokens */
:root{
  --base: 15px;
  --maxw: 880px;

  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --green: #16a34a;
  --green-700: #15803d;

  --ink: #0f172a;
  --muted: #5b677a;

  --card: #ffffff;
  --card-border: #e6eaf2;
  --shadow: 0 10px 24px rgba(15,23,42,0.10);
}

<script>
  (function () {
    const h = document.querySelector('.site-header');
    const onScroll = () => h.classList.toggle('scrolled', window.scrollY > 8);
    onScroll(); window.addEventListener('scroll', onScroll, {passive:true});
  })();
</script>



/* Background with visible blue/green contrast */
body{
  font-family: Arial, sans-serif;
  font-size: var(--base);
  line-height: 1.5;
  color: var(--ink);
  background-color: #ffffff;
  background-image:
    radial-gradient(60rem 40rem at -10% -10%, rgba(37,99,235,0.32), transparent 60%),
    radial-gradient(60rem 40rem at 110% 120%, rgba(22,163,74,0.32), transparent 60%),
    linear-gradient(180deg, #f5fbff 0%, #f7fff8 100%);
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout helpers */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 3px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(90deg, var(--blue), var(--green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.brand-row{ display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.brand-badge img{ width: 36px; height: auto; border-radius: 6px; box-shadow: var(--shadow); }

/* Safety cap: keep any occurrence of this logo small */
img[src*="Bedrock_Logo.png"]{ max-width: 40px; height: auto; }

.brand-title h1{
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-title .tagline{
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #475569;
}

.site-nav{ margin-left: auto; display: flex; align-items: center; gap: 14px; }
.site-nav a{
  font-size: 14px; font-weight: 700; color: var(--blue);
  padding: 6px 8px; border-radius: 6px;
}
.site-nav a:hover{ color: #ffffff; background: var(--green); }

/* Anchor offset for sticky header */
[id]{ scroll-margin-top: 72px; }

/* Main column */
.container{ flex: 1; padding: 16px 0 28px; text-align: center; }

/* Cards */
.card{
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  text-align: left;
  margin: 14px 0;
}

/* Headings with accent underline */
h2{
  font-size: 1.15rem; font-weight: 800; color: var(--blue);
  margin: 0.8rem 0 0.5rem; position: relative;
}
h2::after{
  content:""; display:block; height:3px; width:120px; margin-top:6px; border-radius:2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* Text */
p{ font-size: 0.96rem; color: #263042; margin: 0.35rem 0; }
.disclaimer{ font-size: 0.9rem; color: var(--muted); }

/* Links */
a{ color: var(--blue); font-weight: 700; }
a:hover{ color: var(--green); text-decoration: underline; }

/* Lists */
ul{ margin: 0.8rem auto; padding: 0 1rem; }
ul li{ font-size: 0.95rem; margin: 0.4rem 0; }
ul li::marker{ color: var(--green); }

/* Inline chat panel */
.chat-inline{
  width: 100%; background: var(--card);
  border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; margin-top: 1rem; position: relative;
}
.chat-inline::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.chat-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; font-weight:800; color:#122033;
  background:#f7fafc; border-bottom:1px solid var(--card-border);
}
.chip{ display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:800; }
.chip-blue{ background: rgba(37,99,235,0.15); color: var(--blue-700); }
.chat-frame{ display:block; width:100%; height:420px; border:0; background:#0c1220; }
.chat-footnote{ font-size:0.85rem; color:var(--muted); padding:10px 12px 12px; background:#fbfcfe; }

/* Footer */
.site-footer{ color:#475569; font-size:0.9rem; text-align:center; padding:18px 0 28px; }

/* Responsive */
@media (max-width: 768px){
  :root{ --base: 14px; --maxw: 92vw; }
  .brand-badge img{ width: 32px; }
  .brand-title h1{ font-size: 20px; }
  .site-nav{ gap: 10px; }
  .site-nav a{ font-size: 13px; padding: 5px 7px; }
  h2{ font-size: 1.05rem; }
  p, ul li{ font-size: 0.92rem; }
  .chat-frame{ height: 56vh; }
}

/* ===== HEADER BADGE SIZE OVERRIDE (append-only) ===== */
.site-header .brand-badge img {
  width: 56px;    /* adjust to 48–64px to taste */
  height: auto;
}

.brand-row {
  align-items: center;
  gap: 14px;
}

.brand-title h1 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
}

.brand-title .tagline {
  font-size: 13px;
  margin-top: 2px;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .site-header .brand-badge img { width: 44px; }
  .brand-title h1 { font-size: 22px; }
}

body { outline: 3px solid magenta; }

/* ===== Force header Bedrock badge size (append-only) ===== */
header.site-header a.brand-badge > img,
header.site-header img[src$="Bedrock_Logo.png"],
header.site-header img[alt*="Bedrock"] {
  width: 64px !important;   /* try 56–72 if you want */
  height: auto !important;
  display: block;
}

.brand-row { align-items: center; gap: 14px; }

.brand-title h1 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
}

.brand-title .tagline {
  font-size: 13px;
  margin-top: 2px;
}

/* Mobile tweak */
@media (max-width: 768px) {
  header.site-header a.brand-badge > img { width: 48px !important; }
  .brand-title h1 { font-size: 22px; }
}

/* ===== Header badge: force size + crop padding ===== */
.site-header .brand-badge{
  width: 60px;           /* overall badge box size (tweak 56–72) */
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* crops any excess/whitespace inside the PNG */
  border-radius: 8px;    /* optional: soft corner */
}

.site-header .brand-badge img{
  width: 120px;          /* deliberately larger than the box to counter PNG padding */
  height: auto;
  display: block;
}

/* Title sizing to balance the bigger badge */
.brand-title h1 { font-size: 26px; line-height: 1.1; margin: 0; }
.brand-title .tagline { font-size: 13px; margin-top: 2px; }

/* Mobile tweak */
@media (max-width: 768px){
  .site-header .brand-badge { width: 48px; height: 48px; }
  .site-header .brand-badge img { width: 96px; }
  .brand-title h1 { font-size: 22px; }
}

/* ===== Header Bedrock badge: fixed box + crop padding ===== */
.site-header .brand-badge{
  width: 60px;            /* adjust 56-72px if you like */
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;       /* trims PNG padding so the mark looks larger */
  border-radius: 8px;
}

.site-header .brand-badge img{
  width: 120px;           /* larger than the box to counter whitespace */
  height: auto;
  display: block;
}

/* Balance title scale with the larger badge */
.brand-title h1 { font-size: 26px; line-height: 1.1; margin: 0; }
.brand-title .tagline { font-size: 13px; margin-top: 2px; }

/* Mobile tweak */
@media (max-width: 768px){
  .site-header .brand-badge { width: 48px; height: 48px; }
  .site-header .brand-badge img { width: 96px; }
  .brand-title h1 { font-size: 22px; }
}

/* Header SVG badge sizing */
.site-header .brand-badge {
  width: 60px;   /* adjust 56–72 if you like */
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .brand-badge .bedrock-badge {
  width: 120px;  /* larger than the box for a bold look */
  height: auto;
  display: block;
}

/* Keep title balanced */
.brand-title h1 { font-size: 26px; line-height: 1.1; margin: 0; }
.brand-title .tagline { font-size: 13px; margin-top: 2px; }

/* Mobile */
@media (max-width: 768px){
  .site-header .brand-badge { width: 48px; height: 48px; }
  .site-header .brand-badge .bedrock-badge { width: 96px; }
  .brand-title h1 { font-size: 22px; }
}


/* CTA button */
.cta { display:flex; justify-content:flex-start; padding: 10px 0 0; }
.btn { display:inline-block; font-weight:800; border-radius:10px; padding:10px 16px; text-decoration:none; }
.btn-primary {
  color:#fff; background: linear-gradient(90deg,#2563eb,#16a34a);
  box-shadow: 0 8px 18px rgba(37,99,235,0.22);
}
.btn-primary:hover { filter: brightness(1.05); }


/* Nav underline effect + active state */
.site-nav a {
  position: relative;
  padding-bottom: 6px;
}
.site-nav a::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background: linear-gradient(90deg,#2563eb,#16a34a);
  transform: scaleX(0); transform-origin:left; transition: transform .18s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.site-header { box-shadow: 0 6px 12px rgba(16,24,40,0.06); }
.brand-row { padding: 10px 0; }

/* More comfortable chat height on desktop; adaptive on mobile */
@media (min-width: 1024px){
  .chat-frame { height: 520px; }
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; background:#111; color:#fff;
  padding:8px 12px; border-radius:8px; z-index: 200;
}
.skip-link:focus { left: 12px; }

@media print {
  .site-header, .site-nav, .chat-inline, .cta { display:none !important; }
  body { background: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


.card { border: 1px solid rgba(2,6,23,0.06); backdrop-filter: blur(0.5px); }


/* Header badge: simple, fixed size */
.site-header .brand-badge { 
  display: inline-block; 
  line-height: 0;
  margin-right: 10px; 
  vertical-align: middle;
}
.site-header .brand-badge .bedrock-badge {
  display: block;          /* respect the 48x48 from HTML */
  width: 48px;
  height: 48px;
}

/* Mobile tweak */
@media (max-width: 768px){
  .site-header .brand-badge .bedrock-badge { width: 40px; height: 40px; }
}

/* shadow appears after you scroll a bit */
.site-header.scrolled { box-shadow: 0 6px 12px rgba(16,24,40,0.06); }

/* nav underline effect */
.site-nav a { position:relative; padding-bottom:6px; }
.site-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background: linear-gradient(90deg,#2563eb,#16a34a);
  transform:scaleX(0); transform-origin:left; transition:transform .18s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform:scaleX(1); }

@media (max-width: 480px){
  .chat-frame { height: 60vh; }
}

:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }

@media print {
  .site-header, .site-nav, .chat-inline { display:none !important; }
  body { background:#fff !important; }
}
@media (prefers-reduced-motion: reduce){
  * { transition:none !important; animation:none !important; }
}


/* Tighter spacing between badge and company name */
.brand-row { gap: 8px; }          /* was ~14px; try 6–10px to taste */
.brand-title .brand-name { margin: 0; }
.site-header .brand-badge { margin-right: 0; line-height: 0; }

/* Optional: slightly smaller tagline spacing */
.brand-title .tagline { margin-top: 1px; }

/* === Type lock (system stack) === */
:root{
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Liberation Sans", sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  line-height: 1.55;
  color: #0f172a; /* slate-900 */
}

h1, h2, h3, .brand-title .brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

strong, b { font-weight: 700; }

