/* ============================================================
   Matematika PLUS – mobilne optimizacije
   Dopuna postojećeg style.css – samo poboljšanja za telefone.
   Ne menja desktop izgled.
   ============================================================ */

/* --- Osnove: slike, forme, tabele --- */
img {
  max-width: 100%;
  height: auto;
}

/* Sprečava automatski zoom na iPhone-u pri fokusu forme */
input,
select,
textarea {
  font-size: 16px !important;
}

.cs_btn,
button[type="submit"],
input[type="submit"] {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Omotač za horizontalni skrol tabela na malim ekranima */
.mp-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
}

/* --- Google recenzije (Utisci) --- */
.g-summary-big {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.g-stars {
  color: #FBBC04;
  letter-spacing: 3px;
  font-size: 20px;
}
.g-review {
  background: #fff;
  border: 1px solid #e3e8f5;
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.08);
}
.g-review-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.g-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.g-review-who small {
  display: block;
  color: #5f6368;
  font-size: 13px;
}
.g-review .g-stars {
  display: block;
  margin-bottom: 10px;
}

/* --- Brand slider: uniformna visina logotipa (neki SVG-ovi su 800+px ili bez dimenzija) --- */
.cs_horizontal_slider .cs_brand img {
  height: 54px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* --- Logo: ograničenje visine da header ostane uredan --- */
.cs_site_brand img,
.cs_site_branding img,
.cs_brand img {
  max-height: 80px;
  width: auto;
  max-width: 240px;
}

/* --- Sticky mobilna traka (Pozovi / Zakaži) --- */
.mp-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .cs_site_brand img,
  .cs_site_branding img {
    max-height: 62px;
    max-width: 180px;
  }

  /* Rezerva mesta da traka ne prekrije footer sadržaj */
  body {
    padding-bottom: 68px;
  }

  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .mp-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e3e8f5;
    box-shadow: 0 -4px 18px rgba(30, 58, 138, 0.12);
  }

  .mp-mobile-bar-btn {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none !important;
    padding: 10px 12px;
  }

  .mp-mobile-bar-btn.mp-call {
    background: #f59e0b;
    color: #1e3a8a !important;
  }

  .mp-mobile-bar-btn.mp-book {
    background: #1e3a8a;
    color: #fff !important;
  }

  /* Scroll-to-top dugme iznad sticky trake */
  .cs_scrollup {
    bottom: 84px !important;
  }

  /* Manje praznog hoda između sekcija na telefonu */
  .cs_height_120 {
    height: 56px !important;
  }
  .cs_height_lg_80 {
    height: 48px !important;
  }
  .cs_height_60 {
    height: 32px !important;
  }
  .cs_height_lg_50 {
    height: 28px !important;
  }

  /* Hero: čitljiv naslov i CTA dugmad jedno ispod drugog */
  .cs_hero_title {
    font-size: clamp(28px, 7.5vw, 44px) !important;
    line-height: 1.18 !important;
  }
  .cs_hero_text .cs_btn {
    display: flex;
    width: 100%;
    margin: 10px 0 0 !important;
  }
  .cs_hero_thumbnail {
    margin-top: 24px;
  }

  /* Naslovi sekcija */
  .cs_section_title {
    font-size: clamp(24px, 6vw, 34px) !important;
    line-height: 1.25 !important;
  }
  .cs_section_title br {
    display: none;
  }

  /* Sakrij teške dekorativne oblike – brže iscrtavanje */
  .cs_hero_shape1,
  .cs_hero_shape2,
  .cs_hero_shape3,
  [class*="cs_vector_shape"],
  .cs_team_bg_shape1,
  .cs_testimonial_shape,
  .cs_footer_shape1,
  .cs_video_info_shape {
    display: none !important;
  }

  /* Countdown / brojači da se prelamaju */
  .cs_countdown_container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cs_counter_wrapper {
    padding: 28px 18px !important;
  }

  /* Kartice i forme preko cele širine */
  .cs_post,
  .cs_team,
  .cs_iconbox {
    margin-left: auto;
    margin-right: auto;
  }
  .cs_contact_form .col-sm-6 {
    width: 100%;
  }

  /* Veće klikabilne zone u navigaciji i footeru */
  .cs_nav_list a,
  .cs_footer_menu a {
    padding: 10px 0;
    display: inline-block;
  }
  .cs_top_header {
    font-size: 13px;
  }

  /* Page header naslov */
  .cs_page_heading h1,
  .cs_page_title {
    font-size: clamp(26px, 7vw, 38px) !important;
  }
}

/* Telefoni sa vrlo malim ekranom */
@media (max-width: 575px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cs_btn {
    width: 100%;
  }
  /* Dugmad sa inline razmakom (banners) – složi ih bez prelivanja */
  .cs_btn[style*="margin-left"] {
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
  .cs_section_heading_right .cs_btn {
    margin-top: 16px;
  }
  .cs_footer_bootom_content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Korisnici koji ne žele animacije – isključi AOS efekte */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
