/*
 Theme Name:   Findr Template
 Theme URI:    https://digitalthread.co.za/findr/
 Description:  Findr Template made by The Digital Thread 2025
 Author:       The Digital Thread
 Author URI:   https://digitalthread.co.za
 Template:     twentytwentyfive
 Version:      1.0.0
*/

/* -----------------------------------------------------------
   Base / Variables
----------------------------------------------------------- */
:root {
  --findr-brand: #12B3A9;
  --findr-text: #111827;
  --findr-border: #e5e7eb;
}

/* Optional font stack (web-safe) */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--findr-text);
}

/* A11y helper */
.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  word-wrap: normal !important;
}

/* -----------------------------------------------------------
   Findr header
----------------------------------------------------------- */
.findr-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 0px none;
  -webkit-backdrop-filter: saturate(180%) blur(2px);
  backdrop-filter: saturate(180%) blur(2px);
}

.findr-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.findr-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.findr-brand__text {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--findr-text);
}

/* -----------------------------------------------------------
   Navigation
----------------------------------------------------------- */
.findr-nav {
  position: relative;
}

/* Toggle (hidden on desktop) */
.findr-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Menu list */
.findr-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.findr-nav__list a {
  text-decoration: none;
  color: var(--findr-text);
  font-weight: 500;
}

.findr-nav__list a:hover {
  text-decoration: underline;
}

/* Buttons you can assign to menu items via CSS Classes in Menus UI */
.btn {
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: var(--findr-brand);
  color: #fff !important;
}

.btn-primary:hover {
  filter: brightness(.95);
}

.btn-ghost {
  background: transparent;
  color: var(--findr-text) !important;
  border-color: #cfd3d8;
}

/* -----------------------------------------------------------
   Mobile
----------------------------------------------------------- */
@media (max-width: 900px) {
  .findr-nav__toggle {
    display: inline-block;
  }

  .findr-nav__list {
    position: absolute;
    right: 0;
    top: 48px;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--findr-border);
    border-radius: 10px;
    padding: 10px;
    min-width: 260px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
  }

  .findr-nav__list.is-open {
    display: flex;
  }
}

/* -----------------------------------------------------------
   Optional: page-specific shell (if you use it)
----------------------------------------------------------- */
.findr-shell .wp-site-blocks {
  /* your page-level overrides if needed */
}

/* Reduce animation if user prefers */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ===== Findr header hardening (wins against TT5 globals) ===== */
header.findr-site-header { 
  position: sticky; top: 0; z-index: 1000;
  isolation: isolate; /* ensure z-index works over block hero */
}

