/* ══════════════════════════════════════════════════════════
   Rise Training Club — Global Styles
   Reset, Typography, Header, Footer, Buttons, Utilities
   ══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, textarea, select {
  font: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.15;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  line-height: var(--line-height-h1);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
  line-height: var(--line-height-h3);
}

p {
  margin-bottom: 0;
}

p + p {
  margin-top: var(--space-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--btn-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  text-transform: var(--btn-text-transform);
  letter-spacing: var(--btn-letter-spacing);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: var(--line-height-accent);
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-color);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  color: var(--btn-secondary-hover-color);
}

.btn-lg {
  padding: var(--btn-padding-lg);
}

/* ── Container ── */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* ── Section ──
   Background: full viewport width
   Content: capped at 1440px (container), centered via dynamic padding
   Desktop: 80px min gutter → 1280px content area inside 1440px container
   On screens wider than 1440px, extra space is absorbed as padding */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  padding-left: max(var(--section-padding-x), calc(50vw - 640px));
  padding-right: max(var(--section-padding-x), calc(50vw - 640px));
}

/* ── Hero Section ── */
.hero {
  min-height: var(--hero-min-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  padding: 0 var(--section-padding-x);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}

.hero h1 {
  color: var(--color-white);
  max-width: var(--hero-content-max-width);
}

.hero p {
  color: var(--color-white);
  max-width: 707px;
}

.hero .btn-group {
  align-self: flex-start;
}

/* ── Two Column Layout ── */
.two-col {
  display: flex;
  flex-direction: row;
  gap: var(--column-gap);
}

.two-col--reverse {
  flex-direction: row-reverse;
}

.two-col__left {
  flex: 0 0 40%;
}

.two-col__right {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.two-col--50 .two-col__left,
.two-col--50 .two-col__right {
  flex: 0 0 50%;
}

.two-col--45-55 .two-col__left {
  flex: 0 0 45%;
}

.two-col--45-55 .two-col__right {
  flex: 0 0 55%;
}

.two-col__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Button Group ── */
.btn-group {
  display: flex;
  flex-direction: row;
  gap: var(--button-gap);
  flex-wrap: wrap;
}

/* ── Icon List ── */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: var(--icon-list-space);
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--icon-list-text-indent);
}

.icon-list__item img,
.icon-list__item svg {
  width: var(--icon-list-icon-size);
  height: var(--icon-list-icon-size);
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-list__item span {
  font-family: var(--font-body);
  font-weight: var(--font-weight-accent);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  text-transform: capitalize;
}

/* ── Cards Row ── */
.cards-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--card-gap);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-sm);
  padding: 22px;
  min-height: 290px;
}

/* ── Steps (dark bg cards) ── */
.step-card {
  background-color: var(--color-dark-navy);
  border-radius: var(--radius-md);
  padding: 32px;
  align-self: flex-start;
  width: 100%;
}

.step-card .icon-list__item span {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-h3);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  text-transform: uppercase;
  font-style: italic;
  color: var(--color-white);
}

/* ── Section with overlay ── */
.section-overlay {
  position: relative;
}

.section-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay-white);
  z-index: 0;
}

.section-overlay > * {
  position: relative;
  z-index: 1;
}

/* ── Text Utilities ── */
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.text-start { text-align: left; }

