/* Booking layer: a visitor is never more than a glance from booking.
   Phones: a bar fixed to the bottom (Book now + Call). Desktops: a Book now
   button that appears once the header (and its own Book Now) scrolls away.
   Colours come from the theme palette so it reads as part of Anne's site. */

.tfp-book {
  position: fixed;
  z-index: 9990;
  font-family: 'League Spartan', sans-serif;
}
.tfp-book a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 83px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.tfp-book a:focus-visible {
  outline: 3px solid var(--global-palette1, #c59b3c);
  outline-offset: 3px;
}
.tfp-book .tfp-book-primary {
  background: var(--global-palette10, #3a6772);
  color: #fff;
}
.tfp-book .tfp-book-primary:hover {
  background: #2f5560;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35);
}
.tfp-book .tfp-book-call {
  background: #fff;
  color: var(--global-palette3, #33333a);
  border: 1px solid rgba(51, 51, 58, 0.25);
}

/* Desktop: top right, hidden until the header leaves the screen. */
@media (min-width: 1025px) {
  .tfp-book {
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 24px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .tfp-book.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .tfp-book .tfp-book-primary { box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.45); }
  .tfp-book .tfp-book-call { display: none; }
}

/* Phones and tablets: always on, along the bottom. */
@media (max-width: 1024px) {
  .tfp-book {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(237, 233, 227, 0.97); /* palette6 */
    border-top: 1px solid rgba(51, 51, 58, 0.12);
    backdrop-filter: saturate(140%) blur(6px);
  }
  .tfp-book a { flex: 1 1 0; padding: 0 12px; }
  body.tfp-has-book { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .tfp-book, .tfp-book a { transition: none; }
}

@media print {
  .tfp-book { display: none !important; }
}

/* ---------- New v1 pages (rendered by scripts/make_pages.py) ---------- */
.tfp-lead { font-size: 1.15em; line-height: 1.7; }
.tfp-hero h1 { margin-bottom: 0.4em; }

.tfp-people { margin: 2.5em 0; }
.tfp-person {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px;
  margin: 0 0 18px;
  background: var(--global-palette6, #ede9e3);
  border-radius: 10px;
}
.tfp-person img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 8px;
}
.tfp-person h3 { margin: 0 0 4px; }
.tfp-creds { font-weight: 300; }
.tfp-role { margin: 0 0 10px; color: var(--global-palette5, #777783); }
.tfp-person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 12px 0 0; }
.tfp-person-links .wp-block-button__link { border-radius: 83px; }
.tfp-bio { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .tfp-person { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .tfp-person img { width: 96px; height: 128px; }
}

.tfp-faq { margin: 2.5em 0; }
.tfp-faq-item {
  border-bottom: 1px solid rgba(51, 51, 58, 0.15);
  padding: 4px 0;
}
.tfp-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  position: relative;
  font-size: 1.08em;
  font-weight: 400;
}
.tfp-faq-item summary::-webkit-details-marker { display: none; }
.tfp-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.4em;
  color: var(--global-palette10, #3a6772);
}
.tfp-faq-item[open] summary::after { content: '\2212'; }
.tfp-faq-answer { padding: 0 0 16px; }

.tfp-close {
  margin: 3em 0 2em;
  padding: 32px;
  border-radius: 12px;
  background: var(--global-palette6, #ede9e3);
}
.tfp-close h2 { margin-top: 0; }
.tfp-contact-line { margin: 16px 0 0; }

.tfp-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tfp-related a { text-decoration: underline; text-underline-offset: 3px; }

/* Hero on new pages: the theme draws h1 in its script face, so the page's one h1 takes
   the same face as Anne's h2s; a light wash keeps the dark text readable on any photo. */
.tfp-hero { min-height: 420px; }
/* The wash sits behind the words and fades out to the right, so people in the photo show at
   full strength (Anne, 30 Oct: faces were fading under an even 82% wash). Phones keep an even
   wash: the words cover the whole width there. */
.tfp-hero .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(237, 233, 227, 0.95) 0%, rgba(237, 233, 227, 0.9) 52%, rgba(237, 233, 227, 0.45) 70%, rgba(237, 233, 227, 0) 86%) !important;
}
@media (max-width: 767px) {
  .tfp-hero .wp-block-cover__background { background: rgba(237, 233, 227, 0.84) !important; }
}
.tfp-hero h1.wp-block-heading {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(34px, 4.4vw, 52px) !important;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--global-palette3, #33333a);
}
.tfp-hero p { font-size: 1.2em; line-height: 1.6; color: var(--global-palette3, #33333a); max-width: 40em; }
.tfp-hero .wp-block-button__link { border-radius: 83px; }

/* Menu group labels in the Healing in therapy dropdown and the phone drawer. */
.tfp-menu-label > span {
  display: block;
  padding: 0.9em 1em 0.25em;
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--global-palette5, #777783);
  cursor: default;
}
#mobile-drawer .tfp-menu-label > span { padding: 1.1em 0 0.3em; color: var(--global-palette5, #777783); }
/* Since 28 Oct the dropdown holds three groups (Who we help, Ways to work with us,
   Approaches), about 20 links: too tall for one column on a laptop. On desktop it opens as
   three columns, each later group starting at the top of its own column. */
@media (min-width: 1025px) {
  .header-navigation .header-menu-container .menu-item-3033 > ul.sub-menu { column-count: 3; column-gap: 0; width: 870px; }
  .header-navigation .header-menu-container .menu-item-3033 > ul.sub-menu > li { break-inside: avoid; -webkit-column-break-inside: avoid; }
  .header-navigation .header-menu-container .menu-item-3033 > ul.sub-menu > li.tfp-menu-label ~ li.tfp-menu-label { break-before: column; -webkit-column-break-before: always; }
  .header-navigation .header-menu-container .menu-item-3033 ul li.menu-item > a { width: 290px; padding-top: 7px; padding-bottom: 7px; line-height: 1.45; box-sizing: border-box; }
  .header-navigation .header-menu-container .menu-item-3033 ul li.tfp-menu-label > span { width: 290px; padding: 12px 1em 4px; box-sizing: border-box; }
}


/* Home page banner (Anne, 30 Oct): short enough on a laptop that the next section shows, so
   people know to scroll. The theme held it at 690px tall whatever the screen. */
.kb-row-layout-id1305_8ebd7b-33 > .kt-row-column-wrap { min-height: clamp(470px, calc(100vh - 300px), 590px) !important; padding-top: 72px !important; padding-bottom: 28px !important; }
@media (max-width: 767px) {
  .kb-row-layout-id1305_8ebd7b-33 > .kt-row-column-wrap { min-height: 430px !important; padding-top: 40px !important; }
}

/* Top bar (Anne, 30 Oct): her site's own font, dark text that reads well on the sage, small
   icons, no underlines. The phone number dials when tapped on a phone. */
.header-html-inner .tfp-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin: 0; font-family: Lato, sans-serif; font-size: 14px; letter-spacing: 0.02em; }
.header-html-inner .tfp-topbar a { display: inline-flex; align-items: center; gap: 8px; color: var(--global-palette3, #33333a); text-decoration: none; }
.header-html-inner .tfp-topbar a:hover, .header-html-inner .tfp-topbar a:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--global-palette3, #33333a); }
.header-html-inner .tfp-topbar a::before { content: ""; flex: none; width: 14px; height: 14px; background-color: currentColor; -webkit-mask: var(--tfp-icon) center / contain no-repeat; mask: var(--tfp-icon) center / contain no-repeat; }
.tfp-top-addr { --tfp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.tfp-top-phone { --tfp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
@media (max-width: 767px) {
  .header-html-inner .tfp-topbar { justify-content: center; font-size: 13px; gap: 2px 18px; }
}

/* Menu legibility (David, 30 Oct): the theme set white and pale-sage text on her light sage and
   beige (about 2.4:1, 2:1 in the dropdown, 1.9:1 for the social icons). Her charcoal on the same
   colours reads at 5:1 or better. Bands and colours stay hers; only the letters change. */
.main-navigation .primary-menu-container > ul > li.menu-item > a { color: var(--global-palette3, #33333a); }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible { color: var(--global-palette3, #33333a); background: rgba(255, 255, 255, 0.35); }
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a { color: var(--global-palette3, #33333a); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-navigation .header-menu-container ul ul li.menu-item > a,
.header-navigation .header-menu-container ul ul li.menu-item > a:hover { color: var(--global-palette3, #33333a); }
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a { color: var(--global-palette3, #33333a); background: #ddd6ca; font-weight: 400; }
.header-social-wrap .header-social-inner-wrap .social-button { color: var(--global-palette3, #33333a); }
.mobile-navigation ul li > a,
.mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap,
.mobile-navigation ul li > a:hover,
.mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover,
.mobile-navigation ul li.current-menu-item > a,
.mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap { color: var(--global-palette3, #33333a); }

/* Home banner words (David, 30 Oct): white text over the pale sky and snow measured 1.3 to
   2.3:1. A soft dark shade behind the words (55% across the text, also on wide screens where
   the words sit further right, then fading out toward the mountains) brings
   every line to 4.5:1 or better on a laptop and a phone; the text stays in the shaded left
   part. The theme's own overlay was 5% gold. */
.kb-row-layout-id1305_8ebd7b-33 > .kt-row-layout-overlay {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(22, 32, 42, 0.58) 0%, rgba(22, 32, 42, 0.55) 66%, rgba(22, 32, 42, 0.4) 74%, rgba(22, 32, 42, 0.12) 90%, rgba(22, 32, 42, 0.05) 100%) !important;
}
.kb-row-layout-id1305_8ebd7b-33 .kadence-column1305_0ae163-a4 > .kt-inside-inner-col { max-width: 720px; }
.kb-row-layout-id1305_8ebd7b-33 h1, .kb-row-layout-id1305_8ebd7b-33 h2, .kb-row-layout-id1305_8ebd7b-33 p { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25); }
@media (max-width: 767px) {
  .kb-row-layout-id1305_8ebd7b-33 > .kt-row-layout-overlay { background: rgba(22, 32, 42, 0.55) !important; }
}
