/* WordPress additions on top of site.css (the stylesheet carried over from Webflow). */

/* Keep the sticky header below the admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* No Webflow badge on WordPress, so the mobile call bar no longer needs the extra bottom space. */
@media screen and (max-width: 767px) {
  .mobile-call-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .page-wrapper { padding-bottom: 76px; }
}

/* Booking form messages: shown by the template instead of Webflow's form script. */
.form-message { margin-top: 16px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-select { appearance: auto; }

/* FAQ drop-downs (assets/js/site.js adds .faq-ready and .is-open). */
.faq-ready .faq-question { margin-bottom: 0; }
.faq-ready .faq-answer { display: none; margin-top: 10px; padding-right: 48px; }
.faq-ready .faq-item.is-open .faq-answer { display: block; }
.faq-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.faq-toggle:hover { color: #9f3b29; }
.faq-toggle:focus-visible { outline: 2px solid #b7542f; outline-offset: 4px; border-radius: 2px; }
.faq-chevron { flex: none; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #9b6b51; border-radius: 50%; color: #b7542f; transition: transform .2s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

/* Embed boxes keep their labelled placeholder until code is added in the Customizer. */
.reviews-embed-slot iframe, .map-embed-slot iframe { max-width: 100%; }
.map-embed-slot iframe { width: 100%; min-height: 320px; border: 0; }

/* Content typed into the WordPress editor on generic pages. */
.rich-text-body img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- v1.1: top bar and drop-down menu ---------- */
.top-bar { background-color: var(--soot-charcoal); color: var(--letter-cream); font-size: 14px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 8px 32px; }
.top-bar-info { display: flex; align-items: center; gap: 20px; }
.top-bar-phone { color: var(--letter-cream); font-weight: 700; text-decoration: none; }
.top-bar-phone:hover { color: #fff; text-decoration: underline; }
.top-bar-hours { color: var(--smoke-tan); }
.top-bar-book { background-color: var(--plate-orange); color: var(--letter-cream); font-weight: 700; padding: 6px 14px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.top-bar-book:hover { background-color: var(--brick-red); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-menu > .nav-item { padding: 22px 0; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; margin: 0 0 0 4px; padding: 4px; border: 0; background: transparent; color: var(--soot-charcoal); cursor: pointer; }
.sub-toggle svg { transition: transform .15s ease; }
.sub-toggle:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--plate-orange); outline-offset: 2px; border-radius: 3px; }
.nav-toggle { display: none; }

.sub-menu { position: absolute; top: 100%; left: -16px; z-index: 200; min-width: 250px; padding: 8px 0; background-color: #fff; border: 1px solid var(--smoke-tan); border-top: 3px solid var(--plate-orange); border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(48, 37, 33, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-item.has-sub:hover > .sub-menu, .nav-item.has-sub:focus-within > .sub-menu, .nav-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu .nav-item { justify-content: space-between; }
.sub-link { flex: 1; display: block; padding: 9px 18px; color: var(--soot-charcoal); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sub-link:hover, .sub-link:focus-visible { background-color: var(--paper-cream); color: var(--brick-red); }
.sub-menu .sub-toggle { margin-right: 10px; transform: rotate(-90deg); }
.sub-menu .sub-menu { top: -9px; left: 100%; border-top-width: 1px; border-radius: 8px; }
.nav-menu > .nav-item:nth-last-child(-n+2) > .sub-menu { left: auto; right: -16px; }
.nav-menu > .nav-item:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; }

h2[id], h3[id], section[id] { scroll-margin-top: 120px; }

@media screen and (max-width: 991px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px 9px; background: transparent; border: 1px solid var(--cap-stone); border-radius: 6px; cursor: pointer; }
  .nav-toggle-bar { display: block; width: 22px; height: 2px; background-color: var(--soot-charcoal); }
  .main-nav { display: none; order: 3; width: 100%; padding-top: 0; border-top: 0; overflow: visible; }
  .site-header.nav-open .main-nav { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; margin-top: 10px; border-top: 1px solid var(--smoke-tan); max-height: calc(100vh - 150px); overflow-y: auto; }
  .nav-menu > .nav-item { padding: 0; }
  .nav-item { flex-wrap: wrap; justify-content: space-between; }
  .nav-menu > .nav-item { border-bottom: 1px solid var(--smoke-tan); }
  .nav-link, .sub-link { flex: 1; padding: 13px 4px; white-space: normal; }
  .sub-toggle { padding: 12px 14px; }
  .sub-menu, .sub-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 8px 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-item.is-open > .sub-menu { display: block; }
  .sub-menu .sub-toggle { transform: none; margin-right: 0; }
  .nav-item.is-open > .sub-toggle svg { transform: rotate(180deg); }
}

@media screen and (max-width: 479px) {
  .top-bar-inner { padding: 6px 16px; }
  .top-bar-hours { display: none; }
  .header-actions { gap: 8px; }
}

/* v1.1: related service links under the main text */
.related-links { margin-top: 40px; padding: 24px 28px; background-color: var(--paper-cream); border: 1px solid var(--smoke-tan); border-radius: 10px; }
.related-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media screen and (max-width: 479px) { .related-list { grid-template-columns: 1fr; } }

/* v1.1: blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: flex; background-color: #fff; border: 1px solid var(--smoke-tan); border-radius: 10px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.blog-card:hover { box-shadow: 0 12px 28px rgba(48, 37, 33, .12); transform: translateY(-2px); }
.blog-card-link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.blog-card-media { height: 200px; overflow: hidden; background-color: var(--smoke-tan); }
.blog-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.blog-card-meta { color: var(--cap-stone); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.blog-card-text { flex: 1; margin: 0; font-size: 15px; line-height: 1.6; }
.blog-pagination { margin-top: 40px; }
.blog-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.blog-pagination a, .blog-pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--cap-stone); border-radius: 6px; color: var(--soot-charcoal); font-weight: 600; text-decoration: none; }
.blog-pagination .current { background-color: var(--plate-orange); border-color: var(--plate-orange); color: var(--letter-cream); }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-meta { margin-top: 16px; color: var(--smoke-tan); font-size: 14px; font-weight: 600; }
.article-cta { margin-top: 48px; padding: 28px; background-color: var(--paper-cream); border: 1px solid var(--smoke-tan); border-left: 4px solid var(--plate-orange); border-radius: 10px; }
.article-cta .button-row { margin-top: 16px; }
@media screen and (max-width: 991px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media screen and (max-width: 479px) { .blog-grid { grid-template-columns: 1fr; } }
