/* ============================================================
 * MŪV Chiropractic — main.css
 * Phase 3 stub: pulls Tailwind from the CDN so the homepage
 * renders identically to tailwind/homepage.html. Phase 4 replaces
 * this file with a compiled output from bin/build-tailwind.sh.
 * ============================================================ */

/* Tailwind itself is injected via wp_head() (see muv_tailwind_cdn_runtime in functions.php).
 * Phase 4 lifts that into a compiled tailwind.config.js + emits a real CSS file here. */

/* --- inline styles ported verbatim from tailwind/homepage.html --------- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.open { max-height: 600px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-icon.rotated { transform: rotate(45deg); }

/* Floating $99 New Patient Special badge — mirrors muvboulder.com's
 * `.sticky-button.sticky-bottom-left` exactly. Round gold disc, fixed
 * bottom-right (despite the legacy "bottom-left" class name on live).
 * Styles lifted from doc.vortala.com/childsites/static/2706/_style-*.css. */
.muv-sticky-99 {
	position: fixed;
	left: 40px;
	bottom: 30px;
	z-index: 9000;
	width: 150px;
	height: 150px;
	box-sizing: border-box;
	padding: 24px 10px 10px;
	border-radius: 100%;
	background: linear-gradient(0deg, rgba(179, 162, 111, 1) 0%, rgba(246, 229, 178, 1) 100%);
	box-shadow: 0px 0px 9px 8px rgba(0, 0, 0, 0.2);
	color: #333;
	font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.muv-sticky-99:hover,
.muv-sticky-99:visited {
	color: #333;
	text-decoration: none;
}
.muv-sticky-99:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0px 0px 12px 10px rgba(0, 0, 0, 0.28);
}
.muv-sticky-99 strong {
	display: block;
	font-size: 40px;
	line-height: 1;
	font-weight: 400;
}
.muv-sticky-99 strong sup {
	font-size: 0.55em;
	top: -0.4em;
	margin-right: 0.05em;
}
.muv-sticky-99 em {
	display: block;
	margin: 5px auto 0;
	max-width: 114px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid black;
	border-radius: 4px;
	font-style: normal;
	font-size: 14px;
	font-weight: 590;
}
@media (max-width: 1023px) {
	.muv-sticky-99 { display: none; }
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.testimonials-swiper { overflow: visible !important; }
.testimonials-swiper .swiper-wrapper { align-items: stretch; }
.testimonials-swiper .swiper-slide { height: auto !important; width: 100%; }
@media (min-width: 640px)  { .testimonials-swiper .swiper-slide { width: calc(50% - 10px); } }
@media (min-width: 1024px) { .testimonials-swiper .swiper-slide { width: calc(33.333% - 16px); } }
@media (min-width: 1280px) { .testimonials-swiper .swiper-slide { width: calc(25% - 18px); } }

/* Scroll-reveal — applied to every <section> via JS */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Screen-reader-only utility (since Tailwind CDN .sr-only ships, this is just a safety net) */
.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;
}

