/**
 * Beo Fitness Station — responsive, safe-area, touch & readability
 * Loaded after main.css
 */

/* ---------- Header: full nav visible on desktop — hide offcanvas trigger (duplicated with bar menu) ---------- */
@media (min-width: 1200px) {
  .header-1 .header__hamburger {
    display: none !important;
  }
}

/* ---------- Desktop nav: tighter spacing + smaller type (less visual noise) ---------- */
@media (min-width: 1200px) {
  .header-main .main-menu > nav > ul > li {
    margin-inline-end: 12px !important;
  }

  .header-main .main-menu > nav > ul > li > a {
    font-size: 15px !important;
    padding: 14px 0 !important;
    letter-spacing: 0.01em;
  }

  .header-main .main-menu > nav > ul > li > a .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.85;
  }
}

/* ---------- Logo: fixed box (header, mobile panel, footer) ---------- */
.header-main .logo img,
.header-main .logo .header-logo img {
  width: 296px;
  height: 74px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.offcanvas__logo a img {
  width: 296px !important;
  height: 74px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left center;
}

.footer-widgets-wrapper .single-footer-widget .widget-head img[src*="logo"] {
  width: 296px;
  height: 74px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (max-width: 575px) {
  .header-main .logo img,
  .header-main .logo .header-logo img,
  .offcanvas__logo a img,
  .footer-widgets-wrapper .single-footer-widget .widget-head img[src*="logo"] {
    width: 238px !important;
    height: 60px !important;
  }
}

/* ---------- Desktop: shorter line length + calmer body copy (less “wall of text”) ---------- */
@media (min-width: 992px) {
  .hero-2 .hero-content .content {
    max-width: 40rem;
  }

  .hero-2 .hero-content .content p {
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-2 .hero-counter .counter-items {
    padding: 22px 16px;
  }

  .hero-2 .hero-counter .counter-items h4 {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .hero-2 .hero-counter .counter-items p {
    font-size: 14px;
    line-height: 1.45;
  }

  .service-section .service-box-items .content p {
    font-size: 15px;
    line-height: 1.55;
  }

  #dodatne-usluge .service-box-items {
    padding: 24px 20px;
  }

  #dodatne-usluge .service-box-items .content h3 {
    font-size: 26px;
  }

  #dodatne-usluge .service-box-items .content p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* ---------- Dodatne usluge: slike pune širine kartice ---------- */
#dodatne-usluge .service-box-items.style-2 .icon {
  margin: -32px -32px 0 -32px;
  width: calc(100% + 64px);
  max-width: none;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}

#dodatne-usluge .service-box-items.style-2 .icon img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  max-width: none;
}

@media (min-width: 992px) {
  #dodatne-usluge .service-box-items.style-2 .icon {
    margin: -24px -20px 0 -20px;
    width: calc(100% + 40px);
  }
}

/* ---------- Base: no horizontal scroll, readable text on mobile ---------- */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevent iOS zoom on focus (inputs stay ≥16px) */
@media (max-width: 575px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Fluid images/video in main content */
main img,
main video {
  max-width: 100%;
  height: auto;
}

main video {
  display: block;
}

/* Notched phones / home indicator */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Tighter vertical rhythm on very small screens */
@media (max-width: 575px) {
  .section-padding {
    padding: 56px 0;
  }
}

/* ---------- Hero: fluid title, no overflow ---------- */
@media (max-width: 575px) {
  .hero-2 .hero-content h1 {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.08;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* ---------- Partners strip ---------- */
.brand-section .brand-image img[src*="18.29.14"] {
  max-width: 400px;
  max-height: 148px;
}

@media (max-width: 767px) {
  .brand-section .brand-image img[src*="18.29.14"] {
    max-width: 300px;
    max-height: 110px;
  }
}

@media (max-width: 575px) {
  .brand-section .brand-slider {
    margin-right: 0 !important;
  }
}

/* ---------- Testimonials ---------- */
@media (max-width: 575px) {
  .tesimonial-wrapper-2 .testimonial-slider-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 24px !important;
  }

  .tesimonial-wrapper-2 .testimonial-card-items {
    padding: 22px 16px;
  }

  .tesimonial-wrapper-2 .testimonial-card-items .client-info {
    flex-wrap: wrap;
  }
}

/* ---------- Team / portfolio carousel ---------- */
/* Kartica definiše odnos stranica kao treneri 416×480; slika puni okvir bez fiksne 500px (to je sečilo i delovalo „zoomovano“). */
#team .portfolio-image-items {
  position: relative;
  aspect-ratio: 13 / 15;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
}

#team .portfolio-image-items::before {
  height: 100%;
  z-index: 1;
}

#team .portfolio-image-items img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
}

#team .portfolio-slider .swiper-wrapper {
  align-items: flex-start;
}

#team .portfolio-slider .swiper-slide {
  height: auto;
  align-self: flex-start;
}

#team .portfolio-slider .swiper-slide > .portfolio-image-items {
  width: 100%;
}

/* Strahinja Strelić — kadar više ka gore */
#team .portfolio-image-items img[alt*="Strahinja Strelić"] {
  object-position: center 5%;
}

/*
 * Jovan Ristić (IMG_5131.png): uzrok „više zumirano“ od ostalih
 * — sve slike u #team koriste object-fit: cover u pun okvir kartice.
 * Ako PNG ima drugačiji odnos stranica od JPG trenera, cover uvećava
 * sliku dok ne ispuni visinu/širinu i seče bočne (ili vertikalne) delove,
 * pa nestanu „praznine“ ramena–ivica iz originala.
 * Rešenje: te kartice koriste contain + ista tamna pozadina kao okvir.
 */
#team .portfolio-image-items.jovan-card,
#team .portfolio-image-items.tamara-card {
  background-color: #1d1d1d;
}

#team .portfolio-image-items img.jovan-image,
#team .portfolio-image-items img.tamara-image {
  object-fit: contain;
  object-position: center center;
}

#team .portfolio-image-items .content {
  z-index: 2;
  width: min(90%, 320px);
}

#team .portfolio-image-items .content p {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#team .portfolio-image-items .content h3 {
  line-height: 1.05;
}

@media (max-width: 991px) {
  .portfolio-section .portfolio-slider {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 575px) {
  /* main.css postavlja .portfolio-image-items { height: 400px } — za #team ostavljamo samo aspect-ratio */
  #team .portfolio-image-items {
    height: auto !important;
    aspect-ratio: 13 / 15;
  }
}

/* ---------- Cenovnik & Raspored ---------- */
#cenovnik img,
#raspored img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  #cenovnik .row,
  #raspored .row {
    margin-left: 0;
    margin-right: 0;
  }

  #cenovnik [class*="col-"],
  #raspored [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ---------- Touch targets (WCAG-friendly) ---------- */
.header__hamburger .sidebar__toggle,
.back-to-top,
#back-top,
.theme-btn {
  min-height: 44px;
}

.header__hamburger .sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .wow {
    animation: none !important;
    visibility: visible !important;
  }
}

