/********************************************
 * ROOT & RESET
 ********************************************/

:root{
  --content-max: 1200px;
  --content-pad: 24px;
  --nav-height: 72px;
  --cta: #498586;
  --cta-dark: #3f7d77;
  --cta-soft: rgba(73,133,134,.12);
}


.page-container{
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}


@media (max-width: 768px){
  :root{ --content-pad: 16px; }
}

/* Osnovna podešavanja HTML-a */
html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Globalni stil za body */
body {
    margin: 0 0 60px 0;              /* prostor za footer ako treba */
    padding: 0;
    padding-top: var(--nav-height);              /* da sadržaj ne uleti ispod menija */
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c5d5d;

    /* MREŽASTA POZADINA + BELI SLOJ, BEZ ::before */
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.70),
            rgba(255, 255, 255, 0.70)
        ),
        url("../img/pozadina.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;   /* da mreža stoji, sadržaj se pomera */
}

/********************************************
 * NAVBAR ("MedMe" stil – Engram varijanta)
 ********************************************/

.top-nav{
    padding: 4px 0;
    background: transparent;
}

.engram-nav{
    border-radius: 0 0 22px 22px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 18px 45px rgba(16, 38, 38, 0.18);
    border: 1px solid rgba(44,93,93,0.12);
}

.engram-nav-inner,
.top-nav-inner{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    padding: 2px 0;
}

.navbar-collapse{
    align-items: center;
}

@media (min-width: 992px){
    .navbar-collapse{
        margin-left: auto;
    }

    .navbar-nav{
        align-items: center;
    }
}

@media (max-width: 991.98px){
    .engram-nav-inner,
    .top-nav-inner{
        flex-wrap: wrap;
    }

    .navbar-brand{
        order: 1;
    }

    .navbar-toggler{
        order: 2;
        margin-left: auto;
        margin-right: 6px;
    }

    .navbar-collapse{
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-top: 10px;
    }

    .navbar-nav{
        width: 100%;
        align-items: flex-start;
        padding-left: 0;
    }
}

.navbar-nav .nav-link{
    border-radius: 999px;
}

.navbar-nav .nav-link:hover{
    background: rgba(73,133,134,0.12);
    color: #2c5d5d !important;
}

/* Isključi stari "dijagonalni slider" efekt iz prethodne verzije menija */
.navbar-nav .nav-link::before{ display: none !important; }

/********************************************
 * HERO2 ("MedMe" stil – Engram boje)
 ********************************************/

.hero2{
    padding: 26px 0 10px 0;
}

.hero2-card{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border-radius: 28px;
    background:
        radial-gradient(1200px 500px at 15% 10%, rgba(73,133,134,0.35), transparent 60%),
        linear-gradient(140deg, rgba(73,133,134,0.92), rgba(44,93,93,0.92));
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 75px rgba(16, 38, 38, 0.25);
    border: none;
}

.hero2-card.hero2-visible{
    opacity: 1;
    transform: translateY(0);
}

.hero2-card::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: url("../img/pozadina.svg");
    background-size: cover;
    opacity: 0.18;
    pointer-events:none;
}

.hero2-content{
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 38px 0;
    padding-right: 50%;
    padding-left: 18px;
}

.hero2-left{ color:#fff; }

.hero2-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero2-badge{
    display: inline-flex;      /* zadrži layout unutra */
    width: fit-content;        /* okvir po sadržaju */
    max-width: calc(100% - 24px); /* da ne dodiruje ivice */
    margin: 0 auto 16px auto;  /* centriraj okvir, zadrži razmak dole */

    justify-content: flex-start; /* tekst i sadržaj ostaju levo */
    text-align: left;            /* sigurnosno */
  }
}

.hero2-title{
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 14px 0;
}

.hero2-lead{
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 42ch;
    opacity: 0.95;
    margin-bottom: 18px;
}

.hero2-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom: 14px; }

.hero2-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.hero2-chip{
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.95rem;
    box-shadow: 0 0 0 rgba(255,255,255,0.0);
    animation: chipGlow 4.5s ease-in-out infinite;
}

.hero2-chip:nth-child(2){
    animation-delay: 1.4s;
}

.hero2-chip:nth-child(3){
    animation-delay: 2.8s;
}

@keyframes chipGlow{
    0%, 100%{ box-shadow: 0 0 0 rgba(255,255,255,0.0); }
    50%{ box-shadow: 0 10px 26px rgba(255,255,255,0.22); }
}