/* ----------------------------------------------------------------
 * Block editor (Gutenberg) — entry-content without Tailwind prose.
 * Applied when post_content has_blocks(). Provides readable
 * typography defaults without fighting block-specific styles.
 * ---------------------------------------------------------------- */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #171717;
}
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content p  { margin-bottom: 1.25em; line-height: 1.7; color: #292929; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.entry-content li { margin-bottom: 0.4em; line-height: 1.65; }
.entry-content li > ul { list-style-type: circle; margin-top: 0.25em; margin-bottom: 0; }
.entry-content li > ol { list-style-type: lower-alpha; margin-top: 0.25em; margin-bottom: 0; }
.entry-content a  { color: #b19f6c; text-decoration: underline; }
.entry-content a:hover { color: #a3915f; }
.entry-content strong { font-weight: 600; }
.entry-content blockquote {
  border-left: 3px solid #b19f6c;
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
}
/* Gutenberg core blocks — alignwide / alignfull inside constrained layout */
.entry-content .alignwide  { margin-left: -2rem; margin-right: -2rem; }
.entry-content .alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
.entry-content .wp-block-buttons { margin-bottom: 1.25em; }

/* ----------------------------------------------------------------
 * Tabs block (muv/tabs)
 * ---------------------------------------------------------------- */
.muv-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #e8e4d3;
  gap: 0;
}
.muv-tab-btn {
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.muv-tab-btn:hover { color: #292929; }
.muv-tab-btn.is-active { color: #b19f6c; border-bottom-color: #b19f6c; }
.muv-tab-panel { display: none; }
.muv-tab-panel.is-active { display: block; }
/* Rich content inside tab panels */
.muv-tab-panel p  { margin-bottom: 1.1em; line-height: 1.7; }
.muv-tab-panel ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1.1em; }
.muv-tab-panel ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1.1em; }
.muv-tab-panel li { margin-bottom: 0.35em; line-height: 1.65; }
.muv-tab-panel li > ul { list-style-type: circle; margin-top: 0.25em; margin-bottom: 0; }
.muv-tab-panel h2 { font-size: 1.5rem; font-weight: 600; color: #171717; margin: 1.25em 0 0.4em; }
.muv-tab-panel h3 { font-size: 1.2rem; font-weight: 600; color: #171717; margin: 1em 0 0.35em; }
.muv-tab-panel strong { font-weight: 600; }
.muv-tab-panel a { color: #b19f6c; text-decoration: underline; }

/* ----------------------------------------------------------------
 * R8 — Accessibility deep-dive.
 *
 * Site-wide focus-visible rings on every interactive element so
 * keyboard users always see the active control. Tailwind utility
 * classes are inconsistently applied across partials; a global rule
 * here is defense-in-depth and keeps a11y audits clean.
 * ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid #b19f6c; /* primary-400 */
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details:focus-visible {
  outline: 2px solid #b19f6c;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(177, 159, 108, 0.18);
}

/* :focus-within on the desktop nav dropdown wrappers so keyboard users
 * see the active dropdown panel. Mirrors the existing .group-hover state. */
header nav li.relative.group:focus-within > div,
nav li.relative.group:focus-within > div {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Skip-to-content link — hidden until focused. */
.muv-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: #b19f6c;
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 9999px;
  text-decoration: none;
}
.muv-skip-link:focus,
.muv-skip-link:focus-visible {
  left: 12px;
}

/* main element should not show focus ring when programmatically focused via skip link */
main:focus { outline: none; }

/* Suppress focus ring on the body element itself (some browsers focus body when nothing else takes it). */
body:focus-visible { outline: none; box-shadow: none; }

/* ----------------------------------------------------------------
 * Contact Form 7 — basic styling so inputs are visible against
 * Tailwind's preflight reset (border:0, padding:0). Layout-only;
 * keeps the form usable on /contact-us/ and any other shortcoded form.
 * ---------------------------------------------------------------- */
.wpcf7-form { display: block; max-width: 100%; }
.wpcf7-form p { margin-bottom: 18px; }
.wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #292929;
  margin-bottom: 6px;
}
.wpcf7-form .wpcf7-form-control:where(.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-number, .wpcf7-date, .wpcf7-textarea, .wpcf7-select) {
  display: block;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #171717;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.wpcf7-form .wpcf7-form-control.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}
.wpcf7-form .wpcf7-form-control:where(.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-number, .wpcf7-date, .wpcf7-textarea, .wpcf7-select):focus {
  outline: none;
  border-color: #b19f6c;
  box-shadow: 0 0 0 3px rgba(177, 159, 108, 0.18);
}
.wpcf7-form .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 18px 6px 0;
}
.wpcf7-form .wpcf7-list-item-label { margin-left: 6px; }
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  background: #b19f6c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover { background: #a3915f; }
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: #c0392b;
  font-size: 13px;
}
/* Swiper — treat carousel pagination bullets styled to match site palette */
.swiper-treat-pagination .swiper-pagination-bullet {
  width: auto;
  height: 5px;
  flex: 1;
  border-radius: 9999px;
  background: #d9d9d9;
  opacity: 1;
  margin: 0;
  transition: background 0.2s ease;
}
.swiper-treat-pagination .swiper-pagination-bullet-active {
  background: #b19f6c;
}

.wpcf7-response-output {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}

/* WordPress posts pagination */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #292929;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-links .page-numbers:hover {
  border-color: #b19f6c;
  color: #b19f6c;
}
.nav-links .page-numbers.current {
  background: #b19f6c;
  border-color: #b19f6c;
  color: #fff;
}
.nav-links .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}
.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
  padding: 0 18px;
  letter-spacing: 0.12em;
  font-size: 11px;
  text-transform: uppercase;
}

/**
 * 2026-05-09 — push the ReviewWave "Let's Chat" widget up on mobile so it
 * clears the 56px-tall mobile sticky CTA bar (lg:hidden, fixed bottom-0).
 * The widget mounts itself as a positioned button/iframe; we target every
 * common ReviewWave selector defensively since the DOM shape can vary.
 */
@media (max-width: 1023px) {
	iframe[src*="reviewwave"],
	div[id*="reviewwave"],
	div[class*="reviewwave"],
	div[id*="rw-chat"],
	div[class*="rw-chat"],
	div[id*="rw_chat"],
	div[class*="rw_chat"],
	#chat_embed_div,
	div#review_wave_chat,
	.review-wave-chat-button {
		bottom: 70px !important;
	}
}

/* ReviewWave chat widget — exact mobile positioning override */
@media (max-width: 1023px) {
	.rw-chat.rwl-right,
	.rws-icon-container.rwl-right {
		right: 8px;
		bottom: 61px !important;
	}
}
