/* ============================================================
   THE REFINED CO — Footer (refined v2)
   Loads after styles.css; overrides + extends footer rules.
   ============================================================ */

.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 96px 0 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 138, 172, 0.32), transparent);
}

/* Editorial signature line above the grid */
.footer__signature {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin: 0 0 56px;
  padding: 0 16px;
}

.footer__signature em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-champagne);
}

/* Grid: brand + 4 link columns */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: none;
  align-items: start;
}

.footer__brand {
  padding-right: 24px;
}

.footer__logo {
  display: block;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer__logo-mark {
  display: block;
  width: 168px;
  height: 58px;
  background-color: currentColor;
  -webkit-mask: url('../media/TRC_Logo.svg') center/contain no-repeat;
  mask: url('../media/TRC_Logo.svg') center/contain no-repeat;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 28ch;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease, gap 0.3s ease, color 0.3s ease;
}

.footer__cta:hover,
.footer__cta:focus-visible {
  color: var(--color-champagne);
  border-color: var(--color-champagne);
  gap: 14px;
}

.footer__cta svg { flex-shrink: 0; }

/* Columns */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-champagne);
  margin: 0 0 22px;
}

.footer__link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  padding: 4px 0;
  line-height: 1.55;
  transition: color 0.25s ease, transform 0.25s ease;
}

a.footer__link:hover,
a.footer__link:focus-visible {
  color: var(--color-white);
  transform: translateX(2px);
}

.footer__link--note {
  margin-top: 8px;
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(125, 138, 172, 0.85);
}

/* Instagram social with handle */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  transition: color 0.25s ease;
}

.footer__social:hover,
.footer__social:focus-visible {
  color: var(--color-champagne);
}

.footer__social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Flourish (line · diamond · line) — ties footer to site motif */
.footer__flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 28px;
}

.footer__flourish-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 138, 172, 0.45), transparent);
}

.footer__flourish-mark {
  font-family: var(--font-serif);
  color: var(--color-champagne);
  font-size: 0.7rem;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-1px);
}

