/* ====================================================================
   The Body Theory — site-wide UI enhancements.
   Loaded AFTER style.css so these win the cascade for base elements.
     1) Typography caps   2) Smooth scroll + brand-green scrollbar
     3) Testimonial cards + hover polish   4) Scroll-reveal animation
   All motion respects prefers-reduced-motion.
   ==================================================================== */

/* 1) The base stylesheet sizes text in vw units, so it balloons on wide
      screens. clamp(min, vw, max) keeps mobile scaling but caps desktop. */
p  { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.65; }
a  { font-size: clamp(15px, 1.7vw, 18px); }
h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
h3 { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.3; }
h5 { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.35; }
footer h4 { font-size: clamp(14px, 1.5vw, 17px); line-height: 1.5; }
footer a  { font-size: clamp(14px, 1.5vw, 17px); }

/* 2) Smooth scrolling + a brand-green custom scrollbar */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #2e7d5b #e9f1ec;      /* thumb / track (Firefox) */
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #e9f1ec; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a9b6e, #1f5c3a);
  border-radius: 99px;
  border: 2px solid #e9f1ec;
}
::-webkit-scrollbar-thumb:hover { background: #16472d; }

/* 3) Testimonials become soft cards. box-sizing keeps the float widths intact. */
.testimonial-01, .testimonial-02, .testimonial-03 {
  box-sizing: border-box;
  background: #fbfdfc;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  padding: clamp(16px, 1.6vw, 26px);
  box-shadow: 0 4px 18px rgba(20, 40, 35, .06);
}
@media (prefers-reduced-motion: no-preference) {
  .testimonial-01, .testimonial-02, .testimonial-03 {
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .testimonial-01:hover, .testimonial-02:hover, .testimonial-03:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(20, 40, 35, .12);
  }
}

/* 4) Scroll-reveal — OPACITY ONLY (no transform!). Several site images are
      centered with `transform: translateX(-50%)`; an element can hold only one
      transform, so animating transform here would clobber that centering and
      push images off-page. Fading opacity alone never touches layout/position.
      Content is visible by default; the footer.php script adds .js-reveal +
      .reveal, so if JS is off or motion is reduced, nothing is ever hidden. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transition: opacity .7s ease; }
  html.js-reveal .reveal.reveal-in { opacity: 1; }
}

/* ====================================================================
   5) Modern, responsive footer — replaces the legacy float/vw footer.
   Scoped to footer.site-ft so it overrides the old `footer` element rules. */
footer.site-ft {
  background: #0f3d31; color: #dfeee7; margin: 0; padding: 0;
  border-top: 4px solid #8cc63f; font-family: 'Roboto', system-ui, sans-serif;
}
footer.site-ft a { color: #dfeee7; text-decoration: none; font-size: 15px; transition: color .2s ease; }
footer.site-ft a:hover { color: #a7e06a; }
.site-ft .ft-top {
  max-width: 1160px; margin: 0 auto; padding: 54px 24px 34px;
  display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
}
.site-ft .ft-brand img { width: 185px; height: auto; margin-bottom: 14px; }
.site-ft .ft-brand p { color: #9fb8ad; font-size: 14px; line-height: 1.6; max-width: 250px; margin: 0; }
.site-ft .ft-col h4 {
  font-family: 'Montserrat Alternates', sans-serif; font-weight: 700;
  font-size: 16px; color: #a7e06a; margin: 0 0 14px;
}
.site-ft .ft-col a { display: block; padding: 5px 0; }
.site-ft .ft-col p { color: #c7dcd3; font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.site-ft .ft-col p strong { color: #fff; font-weight: 700; }
.site-ft .ft-fax { display: block; color: #9fb8ad; font-size: 14px; padding: 5px 0; }
.site-ft .ft-cta {
  display: inline-block; margin-top: 22px; background: #8cc63f; color: #0f3d31 !important;
  font-weight: 700; padding: 14px 28px; border-radius: 999px; font-size: 14px;
  transition: transform .2s ease, background .2s ease;
}
.site-ft .ft-cta:hover { background: #a7e06a; color: #0f3d31 !important; transform: translateY(-2px); }
.site-ft .ft-bottom {
  max-width: 1160px; margin: 0 auto; padding: 22px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.site-ft .ft-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.site-ft .ft-legal a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.site-ft .ft-disclaimer { color: #88a89c; font-size: 12.5px; line-height: 1.6; max-width: 920px; margin: 0 0 12px; }
.site-ft .ft-copy { color: #9fb8ad; font-size: 13px; margin: 0; }
.site-ft .ft-copy a { color: #a7e06a; font-weight: 700; }
@media (max-width: 860px) {
  .site-ft .ft-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 22px 26px; }
}
@media (max-width: 520px) {
  .site-ft .ft-top { grid-template-columns: 1fr; gap: 26px; }
  .site-ft .ft-brand img { width: 155px; }
}

/* 6) Fixed header sits above all page content */
#navbar-top { z-index: 999 !important; }

/* 7) Premium fonts + hover states (sitewide) ============================= */
body { font-family: 'Plus Jakarta Sans', 'Roboto', system-ui, -apple-system, sans-serif; }

/* Nav links — clean animated lime underline (replaces the old buzz jitter) */
#navbar-top .hvr-buzz-out:hover { animation: none !important; }
#navbar-right a { position: relative; transition: color .2s ease; }
#navbar-right a:not(.btn-schedule)::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 2px; border-radius: 2px;
  background: #a7e06a; transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
#navbar-right a:not(.btn-schedule):hover { color: #a7e06a; }
#navbar-right a:not(.btn-schedule):hover::after { transform: scaleX(1); }

/* Header "Schedule" image button — subtle lift + glow */
.btn-sched { transition: transform .2s ease, filter .2s ease; }
#navbar-right a:hover .btn-sched { transform: translateY(-2px); filter: brightness(1.06) drop-shadow(0 6px 14px rgba(140,198,63,.45)); }

/* Footer — Jakarta + animated underlines on links */
footer.site-ft { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.site-ft .ft-col a, .site-ft .ft-legal a { position: relative; }
.site-ft .ft-col a::after, .site-ft .ft-legal a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px;
  background: #a7e06a; transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.site-ft .ft-col a:hover::after, .site-ft .ft-legal a:hover::after { transform: scaleX(1); }

/* In-content links — clear underline on hover */
#content a:not([class*="btn"]):not([class*="hvr"]):hover,
#text-content a:hover,
#medical-records a:hover { text-decoration: underline; }

/* 8) Canonical "Schedule an Appointment" button (identical everywhere) ==== */
.btn-schedule {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; vertical-align: middle;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .2px;
  text-transform: none;
  background: #8cc63f; color: #0f3d31 !important; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; line-height: 1;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-schedule::after { content: "\2192"; font-size: 18px; line-height: 1; transition: transform .2s ease; }
.btn-schedule:hover { background: #a7e06a; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.btn-schedule:hover::after { transform: translateX(4px); }
/* Footer CTA needs breathing room above it */
.site-ft .btn-schedule { margin-top: 18px; }

/* Professional nav font */
#navbar-right a:not(.btn-schedule) {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: .6px;
  font-size: clamp(13px, 1vw, 15px);
}

/* Desktop (landscape) nav as a clean flex row — even spacing, vertically centered */
@media (orientation: landscape) {
  #navbar-top nav { display: flex; align-items: center; padding: 0 clamp(20px, 2.6vw, 54px); }
  #navbar-top nav > a:first-child { flex: 0 0 auto; }   /* logo keeps its size */
  #navbar-top nav > a:first-child img { margin-top: 0; } /* clean vertical centering */
  #navbar-top .hamburger { display: none; }
  #navbar-right { flex: 1 1 auto; display: flex; align-items: center; gap: 4px;
    float: none; width: auto; padding: 0; margin: 0; }
  /* Nav links: soft lime pill hover */
  #navbar-right a:not(.btn-schedule) { margin: 0; padding: 9px 15px; border-radius: 999px;
    transition: color .2s ease, background .2s ease; }
  #navbar-right a:not(.btn-schedule)::after { display: none; }
  #navbar-right a:not(.btn-schedule):hover { background: rgba(167, 224, 106, .16); color: #a7e06a; }
  /* Balance: equal space on both sides of the link group; CTA pinned to the right */
  #navbar-right a:not(.btn-schedule):first-of-type { margin-left: auto; }
  #navbar-right .btn-schedule { margin-left: auto; }
}
