/* ============================================================
   Reed Orthopedic Institute — shared design system
   Medico-legal authority: surgeon's credibility + engineer's precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Libre+Caslon+Text:wght@400;700&display=swap');

:root {
  /* palette */
  --ink:        #15202b;
  --navy:       #0e2c47;
  --navy-700:   #16395a;
  --steel:      #2c6c8f;   /* clinical accent */
  --steel-700:  #1f5273;
  --brass:      #9a7b46;   /* credential / honor accent, used sparingly */
  --paper:      #f7f5f0;
  --paper-2:    #efece4;
  --white:      #ffffff;
  --muted:      #5d6b76;
  --muted-2:    #8a949c;
  --line:       rgba(14, 44, 71, 0.14);
  --line-soft:  rgba(14, 44, 71, 0.08);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--steel-700); text-decoration: none; }
a:hover { color: var(--steel); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- technical label (engineering motif) ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--steel-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
/* ROI crosshair monogram (Spectral letters + brass reticle O) */
.brand-logo { height: 38px; width: auto; flex: none; display: block; }
.bl-letter { font-family: var(--serif); font-weight: 600; font-size: 120px; fill: var(--navy); }
.bl-ring { fill: none; stroke: var(--navy); stroke-width: 14; }
.bl-cross { stroke: var(--brass); stroke-width: 3; }
.bl-dot { fill: var(--brass); }
.brand-rule { width: 1px; flex: none; align-self: stretch; background: var(--line); margin: 4px 1px; }
.brand-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.05; }
.brand-name strong { font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 19px; color: var(--navy); letter-spacing: 0; white-space: nowrap; }
.brand-name small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 9px 14px; border-radius: 2px; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--brass);
}
.nav .btn { margin-left: 12px; padding: 11px 20px; }
/* buttons in the nav must keep their own text color (beats .nav a) */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-ghost { color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .2s; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cdd8e2; margin-top: 0; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer h4 { color: #fff; font-size: 14px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand-name strong { color: #fff; }
.site-footer .brand-name small { color: #8ea4b8; }
.site-footer .bl-letter { fill: #fff; }
.site-footer .bl-ring { stroke: #fff; }
.site-footer .bl-cross { stroke: #c79a52; }
.site-footer .bl-dot { fill: #c79a52; }
.site-footer .brand-rule { background: rgba(255,255,255,0.2); }
.site-footer p { color: #aebccb; font-size: 15px; }
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a { color: #cdd8e2; font-size: 15px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; gap: 16px; flex-wrap: wrap; }
.foot-bottom small { color: #7f93a6; font-size: 13px; }
.disclaimer-note { color: #7f93a6; font-size: 12.5px; line-height: 1.6; max-width: 640px; margin-top: 14px; }

/* ---------- generic section ---------- */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 120px) 0; }

/* hairline rule used as engineering divider */
.tick-rule { height: 1px; background: var(--line); position: relative; }
.tick-rule::before { content:""; position:absolute; left:0; top:-3px; width:1px; height:7px; background: var(--brass); }

/* utility */
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink); line-height: 1.55; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

@media (max-width: 860px) {
  .nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; box-shadow: 0 20px 30px rgba(0,0,0,.06); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav a.active::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
}
