/* =============================================================================
   SECTIONS.CSS — jogasoba.si
   Visual design for this site: the chrome (header, footer), the imported
   Elementor section wrapper, and the hand-built blocks (team grid, form,
   schedule). Design tokens live in style.css :root.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   IMPORTED ELEMENTOR SECTIONS
   Each page body section is stored as one raw `html` section with settings
   padding "p-0" and class "sec-elementor". Elementor sections bring their own
   inner container and their own padding, so the boilerplate wrapper has to get
   out of the way completely.
   -------------------------------------------------------------------------- */
.sec-elementor { padding: 0; }
.sec-elementor > .container { max-width: none; padding: 0; }

/* The imported markup keeps Elementor's own `overflow:hidden` per section, but
   the page itself must never scroll sideways because of a motion-effect layer. */
main#content { overflow-x: clip; }

/* -----------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
}

.notice-bar {
  background: var(--color-primary);
}

.notice-bar-text {
  margin: 0;
  padding: 0.625rem 1rem;
  text-align: center;
  color: #fff;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--color-primary);
  padding: 0.75rem 1rem;
}

.header-logo { display: inline-flex; flex: 0 0 auto; }
.header-logo img {
  display: block;
  width: 130px;
  height: auto;
}

/* Hamburger — white bars, only below the desktop breakpoint */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav-list,
.site-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link,
.site-nav-sublink {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: color var(--transition);
}
.site-nav-link:hover,
.site-nav-link:focus-visible,
.site-nav-sublink:hover,
.site-nav-sublink:focus-visible,
.site-nav-item.is-active > .site-nav-link {
  color: var(--color-heading);
}

/* --- below 1025px: collapsing panel, DM Sans 300 ------------------------- */
@media (max-width: 1024.98px) {
  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
  }
  .site-nav.is-open { display: block; }

  .header-bar { flex-wrap: wrap; }

  .site-nav-list { padding: 0.5rem 0 1rem; }

  .site-nav-link {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.125rem;
    padding: 0.875rem 0.5rem;
    background: var(--color-primary);
  }

  .site-nav-sub {
    background: #54595F;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 0.5rem;
  }
  .site-nav-sublink {
    font-family: var(--font-heading);
    font-weight: 300;
    padding: 0.75rem 1.25rem;
  }
}

/* --- 1025px and up: transparent over the hero, menu right ---------------- */
@media (min-width: 1025px) {
  .header-bar {
    flex-wrap: nowrap;
    padding: 30px 100px 0;
  }

  .header-logo img { width: 220px; }

  .nav-toggle { display: none; }

  .site-nav { display: block; }

  .site-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .site-nav-item { position: relative; }

  .site-nav-link {
    font-family: var(--font-body);
    font-size: 1.125rem;      /* 18px */
    font-weight: var(--fw-normal);
    letter-spacing: 0.3px;
    padding: 15px;
  }

  /* Homepage only: the bar is laid over the hero, which pulls itself up with
     its own imported margin-top:-148px. Everywhere else the bar stays solid,
     because those pages open on a turquoise strip and white ink needs it. */
  .site-header--over .header-bar { background: transparent; }

  .site-nav-sub {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #54595F;
    border-radius: 20px;
    padding: 0.5rem 0;
    display: none;
    z-index: 30;
  }
  .site-nav-item.has-children:hover .site-nav-sub,
  .site-nav-item.has-children:focus-within .site-nav-sub { display: block; }

  .site-nav-sublink {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }
}

/* -----------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--color-surface) 17%, #fff 34%);
  padding: 3% 8%;
}

/* the wolf illustration, bottom-left, behind the content */
.site-footer-art {
  position: absolute;
  inset: 0;
  background-image: url("/storage/image/202209/Elementi-Joga-Soba-Assets-1-e1663164038786.png");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 40% auto;
  opacity: 0.6;
  pointer-events: none;
}

.site-footer-inner {
  position: relative;
  text-align: center;
}

.site-footer-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-heading);
  margin: 0 0 var(--space-md);
}