.hero2-image-wrap{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: 1;
}

.hero2-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

@media (max-width: 991px){
    .hero2-content{
        width: 100%;
        padding: 30px 0 0;
        padding-right: 0;
        padding-left: 18px;
    }

    .hero2-image-wrap{
        position: relative;
        width: 100%;
        height: clamp(220px, 50vw, 360px);
        margin-top: 16px;
    }

    .hero2-image{
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    }
}


.hero2-float,
.hero-card-floating{
    position:absolute;
    display:block;
    text-decoration:none;
    color: #1f3434;
    z-index: 2;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.16);
    width: min(260px, 70vw);
}

.hero2-float-title{ font-weight: 700; }
.hero2-float-sub{ font-size: 0.95rem; opacity: 0.8; }

.hero2-float-a{ top: 16px; left: 10px; animation: floaty 6s ease-in-out infinite; }
.hero2-float-b{ top: 110px; right: 10px; animation: floaty 7s ease-in-out infinite; }
.hero2-float-c{ bottom: 20px; left: 18px; animation: floaty 8s ease-in-out infinite; }

@keyframes floaty{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-8px); }
}

/********************************************
 * Kako radimo (cards)
 ********************************************/

.how-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 991px){ .how-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 575px){ .how-grid{ grid-template-columns: 1fr;} }

