/* ==========================================================================
   The Acupuncture Studio — Bootstrap 5 theme
   Palette and type measured from the live 5.7 site (see DESIGN-SPEC.md).
   The original loaded a teal base then overrode it with hex-8C2617.css;
   here the brick red is the base, so there is no override layer.
   ========================================================================== */

:root {
  --brand:        #8C2617;
  --brand-dark:   #6d1d12;
  --brand-light:  #b5432f;
  --ink:          #333333;
  --footer-bg:    #E5E9EC;
  --rule:         #e2e2e2;

  /* Bootstrap 5 token overrides */
  --bs-primary:        #8C2617;
  --bs-primary-rgb:    140, 38, 23;
  --bs-link-color:     #8C2617;
  --bs-link-hover-color: #6d1d12;
  --bs-body-color:     #333333;
  --bs-body-font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-weight: 300;
  --bs-body-font-size: 1rem;
  --bs-border-radius:  2px;
}

/* ---------- Type ---------------------------------------------------------- */

body {
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 { margin-bottom: .5em; }

h1 {
  font-family: Vollkorn, Georgia, "Times New Roman", serif;
  font-size: 3rem;             /* 48px */
  font-weight: 300;
  text-transform: uppercase;
  color: var(--brand);
}

h2 { font-size: 1.875rem; font-weight: 500; }   /* 30px */
h3 { font-size: 1.5625rem; font-weight: 400; }  /* 25px */

a {
  font-family: Vollkorn, Georgia, serif;
  color: var(--brand);
  text-decoration: none;
}
a:hover, a:focus { color: var(--brand-dark); text-decoration: underline; }

/* Content copy should stay in Roboto even though bare links are Vollkorn. */
p, li, td, th, dd, dt, .ccm-block-content a { font-family: var(--bs-body-font-family); }

.text-underline   { text-decoration: underline; }
.gf-vollkorn      { font-family: Vollkorn, Georgia, serif; }
.fw-special-title { font-family: Vollkorn, Georgia, serif; color: var(--brand); font-style: italic; }

/* ---------- Buttons ------------------------------------------------------- */

.btn { border-radius: 2px; text-transform: uppercase; font-weight: 500; }

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: .6875rem;   /* 11px, matches original */
  padding: .25rem .5rem .1875rem;
  line-height: 1.5;
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
               --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }

/* ---------- Header / nav -------------------------------------------------- */

