/* Site chrome: header, footer, page wrapper. Replaces the Elementor header/footer. */
:root {
  --wps-ink: #333333;
  --wps-ink-strong: #14222b;
  --wps-ink-nav-sub: #1b2a2f;
  --wps-blue: #38b6ff;
  --wps-blue-dark: #257cae;
  --wps-blue-tint: #eafaff;
  --wps-blue-hover: #d2f4ff;
  --wps-line: #cfcfcf;
  --wps-footer-text: #234550;
  --wps-header-h: 84px;
}

.wps-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wps-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 14px; border-radius: 8px; background: var(--wps-ink-strong); color: #fff;
  font: 600 14px/1.2 'Poppins', sans-serif; text-decoration: none;
}
.wps-skip:focus { top: 12px; }

/* ---------- Header ---------- */
/* The theme styles every <button> pink; reset ours. */
.wps-header button, .wps-modal button {
  font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0;
}
.wps-header .wps-nav__caret, .wps-header .wps-nav__caret:hover, .wps-header .wps-nav__caret:focus,
.wps-modal .wps-modal__close { background: transparent; border: 0; }
.wps-header .wps-header__toggle, .wps-header .wps-header__toggle:hover, .wps-header .wps-header__toggle:focus { background: var(--wps-blue-tint); color: var(--wps-blue); border: 0; }
.wps-modal .wps-modal__close:hover { background: #f3f4f6; }
.wps-header {
  position: sticky; top: 0; z-index: 95;
  background: #fff; border-bottom: 1px solid var(--wps-line);
  font-family: 'Poppins', sans-serif;
}
body.admin-bar .wps-header { top: 32px; }
.wps-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--wps-header-h); padding: 0 2%;
}
.wps-header__logo { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.wps-header__logo img { width: 176px; height: auto; display: block; }
.wps-header__toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px;
  background: var(--wps-blue-tint); color: var(--wps-blue); cursor: pointer;
}
.wps-header__toggle-close { display: none; }
.wps-header__toggle[aria-expanded="true"] .wps-header__toggle-open { display: none; }
.wps-header__toggle[aria-expanded="true"] .wps-header__toggle-close { display: block; }
.wps-header__toggle:focus-visible, .wps-nav a:focus-visible, .wps-nav__caret:focus-visible {
  outline: 3px solid rgba(56, 182, 255, .45); outline-offset: 2px;
}

.wps-nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.wps-nav__list > li { position: relative; }
.wps-nav__list > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 20px; color: var(--wps-ink); text-decoration: none;
  font: 700 13px/20px 'Poppins', sans-serif; text-transform: capitalize;
  transition: color .15s ease;
}
.wps-nav__list > li > a:hover,
.wps-nav__list > li.current-menu-item > a,
.wps-nav__list > li.current-menu-ancestor > a { color: var(--wps-blue); }
.wps-nav__list > li.wps-nav__admin > a { color: var(--wps-blue-dark); }

/* Dropdown parent gets a caret (added by site.js). */
.wps-nav__caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: -16px; padding: 0; border: 0; background: none;
  color: var(--wps-ink); cursor: pointer;
}
.wps-nav__caret svg { transition: transform .2s ease; }
.wps-nav__list > li:hover > .wps-nav__caret,
.wps-nav__list > li.is-open > .wps-nav__caret { color: var(--wps-blue); }
.wps-nav__list > li.is-open > .wps-nav__caret svg { transform: rotate(180deg); }
.wps-nav__list > li.menu-item-has-children { display: flex; align-items: center; }

