:root {
  --ink: #17343a;
  --ink-soft: #3f5a5d;
  --muted: #657a7b;
  --teal: #176c72;
  --teal-dark: #0d555c;
  --teal-wash: #e9f4f1;
  --sage: #dce9df;
  --gold: #d9a441;
  --gold-wash: #fff7e7;
  --cream: #fbfaf6;
  --white: #ffffff;
  --border: #d8e1df;
  --border-dark: #bccbc8;
  --danger: #a33d3d;
  --shadow: 0 5px 20px rgba(19, 52, 58, 0.1);
  --shadow-lg: 0 18px 50px rgba(19, 52, 58, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.locked {
  overflow: hidden;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  background: var(--ink);
  color: #dce8e7;
  font-size: 0.82rem;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-inner a {
  color: var(--white);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 172px;
  height: auto;
}

.brand-label {
  padding-left: 12px;
  border-left: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.header-action {
  justify-self: end;
}

.btn {
  min-height: 44px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--white);
  background: var(--teal);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--teal);
}

.btn-outline:hover {
  color: var(--white);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.btn-light:hover {
  color: var(--ink);
  background: #f3f7f6;
  border-color: #f3f7f6;
}

.btn-block {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 62px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 27%),
    linear-gradient(120deg, var(--teal-dark), #1d7477 68%, #438b7d);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 98px rgba(255, 255, 255, 0.025);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 14px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #eff8f6;
  font-size: 1.05rem;
}

.search-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 7px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 35, 39, 0.24);
}

.search-field {
  position: relative;
}

.search-field label {
  position: absolute;
  left: 15px;
  top: 7px;
  z-index: 1;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 61px;
  padding: 24px 15px 7px;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.search-field input:focus {
  box-shadow: inset 0 0 0 3px var(--gold);
}

.search-panel .btn {
  min-width: 120px;
  border-color: var(--gold);
  background: var(--gold);
  color: #273b3c;
}

.search-panel .btn:hover {
  border-color: #edb64d;
  background: #edb64d;
  color: #273b3c;
}

.trust-line {
  margin-top: 16px;
  color: #d7ebe7;
  font-size: 0.84rem;
}

.directory-section {
  padding: 28px 0 64px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--teal-dark);
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.results-heading h2 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
}

.results-heading p {
  margin: 0;
  color: var(--muted);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sort-control select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 22px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 14px rgba(19, 52, 58, 0.07);
}

.filter-select {
  min-height: 41px;
  max-width: 210px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}

.clear-filters {
  margin-left: auto;
  padding: 7px 9px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 700;
}

.clear-filters[hidden] {
  display: none;
}

.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: 26px;
}

.coach-list {
  display: grid;
  gap: 17px;
}

