/* =========================================================
   Orthopedic Sciences, Inc. (OSI) — Federal Site Stylesheet
   ========================================================= */

:root {
  --navy: #002F87;
  --navy-dark: #001C52;
  --navy-darker: #00113A;
  --teal: #0E7C86;
  --teal-dark: #095A61;
  --gold: #B8912F;
  --gray-900: #171B26;
  --gray-700: #3B4252;
  --gray-600: #5B6472;
  --gray-400: #8993A4;
  --gray-200: #DDE3EA;
  --gray-100: #F3F5F8;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,20,60,0.08);
  --shadow-md: 0 8px 24px rgba(0,20,60,0.12);
  --shadow-lg: 0 20px 50px rgba(0,20,60,0.18);
  --radius: 10px;
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy-dark); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { color: var(--gray-700); }
.section-intro { max-width: 720px; color: var(--gray-600); font-size: 1.05rem; margin-bottom: 40px; }

section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: linear-gradient(160deg, var(--navy-dark), var(--navy-darker)); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #C9D3E6; }
.section-navy .section-intro { color: #C9D3E6; }

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0, 17, 58, 0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}
.site-nav.scrolled, .site-nav.solid {
  background: rgba(0, 17, 58, 0.96);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; border-radius: 4px; background: #fff; padding: 4px 6px; }
.nav-logo-text { color: var(--white); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 0.94rem; opacity: 0.92; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 5px; }
.nav-cta { background: var(--teal); padding: 10px 18px !important; border-radius: 7px; font-weight: 700 !important; opacity: 1 !important; }
.nav-cta:hover { background: var(--teal-dark); text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 920px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-darker);
    flex-direction: column; align-items: flex-start;
    padding: 18px 28px 26px; gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,17,58,0.92) 0%, rgba(0,47,135,0.82) 55%, rgba(0,17,58,0.9) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 60px; width: 100%; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 30px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; max-width: 900px; }
.hero h1 span { color: #6FE0D4; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #DCE5F5; max-width: 680px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.cred-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.cred-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.85rem;
}
.cred-pill strong { display: block; font-size: 1rem; color: #6FE0D4; }

/* ---------- Stat bar ---------- */
.stat-bar {
  background: var(--navy);
  padding: 34px 0;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--white); }