.site-footer-social {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}
.site-footer-social img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: opacity var(--transition);
}
.site-footer-social a:hover img { opacity: 0.7; }

.site-footer-legal {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
}
.site-footer-legal a {
  color: var(--color-muted);
  text-decoration: none;
}
.site-footer-legal a:hover { color: var(--color-heading); }

@media (min-width: 1025px) {
  .site-footer { padding: 3% 30%; }
}

/* =============================================================================
   SCHEDULE (urnik) — weekly class grid filled by /assets/js/urnik.js
   Seven day columns on desktop, stacked on small screens. Own tooltip
   (replaces the old qtip plugin). Prints as a compact stacked list.
   ============================================================================= */

.schedule {
  --schedule-gap: var(--space-sm);
  margin-block-start: var(--space-md);
}

/* --- week navigation ------------------------------------------------------ */

.schedule-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-sm);
  padding-block-end: var(--space-sm);
  border-block-end: 1px solid var(--color-border);
}

.schedule-nav-btn { white-space: nowrap; }

.schedule-range {
  flex: 1 1 auto;
  order: -1;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-heading);
}

@media (min-width: 576px) {
  .schedule-range { order: 0; width: auto; }
}

/* only ever visible on paper */
.schedule-range-print { display: none; }

/* --- status: loading / empty / error -------------------------------------- */

.schedule-status {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  background: var(--color-bg-alt);
  color: var(--color-muted);
}

.schedule-status[hidden] { display: none; }

.schedule-status-empty {
  background: var(--color-action-light);
  color: var(--color-heading);
}

.schedule-status-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.schedule-retry { margin-inline-start: var(--space-xs); }

.schedule.is-loading .schedule-grid { opacity: 0.5; }

/* --- the grid ------------------------------------------------------------- */

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--schedule-gap);
  margin-block-start: var(--space-md);
  transition: opacity var(--transition);
}

.schedule-grid[hidden] { display: none; }

@media (min-width: 576px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .schedule-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) {
  .schedule {
    --schedule-gap: 0.625rem;
  }
  .schedule-grid { grid-template-columns: repeat(7, 1fr); }
}

.schedule-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: visible;
  background: var(--color-bg);
}

.schedule-day-head {
  margin: 0;
  padding: 0.6rem var(--space-xs);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  background: var(--color-primary);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  text-align: center;
}

.schedule-day-name {
  display: block;
  text-transform: lowercase;
}

.schedule-day-date {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  opacity: 0.8;
}

.schedule-day.is-empty { background: var(--color-bg-alt); }
.schedule-day.is-empty .schedule-day-head { background: var(--color-border); }

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  background: var(--color-border);
  border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
  overflow: hidden;
}

/* --- one class ------------------------------------------------------------ */

.schedule-item {
  padding: 0.7rem var(--space-xs);
  background: var(--color-bg);
}

.schedule-item-empty {
  flex: 1 1 auto;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  text-align: center;
}

.schedule-time {
  margin: 0 0 0.15rem;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  color: var(--color-action-dark);
}

.schedule-title {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.25;
  color: var(--color-heading);
}

.schedule-instructor {
  margin: 0.2rem 0 0;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

/* --- tooltip (replaces qtip) ---------------------------------------------- */

.schedule-tip {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.schedule-tip-trigger {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  max-width: 100%;
  white-space: normal;
  cursor: help;
  border-block-end: 1px dotted var(--color-border-strong);
}

.schedule-tip-trigger:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 2px;
}

.schedule-tip-box {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: min(17rem, 70vw);
  padding: var(--space-xs) 0.7rem;
  border-radius: var(--radius);
  background: var(--color-heading);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  line-height: 1.45;
  text-align: start;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.schedule-tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--color-heading);
  transform: translateX(-50%);
}

