/* ============================================================
   Clinical Finesse — styles.css
   Palette pulled from the original design:
   deep violet #7C3AED · lilac #A78BFA · pink #F472B6
   blush #FBCFE8 · charcoal text #4A4A4A
   ============================================================ */

:root {
  --violet: #7c3aed;
  --violet-soft: #9b6df2;
  --lilac: #a78bfa;
  --lilac-pale: #c4b5fd;
  --pink: #f472b6;
  --blush: #fbcfe8;
  --text: #4a4a4a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Roboto", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

/* ---------- Shared ---------- */

/* Visually hidden but available to screen readers and search engines */
.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;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  color: #555;
}

.section-title.light { color: var(--white); }

.scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: #7a4fd4;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.scroll-btn:hover { transform: translateY(4px); }

.scroll-btn-dark { background: var(--white); color: #333; }

/* ---------- Video section ---------- */

.video-section {
  background: linear-gradient(160deg, #fde6f5 0%, #cdb6f8 55%, #a88cf5 100%);
}

.video-scroll-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.video-scroll-btn:hover { transform: translateX(-50%) translateY(4px); }

.video-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blurred, enlarged copy filling the whole section behind */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.95);
  transform: scale(1.12); /* hides the soft blurred edges */
}

/* Sharp video centered on top */
.video-main {
  position: relative;
  height: 100%;
  max-width: 92vw;
  object-fit: contain;
  z-index: 1;
}

/* Pink/purple tint over both videos, matching the hero overlay */
.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(167, 100, 235, 0.32), rgba(216, 132, 226, 0.26));
  z-index: 2;
  pointer-events: none;
}

/* ---------- Locations ---------- */

.locations {
  padding: 5rem 1.5rem 5.5rem;
  background: var(--white);
}

.card-grid {
  margin: 3rem auto 0;
  max-width: 960px; /* two cards at the same width they had as three */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; /* every card matches the tallest, even stacked on mobile */
  gap: 2rem;
}

.location-card {
  position: relative;
  border-radius: 18px;
  color: var(--white);
  text-align: center;
  display: flex;
  box-shadow: 0 14px 34px rgba(90, 50, 150, 0.22);
  overflow: hidden;
}

/* Photo layer — zooms in on hover (Elementor "Zoom In", 1000ms).
   Falls back to a purple gradient if the photo is missing. */
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 1s ease;
}