.site-header { background: #fff; border-bottom: 3px solid var(--brand); padding: .5rem 0; }

.navbar-brand {
  font-family: Vollkorn, Georgia, serif;
  font-size: 1.125rem;          /* 18px */
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .625rem;
}
.navbar-brand:hover { color: var(--brand-dark); text-decoration: none; }
.navbar-brand img { height: 46px; width: auto; }

.site-nav .nav-link {
  font-family: Vollkorn, Georgia, serif;
  font-size: .9375rem;          /* 15px */
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brand);
  padding: .35rem .7rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-item.nav-selected > .nav-link { color: var(--brand-dark); text-decoration: underline; }

.header-utility { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.header-utility .social-media { color: var(--brand); font-size: 1.05rem; margin-left: .5rem; }
.header-utility .social-media:hover { color: var(--brand-dark); }
.header-utility .btn-brand { width: 210px; text-align: center; }

.header-utility { position: relative; }
#hours-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1040;
  width: 230px;
  margin-top: .4rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  font-size: .8125rem;
  text-align: left;
}
#hours-panel.is-open { display: block; }

/* ---------- Hero ---------------------------------------------------------- */

.hero { position: relative; }
.hero img { width: 100%; height: auto; display: block; }

.hero-title {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  margin: 0;
  font-family: Vollkorn, Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 54px; height: 54px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem;
  background: rgba(0,0,0,.08); transition: background .2s;
}
.hero-scroll:hover { background: rgba(0,0,0,.25); color: #fff; text-decoration: none; }

.tagline-band {
  background: #9a9a93 url("../img/birds.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 2.25rem 1rem;
}
.tagline-band p { margin: 0; font-size: 1.25rem; font-weight: 300; }
.tagline-band .price { font-size: 1.5rem; margin-top: .4rem; }

/* ---------- Content ------------------------------------------------------- */

#main-content { padding: 2.5rem 0; }

.ccm-page hr { border-top: 1px solid var(--rule); opacity: 1; }

/* FAQ / accordion — replaces the old jl_magic_tabs look */
.accordion { --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: #fbf3f1; --bs-accordion-active-color: var(--brand); }
.accordion-button { font-family: Vollkorn, Georgia, serif; font-weight: 500; color: var(--brand); }
.accordion-button:not(.collapsed) { color: var(--brand); background: #fbf3f1; box-shadow: none; }

/* Testimonials — replaces hw_simple_testimonials */
.testimonial, .ccm-block-testimonial { border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1rem; margin-bottom: 1.5rem; }
.testimonial .attribution { font-family: Vollkorn, Georgia, serif; color: var(--brand); font-style: italic; }

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

.site-footer { background: var(--footer-bg); color: var(--ink); padding: 2rem 0; margin-top: 3rem; font-size: .875rem; }
.site-footer a { font-family: var(--bs-body-font-family); }
.site-footer .social-media { color: var(--brand); font-size: 1.1rem; margin-right: .6rem; }

#scroll-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 42px; height: 42px;
  background: var(--brand); color: #fff; border: 0; border-radius: 2px;
  display: none; align-items: center; justify-content: center; z-index: 1030;
}
#scroll-to-top.is-visible { display: flex; }
#scroll-to-top:hover { background: var(--brand-dark); }

/* ---------- Editing mode -------------------------------------------------- */

.ccm-toolbar-visible .site-header { position: static; }

/* ---------- Rotating hero headline ---------------------------------------
   Mirrors the live site's cd-headline "slide" effect: the outgoing word
   slides down and out, the incoming word drops in from above. 0.6s each,
   held 2.5s, same as the original animated-headlines.js.
   -------------------------------------------------------------------------- */

.hero-title { line-height: 1.15; }

.hero-title .rotate-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
  height: 1.15em;
  line-height: 1.15em;
  transition: width .4s ease;
  white-space: nowrap;
}

.hero-title .rotate-wrap b {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  font-weight: inherit;
  line-height: 1.15em;
  white-space: nowrap;
}

.hero-title .rotate-wrap b.is-visible {
  position: relative;
  top: 0;
  opacity: 1;
  animation: hero-slide-in .6s;
}

.hero-title .rotate-wrap b.is-hidden {
  animation: hero-slide-out .6s;
}

@keyframes hero-slide-in {
  0%   { opacity: 0; transform: translateY(-100%); }
  60%  { opacity: 1; transform: translateY(20%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-slide-out {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0; transform: translateY(120%); }
  100% { opacity: 0; transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .rotate-wrap { transition: none; }
  .hero-title .rotate-wrap b.is-visible,
  .hero-title .rotate-wrap b.is-hidden { animation: none; }
}

/* ---------- Form breathing room ------------------------------------------
   The Express form's submit button sat flush against the next block.
   -------------------------------------------------------------------------- */

.ccm-block-express-form,
form.ccm-express-form { margin-bottom: 2.5rem; }

.ccm-block-express-form .form-actions,
.ccm-block-express-form button[type="submit"],
.ccm-block-express-form input[type="submit"] { margin-top: 1rem; }

.ccm-block-express-form button[type="submit"],
.ccm-block-express-form input[type="submit"] { margin-bottom: 2.5rem; }

/* captcha image sits tight against the button otherwise */
.ccm-block-express-form .captcha-image,
.ccm-block-express-form img[src*="captcha"] { margin: .5rem 0; display: block; }