.wps-nav .sub-menu {
  position: absolute; top: calc(100% - 2px); right: 0; z-index: 10;
  min-width: 260px; margin: 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid #e6edf2; border-radius: 10px;
  box-shadow: 0 14px 30px -12px rgba(20, 34, 43, .25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.wps-nav__list > li:hover > .sub-menu,
.wps-nav__list > li:focus-within > .sub-menu,
.wps-nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wps-nav .sub-menu a {
  display: block; padding: 9px 18px; color: var(--wps-ink-nav-sub); text-decoration: none;
  font: 400 14px/1.45 'Poppins', sans-serif; text-transform: capitalize; white-space: nowrap;
}
.wps-nav .sub-menu a:hover,
.wps-nav .sub-menu .current-menu-item > a { background: var(--wps-blue-hover); }

/* ---------- Header: tablet and phone ---------- */
@media (max-width: 1024px) {
  :root { --wps-header-h: 60px; }
  .wps-header__inner { padding: 0 5%; position: relative; }
  .wps-header__toggle { display: inline-flex; }
  .wps-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--wps-line);
    box-shadow: 0 16px 24px -18px rgba(20, 34, 43, .35);
    max-height: calc(100vh - var(--wps-header-h)); overflow-y: auto;
    display: none;
  }
  .wps-header.is-open .wps-nav { display: block; }
  .wps-nav__list { flex-direction: column; align-items: stretch; padding: 6px 0 10px; }
  .wps-nav__list > li { display: block !important; }
  .wps-nav__list > li > a {
    padding: 11px 5.5%; color: var(--wps-ink-nav-sub);
    font-weight: 500; font-size: 15px; line-height: 22px;
  }
  .wps-nav__list > li.menu-item-has-children { display: grid !important; grid-template-columns: 1fr auto; align-items: center; }
  .wps-nav__list > li.menu-item-has-children > a { grid-column: 1; }
  .wps-nav__caret { grid-column: 2; width: 44px; height: 44px; margin: 0 4% 0 0; }
  .wps-nav .sub-menu {
    grid-column: 1 / -1; position: static; min-width: 0; border: 0; border-radius: 0; box-shadow: none;
    padding: 0 0 6px; background: #f6fbfe; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .wps-nav__list > li:hover > .sub-menu, .wps-nav__list > li:focus-within > .sub-menu { display: none; }
  .wps-nav__list > li.is-open > .sub-menu { display: block; }
  .wps-nav .sub-menu a { padding: 10px 5.5% 10px calc(5.5% + 14px); white-space: normal; }
}
@media (max-width: 782px) {
  body.admin-bar .wps-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .wps-header { top: 0; }
}
@media (max-width: 767px) {
  .wps-header__logo img { width: 138px; }
}

/* ---------- Footer ---------- */
.wps-footer { font-family: 'Poppins', sans-serif; background: #fff; border-top: 1px solid #1f2f38; color: var(--wps-ink); }
.wps-footer__inner {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.5fr) minmax(0, 3.5fr); gap: 40px;
  padding: 52px 8.3% 56px;
}
.wps-footer__logo { display: inline-block; line-height: 0; margin-bottom: 26px; }
.wps-footer__logo img { width: 180px; height: auto; }
.wps-footer__brand p { margin: 0; max-width: 430px; font-size: 14px; line-height: 1.5; color: var(--wps-footer-text); }
.wps-footer__title { margin: 4px 0 24px; font: 600 22px/1.2 'Poppins', sans-serif; color: #000; text-transform: capitalize; }
.wps-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wps-footer__list a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--wps-ink); text-decoration: none; font-size: 16px; font-weight: 300; line-height: 1.5;
  overflow-wrap: anywhere;
}
.wps-footer__list a:hover { color: var(--wps-blue-dark); }
.wps-footer__list i { flex: 0 0 16px; width: 16px; text-align: center; font-size: 14px; color: var(--wps-blue); }
.wps-footer__bar { background: var(--wps-blue); }
.wps-footer__bar p { margin: 0; padding: 12px 16px; text-align: center; color: #fff; font-size: 14px; line-height: 21px; }

@media (max-width: 1024px) {
  .wps-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 48px 5%; gap: 36px 30px; }
  .wps-footer__brand { grid-column: 1 / -1; order: 3; }
  .wps-footer__list a { font-size: 14px; }
}
@media (max-width: 600px) {
  .wps-footer__inner { grid-template-columns: 1fr; padding: 44px 6% 40px; gap: 32px; }
  .wps-footer__title { font-size: 18px; margin-bottom: 16px; }
  .wps-footer__list { gap: 8px; }
}

/* ---------- Pages rendered from site/pages/*.php ---------- */
.wps-page { display: block; }