.schedule-tip:hover .schedule-tip-box,
.schedule-tip:focus-within .schedule-tip-box,
.schedule-tip.is-open .schedule-tip-box {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* keep the box inside the viewport at the grid edges */
.schedule-day:first-child .schedule-tip-box { left: 0; transform: translate(0, 4px); }
.schedule-day:first-child .schedule-tip:hover .schedule-tip-box,
.schedule-day:first-child .schedule-tip:focus-within .schedule-tip-box,
.schedule-day:first-child .schedule-tip.is-open .schedule-tip-box { transform: translate(0, 0); }
.schedule-day:first-child .schedule-tip-box::after { left: 1.5rem; }

.schedule-day:last-child .schedule-tip-box { left: auto; right: 0; transform: translate(0, 4px); }
.schedule-day:last-child .schedule-tip:hover .schedule-tip-box,
.schedule-day:last-child .schedule-tip:focus-within .schedule-tip-box,
.schedule-day:last-child .schedule-tip.is-open .schedule-tip-box { transform: translate(0, 0); }
.schedule-day:last-child .schedule-tip-box::after { left: auto; right: 1.5rem; }

/* --- actions -------------------------------------------------------------- */

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-block-start: var(--space-lg);
}

@media (prefers-reduced-motion: reduce) {
  .schedule-grid,
  .schedule-tip-box { transition: none; }
}

/* --- print ---------------------------------------------------------------- */

@media print {
  body:has(.schedule) .main-menu,
  body:has(.schedule) .main-footer,
  body:has(.schedule) .breadcrumb-wrap,
  body:has(.schedule) .scroll-top,
  body:has(.schedule) .offcanvas-panel { display: none !important; }

  .schedule-nav,
  .schedule-actions,
  .schedule-status-loading,
  .schedule-status-error,
  .schedule-tip-box { display: none !important; }

  .schedule-range-print {
    display: block;
    margin: 0 0 var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
  }

  .schedule-section { padding: 0 !important; }

  /* one compact column on paper — a 7-across grid is unreadable on A4 */
  .schedule-grid {
    display: block !important;
    margin: 0;
    opacity: 1 !important;
  }

  /* ...but never override the hidden state (loading / empty / error) */
  .schedule-grid[hidden] { display: none !important; }

  .schedule-day {
    border: 0;
    border-block-end: 1px solid #ccc;
    border-radius: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .schedule-day.is-empty { display: none; }

  .schedule-day-head {
    padding: 0.2rem 0;
    border-radius: 0;
    background: none !important;
    color: #000;
    text-align: start;
  }

  .schedule-day-name,
  .schedule-day-date { display: inline; }
  .schedule-day-date::before { content: ' '; }

  .schedule-list {
    display: block;
    background: none;
    border-radius: 0;
    overflow: visible;
  }

  .schedule-item {
    padding: 0.15rem 0 0.15rem 1rem;
    background: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .schedule-time,
  .schedule-title,
  .schedule-instructor {
    display: inline;
    margin: 0;
    font-size: 0.75rem;
    color: #000;
  }

  .schedule-title::before,
  .schedule-instructor::before { content: ' — '; }

  .schedule-tip-trigger { border: 0; }
}

/* ============================ end SCHEDULE (urnik) ========================= */

/* =============================================================================
   SIGN-UP FORM (4 tedenska izkušnja)
   The old page's Elementor form was dropped at import; this is the forms
   module rendered under the same call-to-action section it used to follow.
   ============================================================================= */
.signup-block {
  background: var(--color-surface);
  padding: var(--space-xl) var(--space-sm);
}

.signup-block-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.signup-form .form28-form { display: block; }

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-heading);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: border-color var(--transition);
}
.signup-form input:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.signup-form textarea { min-height: 8rem; resize: vertical; }