.card-dallas::before { background: url("images/dallas.jpg") center / cover no-repeat, linear-gradient(165deg, #8b5cf6, #4c1d95); }
.card-mobile::before { background: url("images/mobile.jpg") center / cover no-repeat, linear-gradient(165deg, #b79cf7, #8b5cf6); }

/* Overlay color from Elementor — Normal: #8137FF54 */
.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(129, 55, 255, 0.33);
  pointer-events: none;
  transition: background-color 1s ease;
}

/* Hover overlay: #FF97B06E */
.location-card:hover::after,
.location-card:focus-within::after {
  background: rgba(255, 151, 176, 0.43);
}

/* Content layer — grows on hover (Elementor "Grow", 1000ms) */
.card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.9rem 1.9rem 2.1rem;
  transition: transform 1s ease;
}

.location-card:hover::before,
.location-card:focus-within::before { transform: scale(1.12); }

.location-card:hover .card-content,
.location-card:focus-within .card-content { transform: scale(1.06); }

.card-logo {
  width: 200px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.location-card h2 {
  font-family: "Prata", var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
}

.card-desc { font-size: 0.95rem; margin-bottom: 1.1rem; }

.card-note { font-weight: 700; margin-bottom: 1rem; }

.price { font-weight: 700; margin-bottom: 0.5rem; }

.price-row { margin-bottom: 0.7rem; }

.book-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1.9rem;
  border: 2px solid var(--white);
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.book-btn:hover { background: #b270b5; color: var(--white); }

.book-btn-single { margin-top: 1rem; }

/* Google review button below the card grid */
.review-cta {
  text-align: center;
  margin-top: 2.75rem;
}

.google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.9rem;
  background: var(--white);
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #3c4043;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(90, 50, 150, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.google-review-btn:hover {
  box-shadow: 0 6px 18px rgba(90, 50, 150, 0.2);
  transform: translateY(-2px);
}

.phone-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.phone-link:hover { text-decoration: underline; }

/* Mobile Massage card: center its (shorter) content vertically */
.card-mobile .card-content { justify-content: center; }
.card-mobile .phone-link { margin-top: 1.25rem; }

/* ---------- Testimonials ---------- */

.testimonials {
  position: relative;
  background: linear-gradient(115deg, #7c3aed 0%, #a855f7 45%, #f472b6 100%);
  padding: 3.5rem 1.25rem 4rem;
  color: var(--white);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 0 3rem;
}

.slides-viewport { overflow: hidden; }

.slides {
  display: flex;
  align-items: flex-start;
}

.slide {
  flex: 0 0 50%; /* 2 slides per view on desktop */
  min-width: 0;
  padding: 0 1.4rem;
  box-sizing: border-box;
  text-align: center;
}

.slide blockquote p {
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin: 0 auto;
}

.truncatable .more-text { display: none; }
.truncatable.expanded .more-text { display: inline; }

.read-more {
  background: none;
  border: none;
  color: #ffc9de;
  font: italic 1rem var(--font-body);
  cursor: pointer;
  margin-top: 0.5rem;
  text-decoration: underline;
}

.slide figcaption { margin-top: 1.5rem; }

.slide figcaption strong { display: block; font-size: 1.05rem; }

.slide figcaption span {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.carousel-arrow:hover { opacity: 1; }

.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.is-active,
.dot:hover { background: var(--white); }

/* ---------- About ---------- */

.about { padding: 5rem 1.5rem; background: var(--white); }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-photo {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(90, 50, 150, 0.18);
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
  color: #3d3d3d;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.15rem;
  max-width: 60ch;
}

/* ---------- Footer ---------- */

.footer {
  background: linear-gradient(110deg, #8b5cf6 0%, #b06ae8 45%, #f79ac0 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(60, 20, 100, 0.25);
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffd9ec;
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr; max-width: 520px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .about-text .section-title { text-align: center; }
}

@media (max-width: 560px) {

  /* Prevent any accidental sideways scroll (e.g. from card hover scale) */
  body { overflow-x: hidden; }

  /* Video: show the full frame (no side cropping — the baked-in text
     stays visible) with a little top/bottom breathing room; the blurred
     backdrop fills the gaps */
  .video-main {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 1.5rem 0;
  }

  /* Sections: reduce desktop-sized whitespace */
  .locations { padding: 3.25rem 1.25rem 3.5rem; }
  .card-grid { margin-top: 2rem; gap: 1.5rem; }
  .about { padding: 3.25rem 1.5rem; }
  .about-inner { gap: 2rem; }

  /* Cards: tighter padding, bigger tap targets */
  .card-content { padding: 2rem 1.4rem 2.25rem; }
  .card-logo { width: 170px; height: 68px; }
  .book-btn { padding: 0.75rem 2.4rem; font-size: 0.9rem; }
  .phone-link { margin-top: 1rem; font-size: 1.6rem; padding: 0.5rem 1rem; }

  /* Disable the hover zoom/grow on touch screens — it can trigger on
     tap and feel glitchy */
  .location-card:hover::before,
  .location-card:focus-within::before,
  .location-card:hover .card-content,
  .location-card:focus-within .card-content { transform: none; }

  /* Scroll-into-view entrance animation (mobile replacement for hover).
     The .will-animate class is only added by JS, so if JS is off the
     elements simply render normally. */
  .location-card.will-animate,
  .reveal.will-animate {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .location-card.will-animate.in-view,
  .reveal.will-animate.in-view {
    opacity: 1;
    transform: none;
  }

  /* Testimonials: smaller quote mark, slimmer text, arrows tucked in */
  .quote-mark { font-size: 4rem; }
  .testimonials { padding: 2.75rem 0.75rem 3rem; }
  .carousel { padding: 0 1.9rem; margin-top: 1.75rem; }
  .slide { flex-basis: 100%; padding: 0 0.5rem; } /* 1 slide per view */
  .slide blockquote p { font-size: 0.95rem; }
  .carousel-arrow { font-size: 1.35rem; padding: 0.4rem 0.2rem; }
  .dots { margin-top: 1.5rem; }
  .dot { width: 11px; height: 11px; } /* easier to tap */

  /* About: photo naturally full-width */
  .about-photo { max-width: 100%; }

  /* Footer: stack and center */
  .footer { flex-direction: column; justify-content: center; text-align: center; gap: 1.5rem; padding: 2.25rem 1.5rem; }
  .footer-logo { width: 100px; height: 100px; }
  .footer-contact { align-items: center; gap: 1.1rem; }
  .footer-contact li { justify-content: center; }
}
