/* ============================================
   Dr. William McLaughlin, MD — Site Styles
   Advanced Bone and Joint
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #091d26;
  --navy-mid:   #0e2d38;
  --navy-light: #164e66;
  --gold:       #27b5b5;
  --gold-light: #42cccc;
  --white:      #ffffff;
  --off-white:  #f0f7f7;
  --gray:       #7a9198;
  --gray-light: #c8dde0;
  --text:       #1e3a40;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.2);
  --radius:     4px;
  --max-width:  1240px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,181,181,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.site-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.15;
}
.nav-logo-mark {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--navy);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.25);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo .logo-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo .logo-title {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
}
.nav-links > li > a:hover { color: var(--gold); }

/* Dropdown */
.nav-links li.has-dropdown:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 2px solid var(--gold);
  padding: 0.5rem 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.dropdown li a:hover {
  color: var(--gold);
  padding-left: 1.6rem;
}

.nav-cta {
  margin-left: 1rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ---------- Hero Logo ---------- */
.hero-logo-wrap {
  margin-bottom: 1.75rem;
}
.hero-logo-mark {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 18px rgba(39,181,181,0.35));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(9,29,38,0.97) 0%, rgba(9,29,38,0.80) 50%, rgba(9,29,38,0.92) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,0.6) 40%, transparent 100%);
}

/* Animated gradient fallback when no photo */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(26,58,107,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,169,110,0.15) 0%, transparent 40%),
    linear-gradient(135deg, #0a1628 0%, #112240 50%, #0a1628 100%);
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { opacity: 1; }
  100% { opacity: 0.85; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}
.badge .badge-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.badge .badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--gold);
  padding: 1.25rem 2rem;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,22,40,0.7);
  margin-top: 0.2rem;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }

.section-header {
  margin-bottom: 3.5rem;
}
.section-header.centered { text-align: center; }
.section-header.centered p { max-width: 600px; margin: 1rem auto 0; color: var(--gray); }

/* ---------- About Snippet ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--navy-mid);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #112240, #1a3a6b);
  color: rgba(255,255,255,0.3);
  gap: 1rem;
}
.photo-placeholder svg { width: 80px; height: 80px; opacity: 0.4; }
.photo-placeholder span { font-size: 0.8rem; letter-spacing: 0.1em; }

.photo-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--gray); margin-bottom: 1.25rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}
.credential-icon {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.credential-icon svg { width: 10px; height: 10px; fill: var(--navy); }

/* ---------- Specialties / Conditions ---------- */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.condition-card {
  position: relative;
  background: var(--navy-mid);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
}
.condition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.condition-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.condition-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,169,110,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.condition-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.condition-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.card-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.condition-card:hover .card-link { gap: 0.75rem; }

/* ---------- Resources Section ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  text-align: center;
}
.resource-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,169,110,0.15);
  transform: translateY(-4px);
}

.resource-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.resource-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.resource-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ---------- PT Protocols Featured ---------- */
.protocols-highlight {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.protocols-highlight h3 { color: var(--white); margin-bottom: 0.75rem; }
.protocols-highlight p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* ---------- Affiliations Bar ---------- */
.affiliations {
  background: var(--navy);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.affiliations-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.affil-item {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.affil-item span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-head);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0.2rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--gold);
  padding: 5rem 0;
}
.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-banner h2 { color: var(--navy); }
.cta-banner p { color: rgba(10,22,40,0.65); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060e1c;
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand .logo-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; }
.footer-bottom a { color: var(--gold); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(26,58,107,0.5) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 1.1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ---------- Utility ---------- */
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--navy);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.mobile-open > li > a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dropdown { display: none !important; }

  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 340px; margin: 0 auto; }
  .photo-accent { display: none; }

  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-badges { display: none; }
  .stats-inner { gap: 2rem; }
  .protocols-highlight { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ============================================
   Lucide Icons (replaced legacy emoji glyphs)
   ============================================ */

/* Base SVG icon — inherits text color, smooth strokes */
svg.lucide {
  display: inline-block;
  vertical-align: -0.15em;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Large icon wrappers that previously contained big emoji glyphs.
   Render the SVG at the size the old emoji rendered at, in the gold accent. */
.card-icon svg.lucide,
.body-icon svg.lucide,
.cond-icon svg.lucide,
.ih-icon svg.lucide,
.resource-icon svg.lucide {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--gold);
  stroke-width: 1.75;
}

/* .card-icon already has a circular gold-tinted bubble — center the SVG */
.card-icon { color: var(--gold); }
.card-icon svg.lucide { width: 28px; height: 28px; }

/* Key-fact icons sit next to a paragraph — slightly smaller */
.kf-icon svg.lucide,
.ab-icon svg.lucide,
.icon svg.lucide {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  vertical-align: -0.35em;
  margin-right: 0.4rem;
}

/* Recovery bar label — small timer icon inline */
.rb-label svg.lucide {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.2em;
  margin-right: 0.35rem;
  color: var(--gold);
}

/* Inline icons inside headings (e.g. <h4><svg /> Office Name</h4>) */
h2 svg.lucide,
h3 svg.lucide,
h4 svg.lucide,
h5 svg.lucide {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.5rem;
  color: var(--gold);
}