/* the old form had no labels — the placeholder carried the field name */
.signup-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.signup-form .form28-submit,
.signup-form button[type="submit"] {
  font-family: var(--font-ui);
  font-size: var(--fs-kit-ui);
  font-weight: 300;
  letter-spacing: var(--ls-kit-ui);
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.signup-form .form28-submit:hover,
.signup-form button[type="submit"]:hover { background: var(--color-action-dark); }

/* -----------------------------------------------------------------------------
   TESTIMONIAL CAROUSEL
   Elementor's markup kept, driven by the boilerplate's Swiper. Arrows are
   Elementor's eicon spans, which have no icon font here, so they are drawn.
   -------------------------------------------------------------------------- */
.elementor-widget-testimonial-carousel .swiper-container { position: relative; }

.elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-muted);
}
.elementor-swiper-button-prev { left: 0; }
.elementor-swiper-button-next { right: 0; }
.elementor-swiper-button i,
.elementor-swiper-button svg { display: none; }
.elementor-swiper-button::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.elementor-swiper-button-prev::before { transform: rotate(-135deg); }
.elementor-swiper-button-next::before { transform: rotate(45deg); }
.elementor-swiper-button:hover { color: var(--color-primary); }

.elementor-widget-testimonial-carousel .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

/* =============================================================================
   TEAM (ekipa)
   Replaces the old Elementor flip-boxes + one popup per person.
   ============================================================================= */
.team { padding: var(--space-xl) var(--space-sm); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  max-width: 1140px;
  margin: 0 auto;
}

.team-card { perspective: 1200px; }

.team-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  min-height: 25rem;
  height: 100%;
}
.team-card:hover .team-card-inner,
.team-card:focus-within .team-card-inner,
.team-card.is-flipped .team-card-inner { transform: rotateY(180deg); }

.team-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.team-card-front { background: var(--color-surface); }

.team-card-photo {
  width: 100%;
  flex: 1 1 auto;
  object-fit: cover;
  display: block;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-normal);
  color: var(--color-heading);
  margin: var(--space-sm) var(--space-sm) 0;
}

.team-card-role {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin: 0.25rem var(--space-sm) var(--space-sm);
}

.team-card-back {
  transform: rotateY(180deg);
  background: var(--color-primary);
  color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
  gap: var(--space-md);
}

.team-card-summary {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0;
}

.team-card-more {
  background: #fff;
  color: var(--color-heading);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.team-card-more:hover { background: var(--color-heading); color: #fff; }

/* --- bio dialog --------------------------------------------------------- */
.team-dialog {
  width: min(52rem, 92vw);
  max-height: 88vh;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: auto;
  background: #fff;
}
.team-dialog::backdrop { background: rgba(47, 52, 58, 0.6); }

.team-dialog-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 0.5rem 0.75rem 0 0;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  z-index: 2;
}

.team-dialog-body { padding: var(--space-md); }

.team-dialog-photo {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.team-dialog-name {
  font-family: var(--font-heading);
  font-size: var(--fs-kit-heading);
  font-weight: var(--fw-normal);
  color: var(--color-heading);
  margin: 0;
}
.team-dialog-role,
.team-single-role {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin: 0.25rem 0 var(--space-md);
}
.team-dialog-text,
.team-single-text { font-family: var(--font-body); }

.team-dialog-permalink { margin-top: var(--space-md); font-size: var(--fs-sm); }
.team-dialog-permalink a { color: var(--color-muted); }

/* --- one member as a page ----------------------------------------------- */
.team-single { padding: var(--space-xl) var(--space-sm); }
.team-single-inner { max-width: 48rem; margin: 0 auto; }
.team-single-photo {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.team-single-back { margin-top: var(--space-lg); }

@media (prefers-reduced-motion: reduce) {
  .team-card-inner { transition: none; }
}

/* -----------------------------------------------------------------------------
   PAGE TITLES
   page-default.tpl and page-urnik.tpl print .title-style-one h1.title, which the
   boilerplate styles only in the archived style-original.css — without this the
   heading falls back to the bare base rules.
   -------------------------------------------------------------------------- */
.page-header-block { padding: var(--space-lg) var(--space-sm) 0; }
.title-style-one .title,
.title-style-one h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-kit-heading);
  font-weight: var(--fw-normal);
  line-height: 1.2;
  color: var(--color-heading);
  margin: 0 0 var(--space-md);
}
@media (max-width: 991px) {
  .title-style-one .title,
  .title-style-one h1 { font-size: 2rem; }
}
