/* Cascade Azul Villas client theme.
   Scope every rule to the body class so client CSS does not leak into admin/core. */

.client-theme-joe-chapin {
  --teal-deep: #0b2820;
  --teal-dark: #0b3b3a;
  --teal-mid: #12473a;
  --teal-light: #1a5c46;
  --gold: #d9a24a;
  --gold-light: #f0b840;
  --cream: #f6f1e7;
  --white-soft: rgba(255, 255, 255, .88);
  --line-soft: rgba(255, 255, 255, .16);
  --shadow-deep: 0 24px 70px rgba(0, 0, 0, .34);
  --heading-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Mono", monospace;
  --body-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-third: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: var(--body-font);
  --font-heading: var(--heading-font);
  --green: var(--teal-dark);
  --green-dark: var(--teal-deep);
  --green-light: var(--teal-light);
  --green-pale: rgba(217, 162, 74, .12);
  --silver: #d8d7ce;
  --silver-light: #f8f5ec;
  --brown: #143128;
  --brown-mid: var(--gold);
  --text-dark: #13241f;
  --text-mid: #44504d;
  --text-muted: #6e7a77;
  background: var(--teal-deep);
  color: #fff;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.client-theme-joe-chapin h1,
.client-theme-joe-chapin h2,
.client-theme-joe-chapin h3,
.client-theme-joe-chapin h4,
.client-theme-joe-chapin h5,
.client-theme-joe-chapin .hero-heading,
.client-theme-joe-chapin .retreats-title,
.client-theme-joe-chapin .story-title,
.client-theme-joe-chapin .gallery-title {
  font-family: var(--heading-font);
  letter-spacing: 0;
}

.client-theme-joe-chapin a {
  text-decoration: none;
}

.client-theme-joe-chapin .container,
.client-theme-joe-chapin .container-xl {
  max-width: 1160px;
}

/* Header */
.client-theme-joe-chapin #mainNav {
  min-height: 80px;
  background: rgba(11, 40, 32, .92);
  border-bottom: 1px solid rgba(217, 162, 74, .2);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.client-theme-joe-chapin .nav-container {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.client-theme-joe-chapin .nav-logo-img,
.client-theme-joe-chapin .nav-logo-mobile {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.client-theme-joe-chapin .nav-brand-center {
  top: 50%;
  transform: translate(-50%, -50%);
}

.client-theme-joe-chapin .pv-link {
  color: rgba(255, 255, 255, .88) !important;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .62rem .75rem !important;
  border-radius: 2px;
}

.client-theme-joe-chapin .pv-link:hover,
.client-theme-joe-chapin .pv-active-box {
  color: #fff !important;
  outline: 1px solid rgba(255, 255, 255, .48);
  outline-offset: -1px;
}

.client-theme-joe-chapin .btn-book-nav,
.client-theme-joe-chapin .btn-check-avail,
.client-theme-joe-chapin .btn-rp-inquire,
.client-theme-joe-chapin .btn-story,
.client-theme-joe-chapin .btn-footer-book,
.client-theme-joe-chapin .btn-contact-submit {
  background: var(--gold);
  color: #0b2820 !important;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(217, 162, 74, .24);
  font-family: var(--body-font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.client-theme-joe-chapin .btn-book-nav:hover,
.client-theme-joe-chapin .btn-check-avail:hover,
.client-theme-joe-chapin .btn-rp-inquire:hover,
.client-theme-joe-chapin .btn-story:hover,
.client-theme-joe-chapin .btn-footer-book:hover,
.client-theme-joe-chapin .btn-contact-submit:hover {
  background: var(--gold-light);
  color: #0b2820 !important;
  transform: translateY(-1px);
}

/* Hero and search */
.client-theme-joe-chapin .hero-section {
  min-height: 100svh;
  background: var(--teal-deep);
  position: relative;
  z-index: 20;
}

.client-theme-joe-chapin .hero-carousel-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(11, 40, 32, .64), rgba(11, 40, 32, .22) 48%, rgba(11, 40, 32, .46)),
    linear-gradient(0deg, rgba(11, 40, 32, .88), transparent 48%);
}

.client-theme-joe-chapin .hero-content {
  max-width: 1000px;
  top: 27%;
}

.client-theme-joe-chapin .hero-eyebrow,
.client-theme-joe-chapin .story-eyebrow,
.client-theme-joe-chapin .retreats-eyebrow,
.client-theme-joe-chapin .gallery-eyebrow,
.client-theme-joe-chapin .explore-eyebrow,
.client-theme-joe-chapin .faq-eyebrow {
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.client-theme-joe-chapin .hero-heading {
  color: #fff;
  font-size: clamp(2.2rem, 3.65vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 12px 42px rgba(0, 0, 0, .4);
}

.client-theme-joe-chapin .hero-sub {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: .2rem;
}

.client-theme-joe-chapin .booking-bar-wrap {
  width: min(94vw, 980px);
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(34px, 7vh, 86px);
  z-index: 65;
}

.client-theme-joe-chapin .booking-bar {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
  color: #17241f;
  overflow: visible;
}

.client-theme-joe-chapin .bb-top-row {
  min-height: 76px;
}

.client-theme-joe-chapin .bb-label {
  color: #7b7f78;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.client-theme-joe-chapin .bb-input {
  color: #202821;
  font-family: var(--body-font);
  font-size: 1rem;
}

.client-theme-joe-chapin .bb-divider {
  background: rgba(11, 40, 32, .13);
}

.client-theme-joe-chapin .btn-check-avail {
  align-self: stretch;
  border-radius: 0 12px 12px 0;
  padding-left: clamp(22px, 3vw, 42px);
  padding-right: clamp(22px, 3vw, 42px);
}

.client-theme-joe-chapin .hero-badges,
.client-theme-joe-chapin .wa-bubble {
  display: none !important;
}

/* Content sections */
.client-theme-joe-chapin .story-section,
.client-theme-joe-chapin .retreats-section,
.client-theme-joe-chapin .gallery-section,
.client-theme-joe-chapin .faq-section,
.client-theme-joe-chapin .reviews-section,
.client-theme-joe-chapin .contact-section {
  background: var(--teal-deep);
  color: #fff;
}

.client-theme-joe-chapin .story-section {
  background: #f7f2e8;
  color: #102b22;
}

.client-theme-joe-chapin .story-title,
.client-theme-joe-chapin .story-body,
.client-theme-joe-chapin .retreat-body,
.client-theme-joe-chapin .retreat-body h3,
.client-theme-joe-chapin .rp-desc,
.client-theme-joe-chapin .rp-specs {
  color: #102b22;
}

.client-theme-joe-chapin .story-title,
.client-theme-joe-chapin .retreats-title,
.client-theme-joe-chapin .gallery-title,
.client-theme-joe-chapin .explore-title,
.client-theme-joe-chapin .faq-title {
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 700;
}

.client-theme-joe-chapin .story-img-main,
.client-theme-joe-chapin .story-img-accent,
.client-theme-joe-chapin .retreat-card,
.client-theme-joe-chapin .gallery-card {
  border-radius: 14px;
  overflow: hidden;
}

.client-theme-joe-chapin .retreats-section {
  background:
    linear-gradient(180deg, #0b2820 0%, #0b3b3a 100%);
}

.client-theme-joe-chapin .retreat-card {
  background: #f8f4ec;
  border: 1px solid rgba(217, 162, 74, .22);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .25);
}

.client-theme-joe-chapin .retreat-slider img,
.client-theme-joe-chapin .carousel-item img {
  min-height: 280px;
  object-fit: cover;
}

.client-theme-joe-chapin .rp-bar,
.client-theme-joe-chapin .story-bar {
  background: var(--gold);
}

.client-theme-joe-chapin .gallery-section {
  background: #0b2820;
}

.client-theme-joe-chapin .gallery-card {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
}

.client-theme-joe-chapin .gallery-card span,
.client-theme-joe-chapin .gallery-card-title,
.client-theme-joe-chapin .gallery-card-label {
  color: #fff;
}

/* Inner/listing/detail pages */
.client-theme-joe-chapin .inner-banner {
  background-color: var(--teal-dark);
  min-height: 430px;
  z-index: 20;
}

.client-theme-joe-chapin .inner-banner .overlay {
  background:
    linear-gradient(90deg, rgba(11, 40, 32, .78), rgba(11, 40, 32, .32)),
    linear-gradient(0deg, rgba(11, 40, 32, .7), transparent);
}

.client-theme-joe-chapin .inner-banner h1 {
  color: #fff;
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.client-theme-joe-chapin .pagination {
  background: #f7f2e8;
  color: #102b22;
}

.client-theme-joe-chapin .property-detail-page,
.client-theme-joe-chapin.property-detail-page {
  background: #f7f2e8;
  color: #102b22;
}

.client-theme-joe-chapin .property-detail-page .property-wrap h1,
.client-theme-joe-chapin .property-detail-page .property-wrap h2,
.client-theme-joe-chapin .property-detail-page .property-wrap h3,
.client-theme-joe-chapin.property-detail-page .property-wrap h1,
.client-theme-joe-chapin.property-detail-page .property-wrap h2,
.client-theme-joe-chapin.property-detail-page .property-wrap h3 {
  font-family: var(--heading-font) !important;
  color: #102b22;
}

.client-theme-joe-chapin .booking-card-pro,
.client-theme-joe-chapin.property-detail-page .booking-card-pro {
  border-radius: 14px;
  border: 1px solid rgba(11, 40, 32, .12);
  box-shadow: 0 18px 52px rgba(11, 40, 32, .18);
}

.client-theme-joe-chapin .reserve-btn,
.client-theme-joe-chapin.property-detail-page .reserve-btn {
  background: var(--gold) !important;
  color: #0b2820 !important;
  border-radius: 8px !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.client-theme-joe-chapin .reserve-btn:hover,
.client-theme-joe-chapin.property-detail-page .reserve-btn:hover {
  background: var(--gold-light) !important;
}

/* Footer */
.client-theme-joe-chapin .site-footer {
  background: #0a211b;
  color: rgba(255, 255, 255, .82);
}

.client-theme-joe-chapin .footer-top {
  background: transparent;
}

.client-theme-joe-chapin .footer-logo-text,
.client-theme-joe-chapin .footer-heading {
  color: #fff;
  font-family: var(--heading-font);
}

.client-theme-joe-chapin .footer-brand-sub,
.client-theme-joe-chapin .footer-map-tag {
  color: var(--gold);
  font-family: var(--heading-font);
  letter-spacing: .18em;
}

.client-theme-joe-chapin .footer-links a,
.client-theme-joe-chapin .footer-contact-list a {
  color: rgba(255, 255, 255, .82);
}

.client-theme-joe-chapin .footer-links a:hover,
.client-theme-joe-chapin .footer-contact-list a:hover {
  color: var(--gold);
}

/* Forms/contact */
.client-theme-joe-chapin input,
.client-theme-joe-chapin select,
.client-theme-joe-chapin textarea {
  font-family: var(--body-font);
}

.client-theme-joe-chapin .contact-card,
.client-theme-joe-chapin .faq-card,
.client-theme-joe-chapin .review-card {
  border-radius: 14px;
}

@media (max-width: 991.98px) {
  .client-theme-joe-chapin #mainNav {
    min-height: 72px;
  }

  .client-theme-joe-chapin .navbar-collapse {
    background: rgba(11, 40, 32, .98);
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(217, 162, 74, .2);
    border-radius: 12px;
  }

  .client-theme-joe-chapin .booking-bar-wrap {
    position: relative;
    width: calc(100% - 28px);
    bottom: auto;
    margin: -70px auto 48px;
    left: auto;
    transform: none;
  }

  .client-theme-joe-chapin .bb-top-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .client-theme-joe-chapin .bb-divider {
    display: none;
  }

  .client-theme-joe-chapin .bb-field {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(11, 40, 32, .12);
  }

  .client-theme-joe-chapin .btn-check-avail {
    border-radius: 0 0 12px 12px;
    min-height: 58px;
  }
}

@media (max-width: 575.98px) {
  .client-theme-joe-chapin .hero-section {
    min-height: 760px;
  }

  .client-theme-joe-chapin .hero-content {
    top: 30%;
  }

  .client-theme-joe-chapin .hero-heading {
    font-size: 2.45rem;
    line-height: 1.03;
  }

  .client-theme-joe-chapin .booking-bar-wrap {
    margin: 16px auto 48px;
  }

  .client-theme-joe-chapin .hero-sub {
    display: none;
  }
}

/* Joe approved header structure */
.client-theme-joe-chapin #mainNav.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h, 80px);
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

.client-theme-joe-chapin #mainNav.nav.scrolled {
  background: #0b2820;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.client-theme-joe-chapin .nav__inner {
  height: var(--nav-h, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.client-theme-joe-chapin .nav__logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform .18s ease;
}

.client-theme-joe-chapin .nav__logo:hover img {
  transform: scale(1.03);
}

.client-theme-joe-chapin .nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.client-theme-joe-chapin .nav__links a {
  color: rgba(246, 246, 242, .8);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .18s ease;
}

.client-theme-joe-chapin .nav__links a:hover,
.client-theme-joe-chapin .nav__links a.is-active {
  color: var(--gold);
}

.client-theme-joe-chapin .nav__cta {
  display: inline-flex;
}

.client-theme-joe-chapin .btn--gold,
.client-theme-joe-chapin .btn-book-nav {
  background: var(--gold);
  color: #0b3b3a !important;
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 4px 20px rgba(232, 160, 32, .35);
  font-family: var(--body-font);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 6px 24px;
  text-transform: none;
}

.client-theme-joe-chapin .btn--gold:hover,
.client-theme-joe-chapin .btn-book-nav:hover {
  background: var(--gold-light);
  color: #0b3b3a !important;
}

.client-theme-joe-chapin .nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 102;
}

.client-theme-joe-chapin .nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 4px;
  transition: all .35s ease;
}

.client-theme-joe-chapin .nav__toggle.open span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.client-theme-joe-chapin .nav__toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.client-theme-joe-chapin .nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.client-theme-joe-chapin .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .client-theme-joe-chapin .nav__inner {
    height: var(--nav-h, 80px);
    padding: 0 1.5rem;
  }

  .client-theme-joe-chapin .nav__logo img {
    height: 58px;
  }

  .client-theme-joe-chapin .nav__cta {
    display: none;
  }

  .client-theme-joe-chapin .nav__toggle {
    display: flex;
  }

  .client-theme-joe-chapin .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    background: #0b2820;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 100;
    padding: var(--nav-h, 80px) 2rem 2rem;
    overflow-y: auto;
  }

  .client-theme-joe-chapin .nav__links.open {
    display: flex;
  }

  .client-theme-joe-chapin .nav__links a {
    font-size: 1.1rem;
    letter-spacing: .12em;
  }
}