/* Bottom bar */
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0 36px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-locale {
  justify-self: start;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-copyright {
  justify-self: center;
}

.footer__bottom-links {
  display: flex;
  gap: 22px;
  justify-self: end;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.footer__bottom-links a:hover,
.footer__bottom-links a:focus-visible {
  color: var(--color-white);
}

/* ---- Tablet ---- */
@media (max-width: 980px) {
  .footer { padding-top: 72px; }
  .footer__signature { font-size: 1.1rem; margin-bottom: 44px; }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
  }
  .footer__brand { grid-column: 1 / -1; padding-right: 0; }
  .footer__brand .footer__tagline { max-width: 38ch; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .footer { padding-top: 56px; }
  .footer__signature {
    font-size: 1rem;
    margin-bottom: 36px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 36px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__logo-mark { width: 132px; height: 46px; }
  .footer__heading { margin-bottom: 16px; font-size: 0.66rem; }
  .footer__flourish { margin: 12px 0 18px; gap: 12px; }
  .footer__flourish-line { max-width: 80px; }
  .footer__bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    padding: 22px 0 28px;
  }
  .footer__bottom-locale,
  .footer__bottom-copyright { justify-self: center; }
  .footer__bottom-links { justify-self: center; gap: 18px; }
}


/* THE REFINED CO — CLIENT LOGO REPLACEMENT (v2.3.5)
   Use the supplied TRC_Logo.svg everywhere the old header/footer/mobile
   wordmark placeholders were rendered. Preserve all original SVG colors. */
.nav__logo-mark,
.footer__logo-mark,
.nav__mobile-mark {
  -webkit-mask: none !important;
  mask: none !important;
  background-color: transparent !important;
  background-image: url('../media/TRC_Logo.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Horizontal wordmark aspect ratio: 377.04 × 78.16 */
.nav__logo-mark {
  width: clamp(190px, 15vw, 250px) !important;
  height: 52px !important;
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .nav__logo-mark {
    width: clamp(145px, 42vw, 178px) !important;
    height: 38px !important;
  }
}

/* Footer logo: white logo straight on the dark footer, no background box. */
.footer__logo {
  display: inline-block !important;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 16px;
  line-height: 0;
  background: none !important;
  border-radius: 0;
}
.footer__logo-mark,
.nav__mobile-mark {
  background-image: url('../media/TRC_Logo-white.svg') !important;
}
.footer__logo-mark {
  width: 224px !important;
  height: 47px !important;
  max-width: 100%;
}
@media (max-width: 640px) {
  .footer__logo-mark {
    width: 182px !important;
    height: 38px !important;
  }
}

/* Mobile navigation logo: white logo on the menu background, no box.
   Keep the complete horizontal artwork visible. */
.nav__mobile-brand {
  width: min(100%, 340px) !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0;
}
.nav__mobile-mark {
  width: 100% !important;
  height: 76px !important;
  background-size: contain !important;
}
@media (max-width: 640px) {
  .nav__mobile-mark {
    height: 60px !important;
  }
}


/* THE REFINED CO — GLOBAL UPRIGHT TYPOGRAPHY v2.4.3
   All public-facing text stays upright, including semantic emphasis tags,
   page-specific headings, captions, quotes, and Website Builder content. */
html body,
html body *,
html body *::before,
html body *::after {
  font-style: normal !important;
  font-synthesis: none !important;
}

html body :is(i, em, cite, dfn, var, address),
html body :is(i, em, cite, dfn, var, address)::before,
html body :is(i, em, cite, dfn, var, address)::after {
  font-style: normal !important;
  font-synthesis: none !important;
}


/* THE REFINED CO — GLOBAL UPRIGHT TYPOGRAPHY v2.4.3
   All public-facing text stays upright, including semantic emphasis tags,
   page-specific headings, captions, quotes, and Website Builder content. */
html body,
html body *,
html body *::before,
html body *::after {
  font-style: normal !important;
  font-synthesis: none !important;
}

html body :is(i, em, cite, dfn, var, address),
html body :is(i, em, cite, dfn, var, address)::before,
html body :is(i, em, cite, dfn, var, address)::after {
  font-style: normal !important;
  font-synthesis: none !important;
}


/* ============================================================
   HEADER SPACING + HERO IMAGES — v2.4.5
   The navigation is fixed (it takes no space in the page), so the
   heroes no longer need to be pulled up underneath it. The old negative
   top margin pushed every hero 100px above the screen: the top of each
   photo was cut off and the hero text slid up into the header.
   Heroes now start at the very top of the screen, the photo shows in
   full behind the transparent header, and the text always starts
   below the header with breathing room.
   ============================================================ */
:root {
  --hero-header-clearance: clamp(40px, 6vh, 64px);
}

.page-home .hero--full,
.page-hero-bleed .hero--medium,
.page-hero-bleed .hero--small {
  margin-top: 0 !important;
  padding-top: calc(var(--nav-height) + var(--hero-header-clearance)) !important;
  box-sizing: border-box;
}

.page-home .hero--full {
  min-height: 100vh !important;
  min-height: 100svh !important;
}

.page-hero-bleed .hero--medium,
.page-hero-bleed .hero--small {
  min-height: 82vh !important;
  min-height: 82svh !important;
  padding-bottom: clamp(48px, 8vh, 96px) !important;
}

@media (max-width: 767px) {
  :root {
    --hero-header-clearance: clamp(28px, 4vh, 40px);
  }
}

/* Logo on dark hero photos and on the blue scrolled header: white logo.
   (The original logo artwork is dark and disappeared on those backgrounds.) */
.page-hero-bleed .nav:not(.scrolled) .nav__logo-mark,
body .nav.scrolled .nav__logo-mark {
  background-image: url('../media/TRC_Logo-white.svg') !important;
}

/* Homepage hero is light, so its header text is dark until you scroll. */
.page-home .nav:not(.scrolled) .nav__link {
  color: rgba(13, 14, 24, 0.78) !important;
}
.page-home .nav:not(.scrolled) .nav__link:hover,
.page-home .nav:not(.scrolled) .nav__link:focus-visible,
.page-home .nav:not(.scrolled) .nav__link.active {
  color: #0D0E18 !important;
}
.page-home .nav:not(.scrolled) .nav__link::after {
  background-color: #0D0E18 !important;
}
.page-home .nav:not(.scrolled) .nav__cta {
  border-color: rgba(13, 14, 24, 0.55) !important;
  color: #0D0E18 !important;
  background-color: transparent !important;
}
.page-home .nav:not(.scrolled) .nav__cta:hover,
.page-home .nav:not(.scrolled) .nav__cta:focus-visible {
  background-color: #0D0E18 !important;
  color: #FFFFFF !important;
  border-color: #0D0E18 !important;
}
.page-home .nav:not(.scrolled) .nav__toggle span {
  background-color: #0D0E18 !important;
}

/* Services hero phone number was dark on the dark photo. */
.services-hero-phone {
  display: inline-block;
  margin-top: 10px;
  color: #A5AFC8 !important;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.services-hero-phone:hover,
.services-hero-phone:focus-visible {
  color: #FFFFFF !important;
}

/* Soft light wash behind the homepage header so the dark links stay
   readable over both the pale wall and the darker parts of the photo. */
.page-home .nav:not(.scrolled) {
  background: linear-gradient(180deg,
    rgba(238, 241, 246, 0.92) 0%,
    rgba(238, 241, 246, 0.72) 62%,
    rgba(238, 241, 246, 0) 100%) !important;
  background-origin: border-box !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Tablets and small laptops (up to 1199px): the full menu no longer fits
   on one line next to the logo, so switch to the menu button there. */
@media (max-width: 1199px) {
  .nav__links,
  .nav__cta {
    display: none !important;
  }
  .nav__toggle {
    display: flex !important;
  }
  .nav__mobile {
    display: flex;
  }
}

/* When you are logged in to WordPress, its black admin bar sits at the
   top of the screen. Move the header below it so it isn't covered. */
body:has(#wpadminbar) .nav {
  top: 32px !important;
}
@media (max-width: 782px) {
  body:has(#wpadminbar) .nav {
    top: 46px !important;
  }
}
@media (max-width: 600px) {
  body:has(#wpadminbar) .nav {
    top: 0 !important;
  }
}


/* ============================================================
   CHANGES v2.5.0
   ============================================================ */

/* Contact page: the form column starts at the top, level with
   "Contact Information", instead of being centred vertically. */
.page-contact .split-section {
  align-items: start !important;
}

/* Contact page: tighter Hours of Operation rows. */
.hours-table {
  border-collapse: collapse;
}
.hours-table td {
  padding: 7px 0 !important;
  line-height: 1.35 !important;
}

/* Society page strip under the header: one line per item, all the same
   size, e.g. "$100 Monthly Into Your Balance". */
.society-signal__grid span {
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 0 0.35em !important;
  font-family: var(--font-serif) !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  text-align: center;
  color: var(--color-white) !important;
}
.society-signal__grid strong {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  color: inherit !important;
}
@media (max-width: 767px) {
  .society-signal__grid span {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 84px !important;
    padding: 18px 14px !important;
    font-size: 1.08rem !important;
  }
}

/* Society page "Set aside each month / $100": label on two lines on the
   left, a smaller $100 on the right, both lined up in the middle. */
.society-page__saving {
  align-items: center !important;
}
.society-page__saving span {
  line-height: 1.5 !important;
}
.society-page__saving strong {
  font-size: 3.1rem !important;
  line-height: 1 !important;
}
@media (max-width: 767px) {
  .society-page__saving strong {
    font-size: 2.6rem !important;
  }
}

/* Society page strip: keep each item on one line on computers; tablets
   use two items per row. */
@media (min-width: 1200px) {
  .society-signal__grid span {
    font-size: 1.12rem !important;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .society-signal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .society-signal__grid span {
    font-size: 1.12rem !important;
  }
}

/* "The Membership" section: the full-width background photo stays visible
   across the whole section, with enough tint to keep the text readable. */
.society-page::before {
  opacity: 0.5 !important;
  background:
    linear-gradient(90deg, rgba(13, 14, 24, 0.80), rgba(13, 14, 24, 0.45)),
    url('../media/about-standard-clinical-discipline.jpg') center/cover no-repeat !important;
}

/* Strip items read as one sentence and wrap naturally on small screens
   (e.g. "Any Service or Product" stays together). */
.society-signal__grid span {
  display: block !important;
  align-content: center;
  text-align: center;
}
.society-signal__grid strong {
  display: inline !important;
}

/* "$100" box on phones: keep the label and $100 side by side, like the example. */
@media (max-width: 767px) {
  .society-page__saving {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }
}

/* "The Membership" background photo is now a real element
   (.society-page__bg) so it can be changed in the website builder.
   The dark tint stays on ::before, layered above the photo. */
.society-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../media/about-standard-clinical-discipline.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.society-page::before {
  z-index: 1 !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(13, 14, 24, 0.58), rgba(13, 14, 24, 0.34)) !important;
}
.society-page::after {
  z-index: 1;
}
.society-page .container {
  z-index: 2 !important;
}

/* Services header on screens too narrow for text beside the photo wall:
   use the upright photo (set by the Services page script). */
/* (No !important on the picture, so a picture swapped in the website
   builder still shows here.) */
.page-services .hero--medium.svc-hero--upright .hero__bg--services-portrait {
  background-image: url('../media/refinedco-2026/services-hero-stephanie-1200.webp');
  background-position: 62% 32%;
}

/* Society page FAQ: no side label; "Frequently Asked Questions" centred
   above the questions. */
.society-faq__header {
  display: block !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.society-faq__header .section-title {
  text-align: center;
}

/* ============================================================
   PHONE FIXES v2.5.5
   ============================================================ */

/* Bigger tap area for the menu button (44 × 44, the recommended minimum). */
.nav__toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Testimonial dots: same look, larger tap area. */
.testimonials__dot {
  box-sizing: content-box;
  padding: 8px;
  background-clip: content-box;
}

/* The treatment details open just below the fixed header, not under it. */
#serviceDetail {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

@media screen and (max-width: 767px) {
  /* Services: show every treatment in the list (no small scrolling boxes
     that cut names in half), two per row so the list stays short. */
  .service-explorer__list {
    max-height: none !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
  .service-explorer__rail-item {
    padding: 10px 0 10px 16px !important;
    gap: 8px !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    min-height: 44px;
  }

  /* Small capital-letter labels: never smaller than 11px on phones. */
  .hero__label--editorial,
  .intro-band__eyebrow,
  .expertise-editorial__note > span,
  .treatment-map__chips > span,
  .society-lab__benefits > span,
  .google-rating__label,
  .page-about figcaption > span,
  .about-standard__notes > span,
  .service-explorer__group-label,
  .service-detail__price-label,
  .service-detail__fact-label,
  .ba-slider__label {
    font-size: 0.6875rem !important;
  }
}

@media screen and (max-width: 767px) {
  /* Home header: on phones the panel sits over the photo of the woman, so
     give it a more solid backing to keep every word readable. */
  .page-home .hero--editorial .hero__content {
    background: rgba(255, 255, 255, 0.78) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  /* Home Instagram photos: two per row instead of one very long column. */
  .instagram-grid,
  .instagram-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* Phone/tablet menu: when the menu is open, keep the menu button (now an
   X) on top so the menu can be closed again. Before, the open menu covered
   the button. The rest of the header bar is hidden while the menu is open
   (the menu has its own logo). */
body:has(.nav__mobile.active) .nav.nav {
  z-index: 1003 !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  pointer-events: none;
}
body:has(.nav__mobile.active) .nav .nav__logo,
body:has(.nav__mobile.active) .nav .nav__links,
body:has(.nav__mobile.active) .nav .nav__cta {
  visibility: hidden !important;
}
body:has(.nav__mobile.active) .nav .nav__toggle {
  pointer-events: auto;
}
body:has(.nav__mobile.active) .nav .nav__toggle span {
  background-color: #FFFFFF !important;
}

/* Contact form on phones: 16px text in the fields so iPhones don't zoom
   the page in when a field is tapped. */
@media screen and (max-width: 767px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  form input[type="text"],
  form input[type="email"],
  form input[type="tel"],
  form textarea {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 1023px) {
  /* About: Dr. Li's photo caption sits inside the photo frame, like
     Stephanie's (it was stretched across the frame lines on phones). */
  .about-director__media {
    position: relative;
  }
  .about-director__media figcaption {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    z-index: 2;
  }
}

/* About: space above "Education" in the training box. */
.about-founder__education {
  margin-top: 22px;
}

@media screen and (max-width: 767px) {
  /* Services on phones: less side padding so treatment details read in a
     comfortable width (text column was only 262px wide on an iPhone). */
  .service-explorer__container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .service-explorer__detail {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media screen and (max-width: 767px) {
  /* Page headers on phones: line the text up with the rest of the page
     (20px from the edge) instead of 60px, so it isn't squeezed into a
     narrow column. */
  .page-hero-bleed .hero--medium,
  .page-hero-bleed .hero--small {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
