/* ============================================================
   CareSphere Security Trust Center — Shared Stylesheet
   Theme: matches CareSphere Brain v6 (navy / cyan / white)
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #1E3E51;
  background: #f4f9fc;
}
a { color: #3F9FC3; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --navy:      #1E3E51;
  --navy-deep: #152D3B;
  --blue:      #2D699D;
  --brand:     #3F9FC3;
  --cyan:      #6FD2F1;
  --sky:       #C5E2EB;
  --white:     #F8FBFC;
  --green:     #3DC98E;
  --amber:     #F5A623;
  --coral:     #F06B6B;
  --text:      #1E3E51;
  --text-mid:  #4a6a7e;
  --text-mute: #7a9ab0;
  --border:    #d8ebf3;
  --card:      #ffffff;
  --section:   #f4f9fc;
  --shadow:    0 2px 12px rgba(30,62,81,.08);
  --radius:    10px;
  --gap:       2rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy-deep);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem;
  gap: 1rem;
}
.site-logo {
  display: flex; align-items: center; gap: .65rem;
  color: var(--white); font-weight: 700; font-size: 1rem;
  white-space: nowrap;
}
.site-logo img {
  background: var(--navy-deep);
}
.logo-dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #43FFE4, #4B94E2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: var(--navy-deep);
  flex-shrink: 0;
}
.logo-sub { font-size: .7rem; color: var(--sky); font-weight: 400; display: block; }

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--sky); font-size: .82rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(111,210,241,.12); color: var(--cyan);
  text-decoration: none;
}
.nav-cta {
  background: linear-gradient(90deg, #43FFE4, #4B94E2) !important;
  color: var(--navy-deep) !important; font-weight: 700 !important;
  border-radius: 6px;
}
.nav-cta:hover { opacity: .9; }

/* ── Nav Dropdown ───────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  color: var(--sky); font-size: .82rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .2rem;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  background: rgba(111,210,241,.12); color: var(--cyan);
  text-decoration: none;
}
.nav-dropdown-caret {
  font-size: 7px;
  opacity: .6;
  margin-left: 1px;
  position: relative;
  top: 2px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 6px;
  min-width: 162px;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: "";
  display: block;
  position: absolute;
  top: 6px; left: 0; right: 0; bottom: 0;
  background: var(--navy-deep);
  border: 1px solid rgba(111,210,241,.18);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(197,226,235,.75);
  white-space: nowrap;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:first-child {
  color: var(--cyan);
  font-weight: 600;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(111,210,241,.12);
  color: var(--cyan);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #1a4060 60%, #1c5070 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(111,210,241,.12), transparent);
  pointer-events: none;
}
.hero-inner { max-width: 740px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(111,210,241,.15); border: 1px solid rgba(111,210,241,.3);
  color: var(--cyan); font-size: .75rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: 20px; margin-bottom: 1.25rem;
  letter-spacing: .04em;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 1rem;
}
.hero h1 span { color: var(--cyan); }
.hero p {
  font-size: 1.05rem; color: var(--sky); max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .65rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 20px; font-size: .8rem;
  font-weight: 600; letter-spacing: .02em;
}
.badge-green  { background: rgba(61,201,142,.15); border: 1px solid rgba(61,201,142,.35); color: #3DC98E; }
.badge-blue   { background: rgba(63,159,195,.15); border: 1px solid rgba(63,159,195,.35); color: var(--cyan); }
.badge-amber  { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.3);  color: #F5A623; }
.badge-navy   { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--sky); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 1.35rem; font-weight: 700; color: var(--navy);
  margin-bottom: .5rem;
}
.section-sub { color: var(--text-mid); margin-bottom: 2rem; max-width: 600px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 24px rgba(30,62,81,.13); transform: translateY(-2px); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(111,210,241,.18), rgba(63,159,195,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.card p  { font-size: .88rem; color: var(--text-mid); line-height: 1.55; }
.card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .85rem; font-size: .82rem; font-weight: 600;
  color: var(--brand);
}

/* ── Check list ─────────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem; color: var(--text-mid);
}
.check-list li::before {
  content: "✓";
  color: var(--green); font-weight: 700; font-size: .9rem;
  flex-shrink: 0; margin-top: .05em;
}

/* ── Status indicators ──────────────────────────────────────── */
.status-row { display: flex; flex-direction: column; gap: .75rem; }
.status-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; background: var(--section);
  border-radius: 8px; border: 1px solid var(--border);
  gap: 1rem;
}
.status-label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.status-desc  { font-size: .8rem; color: var(--text-mid); }
.status-pill  {
  flex-shrink: 0; font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 12px; letter-spacing: .04em;
}
.pill-green  { background: rgba(61,201,142,.15); color: #2aaa72; }
.pill-blue   { background: rgba(63,159,195,.15); color: var(--brand); }
.pill-amber  { background: rgba(245,166,35,.15); color: #c8861a; }

/* ── Tables ─────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead th {
  background: var(--navy); color: var(--sky);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .75rem 1rem; text-align: left;
}
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--section); }
tbody td { padding: .7rem 1rem; font-size: .88rem; color: var(--text-mid); vertical-align: top; }
tbody td:first-child { font-weight: 600; color: var(--navy); }

/* ── Page sections with icon ────────────────────────────────── */
.section-heading {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.sh-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #2D699D);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white;
}
.sh-text h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.sh-text p  { font-size: .83rem; color: var(--text-mid); margin: 0; }

/* ── Callout box ────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius); padding: 1.1rem 1.35rem;
  display: flex; gap: .85rem; align-items: flex-start;
  border-left: 4px solid;
  font-size: .88rem;
}
.callout-green  { background: rgba(61,201,142,.08);  border-color: var(--green);  color: #1e4d36; }
.callout-blue   { background: rgba(63,159,195,.08);  border-color: var(--brand);  color: #1a3e52; }
.callout-amber  { background: rgba(245,166,35,.08);  border-color: var(--amber);  color: #5a3d0a; }
.callout strong { display: block; margin-bottom: .2rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep); color: var(--sky);
  padding: 2rem 1.5rem; margin-top: 4rem;
  font-size: .82rem; text-align: center;
}
.site-footer a { color: var(--sky); opacity: .75; }
.site-footer a:hover { opacity: 1; text-decoration: none; color: var(--cyan); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }
.footer-copy  { opacity: .45; font-size: .78rem; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem; color: var(--text-mute);
  padding: .85rem 0 0;
  display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.breadcrumb span { color: var(--text-mid); }

/* ── Page hero (sub-pages) ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), #1a4060);
  padding: 2.75rem 1.5rem 2.5rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: var(--sky); max-width: 620px; font-size: .95rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .card-grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 2.75rem 1.25rem 2.5rem; }
  .header-inner { padding: .75rem 1rem; }
  .site-nav a { font-size: .78rem; padding: .35rem .55rem; }
  .section { padding: 2rem 0; }
  .status-item { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (max-width: 480px) {
  .site-nav { display: none; }   /* simplified — full sites can add hamburger */
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .hero p { font-size: .95rem; }
}
