/* ============================================================
   My Hip Surgeon — Brand Template Stylesheet
   This file holds the SHARED brand styling (colours, type,
   layout, components). When this becomes a network of
   surgeon sites, this file stays the same for every surgeon;
   only the content in each surgeon's HTML/config changes.
   ============================================================ */

:root {
  --color-navy: #0f2a4a;
  --color-navy-dark: #081a30;
  --color-gold: #b8933f;
  --color-gold-light: #d9bb78;
  --color-teal: #1f6f6b;
  --color-bg: #f7f8fa;
  --color-white: #ffffff;
  --color-text: #23303f;
  --color-text-muted: #5b6b7c;
  --color-border: #e2e6ea;

  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(15, 42, 74, 0.08);
}

* { box-sizing: border-box; }

.physio-map {
  height: 520px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  z-index: 0;
}

.physio-map-empty {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 18px;
}

.physio-marker { background: none; border: none; }
.physio-marker-inner {
  transition: transform 0.15s ease;
  transform-origin: bottom center;
  cursor: pointer;
}
.physio-marker-inner img { display: block; width: 25px; height: 41px; }
.physio-marker:hover .physio-marker-inner { transform: scale(1.3); }

.physio-cluster { background: none; border: none; }
.physio-cluster-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(15,42,74,0.4);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.physio-cluster:hover .physio-cluster-inner { transform: scale(1.1); background: var(--color-gold); }

/* ---------- Patient quote ---------- */
.patient-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.patient-quote .quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  display: block;
  margin-bottom: 4px;
}
.patient-quote blockquote {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.4;
}
.patient-quote cite {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.patient-quote .quote-link { margin-top: 14px; }

/* ---------- Video embed ---------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-navy); text-decoration: none; }
a:hover { color: var(--color-gold); }
a:not(.btn):not(.brand) {
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
  transform-origin: center;
}
a:not(.btn):not(.brand):hover {
  transform: scale(1.05);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text); }

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

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--color-white); }
.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy p { color: #cfd9e4; }

.text-center { text-align: center; }
.eyebrow {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn--primary:hover { background: var(--color-gold-light); color: var(--color-navy-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn--outline-navy {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn--outline-navy:hover { background: var(--color-navy); color: var(--color-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px 12px;
  margin-left: -8px;
  flex-shrink: 0;
}
.brand .accent { color: var(--color-gold); }
.brand-mark { height: 56px; width: auto; display: block; flex-shrink: 0; }
.brand small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a.active { color: var(--color-navy); font-weight: 700; }
.nav-toggle { display: none; }

.nav .btn--outline-navy {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 6px 12px;
  font-size: 0.95rem;
  text-align: center;
}
.nav .btn--outline-navy:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

@media (max-width: 860px) {
  .brand-mark { height: 44px; }
  .brand { font-size: 1.05rem; }
  .brand small { font-size: 0.72rem; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--color-border);
  }
  .nav.open { max-height: 420px; }
  .nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
  }
  .nav .btn { margin: 14px 24px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-navy);
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,63,0.18) 0%, rgba(184,147,63,0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 260px; margin: 0 auto; }
}
.hero h1 { color: var(--color-white); }
.hero p.lead {
  font-size: 1.15rem;
  color: #d7e0ea;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo {
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border: 4px solid rgba(255,255,255,0.15);
}
@media (max-width: 860px) {
  .hero-photo img { width: 300px; height: 300px; }
}

.nowrap-desktop { white-space: nowrap; }
@media (max-width: 860px) {
  .nowrap-desktop { white-space: normal; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar .dot { color: var(--color-gold); }
.trust-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.trust-bar a:hover { color: var(--color-gold); }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(184,147,63,0.12);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.more-link {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.more-link:hover { color: var(--color-navy); }

/* ---------- About / bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 280px; margin: 0 auto; }
}
.bio-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.qual-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.qual-list li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.qual-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--color-gold);
  font-weight: 700;
}
.placeholder-note {
  background: #fff8e8;
  border: 1px dashed var(--color-gold);
  color: #6b5424;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin: 16px 0;
}

/* ---------- Services detail ---------- */
.service-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-block h3 { color: var(--color-navy); }
.service-block .tag {
  display: inline-block;
  background: rgba(31,111,107,0.1);
  color: var(--color-teal);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ---------- Locations ---------- */
.location-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.location-card .location-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 22px 26px;
}
.location-card .location-header h3 { color: var(--color-white); margin: 0; }
.location-card .location-header h3 a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }
.location-card .location-header h3 a:hover { color: var(--color-gold-light); }
.location-card .location-body { padding: 22px 26px; }
.location-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.location-card dt { font-weight: 700; color: var(--color-text-muted); font-size: 0.85rem; }
.location-card dd { margin: 0; }

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-navy-dark); }
.cta-banner .btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.cta-banner .btn--primary:hover { background: var(--color-navy-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #b7c3d1;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer p { color: #b7c3d1; }
.site-footer a { color: #b7c3d1; }
.site-footer a:hover { color: var(--color-gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #8b98a8;
}
.disclaimer {
  font-size: 0.78rem;
  color: #8b98a8;
  max-width: 80ch;
  margin-top: 10px;
}

/* ---------- Read more box ---------- */
.read-more-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-top: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.read-more-box:hover { border-color: var(--color-gold); background: var(--color-white); }
.read-more-box .read-more-text { display: flex; flex-direction: column; gap: 2px; }
.read-more-box .read-more-title { font-family: var(--font-heading); font-weight: 800; color: var(--color-navy); font-size: 1.02rem; }
.read-more-box .read-more-sub { font-size: 0.85rem; color: var(--color-text-muted); }
.read-more-box .read-more-arrow { color: var(--color-gold); font-size: 1.3rem; flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 52px 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-gold);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question::after {
  content: "\2212";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 22px;
}
.faq-answer p { color: var(--color-text-muted); margin: 0; }
.faq-category {
  margin: 40px 0 18px;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}
.faq-category:first-child { margin-top: 0; }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}
.page-header h1 { color: var(--color-white); margin-bottom: 8px; }
.page-header p { color: #cfd9e4; margin: 0; }