/* ---------- Members-only tool prompt (site.js) ---------- */
.wps-modal-open { overflow: hidden; }
.wps-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(16, 32, 42, .55); backdrop-filter: blur(2px);
  font-family: 'Poppins', sans-serif;
}
.wps-modal__card {
  position: relative; width: 100%; max-width: 420px; padding: 30px 28px 26px;
  background: #fff; border-radius: 16px; text-align: center;
  box-shadow: 0 24px 60px -20px rgba(16, 32, 42, .5);
}
.wps-modal__icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--wps-blue), var(--wps-blue-dark));
}
.wps-modal__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--wps-ink-strong); }
.wps-modal__text { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: #4b5563; }
.wps-modal__cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none;
  color: #fff !important; background: linear-gradient(135deg, var(--wps-blue), var(--wps-blue-dark));
}
.wps-modal__cta:hover { filter: brightness(.95); color: #fff !important; }
.wps-modal__secondary { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--wps-blue-dark); }
.wps-modal__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wps-modal__close:hover { background: #f3f4f6; color: #111827; }
.wps-modal :focus-visible { outline: 3px solid rgba(56, 182, 255, .45); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .wps-nav .sub-menu, .wps-nav__caret svg, .wps-nav__list > li > a { transition: none; }
}

/* ---------- Pages converted from Elementor (site/pages/*.php) ----------
   Mirrors Elementor's defaults: containers stack their children with a 20px
   gap and 10px padding; top-level boxed containers cap at 1140px. */
:where(.wps-page .wps-container, .wps-page .wps-column) {
  display: flex; flex-direction: column; gap: 20px; padding: 10px;
  box-sizing: border-box; min-width: 0;
}
:where(.wps-page .wps-boxed) { width: 100%; max-width: 1140px; margin-left: auto; margin-right: auto; }
:where(.wps-page .wps-section) { display: flex; gap: 20px; box-sizing: border-box; }
:where(.wps-page .wps-section > .wps-column) { flex: 1 1 0; }
:where(.wps-page .wps-el:not(.wps-container):not(.wps-section):not(.wps-column)) { width: 100%; min-width: 0; }
:where(.wps-page .wps-heading) { margin: 0; }
:where(.wps-page .wps-divider) { width: 14%; margin: 2px 0; border: 0; border-top: 3px solid currentColor; }
.wps-page .wps-image img { display: block; max-width: 100%; height: auto; }
.wps-page .wps-text > :first-child { margin-top: 0; }
.wps-page .wps-text > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  :where(.wps-page .wps-section) { flex-direction: column; }
}

/* Plain (non-Elementor) pages keep the theme's simple title + content layout. */
.wps-page .wps-plain { padding: 32px 10px 60px; box-sizing: border-box; }
.wps-page .wps-plain__title { margin: 0 0 18px; font: 600 2rem/1.2 'Poppins', sans-serif; color: #14222b; }

/* Legal pages (privacy policy, terms): readable long-form text. */
.wps-page--privacy-policy .wps-text, .wps-page--tos .wps-text {
  max-width: 820px; margin: 0 auto; padding: 44px 20px 64px; box-sizing: border-box;
  font: 400 15px/1.75 'Poppins', sans-serif; color: #2b3f4c;
}
.wps-page--privacy-policy .wps-text :is(h1, h2, h3, h4, h5, h6), .wps-page--tos .wps-text :is(h1, h2, h3, h4, h5, h6) {
  font-family: 'Poppins', sans-serif; color: #0f3550; line-height: 1.25; margin: 1.8em 0 .55em; overflow-wrap: anywhere;
}
.wps-page--privacy-policy .wps-text h1, .wps-page--tos .wps-text h1 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); font-weight: 700; margin-top: 0; }
.wps-page--privacy-policy .wps-text h2, .wps-page--tos .wps-text h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 600; }
.wps-page--privacy-policy .wps-text h3, .wps-page--tos .wps-text h3 { font-size: 1.15rem; font-weight: 600; }
.wps-page--privacy-policy .wps-text :is(h4, h5, h6), .wps-page--tos .wps-text :is(h4, h5, h6) { font-size: 1rem; font-weight: 600; }
.wps-page--privacy-policy .wps-text :is(p, li), .wps-page--tos .wps-text :is(p, li) { overflow-wrap: anywhere; }
.wps-page--privacy-policy .wps-text ul, .wps-page--tos .wps-text ul { padding-left: 1.3em; }
.wps-page--privacy-policy .wps-text a, .wps-page--tos .wps-text a { color: #257cae; text-underline-offset: 2px; }

/* ---------- Simple forms (support page) ---------- */
.wps-form { display: grid; gap: 16px; font-family: 'Poppins', sans-serif; }
.wps-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wps-form__field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.wps-form__field em { color: #257cae; font-style: normal; }
.wps-form .wps-form__field :is(input, select, textarea) {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 10px;
  font: 400 15px/1.45 'Poppins', sans-serif; color: #111827; background: #fff;
}
.wps-form .wps-form__field :is(input, select, textarea):focus { outline: none; border-color: #38b6ff; box-shadow: 0 0 0 4px rgba(56,182,255,.18); }
.wps-form .wps-form__submit {
  justify-self: start; padding: 13px 26px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 15px/1.2 'Poppins', sans-serif; color: #fff; background: linear-gradient(135deg, #38b6ff, #257cae);
}
.wps-form .wps-form__submit:hover { filter: brightness(.95); background: linear-gradient(135deg, #38b6ff, #257cae); color: #fff; }
.wps-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wps-form-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font: 500 14px/1.5 'Poppins', sans-serif; }
.wps-form-note--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.wps-form-note--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 600px) { .wps-form__row { grid-template-columns: 1fr; } .wps-form .wps-form__submit { justify-self: stretch; } }
