/* Cure Fit Yoga v1.4.2 — Blocksy navigation and live-text logo lockup.
   Keep Blocksy's drawer, focus handling and submenu open/close behaviour. */

body.cfy-theme #header .cfy-brand-lockup {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-block: 8px;
}
body.cfy-theme #header .cfy-brand-lockup .site-title-container {
  width: 100%;
  margin: 0;
  text-align: center;
}
body.cfy-theme #header .cfy-brand-lockup .site-description,
body.cfy-theme .cfy .cfy-logo-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--saffron-ink, #BE5019);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 1.45px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.cfy-theme #header .cfy-brand-lockup .site-description::before,
body.cfy-theme #header .cfy-brand-lockup .site-description::after,
body.cfy-theme .cfy .cfy-logo-tagline::before,
body.cfy-theme .cfy .cfy-logo-tagline::after {
  content: "";
  flex: 0 1 14px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
body.cfy-theme .cfy .cfy-logo-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
  text-decoration: none;
}
body.cfy-theme .cfy .cfy-logo-lockup img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}
body.cfy-theme .cfy .cfy-logo-lockup:hover { text-decoration: none; }

/* Desktop navigation and a white, softly bordered dropdown. */
body.cfy-theme #header-menu-1 .ct-menu-link {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  color: var(--plum, #452632);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}
body.cfy-theme #header-menu-1 > ul > li > .ct-menu-link {
  font-size: 14px;
  font-weight: 600;
  --menu-item-padding: 0 10px;
}
body.cfy-theme #header-menu-1 > ul > li:hover > .ct-menu-link,
body.cfy-theme #header-menu-1 > ul > li[class*="current-menu-"] > .ct-menu-link {
  color: var(--saffron-ink, #BE5019);
}
body.cfy-theme #header-menu-1 .sub-menu {
  --dropdown-width: 280px;
  --dropdown-top-offset: 8px;
  --sticky-state-dropdown-top-offset: 8px;
  --dropdown-divider: none;
  max-width: calc(100vw - 32px);
  padding: 8px;
  background: #fff;
  border: 1px solid #E7DDD7;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(69, 38, 50, .12);
}
body.cfy-theme #header-menu-1 .sub-menu .ct-menu-link {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  color: var(--plum, #452632);
  transition: background-color 160ms ease, color 160ms ease;
}
body.cfy-theme #header-menu-1 .sub-menu .ct-menu-link:hover,
body.cfy-theme #header-menu-1 .sub-menu .ct-menu-link:focus-visible,
body.cfy-theme #header-menu-1 .sub-menu li[class*="current-menu-"] > .ct-menu-link {
  background: #F7EEE6;
  color: var(--plum, #452632);
}