.coach-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 285px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(19, 52, 58, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.coach-card:hover {
  border-color: #9cbab6;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.coach-photo-wrap {
  min-height: 100%;
  background: var(--sage);
}

.coach-photo {
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
}

.coach-card-body {
  padding: 22px 23px 19px;
  display: flex;
  flex-direction: column;
}

.coach-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.coach-name {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.coach-name a:hover {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.verified {
  min-width: max-content;
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coach-headline {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
}

.coach-meta {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.coach-bio {
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.52;
}

.specialty-row {
  margin-bottom: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid #c8d9d5;
  border-radius: 2px;
  color: var(--ink-soft);
  background: #f5faf8;
  font-size: 0.75rem;
}

.coach-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-card-actions .btn {
  min-height: 39px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.directory-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.sidebar-card-accent {
  border-top: 5px solid var(--gold);
}

.sidebar-card h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.sidebar-card p,
.sidebar-card li {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.sidebar-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.sidebar-card li + li {
  margin-top: 8px;
}

.empty-state {
  padding: 54px 28px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.info-strip {
  padding: 28px 0;
  border-block: 1px solid #ccded9;
  background: var(--teal-wash);
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.info-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}

.info-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.info-item h3 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.info-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.disclaimer {
  padding: 24px 0;
  color: #625f58;
  background: #f4f0e7;
  font-size: 0.82rem;
}

.disclaimer strong {
  color: #4b4741;
}

.site-footer {
  padding: 42px 0 28px;
  color: #d9e7e5;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 40px;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 430px;
  color: #c3d5d2;
  font-size: 0.88rem;
}

.footer-column h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  color: #d9e7e5;
  font-size: 0.88rem;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #a9c1bd;
  font-size: 0.78rem;
}

/* Profile page */
.profile-hero {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  background: var(--teal-wash);
}

.profile-layout {
  padding: 34px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 38px;
}

.profile-heading {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
}

.profile-heading img {
  width: 150px;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.profile-heading h1 {
  margin: 2px 0 7px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.profile-title {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 700;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-section {
  padding: 25px 0;
  border-top: 1px solid var(--border);
}

.profile-section h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.profile-section p {
  color: var(--ink-soft);
}

.profile-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.profile-list-grid h3 {
  margin-bottom: 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--ink-soft);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.booking-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.booking-card-head {
  padding: 22px;
  color: var(--white);
  background: var(--teal);
}

.booking-card-head h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.booking-card-head p {
  margin: 0;
  color: #e5f2ef;
  font-size: 0.85rem;
}

.booking-card-body {
  padding: 22px;
}

.booking-fact {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.booking-fact strong {
  color: var(--ink);
  text-align: right;
}

.booking-card .btn {
  margin-top: 18px;
}

.booking-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Forms */
.page-hero {
  padding: 42px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 12px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: #e8f4f2;
  font-size: 1.02rem;
}

.form-page {
  padding: 38px 0 68px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 30px;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 3px 15px rgba(19, 52, 58, 0.07);
}

.form-section + .form-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.form-section h2 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.section-help {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid .full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(217, 164, 65, 0.3);
  border-color: var(--gold);
}

.field-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}

.check-option,
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.check-option input,
.agreement input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--teal);
}

.agreement + .agreement {
  margin-top: 12px;
}

.form-submit {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-status {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.success {
  color: #195c42;
  background: #e5f5eb;
  border: 1px solid #add8bd;
}

.form-status.error {
  color: #853636;
  background: #faeaea;
  border: 1px solid #e7bcbc;
}

.form-sidebar {
  position: sticky;
  top: 24px;
}

.sample-notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #ecd49f;
  border-radius: 4px;
  color: #6a552a;
  background: var(--gold-wash);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    inset: 114px 16px auto;
    z-index: 100;
    padding: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }

  .header-action {
    display: none;
  }

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .utility-inner {
    justify-content: center;
  }

  .utility-inner span:last-child {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 138px;
  }

  .brand-label {
    font-size: 0.7rem;
  }

  .main-nav {
    inset: 104px 16px auto;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-panel .btn {
    min-height: 51px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-select {
    width: 100%;
    max-width: none;
  }

  .clear-filters {
    margin-left: 0;
  }

  .coach-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 0;
  }

  .coach-photo {
    min-height: 100%;
  }

  .coach-card-body {
    padding: 17px 16px;
  }

  .coach-card-top {
    display: block;
  }

  .verified {
    display: inline-block;
    margin-bottom: 5px;
  }

  .coach-bio {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
  }

  .coach-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-sidebar {
    grid-template-columns: 1fr;
  }

  .info-strip-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .profile-heading {
    grid-template-columns: 100px 1fr;
    gap: 17px;
  }

  .profile-heading img {
    width: 100px;
  }

  .profile-list-grid,
  .field-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand-label {
    display: none;
  }

  .coach-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .coach-name {
    font-size: 1.3rem;
  }

  .coach-headline {
    font-size: 0.82rem;
  }

  .coach-meta {
    display: block;
  }

  .coach-meta span {
    display: block;
  }

  .specialty-row .tag:nth-child(n + 3) {
    display: none;
  }

  .coach-card-actions .btn:last-child {
    display: none;
  }

  .profile-heading {
    grid-template-columns: 1fr;
  }

  .profile-heading img {
    width: 150px;
  }

  .form-card {
    padding: 20px 17px;
  }
}

/* Directory redesign - Psychology Today-inspired structure in Meditation Magazine colors */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.directory-header {
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(19, 52, 58, 0.08);
}

.primary-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(320px, 520px) minmax(44px, 1fr);
  align-items: center;
  gap: 28px;
}

.primary-header .brand img {
  width: 190px;
}

.header-search {
  width: 100%;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 54px;
  padding: 0 56px 0 22px;
  border: 2px solid #d9dedc;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  outline: none;
}

.header-search input:focus {
  border-color: #8bb8a9;
  box-shadow: 0 0 0 4px rgba(8, 107, 76, 0.1);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 0;
  border-radius: 50%;
  color: #68807a;
  background: transparent;
}

.header-search button:hover {
  color: #086b4c;
  background: #eff7f4;
}

.header-search svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.primary-header .mobile-nav-toggle {
  justify-self: end;
}

.secondary-header {
  border-top: 1px solid #edf0ef;
  background: #fff;
}

.secondary-header .main-nav {
  min-height: 50px;
  justify-content: flex-end;
}

.secondary-header .main-nav a {
  padding: 15px 0 12px;
}

.hero-compact {
  padding: 47px 0 50px;
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(125deg, #07573f, #087458 68%, #318775);
}

.hero-compact h1 {
  max-width: 870px;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
}

.hero-compact .hero-copy {
  max-width: 760px;
  margin-bottom: 0;
}

.directory-v2 {
  padding-top: 28px;
  background: #f4f5f2;
}

.directory-container {
  max-width: 1020px;
}

.directory-v2 .sample-notice {
  margin-bottom: 18px;
  border-color: #e5d29b;
  background: #fffaf0;
}

.quick-filter-bar {
  padding: 8px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.drawer-filter-pill {
  min-height: 48px;
  padding: 11px 25px;
  flex: 0 0 auto;
  border: 2px solid #d4d9d7;
  border-radius: 999px;
  color: #293d3b;
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.filter-pill:hover,
.drawer-filter-pill:hover {
  border-color: #79a998;
}

.filter-pill.is-selected,
.drawer-filter-pill.is-selected {
  color: #076d4d;
  border-color: #087052;
  background: #eaf5f0;
}

.filter-pill-primary {
  color: var(--white);
  border-color: #087052;
  background: #087052;
}

.filter-pill-primary:hover {
  color: var(--white);
  border-color: #075a43;
  background: #075a43;
}

.filter-pill-primary span {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #075a43;
  background: #fff;
  font-size: 0.75rem;
}

.active-filter-row {
  padding: 0 0 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.active-filter-row[hidden] {
  display: none;
}

.active-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-chip,
.clear-all-chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: #087052;
  background: #e5f2ed;
  font-size: 0.85rem;
}

.clear-all-chip {
  color: #6d7472;
  background: #e6e7e6;
}

.results-heading-v2 {
  margin: 4px 0 17px;
}

.results-heading-v2 h2 {
  margin-bottom: 4px;
  color: #263d39;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.results-heading-v2 p {
  font-size: 1rem;
}

.coach-list-v2 {
  gap: 20px;
}

.coach-card-v2 {
  display: block;
  min-height: 0;
  border: 1px solid #dadddc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(24, 53, 49, 0.07);
  transform: none;
}

.coach-card-v2:hover {
  border-color: #bacac5;
  box-shadow: 0 12px 34px rgba(24, 53, 49, 0.12);
  transform: none;
}

.coach-card-profile {
  padding: 24px 26px 20px;
  display: block;
  color: inherit;
}

.coach-card-profile:hover {
  text-decoration: none;
}

.coach-card-summary {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 25px;
}

.coach-card-v2 .coach-photo-wrap {
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.coach-card-v2 .coach-photo {
  width: 178px;
  height: 214px;
  min-height: 0;
  object-fit: cover;
}

.sample-profile-label {
  margin-bottom: 5px;
  color: #7b8784;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.coach-card-v2 .coach-name {
  margin-bottom: 6px;
  color: #087052;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 750;
}

.coach-card-v2 .coach-headline {
  margin-bottom: 12px;
  color: #344744;
  font-size: 1rem;
  font-weight: 650;
}

.coach-detail-line {
  margin-top: 7px;
  color: #687672;
  font-size: 0.92rem;
}

.coach-detail-line span {
  width: 18px;
  display: inline-block;
  color: #087052;
  text-align: center;
}

.rate-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.rate-badge,
.offer-badge {
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 750;
}

.rate-badge {
  color: #314844;
  background: #edf1ef;
}

.offer-badge-soft {
  color: #087052;
  background: #e5f2ed;
}

.offer-badge-gold {
  color: #5e4414;
  background: linear-gradient(135deg, #f7d982, #e8b84c);
  box-shadow: inset 0 0 0 1px rgba(113, 78, 14, 0.16);
}

.offer-badge small {
  padding-left: 7px;
  border-left: 1px solid currentColor;
  font-size: 0.68rem;
  opacity: 0.82;
}

.coach-bio-v2 {
  margin: 20px 0 0;
  color: #3f4d4a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.coach-card-actions-v2 {
  margin: 0;
  padding: 0 26px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-button {
  min-height: 52px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4d8d6;
  border-radius: 999px;
  color: #273b38;
  background: #fff;
  font-size: 1rem;
  font-weight: 750;
}

.contact-button:hover {
  text-decoration: none;
  border-color: #087052;
}

.contact-button-phone {
  color: #fff;
  border-color: #087052;
  background: #087052;
}

.contact-button-phone:hover {
  color: #fff;
  border-color: #075a43;
  background: #075a43;
}

.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  opacity: 0;
  background: rgba(12, 28, 25, 0.42);
  transition: opacity 0.18s ease;
}

.filter-drawer-backdrop.is-visible {
  opacity: 1;
}

.filter-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: min(680px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  box-shadow: -18px 0 60px rgba(13, 40, 34, 0.18);
  transform: translateX(102%);
  transition: transform 0.2s ease;
}

.filter-drawer.is-open {
  transform: translateX(0);
}

.filter-drawer-header {
  min-height: 80px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e7e6;
}

.filter-drawer-header h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
}

.filter-drawer-header button {
  width: 45px;
  height: 45px;
  border: 0;
  color: #5e6d69;
  background: transparent;
  font-size: 2.3rem;
  line-height: 1;
}

.filter-drawer-body {
  padding: 25px 28px 45px;
  overflow-y: auto;
}

.filter-group + .filter-group {
  margin-top: 31px;
}

.filter-group h3 {
  margin-bottom: 12px;
  color: #69726f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.drawer-filter-pill {
  min-height: 42px;
  padding: 8px 16px;
  border-width: 1.5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.drawer-filter-pill.is-selected {
  font-weight: 750;
}

.filter-drawer-footer {
  padding: 15px 28px;
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 12px;
  border-top: 1px solid #dfe4e2;
  background: rgba(255, 255, 255, 0.98);
}

/* Profile redesign */
.profile-hero {
  padding: 22px 0;
  background: #eef5f2;
}

.profile-layout {
  max-width: 1100px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.profile-heading {
  grid-template-columns: 175px minmax(0, 1fr);
}

.profile-heading img {
  width: 175px;
  aspect-ratio: 0.82;
  border-radius: 12px;
}

.profile-heading h1 {
  color: #087052;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 750;
}

.profile-offer-row {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-card-head {
  background: #087052;
}

.profile-contact-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.profile-contact-actions .contact-button {
  width: 100%;
}

.profile-contact-actions .btn {
  margin-top: 0;
  border-radius: 999px;
}

.price-input-wrap {
  position: relative;
}

.price-input-wrap::before {
  content: "$";
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: #48605c;
  font-weight: 750;
  transform: translateY(-50%);
}

.price-input-wrap input {
  padding-left: 29px;
}

.pricing-suggestions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.pricing-suggestion {
  padding: 11px;
  border: 1px solid #dbe2df;
  border-radius: 6px;
  color: #556762;
  background: #f8faf9;
  font-size: 0.75rem;
}

.pricing-suggestion strong {
  display: block;
  color: #087052;
  font-size: 0.92rem;
}

.promo-explainer {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ead49c;
  border-radius: 6px;
  color: #604d25;
  background: #fff9e9;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .primary-header {
    grid-template-columns: 1fr auto;
  }

  .primary-header .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 16px;
  }

  .secondary-header .main-nav {
    position: static;
    inset: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    border: 0;
    box-shadow: none;
  }

  .secondary-header .main-nav a {
    border: 0;
  }

  .directory-header .mobile-nav-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .primary-header {
    min-height: 78px;
    gap: 12px;
  }

  .primary-header .brand img {
    width: 145px;
  }

  .primary-header .brand-label {
    display: none;
  }

  .header-search input {
    height: 49px;
  }

  .secondary-header .main-nav {
    min-height: 45px;
    gap: 20px;
    overflow-x: auto;
  }

  .secondary-header .main-nav a {
    min-width: max-content;
    padding: 13px 0 10px;
    font-size: 0.83rem;
  }

  .hero-compact {
    padding: 35px 0 38px;
  }

  .hero-compact h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .quick-filter-bar {
    margin-inline: -11px;
    padding-inline: 11px;
  }

  .filter-pill {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 0.9rem;
  }

  .coach-card-profile {
    padding: 19px 18px 17px;
  }

  .coach-card-summary {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 17px;
  }

  .coach-card-v2 .coach-photo {
    width: 122px;
    height: 154px;
  }

  .coach-card-v2 .coach-name {
    font-size: 1.45rem;
  }

  .coach-card-v2 .coach-headline {
    font-size: 0.87rem;
  }

  .coach-detail-line {
    font-size: 0.78rem;
  }

  .rate-row {
    margin-top: 10px;
  }

  .rate-badge,
  .offer-badge {
    font-size: 0.68rem;
  }

  .offer-badge small {
    display: none;
  }

  .coach-bio-v2 {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .coach-card-actions-v2 {
    padding: 0 18px 19px;
    gap: 9px;
  }

  .contact-button {
    min-height: 48px;
    padding: 10px 13px;
    font-size: 0.9rem;
  }

  .filter-drawer-header,
  .filter-drawer-body,
  .filter-drawer-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pricing-suggestions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .coach-card-summary {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
  }

  .coach-card-v2 .coach-photo {
    width: 94px;
    height: 124px;
  }

  .coach-detail-line:nth-of-type(3) {
    display: none;
  }

  .rate-row {
    grid-column: 1 / -1;
  }

  .coach-card-actions-v2 {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .filter-drawer-footer {
    grid-template-columns: 1fr 1.4fr;
  }
}
