/* nav-menu.css (18 Nov 2026): Treatments dropdown, longer menu, working mobile menu, clinics grid symmetry */
@media (min-width: 1181px) {
  .nav-links { display: flex; gap: clamp(12px, 1.5vw, 26px); }
  .nav-links a { white-space: nowrap; font-size: 13px; }
  .nav-links li.has-sub { position: relative; }
  .nav-links li.has-sub > a:after { display: none; }
  .nav-links li.has-sub > a::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
  .nav-sub { display: none; position: absolute; top: calc(100% + 18px); left: -22px; z-index: 120; list-style: none; margin: 0;
    padding: 18px 22px; background: #0e0e14f5; border: 1px solid var(--line-strong); border-radius: 16px;
    box-shadow: 0 24px 60px #0009; grid-auto-flow: column; grid-template-rows: repeat(8, 34px); column-gap: 34px; row-gap: 0; }
  .nav-links li.has-sub:hover > .nav-sub, .nav-links li.has-sub:focus-within > .nav-sub, .nav-links li.has-sub.open > .nav-sub { display: grid; }
  .nav-sub li { margin: 0; }
  .nav-sub a { display: block; padding: 6px 0; color: var(--text-dim); line-height: 22px; }
  .nav-sub a:after { display: none; }
  .nav-sub a:hover { color: var(--vibrant); transform: none; }
  .nav-sub-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 0 0 8px; font-weight: 600; }
  .nav-sub-all a { color: var(--vibrant); font-weight: 500; }
  .mobile-toggle { display: none; }
  /* clinics page: 3 cards on top, 2 centred below, all the same size */
  .clinics-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
  .clinics-grid .clinic-card { grid-column: span 2; }
  .clinics-grid .clinic-card:nth-child(4) { grid-column: 2 / span 2; }
  .clinics-grid .clinic-card:nth-child(5), .clinics-grid .clinic-card:last-child { grid-column: 4 / span 2; }
}
@media (max-width: 1180px) {
  .nav .mobile-toggle { display: block; }
  .nav-links { display: none; }
  .nav.nav-open .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    overflow-y: auto; padding: 22px 24px 60px; background: #08080cfa; z-index: 99; }
  .nav.nav-open .nav-links > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav.nav-open .nav-links a { display: block; padding: 14px 0; font-size: 16px; color: var(--text); }
  .nav.nav-open .nav-links a:after { display: none; }
  .nav-sub { display: none; list-style: none; margin: 0 0 10px; padding: 0 0 6px 14px; }
  .nav-links li.has-sub.open > .nav-sub { display: block; }
  .nav-sub a { padding: 9px 0 !important; font-size: 14px !important; color: var(--text-dim) !important; }
  .nav-sub-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 10px 0 2px; }
  .nav-sub-all a { color: var(--vibrant) !important; }
}
/* patient gallery tabs */
.pg-tabs { display: flex; justify-content: center; gap: 10px; margin: 0 auto 28px; flex-wrap: wrap; }
.pg-tab { cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); padding: 10px 22px; border-radius: 100px; font: inherit; font-size: 14px; transition: all .25s; }
.pg-tab:hover { color: var(--text); border-color: var(--vibrant); }
.pg-tab.active { background: var(--vibrant); color: #08080c; border-color: var(--vibrant); font-weight: 600; }
.pg-empty { text-align: center; color: var(--text-dim); padding: 40px 12px; font-size: 15px; }
/* buttons inside page text keep their button look (the prose link style was making them teal and underlined) */
.prose a.btn, .prose a.btn:hover { color: #08080c; text-decoration: none; }
.prose a.btn-outline, .prose a.btn-outline:hover { color: var(--text); }
/* dropdown arrow on About and Treatments, single-column About dropdown */
.nav-caret { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-links li.has-sub:hover > a .nav-caret, .nav-links li.has-sub.open > a .nav-caret { transform: rotate(-135deg) translateY(-1px); }
@media (min-width: 1181px) {
  .nav-sub.nav-sub-narrow { grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: 34px; min-width: 200px; }
}
