/* ==========================================================================
   ORTOPROplus — Shared Clinical Design System (STOLLE × Hanger Clinic × ORTHO-TEAM)
   ========================================================================== */

:root {
  --teal-dark: #00675B;
  --teal-main: #008575;
  --teal-soft: #4E9C93;
  --teal-tint: #EBF5F3;

  --plum-main: #6B3A8C;
  --plum-dark: #52296E;
  --amber-cta: #E88320;
  --amber-cta-hover: #CF6F12;

  --text-dark: #1E293B;
  --text-body: #475569;
  --text-muted: #64748B;

  --bg-white: #FFFFFF;
  --bg-gray: #F4F6F8;
  --border-light: #E2E8F0;

  --container: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.22;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

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

/* Sticky Right-Edge Quick Actions */
.side-quick-dock {
  position: fixed;
  right: 0;
  top: 32%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.side-dock-btn {
  pointer-events: auto;
  background: var(--teal-dark);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 24px 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
}

.side-dock-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-dock-btn:hover {
  width: 196px;
  background: var(--plum-main);
}

.side-dock-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.side-dock-label {
  font-size: 13px;
  font-weight: 700;
  padding-right: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.side-dock-btn:hover .side-dock-label {
  opacity: 1;
}

/* Header */
.header-top-strip {
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-contact-pill {
  background: var(--teal-soft);
  color: #FFFFFF;
  padding: 7px 18px;
  border-radius: 0 0 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

.top-contact-pill a:hover {
  text-decoration: underline;
}

.top-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  padding: 6px 0;
}

.top-social-row strong {
  color: var(--teal-dark);
}

.header-brand-row {
  padding: 20px 0;
  background: var(--bg-white);
}

.header-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo img {
  height: 54px;
  width: auto;
}

.header-secondary-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-main);
}

.header-secondary-links a:hover {
  color: var(--plum-main);
  text-decoration: underline;
}

.header-nav-bar {
  background: var(--teal-dark);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-bar-list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-bar-list > li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar-list > li:first-child > a {
  background: rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
}

.nav-bar-list > li > a:hover,
.nav-bar-list > li > a.is-active {
  background: var(--teal-main);
}

.nav-bar-list > li.nav-cta-item > a {
  background: var(--amber-cta);
  color: #FFFFFF;
  border-right: none;
  padding: 15px 22px;
}

.nav-bar-list > li.nav-cta-item > a:hover {
  background: var(--amber-cta-hover);
}

/* Buttons */
.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-cta);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn-amber:hover {
  background: var(--amber-cta-hover);
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dark);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn-teal:hover {
  background: var(--teal-main);
}

/* Subpage Hero Banner */
.subpage-hero {
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-main) 100%);
  color: #FFFFFF;
  padding: 46px 0;
  border-bottom: 5px solid var(--teal-soft);
}

.subpage-breadcrumb {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.subpage-hero p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
}

/* Section Headers */
.center-eyebrow-head {
  text-align: center;
  margin-bottom: 42px;
}

.center-eyebrow-head .eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-cta);
  display: block;
  margin-bottom: 6px;
}

.center-eyebrow-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Branch Cards (Zero top lines!) */
.stolle-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--teal-dark);
  padding-bottom: 12px;
}

.stolle-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stolle-tab-btn {
  padding: 11px 20px;
  background: var(--bg-gray);
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.18s ease;
}

.stolle-tab-btn:hover {
  background: var(--teal-tint);
  color: var(--teal-dark);
}

.stolle-tab-btn.is-active {
  background: var(--teal-dark);
  color: #FFFFFF;
}

.stolle-search-input {
  height: 40px;
  min-width: 270px;
  padding: 0 14px;
  border: 1px solid #CBD5E1;
  font-family: inherit;
  font-size: 13.5px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.branch-box {
  background: var(--bg-gray);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.branch-box:hover {
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.branch-box-photo {
  height: 175px;
  margin: -22px -24px 18px;
  overflow: hidden;
  background: #CBD5E1;
}

.branch-box-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.branch-box:hover .branch-box-photo img {
  transform: scale(1.04);
}

.branch-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.branch-box-city {
  font-size: 17px;
  font-weight: 800;
  color: var(--teal-dark);
}

.branch-box-type {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: #FFFFFF;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border-light);
}

.branch-box-body {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.5;
}

.branch-box-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 700;
}

/* Footer */
.teal-call-strip {
  background: var(--teal-dark);
  color: #FFFFFF;
  padding: 16px 0;
  font-size: 14px;
}

.site-footer {
  background: #EBF0F2;
  color: var(--text-body);
  padding: 56px 0 32px;
  font-size: 13.5px;
}

.footer-3col {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #CBD5E1;
}

.footer-3col h4 {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-3col ul li {
  margin-bottom: 8px;
}

.footer-3col ul li a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--teal-dark);
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .branches-grid, .footer-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-secondary-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-nav-bar {
    display: none;
  }
  .header-nav-bar.is-open {
    display: block;
  }
  .nav-bar-list {
    flex-direction: column;
  }
  .nav-bar-list > li > a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
  }
}

@media (max-width: 768px) {
  .top-contact-pill {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
    padding: 8px 14px;
    font-size: 12px;
  }
  .top-social-row {
    display: none;
  }
  .header-brand-row {
    padding: 14px 0;
  }
  .brand-logo img {
    height: 40px;
  }
  .subpage-hero {
    padding: 32px 0;
  }
  .subpage-hero h1 {
    font-size: 26px;
  }
  .branches-grid, .footer-3col {
    grid-template-columns: 1fr;
  }
  .stolle-search-input {
    width: 100%;
    min-width: 0;
  }
  .stolle-tab-btn {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 10px 8px;
    font-size: 11.5px;
  }
  .side-quick-dock {
    display: none;
  }
}