/* Keep content aligned */
.findr-header__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Brand */
.findr-brand { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.findr-brand__text { font-weight: 700; letter-spacing: .2px; color: #111827; }

/* Navigation reset – account for WP core classes that get injected */
.findr-nav { position: relative; }
.findr-nav .findr-nav__list,
.findr-nav .menu,                 /* WP adds .menu by default */
.findr-nav .menu > .menu-item {   /* consistency across installs */
  all: unset;                     /* nuke odd block theme defaults on ul */
}

.findr-nav .findr-nav__list,
.findr-nav .menu {                /* treat either as our nav list */
  display: flex; gap: 16px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}

/* Links */
.findr-nav a {
  text-decoration: none; color: #111827; font-weight: 500;
}
.findr-nav a:hover { text-decoration: underline; }

/* Current item */
.findr-nav .current-menu-item > a,
.findr-nav .current_page_item > a {
  text-decoration: underline;
}

/* Button utilities (assign via Menu item CSS Classes in WP) */
.findr-nav .btn { 
  padding: 8px 14px; border-radius: 9999px; border: 1px solid transparent; display: inline-block;
}
.findr-nav .btn-primary { background: #12B3A9; color: #fff !important; }
.findr-nav .btn-primary:hover { filter: brightness(.95); }
.findr-nav .btn-ghost { background: transparent; color: #111827 !important; border-color: #cfd3d8; }

/* Optional: style last two items as buttons if you didn’t add classes */
.findr-nav .findr-nav__list > li:nth-last-child(2) > a,
.findr-nav .menu > li:nth-last-child(2) > a { 
  padding: 8px 14px; border-radius: 9999px; border: 1px solid #cfd3d8;
}
.findr-nav .findr-nav__list > li:last-child > a,
.findr-nav .menu > li:last-child > a { 
  padding: 8px 14px; border-radius: 9999px; background: #12B3A9; color: #fff !important;
}

/* Mobile */
.findr-nav__toggle { display: none; background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .findr-nav__toggle { display: inline-block; }
  #findr-nav-menu { 
    position: absolute; right: 0; top: 48px;
    display: none; flex-direction: column; gap: 10px;
    background: #fff; border: 0px solid #e5e7eb; border-radius: 10px; padding: 10px; min-width: 260px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
  }
  #findr-nav-menu.is-open { display: flex; }
}

/* Don’t let admin-bar cover the header on small screens */
@media screen and (max-width: 782px) {
  body.admin-bar header.findr-site-header { top: 46px; }
}
@media screen and (min-width: 783px) {
  body.admin-bar header.findr-site-header { top: 32px; }
}

/* Brand: make logo a consistent visual size */
.findr-brand .custom-logo-link,
.findr-brand .custom-logo { display:inline-block; line-height:0; }

.findr-brand .custom-logo {
  height: 28px;   /* adjust to taste */
  width: auto;
}

/* If using the text fallback */
.findr-brand__fallback { text-decoration:none; }
.findr-brand__text { font-weight:700; letter-spacing:.2px; color:#111827; }

/* Outline buttons: inspired by profmed.finDR style */
.findr-site-header .findr-nav .btn--outline-primary {
  padding: 10px 18px;
  border: 2px solid #12B3A9;
  color: #12B3A9;
  background: transparent;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.findr-site-header .findr-nav .btn--outline-primary:hover,
.findr-site-header .findr-nav .btn--outline-primary:focus {
  background: #12B3A9;
  color: #fff;
}

.findr-site-header .findr-nav .btn--outline-secondary {
  padding: 10px 18px;
  border: 2px solid #6b7280;
  color: #6b7280;
  background: transparent;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.findr-site-header .findr-nav .btn--outline-secondary:hover,
.findr-site-header .findr-nav .btn--outline-secondary:focus {
  background: #6b7280;
  color: #fff;
}

/* Override WPBakery Tabs/Tour/Accordion padding on mobile */
@media (max-width: 991px) {
  .vc_tta-container {
    padding-left: 10px !important; /* adjust or set to 0 if you want no padding */
    padding-right: 10px !important; /* optional: keep it even on both sides */
  }
}
/* ===== Findr FAQ page styles (scoped) ===== */
.findr-faq main, .findr-faq .wp-site-blocks {
  --faq-max: 960px;
  --faq-accent: #12B3A9;
  --faq-text: #111827;
  --faq-muted: #6b7280;
}

.findr-faq .wp-site-blocks > * {
  /* keep global blocks, but center the page content */
  max-width: var(--faq-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Page title */
.findr-faq h1:first-of-type {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--faq-text);
  margin: 20px auto 8px;
  text-wrap: balance;
}

/* Intro blurb */
.findr-faq h1:first-of-type + p {
  color: var(--faq-muted);
  margin-bottom: 24px;
}

/* Section headings (e.g., FAQ’S FOR DOCTORS / PRACTICES / GENERAL) */
.findr-faq h2, .findr-faq h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--faq-accent);
  font-weight: 800;
  color: var(--faq-text);
}

/* Individual questions (your page uses smaller headings for questions) */
.findr-faq h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--faq-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.findr-faq h4::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  font-size: 12px; font-weight: 800;
  color: #fff; background: var(--faq-accent);
  border-radius: 999px;
}

/* Answer paragraphs & lists */
.findr-faq h4 + p,
.findr-faq h4 + p + p,
.findr-faq h4 + ul,
.findr-faq h4 + ol {
  color: var(--faq-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Step lists inside answers */
.findr-faq p strong,
.findr-faq li strong { color: var(--faq-text); }

.findr-faq ul, .findr-faq ol { padding-left: 1.2rem; }

/* Info cards for inline notes or long answers */
.findr-faq .faq-note {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 16px;
}

/* Links (email, external) */
.findr-faq a {
  color: var(--faq-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.findr-faq a:hover { text-decoration-thickness: 2px; }

/* Make “download here” / auth links look like subtle buttons */
.findr-faq a[href*="auth.findr.doctor"],
.findr-faq a[href*="download"],
.findr-faq a[href$=".pdf"],
.findr-faq a[href$=".doc"],
.findr-faq a[href$=".docx"] {
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--faq-accent);
  color: var(--faq-accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin: 6px 0;
}
.findr-faq a[href*="auth.findr.doctor"]:hover,
.findr-faq a[href*="download"]:hover,
.findr-faq a[href$=".pdf"]:hover,
.findr-faq a[href$=".doc"]:hover,
.findr-faq a[href$=".docx"]:hover {
  background: var(--faq-accent);
  color: #fff;
}

/* Divider spacing */
.findr-faq hr {
  max-width: var(--faq-max);
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px auto;
}

/* Mobile polish */
@media (max-width: 768px) {
  .findr-faq .wp-site-blocks > * { padding-left: 14px; padding-right: 14px; }
  .findr-faq h1:first-of-type { margin-top: 12px; }
  .findr-faq h4 { gap: 6px; }
}