.how-card{
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(44,93,93,0.10);
    border-radius: 18px;
    padding: 16px 16px 14px 16px;
    box-shadow: 0 18px 45px rgba(16, 38, 38, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.how-card:hover{ transform: translateY(-3px); box-shadow: 0 22px 55px rgba(16,38,38,0.12); }

.how-step{
    width: 34px;
    height: 34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 999px;
    background: rgba(73,133,134,0.14);
    color: #2c5d5d;
    font-weight: 800;
    margin-bottom: 10px;
}

.how-title{ font-size: 1.1rem; font-weight: 700; margin: 0 0 6px 0; color:#2c5d5d; }
.how-text{ margin: 0; color:#2c5d5d; opacity: 0.92; font-size: calc(1rem - 1.5px); }

/********************************************
 * Digital section extras
 ********************************************/

.engram-list{ padding-left: 1.1rem; }
.engram-list li{ margin: 8px 0; }

.digital-card{
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 26px 70px rgba(0,0,0,0.18);
}

.digital-card-title{ font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.digital-card-text{ opacity: 0.95; }
.digital-card-video{
    width: 100%;
    display: block;
    margin-top: 12px;
    border-radius: 14px;
    object-fit: cover;
}
.digital-card-pill{
    display:inline-flex;
    align-items:center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 700;
}

@keyframes cardBreathe {
    0%, 100% { box-shadow: var(--breathe-shadow); }
    50% { box-shadow: var(--breathe-shadow-strong); }
}

.how-card,
.digital-card,
.testimonial-card {
    animation: cardBreathe 4.6s ease-in-out infinite;
    will-change: box-shadow;
}

.how-card { 
    --breathe-shadow: 0 18px 45px rgba(16, 38, 38, 0.08);
    --breathe-shadow-strong: 0 26px 60px rgba(16, 38, 38, 0.14);
}

.digital-card {
    --breathe-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
    --breathe-shadow-strong: 0 34px 90px rgba(0, 0, 0, 0.24);
}

.testimonial-card {
    --breathe-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --breathe-shadow-strong: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.how-card:hover,
.digital-card:hover,
.testimonial-card:hover {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .how-card,
    .digital-card,
    .testimonial-card {
        animation: none;
    }
}

.btn-on-dark{ border-color: #ffffff !important; color:#fff !important; }
.btn-on-dark:hover{ background: rgba(255,255,255,0.14) !important; }


/* Fiksna mrežasta pozadina preko cele stranice */
/*body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/pozadina.svg");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3;                     koliko je “providna” mreža
    z-index: -1;                      ispod celog sajta
    pointer-events: none;
}*/

/* Offset za anchor linkove (O nama, itd.) zbog fiksiranog menija */
section {
    scroll-margin-top: calc(var(--nav-height) + 16px);
    padding-left: 0;
    padding-right: 0;
}

#kak-oradimo .row,
#sta-radimo .row,
#kontakt .row{
  margin-left: 0;
  margin-right: 0;
}

#kak-oradimo .row > [class^="col-"],
#kak-oradimo .row > [class*=" col-"],
#sta-radimo .row > [class^="col-"],
#sta-radimo .row > [class*=" col-"],
#kontakt .row > [class^="col-"],
#kontakt .row > [class*=" col-"]{
  padding-left: 0;
  padding-right: 0;
}

/* Reset box-sizing */
html, body {
    box-sizing: border-box;
}

/* Bootstrap focus stil (može da ostane, ili kasnije prilagodimo) */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/********************************************
 * PRELOADER
 ********************************************/

#preloader {
    position: fixed;
    inset: 0;
    display: flex;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.preloader-logo {
    width: 180px;
    max-width: 60vw;
    height: auto;
    animation: preloader-pulse 0.85s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%   { transform: scale(1);    opacity: 0.6; }
    50%  { transform: scale(1.12); opacity: 1;   }
    100% { transform: scale(1);    opacity: 0.6; }
}

/********************************************
 * TYPOGRAFIJA – NASLOVI
 ********************************************/

/* Glavni naslov sekcije (O nama, Šта радимо, itd.) */
.section-title-main {
    font-size: 2.4rem;
    font-weight: 700;
}

/* Podnaslov (Jelena, podsekcije) */
.section-title-sub {
    font-size: 2rem;
    font-weight: 700;
}

/********************************************
 * SEKCIJE (BACKGROUND)
 ********************************************/

/* Bele sekcije – default */
.section-light {
    background-color: transparent;   /* mreža je već u body::before */
}

/* Engram gradijent sekcije (Jelena, Šта радимо, itd.) */
.section-colored {
    background: linear-gradient(135deg, #498586, #2c5d5d);
    color: #ffffff;
}

.section-colored h2,
.section-colored h3,
.section-colored p {
    color: #ffffff;
}

/********************************************
 * HERO SEKCIJA
 ********************************************/

/* Hero slika na početnoj stranici */
.hero {
    background-image: url("../img/herophoto.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 10%;
    color: #ffffff;

    /* startuje nevidljivo – JS kasnije dodaje .hero-visible */
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero.hero-visible {
    opacity: 1;
}

/* Blok sa tekstom u hero sekciji */
.hero-overlay {
    max-width: 600px;
    text-align: left;

    /* tekst ulazi malo kasnije od slike */
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.9s ease 0.3s,
        transform 0.9s ease 0.3s;
}

.hero-overlay h1 {
    font-weight: 700;
}

.hero-overlay p {
    font-weight: 500;
}

/* JS dodaje ovu klasu kada treba da se pojavi tekst */
.hero-overlay.hero-text-visible {
    opacity: 1;
    transform: translateY(0);
}

/********************************************
 * JELENA – SLIKA
 ********************************************/

.jelena-photo {
    width: 70%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.bio-modal-body{
    padding-top: 16px;
}

.bio-modal-header{
    position: relative;
    height: 480px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.bio-modal-header::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.65) 100%);
}

.bio-modal-photo{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.bio-modal-card{
    margin-top: -48px;
    padding: 18px 22px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    position: relative;
    z-index: 1;
}

.bio-modal-text p{ margin-bottom: 12px; }

@media (max-width: 768px){
    .bio-modal-header{
        height: 400px;
    }

    .bio-modal-card{
        margin-top: -36px;
        padding: 16px;
    }
}

/********************************************
 * NAVBAR
 ********************************************/

/* Logo u meniju */
.engram-logo {
    height: 60px;
    width: auto;
}

/* Osnovni stil za obične linkove u meniju */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #2c5d5d !important;
    font-weight: 500;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Dijagonalni slider SAMO za obične linkove (O nama, Šта радимо, Kontakt) */
.navbar-nav .nav-link:not(.nav-link-cta)::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #498586;
    transform: skewX(-20deg);
    z-index: -1;
    transition: width 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover za obične linkove */
.navbar-nav .nav-link:not(.nav-link-cta):hover {
    color: #2c5d5d !important;
}

.navbar-nav .nav-link:not(.nav-link-cta):hover::before {
    width: 130%;
}

/********************************************
 * CTA – Закажи преглед (OUTLINE)
 ********************************************/

.nav-link-cta {
    position: relative;
    display: inline-block;
    padding: 0.45rem 1.6rem;
    font-weight: 600;

    background-color: #ffffff;      /* bela pozadina */
    color: #2c5d5d !important;      /* tamna Engram boja teksta */
    border: 2px solid #498586;      /* outline zelena */
    border-radius: 0;
    text-decoration: none;

    overflow: hidden;
    z-index: 1;
    cursor: pointer;

    transition: color 0.25s ease,
                background-color 0.25s ease,
                border-color 0.25s ease,
                transform 0.15s ease;
}

/* talas */
.nav-link-cta::before {
    content: "";
    position: absolute;
    left: -30%;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #498586;
    transform: skewX(-20deg);
    z-index: -1;
    transition: width 0.45s ease-out;
}

/* hover */
.nav-link-cta:hover {
    color: #ffffff !important; /* slova bela */
    border-color: #498586;
    transform: translateY(-1px);
}

.nav-link-cta:hover::before {
    width: 150%;
}

/* klik – SLOVA OSTAJU BELA */
.nav-link-cta:active,
.nav-link-cta:focus {
    background-color: #ffffff;
    color: #ffffff !important;
    border-color: #498586;
    transform: translateY(0);
    box-shadow: none;
    outline: none;
}

.btn-pill{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn-pill:active{ transform: translateY(1px); }

.btn-pill.is-loading{
  opacity: 0.82;
  cursor: wait;
}

.btn-pill.is-loading::after{
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  animation: btnSpin 0.75s linear infinite;
}

@keyframes btnSpin{
  to{ transform: rotate(360deg); }
}

.btn-pill--ghost{
  background: transparent;
  border: 2px solid var(--cta);
  color: var(--cta) !important;
}
.btn-pill--ghost:hover{ background: var(--cta-soft); }
.btn-pill--ghost.btn-on-dark{
  border-color: rgba(255,255,255,0.85);
  color: #ffffff !important;
}
.btn-pill--ghost.btn-on-dark:hover{ background: rgba(255,255,255,0.14); }

.btn-pill--solid{
  background: var(--cta);
  border: 2px solid var(--cta);
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(73,133,134,.25);
}
.btn-pill--solid:hover{
  background: var(--cta-dark);
  border-color: var(--cta-dark);
}

.hero-cta-pulse{
  animation: ctaPulse 2.6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes ctaPulse{
  0%, 100%{
    box-shadow: 0 10px 22px rgba(73,133,134,.22);
    transform: scale(1);
    filter: brightness(1);
  }
  50%{
    box-shadow: 0 14px 30px rgba(73,133,134,.35);
    transform: scale(1.015);
    filter: brightness(1.05);
  }
}

.hero-cta-outline{
  border-color: #ffffff !important;
  box-shadow:
    0 10px 22px rgba(73,133,134,.22),
    0 0 0 1px rgba(255,255,255,0.35);
}

/********************************************
 * CTA – Пријава (PUNO zelena dugmad)
 ********************************************/

.btn-engram-filled {
    position: relative;
    display: inline-block;
    padding: 0.45rem 1.6rem;
    font-weight: 600;

    background-color: #498586;      /* ZELENA */
    color: #ffffff !important;      /* BELA slova */
    border: 2px solid #498586;
    border-radius: 0;               /* oštre ivice */
    text-decoration: none;

    overflow: hidden;
    z-index: 1;
    cursor: pointer;

    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                transform 0.15s ease;
}

/* talas */
.btn-engram-filled::before {
    content: "";
    position: absolute;
    left: -30%;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25); /* svetliji talas */
    transform: skewX(-20deg);
    z-index: -1;
    transition: width 0.45s ease-out;
}

/* hover */
.btn-engram-filled:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-engram-filled:hover::before {
    width: 150%;
}

/* klik – KONTRAST mode */
.btn-engram-filled:active,
.btn-engram-filled:focus {
    background-color: #ffffff;
    color: #498586 !important;  /* zelena slova */
    border-color: #498586;
    transform: translateY(0);
    box-shadow: none;
    outline: none;
}

/********************************************
 * OSTALA DUGMAD (outline u herou, kod Jelene...)
 ********************************************/

/* Outline Engram dugme (Saznaj više, Prikaži celu biografiju) */
.btn-engram-outline {
    position: relative;
    display: inline-block;
    border-radius: 999px;
    padding: 0.5rem 1.8rem;
    font-weight: 500;
    color: #ffffff;
    border: 2px solid #ffffff;
    background: transparent;
    overflow: hidden;
    z-index: 1;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-engram-outline::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #498586;
    transform: skewX(-20deg);
    z-index: -1;
    transition: width 0.25s ease;
}

/* Hover efekat outline dugmeta */
.btn-engram-outline:hover {
    color: #ffffff;
    border-color: #498586;
}

.btn-engram-outline:hover::before {
    width: 130%;
}

/********************************************
 * ANIMACIJE NA SKROL (REVEAL)
 ********************************************/

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-title.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(6px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    transition-delay: var(--word-delay, 0ms);
    will-change: transform, opacity, filter;
}

.reveal-title.in-view .reveal-word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal-word {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/********************************************
 * TESTIMONIALS – REКЛИ СУ О НАМА
 ********************************************/

.section-testimonials {
    position: relative;
}

.section-testimonials .section-title-main {
    text-align: center;
}

/* Horizontalni skrol sa karticama */
.testimonials-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* Omotač za recenzije – zbog strelica */
.testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* scroller zauzima sav prostor između strelica */
.testimonials-scroller {
    flex: 1 1 auto;
}

/* kompletno sakrij scrollbar */
.testimonials-scroller {
    scrollbar-width: none;          /* Firefox */
}
.testimonials-scroller::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari/Edge */
}

/* strelice levo/desno */
.testimonials-arrow {
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #2c5d5d;
    font-size: 2rem;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.testimonials-arrow:hover {
    background: #f3faf9;
    transform: translateY(-1px);
}

.testimonials-arrow.arrow-left {
    margin-right: 0.75rem;
}

.testimonials-arrow.arrow-right {
    margin-left: 0.75rem;
}


/* da se scroll bar skoro ne vidi u WebKit-u */
.testimonials-scroller::-webkit-scrollbar {
    height: 6px;
}

.testimonials-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-scroller::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

/* Pojedinačna kartica */
.testimonial-card {
    flex: 0 0 320px;
    max-width: 320px;
    background-color: #ffffff;
    border: 2px solid #2c5d5d;
    border-radius: 9px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Tekst recenzije */
.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}

/* Ime roditelja */
.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Godina */
.testimonial-year {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Na manjim ekranima kartica skoro preko cele širine */
@media (max-width: 767.98px) {
    .testimonial-card {
        flex: 0 0 80%;
        max-width: 80%;
        margin-left: 0.5rem;
    }
}

/********************************************
 * ŠTA RADIMO (ACCORDION)
 ********************************************/


/* okvir za accordion u uslugama */
.service-accordion .accordion-item {
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    background-color: transparent;
}

/* dugme u zaglavlju svakog akordeon panela */
.service-accordion-button {
    background-color: rgba(255, 255, 255, 0.96);
    color: #2c5d5d;
    font-weight: 600;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

/* otvoren panel – malo jači efekat */
.service-accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: #2c5d5d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
   
}

/* hover na naslovu */
.service-accordion-button:hover {
    background-color: #f3faf9;
    transform: translateY(-1px);
}

/* telo akordeona – malo prozračnije */
.service-accordion .accordion-body {
    background-color: rgba(255, 255, 255, 0.98);
    color: #2c5d5d;
    padding: 28px 32px;   /* GORE/DOLE 28px, LEVO/DESNO 32px */
    line-height: 1.7;     /* lepše čitanje teksta */
}

/********************************************
 * ŠTA RADIMO – AKORDEON KARTICE
 ********************************************/

/* Kontejner sekcije */
.section-services {
    position: relative;
    padding: 3rem 0;
}

/* Pozadina — providna mreža */
.section-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/pozadina.svg");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.12;              /* nežna mreža */
    z-index: -1;
    pointer-events: none;
}

/********************************************
 * OSNOVNI IZGLED AKORDEONA
 ********************************************/

.engram-accordion {
    border: none;
    border-radius: 0;
}

.engram-accordion .accordion-item {
    /* tanje i malo mekše ivice – ~50% slabije */
    border: 1px solid rgba(44, 93, 93, 0.7);
    border-radius: 6px;

    /* blago providna bela da mreža “proviri” ispod */
    background-color: rgba(255, 255, 255, 0.92);

    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

/********************************************
 * HOVER + PARALELOGRAM NA HEADERU
 ********************************************/

.engram-accordion .accordion-button {
    background-color: transparent;
    color: #2c5d5d;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    position: relative;
    z-index: 2;
    box-shadow: none;
    transition: color 0.3s ease;
}

/* Boja strelice u zatvorenom stanju */
.engram-accordion .accordion-button::after {
    color: #2c5d5d !important;
}

/* Kada je otvoreno — strelica bela */
.engram-accordion .accordion-button:not(.collapsed)::after {
    color: #ffffff !important;
}


/* uklanjamo default pozadinu Bootstrapa */
.engram-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

/* paralelogram “talas” */
.engram-accordion .accordion-button::before {
    content: "";
    position: absolute;
    left: -12%;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #498586;
    transform: skewX(-20deg);
    z-index: -1;
    transition: width 0.70s ease-out;
}

/* hover – puni se paralelogram, tekst postaje beo */
.engram-accordion .accordion-button:hover::before {
    width: 125%;
}

.engram-accordion .accordion-button:hover {
    color: #ffffff;
}

/********************************************
 * AKTIVNO STANJE (OTVORENA KARTICA)
 ********************************************/

/* dok je panel otvoren, zadrži “hover” efekat na headeru */
.engram-accordion .accordion-button:not(.collapsed)::before {
    width: 125%;
}

.engram-accordion .accordion-button:not(.collapsed) {
    color: #ffffff;
}

/* kartica */
.engram-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    background-color: #e5fafa; /* svetliji engram */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/********************************************
 * TELO AKORDEONA
 ********************************************/

.engram-accordion .accordion-body {
    background-color: transparent; /* kartica već ima boju */
    color: #2c5d5d;
    padding: 12px 32px;   /* GORE/DOLE 28px, LEVO/DESNO 32px */
    line-height: 1.7;     /* lepše čitanje teksta */
}

/********************************************
 * STRELICA — ROTACIJA
 ********************************************/

.engram-accordion .accordion-button::after {
    transition: transform 0.3s ease;
}

.engram-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}
/* STRELICA NA DESNO U ŠTA RADIMO AKORDEONU */
.engram-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 0.9rem;
    height: 0.9rem;
    border-right: 2px solid #2c5d5d;
    border-bottom: 2px solid #2c5d5d;
    transform: rotate(45deg); /* strelica na desno kad je zatvoreno */
    background-image: none;   /* gasi Bootstrap ikonicu */
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* kad je otvoreno – strelica „gore“ */
.engram-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-135deg);
}

/********************************************
 * KONTAKT SEKCIJA
 ********************************************/

.section-contact {
    /* gradijent dolazi iz .section-colored */
}

/* Poravnanje kutije za zakazivanje pregleda sa kontakt formom */
.section-contact .zakazi-box {
    margin-top: 2.6rem !important;   /* spusti kutiju da linija ivice bude ista */
}

/* Na većim ekranima još preciznije poravnanje */
@media (min-width: 992px) {
    .section-contact .zakazi-box {
        margin-top: 3.2rem !important;
    }
}

/* Ako želiš savršeno ravno – ukloni razliku u paddingu oba bloka */
.section-contact .contact-form,
.section-contact .zakazi-box {
    padding-top: 1.75rem;
}


.section-contact .section-title-main,
.section-contact .section-title-sub {
    color: #ffffff;
}

/* tekst sa leve strane */
.section-contact .contact-intro {
    color: #f3faf9;
    max-width: 52rem;
}

/* leve i desne kutije */
.section-contact .contact-form,
.section-contact .zakazi-box {
    background-color: rgba(255, 255, 255, 0.96);
    color: #2c5d5d;
    border-radius: 16px;
    padding: 1.75rem 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* malo drugačiji ton za desnu kutiju */
.section-contact .zakazi-box {
    background-color: rgba(255, 255, 255, 0.94);
}

/* NASLOV + TEKST U DESNOJ KUTIJI – ENGRAM BOJA */
.section-contact .zakazi-box h3,
.section-contact .zakazi-box p {
    color: #2c5d5d;
}

/* labele više nisu boldirane */
.section-contact .form-label {
    font-weight: 500;
}

/* polja – oštre ivice + blaga ivica u Engram tonu */
.section-contact .form-control,
.section-contact .form-select {
    border-radius: 0;
    border: 1px solid rgba(73, 133, 134, 0.4);
    padding: 0.6rem 1rem;
    box-shadow: none;
}

/* textarea isto oštra (po želji mali radius) */
.section-contact textarea.form-control {
    border-radius: 0;
}

/* hover/focus kontura */
.section-contact .form-control:focus,
.section-contact .form-select:focus {
    border-color: #498586;
    box-shadow: 0 0 0 0.1rem rgba(73, 133, 134, 0.35);
}

/* SUCCESS PORUKA – mehurić */
.section-contact .alert-success {
    border-radius: 14px;
    background-color: #f7f4ef;
    color: #2c5d5d;
    border: 1px solid rgba(73, 133, 134, 0.4);
}

/********************************************
 * PLACEHOLDER – 50% PROVIDAN
 ********************************************/

.section-contact .form-control::placeholder,
.section-contact textarea.form-control::placeholder,
.engram-modal .form-control::placeholder,
.engram-modal textarea.form-control::placeholder {
    color: rgba(44, 93, 93, 0.2); /* Engram tamnozelena, 50% */
}

/********************************************
 * MODAL – ZAKAZI PREGLED
 ********************************************/

.engram-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.engram-modal .modal-header {
    background: linear-gradient(135deg, #498586, #2c5d5d);
    color: #ffffff;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
}

.engram-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.engram-modal .modal-body {
    padding: 1.75rem 1.75rem 1.9rem;
}

/* labele u modalu – blago podebljanje */
.engram-modal .form-label {
    font-weight: 500;
}

/* polja – oštre ivice, auto-fill friendly */
.engram-modal .form-control,
.engram-modal .form-select {
    border-radius: 0;
    border: 1px solid rgba(73, 133, 134, 0.4);
    padding: 0.6rem 1rem;
    box-shadow: none;
}

/* textarea takođe oštra */
.engram-modal textarea.form-control {
    border-radius: 0;
}

.engram-modal .form-control:focus,
.engram-modal .form-select:focus {
    border-color: #498586;
    box-shadow: 0 0 0 0.1rem rgba(73, 133, 134, 0.35);
}

.engram-modal .alert-success {
    border-radius: 14px;
    background-color: #f7f4ef;
    color: #2c5d5d;
    border: 1px solid rgba(73, 133, 134, 0.4);
}

/* malo manji padding na manjim ekranima */
@media (max-width: 767.98px) {
    .section-contact .contact-form,
    .section-contact .zakazi-box {
        padding: 1.25rem 1.25rem;
    }
}

.site-footer{
  margin-top: 40px;
  padding: 26px 0;
  background: rgba(255,255,255,.35);
  border-top: 1px solid rgba(15,23,42,.06);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.footer-title{ font-weight: 800; margin-bottom: 10px; }
.footer-item{ margin: 6px 0; }
.footer-spacer{ margin-top: 10px; }
.muted{ color: rgba(15,23,42,.65); }

.footer-bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.06);
}

.footer-bottom-row{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-platform-link{
  color: #2c5d5d;
  text-decoration: underline;
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.site-footer a{
  color: #2c5d5d;
  text-decoration: none;
}
.site-footer a:visited{
  color: #2c5d5d;
}
.site-footer a:hover,
.site-footer a:active{
  color: #2c5d5d;
}

/* =========================
   HERO2 – Mobile refined
   ========================= */
@media (max-width: 768px){

  /* VIDEO – centriran i čitljiv */
  .hero2-image-wrap{
    height: auto !important;
    margin-top: 20px;
  }

  .hero2-image{
    height: 260px !important;
    max-height: 260px;
    object-fit: cover !important;
    object-position: 100% center !important;
    border-radius: 22px;
  }

  /* ugasi float animacije na mobilnom */
  .hero2-float-a,
  .hero2-float-b,
  .hero2-float-c{
    animation: none !important;
  }

  /* sakrij Kontakt karticu */
  .hero2-float-c{
    display: none !important;
  }

  /* floating kartice – UMERENO smanjenje */
  .hero2-float,
  .hero-card-floating{
    transform: scale(0.73) !important;
    transform-origin: left top !important;
    opacity: 0.82 !important;
    background: rgba(255,255,255,0.38) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  /* tipografija u karticama */
  .hero2-float-title{
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .hero2-float-sub{
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  /* precizno pozicioniranje */
  .hero2-float-a{
    top: 10px !important;
    left: 12px !important;
  }

  .hero2-float-b{
    top: 72px !important;
    right: 12px !important;
  }

  /* malo vazduha ispod teksta */
  .hero2-content{
    padding-bottom: 12px;
  }
}