.stat-item .stat-label { font-size: 0.85rem; color: #B9C6E4; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(14,124,134,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card p { font-size: 0.95rem; }

.diff-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.diff-card .icon-badge { background: rgba(111,224,212,0.15); color: #6FE0D4; }
.diff-card h3 { color: var(--white); }
.diff-card p { color: #C9D3E6; font-size: 0.95rem; }

/* ---------- Category teaser ---------- */
.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .cat-img { height: 160px; background: var(--gray-100); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.cat-card .cat-img img { height: 100%; width: 100%; object-fit: contain; padding: 14px; }
.cat-card .cat-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card .cat-body p { font-size: 0.9rem; flex: 1; }
.cat-card .cat-link { margin-top: 14px; font-weight: 700; color: var(--teal); font-size: 0.88rem; }

/* ---------- Pills / lists ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  padding: 9px 16px; border-radius: 30px; font-size: 0.88rem; font-weight: 600; color: var(--navy-dark);
}
.pill.on-navy { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: var(--white); }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--gray-700); }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--teal); position: absolute; left: 0; top: 2px; font-size: 0.85rem;
}
.on-navy.check-list li { color: #DCE5F5; }
.on-navy.check-list li::before { color: #6FE0D4; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Registration / credentials table ---------- */
.cred-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.cred-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.cred-table td:first-child { font-weight: 700; color: var(--navy-dark); width: 40%; }

/* ---------- Timeline (leadership + past performance) ---------- */
.timeline { position: relative; margin-top: 40px; padding-left: 34px; border-left: 3px solid var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -43px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--teal);
}
.timeline-year { font-weight: 800; color: var(--teal); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.timeline-item h4 { color: var(--navy-dark); margin-bottom: 6px; font-size: 1.05rem; }
.timeline-item p { font-size: 0.93rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-darker));
  color: var(--white);
  padding: 150px 0 70px;
}
.page-hero .eyebrow { color: #6FE0D4; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #C9D3E6; max-width: 700px; font-size: 1.08rem; margin-top: 10px; }
.breadcrumb { font-size: 0.85rem; color: #9FB0D6; margin-bottom: 16px; }
.breadcrumb a { color: #9FB0D6; text-decoration: underline; }

/* ---------- Category quick nav (products page) ---------- */
.quicknav {
  position: sticky; top: 74px; z-index: 90;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(6px);
  padding: 14px 0;
}
.quicknav .wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.quicknav a {
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  background: var(--gray-100); padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--gray-200);
}
.quicknav a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- Product cards ---------- */
.category-block { padding: 70px 0; border-bottom: 1px solid var(--gray-200); }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px;}
.category-head .cat-count { font-size: 0.85rem; font-weight: 700; color: var(--teal); background: rgba(14,124,134,0.1); padding: 6px 14px; border-radius: 20px; }

.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-img { height: 190px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; overflow: hidden;}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-img.no-img { flex-direction: column; color: var(--gray-400); }
.product-img.no-img .mono {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h4 { color: var(--navy-dark); font-size: 1.05rem; margin-bottom: 8px; }
.product-body .app-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--teal); margin-bottom: 8px;
}
.product-body p { font-size: 0.89rem; color: var(--gray-600); flex: 1; }
.subgrid-label { font-weight: 700; color: var(--navy-dark); margin: 34px 0 16px; font-size: 1.05rem; }

/* ---------- Leadership page ---------- */
.brannon-hero { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.avatar-mono {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(160deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; font-weight: 800; color: #fff;
  border: 5px solid rgba(255,255,255,0.25);
}
@media (max-width: 760px) { .brannon-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.quote-block {
  background: var(--gray-100); border-left: 5px solid var(--teal);
  border-radius: 8px; padding: 30px 34px; font-size: 1.08rem; color: var(--gray-700); font-style: italic;
  margin: 20px 0;
}
.quote-block .attribution { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--navy-dark); font-size: 0.9rem; }

.patent-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.patent-table th { text-align: left; background: var(--navy); color: #fff; padding: 12px 14px; font-weight: 700; }
.patent-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); }
.patent-table tr:nth-child(even) td { background: var(--gray-100); }

.pub-card { border-left: 4px solid var(--navy); padding: 16px 20px; background: var(--gray-100); border-radius: 6px; margin-bottom: 16px; }
.pub-card .pub-cite { font-size: 0.9rem; color: var(--gray-700); }
.pub-card .pub-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--teal); letter-spacing: 0.05em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 30px;
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-row i { color: #6FE0D4; width: 22px; margin-top: 3px; }
.contact-row strong { color: var(--white); display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; color: #9FB0D6;}
.contact-row span, .contact-row a { color: var(--white); font-size: 1rem; font-weight: 500; }
.contact-row a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-darker); color: #9FB0D6; padding: 50px 0 26px; font-size: 0.88rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
footer a { color: #9FB0D6; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 34px; background: #fff; padding: 3px 5px; border-radius: 4px; }

/* ---------- Fade-in ----------
   Content is always fully visible by default — visibility never depends
   on JavaScript or any external resource loading, which matters on
   locked-down government networks that may block third-party CDNs.
   A very brief, subtle entrance animation plays on initial paint only. */
.fade-in {
  animation: fadeInUp 0.4s ease-out both;
}
@keyframes fadeInUp {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}

/* ---------- Misc ---------- */
.divider-line { height: 3px; width: 64px; background: var(--teal); margin: 18px 0 26px; border-radius: 3px; }
.sba-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 28px; box-shadow: var(--shadow-sm);
}
.sba-banner p { margin: 0; font-size: 0.92rem; }