/* ── Background Utilities ── */
.bg-white { background-color: var(--color-white); }
.bg-primary { background-color: var(--color-primary); }
.bg-dark-navy { background-color: var(--color-dark-navy); }

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-center { align-items: center; justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.self-center { align-self: center; }
.self-start { align-self: flex-start; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.flex-wrap { flex-wrap: wrap; }

/* ── Width Utilities ── */
.w-full { width: 100%; }
.max-w-container { max-width: var(--container-width); }

/* ── Spacing Utilities ── */
.mt-neg-8 { margin-top: -8px; }

/* ════════════════════════════════════════════
   RESPONSIVE — matches Elementor breakpoints
   Desktop: >1280 | Laptop: 1025-1280 | Tablet: 768-1024 | Mobile: <768
   ════════════════════════════════════════════ */

/* Laptop: 1025-1280px */
@media (max-width: 1280px) {
  h1 {
    font-size: var(--font-size-h1-laptop);
    line-height: var(--line-height-h1-laptop);
  }

  h2 {
    font-size: var(--font-size-h2-laptop);
    line-height: var(--line-height-h2-laptop);
  }

  .section {
    padding-top: var(--section-padding-y-laptop);
    padding-bottom: var(--section-padding-y-laptop);
    padding-left: var(--section-padding-x-laptop);
    padding-right: var(--section-padding-x-laptop);
  }

  .hero {
    padding-left: var(--section-padding-x-laptop);
    padding-right: var(--section-padding-x-laptop);
  }
}

/* Tablet: 768-1024px */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--font-size-h1-tablet);
    line-height: var(--line-height-h1-tablet);
  }

  h2 {
    font-size: var(--font-size-h2-tablet);
    line-height: var(--line-height-h2-tablet);
  }

  .section {
    padding-top: var(--section-padding-y-tablet);
    padding-bottom: var(--section-padding-y-tablet);
    padding-left: var(--section-padding-x-tablet);
    padding-right: var(--section-padding-x-tablet);
  }

  .hero {
    padding-left: var(--section-padding-x-tablet);
    padding-right: var(--section-padding-x-tablet);
  }

  .two-col,
  .two-col--reverse {
    flex-direction: column;
  }

  .two-col__left,
  .two-col__right,
  .two-col--50 .two-col__left,
  .two-col--50 .two-col__right,
  .two-col--45-55 .two-col__left,
  .two-col--45-55 .two-col__right {
    flex: 1 1 100%;
  }

  .two-col__left {
    order: 0;
  }

  .cards-row {
    flex-direction: column;
  }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  h1 {
    font-size: var(--font-size-h1-mobile);
    line-height: var(--line-height-h1-mobile);
  }

  h2 {
    font-size: var(--font-size-h2-mobile);
    line-height: var(--line-height-h2-mobile);
  }

  body {
    font-size: var(--font-size-body-mobile);
    line-height: var(--line-height-body-mobile);
  }

  .icon-list__item span {
    font-size: var(--font-size-body-mobile);
    line-height: var(--line-height-body-mobile);
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-col,
  .two-col--reverse {
    flex-direction: column;
  }

  .two-col__left,
  .two-col__right {
    flex: 1 1 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════
   WellnessLiving Widget Theming — Rise Training Club
   Requires inline-loader.js (NOT widget.js — iframe blocks CSS)
   Colors: accent blue #193F6A (primary), yellow #F3D212 (secondary)
   Fonts: Inter (headings), Poppins (body)
   ══════════════════════════════════════════════════════════ */

/* Tier 1: presence variables — read by widget JS on init */
:root {
  --presence-color-primary:            25 63 106;    /* #193F6A — blue → selected states, icons */
  --presence-color-secondary:          25 63 106;    /* #193F6A — blue → CTA/action buttons */
  --presence-color-text:               0 0 0;
  --presence-color-text-title:         6 18 34;
  --presence-color-background:         255 255 255;
  --presence-color-border:             191 191 191;
  --presence-color-inverse:            255 255 255;
  --presence-color-header-background:  6 18 34;
  --presence-color-header-text:        255 255 255;
  --presence-font-family-body:         'Poppins', sans-serif;
  --presence-font-family-title:        'Inter', sans-serif;
  --presence-button-border-radius:     12px;
  --presence-filter-border-radius:     8px;
  --presence-border-thickness:         1px;
}

/* Tier 2: wl variables — override inline styles applied by widget JS on .font-wl */
/* Works only with inline-loader.js. Must use !important — widget JS applies these as inline styles */
wl-appointments-widget *,
wl-schedule-widget *,
wl-store-widget *,
wl-events-widget *,
wl-login-widget *,
wl-reviews-widget * {
  --wl-color-primary:            25 63 106 !important;  /* blue — selected tabs, icons, links */
  --wl-color-secondary:          25 63 106 !important;  /* blue — CTA/action buttons */
  --wl-color-text:               0 0 0 !important;
  --wl-color-text-title:         6 18 34 !important;
  --wl-color-background:         255 255 255 !important;
  --wl-color-border:             191 191 191 !important;
  --wl-color-inverse:            255 255 255 !important;
  --wl-color-header-background:  6 18 34 !important;
  --wl-color-header-text:        255 255 255 !important;
  --wl-font-family-body:         'Poppins', sans-serif !important;
  --wl-font-family-title:        'Inter', sans-serif !important;
  --wl-button-border-radius:     12px !important;
  --wl-filter-border-radius:     8px !important;
  --wl-border-thickness:         1px !important;
  --wl-spinner-color:            25 63 106 !important;
}

/* Explicit Tailwind class overrides — force blue on all interactive/highlighted elements */
wl-appointments-widget .bg-wl-sky,
wl-schedule-widget .bg-wl-sky,
wl-store-widget .bg-wl-sky,
wl-login-widget .bg-wl-sky,
wl-reviews-widget .bg-wl-sky {
  background-color: rgb(25 63 106) !important;
}

wl-appointments-widget .bg-wl-lizard,
wl-schedule-widget .bg-wl-lizard,
wl-store-widget .bg-wl-lizard,
wl-login-widget .bg-wl-lizard,
wl-reviews-widget .bg-wl-lizard {
  background-color: rgb(25 63 106) !important;
}

wl-appointments-widget .text-wl-sky,
wl-schedule-widget .text-wl-sky,
wl-store-widget .text-wl-sky,
wl-login-widget .text-wl-sky,
wl-reviews-widget .text-wl-sky {
  color: rgb(25 63 106) !important;
}

/* Ensure white text stays white on blue backgrounds */
wl-appointments-widget .bg-wl-sky .text-wl-snow,
wl-schedule-widget .bg-wl-sky .text-wl-snow,
wl-store-widget .bg-wl-sky .text-wl-snow,
wl-login-widget .bg-wl-sky .text-wl-snow,
wl-appointments-widget .bg-wl-lizard .text-wl-snow,
wl-schedule-widget .bg-wl-lizard .text-wl-snow,
wl-store-widget .bg-wl-lizard .text-wl-snow,
wl-login-widget .bg-wl-lizard .text-wl-snow {
  color: #ffffff !important;
}

/* ── Hide "Powered by WellnessLiving" branding (.app-wl-branding is the primary selector) ── */
.wl-appointments .app-wl-branding,
.wl-schedule .app-wl-branding,
.wl-events .app-wl-branding,
.wl-store .app-wl-branding,
.wl-cart .app-wl-branding,
.wl-login .app-wl-branding,
.wl-reviews .app-wl-branding,
.wl-lead-capture .app-wl-branding,
/* fallback: widget-specific footer classes */
.wl-appointments .app-appointments-footer,
.wl-schedule .app-schedule-footer,
.wl-store .app-store-footer,
.wl-login .app-login-footer,
.wl-reviews .app-reviews-footer,
/* shared booking footer */
.app-booking-footer {
  display: none !important;
}