/* Mobile drawer — opaque ivory surface, plum text and generous tap targets. */
body.cfy-theme #offcanvas {
  --side-panel-width: min(390px, 92vw);
  background: rgba(35, 20, 27, .42);
}
body.cfy-theme #offcanvas .ct-panel-inner {
  --panel-padding: 20px;
  background: var(--ivory, #FCFAF6);
  color: var(--plum, #452632);
  border-radius: 18px 0 0 18px;
  box-shadow: -16px 0 48px rgba(69, 38, 50, .16);
}
body.cfy-theme #offcanvas .ct-panel-actions {
  padding: 16px 20px;
  justify-content: flex-end;
  flex-shrink: 0;
  border-bottom: 1px solid #E7DDD7;
}
body.cfy-theme #offcanvas .ct-toggle-close {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #E7DDD7;
  border-radius: 50%;
  background: #fff;
  color: var(--plum, #452632);
  --theme-icon-color: var(--plum, #452632);
  --theme-icon-hover-color: var(--saffron-ink, #BE5019);
}
body.cfy-theme #offcanvas .ct-toggle-close svg { fill: currentColor; }
body.cfy-theme #offcanvas .ct-panel-content-inner {
  padding: 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
body.cfy-theme #offcanvas .mobile-menu {
  width: 100%;
  --theme-link-initial-color: var(--plum, #452632);
  --theme-link-hover-color: var(--saffron-ink, #BE5019);
  --theme-link-active-color: var(--plum, #452632);
  --horizontal-alignment: stretch;
  --text-horizontal-alignment: left;
}
body.cfy-theme #offcanvas .mobile-menu .ct-menu-link {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  justify-content: flex-start;
  border-radius: 9px;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--plum, #452632);
}
body.cfy-theme #offcanvas .mobile-menu > ul > li { border-bottom: 1px solid #E7DDD7; }
body.cfy-theme #offcanvas .mobile-menu > ul > li:last-child { border-bottom: 0; }
body.cfy-theme #offcanvas .mobile-menu .ct-menu-link:hover,
body.cfy-theme #offcanvas .mobile-menu .ct-menu-link:focus-visible,
body.cfy-theme #offcanvas .mobile-menu li[class*="current-menu-"] > .ct-menu-link,
body.cfy-theme #offcanvas .mobile-menu li[class*="current-menu-"] > .ct-sub-menu-parent > .ct-menu-link {
  background: #F7EEE6;
  color: var(--plum, #452632);
}
body.cfy-theme #offcanvas .ct-sub-menu-parent { width: 100%; gap: 8px; }
body.cfy-theme #offcanvas .ct-sub-menu-parent > .ct-menu-link { flex: 1; min-width: 0; }
body.cfy-theme #offcanvas .ct-toggle-dropdown-mobile {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #E7DDD7;
  border-radius: 10px;
  background: var(--sand, #F4EDE4);
  color: var(--plum, #452632);
}
body.cfy-theme #offcanvas .ct-toggle-dropdown-mobile svg { fill: currentColor; }
body.cfy-theme #offcanvas .mobile-menu .sub-menu {
  width: 100%;
  margin: 0;
  padding: 0 0 8px 12px;
  border-left: 2px solid #E7DDD7;
}
body.cfy-theme #offcanvas .mobile-menu .sub-menu .ct-menu-link {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
}
body.cfy-theme #offcanvas .mobile-menu .sub-menu .ct-menu-link::before { display: none; }

/* A consistent final action, including hover, keyboard and current-page states. */
body.cfy-theme #header-menu-1 > .menu > li.cfy-nav-cta > a.ct-menu-link,
body.cfy-theme #offcanvas .mobile-menu > ul > li.cfy-nav-cta > a.ct-menu-link {
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--saffron-ink, #BE5019);
  color: #fff;
  justify-content: center;
  font-weight: 700;
}
body.cfy-theme #header-menu-1 > .menu > li.cfy-nav-cta > a.ct-menu-link {
  align-self: center;
  height: 44px;
  margin-block: auto;
  margin-inline-start: 8px;
}
body.cfy-theme #offcanvas .mobile-menu > ul > li.cfy-nav-cta > a.ct-menu-link { margin-top: 18px; }
body.cfy-theme #header-menu-1 > .menu > li.cfy-nav-cta > a.ct-menu-link:hover,
body.cfy-theme #header-menu-1 > .menu > li.cfy-nav-cta > a.ct-menu-link:focus-visible,
body.cfy-theme #offcanvas .mobile-menu > ul > li.cfy-nav-cta > a.ct-menu-link:hover,
body.cfy-theme #offcanvas .mobile-menu > ul > li.cfy-nav-cta > a.ct-menu-link:focus-visible {
  background: #A84514;
  color: #fff;
}
body.cfy-theme #header-menu-1 a:focus-visible,
body.cfy-theme #header-menu-1 button:focus-visible,
body.cfy-theme #offcanvas a:focus-visible,
body.cfy-theme #offcanvas button:focus-visible,
body.cfy-theme .cfy .cfy-social-links a:focus-visible {
  outline: 3px solid var(--saffron-ink, #BE5019);
  outline-offset: 3px;
}
@media (max-width: 689px) {
  body.cfy-theme #header .cfy-brand-lockup { gap: 4px; }
  body.cfy-theme #header .cfy-brand-lockup .site-description { font-size: 9px; letter-spacing: 1px; gap: 5px; }
  body.cfy-theme #header .cfy-brand-lockup .site-description::before,
  body.cfy-theme #header .cfy-brand-lockup .site-description::after { flex-basis: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body.cfy-theme #header-menu-1 .sub-menu,
  body.cfy-theme #offcanvas,
  body.cfy-theme #offcanvas .ct-panel-inner { transition: none; }
}
