/*

Theme Name:   Ordinacija dentalne medicine Hercigonja Matkovic
Author:       BozooArt
Author URI:   https://www.bozooart.com

*/

:root {
  --blue:   #03A8E0;
  --gray:   #000;
  --silver: #F2F2F2;

  --anim: all ease 0.5s;
}

/* =========================
   GLOBAL STILOVI
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {   scroll-behavior: smooth; }
body {
    font-family: 'Dosis', serif;
    font-size: 22px;
    line-height: 1.6;
    color: var(--gray);
}

.container {
    width: 1400px;
    margin: 0 auto;
}

a { text-decoration: none; color: var(--gray); transition: var(--anim); }

.hero {
    min-height: 650px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/hero.jpg') no-repeat center;
    background-size: cover;
    transform: translateY(calc(var(--hero-scroll, 0) * 0.35px)) scale(calc(1 + var(--hero-scroll, 0) * 0.0004));
    opacity: calc(1 - var(--hero-scroll, 0) * 0.0015);
    will-change: transform, opacity;
    z-index: 0;
  }

.hero img {
    width: 300px;
    position: absolute;
    animation: logoBounce 4s ease-in-out forwards; 
    transform-origin: center center;
    z-index: 10;
}





.hero h1 { text-align: center; }
.hero::after { content: ''; position: absolute; top: 85%; width: 45px; height: 95px; background: url('images/icon/arrow.svg') no-repeat center center;
background-size: cover; animation: floatArrow 12s ease-in-out infinite; animation-delay: 6s; opacity: 0; z-index: 11 }
.hero-smile { position: relative; max-width: 1600px; height: 650px; display: flex; align-items: center;
             justify-content: center; overflow: hidden;     background: url('images/svg/usne.svg') no-repeat center;
    background-size: contain; animation: fadeInDelay 1.5s ease-out forwards; animation-delay: 3s; opacity: 0; }
.hero-smile h1 { position: relative; z-index: 2; color: #fff; font: 88px 'Dosis', sans-serif; width: 70%;
text-transform: uppercase; line-height: 1em; opacity: 0; animation: fadeInDelay 1.5s ease-out forwards; animation-delay: 3.3s; }
.hero-smile h1 strong { font-weight: 700; }

.is-clone .hero-smile,
.is-clone .hero::after,
.is-clone .hero-smile h1{ animation-delay: 0s; }

.is-clone .hero img { display: none } 


@keyframes floatArrow {
    0%   { transform: translateY(0); opacity: 1; }
    20%  { transform: translateY(-30px); opacity: 0; }
    50%  { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInDelay {
    to {
        opacity: 1; }
}

@keyframes logoBounce {
    0% {
        transform: scale(25);
        visibility: visible;
    }
    50% {
        transform: scale(.7);
    }
    75% {
        transform: scale(3.5);
        opacity: 1;
    }
    90% {
        transform: scale(3.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
        visibility: hidden;
    }
}


.slick-prev, .slick-next { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: auto; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slick-prev:before { content: ''; display: block; width: 40px; height: 40px; border-right: 4px solid #D9D9D9; border-bottom: 4px solid #D9D9D9; transform: rotate(135deg); }
.slick-next:before { content: ''; display: block; width: 40px; height: 40px; border-right: 4px solid #D9D9D9; border-bottom: 4px solid #D9D9D9; transform: rotate(-45deg); }
.slick-prev { left: 30px; }
.slick-next { right: 30px; }
.slick-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; z-index: 10; }
.slick-dots li button { width: 16px; height: 16px; border-radius: 50%; background: #D9D9D9; border: none; padding: 0; cursor: pointer; transition: background 0.3s, transform 0.3s; opacity: .7; }
.slick-dots li.slick-active button { background: #FFF; opacity: 1; }
.slick-dots li button:before { display: none; }

.menu-container { position: fixed; bottom: 40px; right: 40px; z-index: 999; }
.menu-icon { color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; background: url('images/icon/fab-menu.svg') no-repeat; width: 100px; height: 47px; background-size: cover; display: flex; flex-direction: column; gap: 4px; transition: var(--anim); }
.menu-icon span { display: block; width: 28px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s ease; }
.menu-icon.active { flex-direction: row; gap: 0px; }
.menu-icon.active span { transform: rotate(90deg); margin-right: -20px; }
.menu-icon span:last-child { margin: 0; }
.menu-items { display: none; position: absolute; bottom: 70px; right: 0; flex-direction: column; gap: 10px; }
.menu-items.show { display: flex !important; }
.menu-items a { width: 100px; height: 47px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 30px; text-indent: -9999px; overflow: hidden; white-space: nowrap; }
.menu-icon, .menu-items a { filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2)); transition: all 0.4s ease; }
.menu-items a:first-child { background: url('images/icon/fab-gb.svg') no-repeat; background-size: cover; }
.menu-items a.hr:first-child { background: url('images/icon/hr.svg') no-repeat; background-size: cover; }
.menu-items a:nth-child(2) { background: url('images/icon/fab-loc.svg') no-repeat; background-size: cover; }
.menu-items a:last-child { background: url('images/icon/fab-phone.svg') no-repeat; background-size: cover; }
.menu-items a:hover, .menu-items .icon:hover, .menu-icon:hover { filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.7)); }

.services { background: url('images/bg/bg-1.jpg') no-repeat center; background-size: cover; min-width: 1400px; padding: 250px 0; text-align: center; width: 100%; margin: 0 auto; }
.service { background-color: transparent; padding: 100px 30px; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; margin: 0 auto 100px; font-size: 42px; width: 1400px; line-height: 1.4em; }
.service-icon { margin-bottom: 30px; display: flex; align-content: flex-end; align-items: flex-end; opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.service-icon.is-visible { opacity: 1; transform: translateY(0); }
.service-icon img { width: 880px; filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3)); }
.service a { border-bottom: 1px solid var(--gray); transition: var(--anim); }
.service a:hover { border-color: var(--blue); color: var(--blue); }
.service p { margin: 0 auto; opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s; }
.service p.is-visible { opacity: 1; transform: translateY(0); }

.benefits {
  position: relative;
  background-image: 
    url('images/usne.png'),
    url('images/bg/bg-1.jpg');

  background-repeat: 
    no-repeat,
    no-repeat;

  background-position: 
    center 300px,
    top;

  background-size: 
    1600px,
    cover;

  padding: 200px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}
.benefits .container { width: 960px; }
.benefit-list { list-style-type: none; text-align: center; margin: 0 auto; }
.benefit-list li { list-style-type: none; font: 48px 'Rammetto One'; text-transform: uppercase; color: #fff; margin-bottom: 60px; text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); line-height: 1.6em;
  opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.benefit-list li:nth-child(2) { transition-delay: 0.15s; }
.benefit-list li:nth-child(3) { transition-delay: 0.3s; }
.benefit-list li:nth-child(4) { transition-delay: 0.45s; }
.benefit-list li.is-visible { opacity: 1; transform: translateY(0); }
.benefit-list li:before { content: ''; display: block; width: 96px; height: 96px; background: url('images/icon/check.svg') no-repeat center center; margin: 0 auto 10px; background-size: contain; filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3)); }
.logo-break { padding: 200px 0; background: url('images/pattern/silver.png'); text-align: center;  }
.logo-break img { width: 100%; margin: 0 auto; opacity: 0; transform: scale(0.85); transition: opacity 1s ease-out, transform 1s ease-out; }
.logo-break img.is-visible { opacity: 1; transform: scale(1); }

.about { padding: 200px 0; background: url('images/bg/bg-1.jpg') no-repeat center; background-size: cover; overflow-x: hidden; }
.about .staff { margin: 200px auto 0; text-align: center; }
.about .staff h2 { font: 32px 'Rammetto One', sans-serif; text-transform: uppercase; margin: 50px auto 0; }


.about .staff img {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 6px solid var(--blue);
  position: relative;
  z-index: 10;
}

.about .staff-image:after {
  display: block;
  content: '';
  background: url('images/svg/grip.svg') no-repeat;
  background-size: contain;
  width: 650px;
  height: 30px;
  position: absolute;
  left: 50%;
   transform: translateX(135px);
  margin-top: -160px;
  z-index: 1;
}



.about .staff.p2 .staff-image:after {
  display: block;
  content: '';
  background: url('images/svg/grip.svg') no-repeat;
  background-size: contain;
  width: 650px;
  height: 30px;
  position: absolute;
  left: 50%;
transform: scaleX(-1) translateX(calc(50% + 460px));
  margin-top: -160px;
  z-index: 100;
}

.animate-from-right {
  transform: translateX(800px);
  transition:
    transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1)
}



.animate-from-right.is-visible {
  transform: translateX(0);
}

.about .staff-image {
  position: relative;
}


.animate-from-right.is-visible:after,
.animate-from-left.is-visible:after {
  transition-delay: 0.75s;
}

.animate-from-left {
  transform: translateX(-800px);
  transition:
    transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-from-left.is-visible {
  transform: translateX(0);
}




.header-stuff { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s; }
.header-stuff.is-visible { opacity: 1; transform: translateY(0); }
.about-staff { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s; }
.about-staff.is-visible { opacity: 1; transform: translateY(0); }
.about .staff .titule { font-family: 'Dosis', sans-serif; font-size: 28px; font-weight: 800; }
.about .staff a { color: var(--blue); background: var(--silver); transition: var(--anim); padding: 15px 50px; margin: 30px auto; display: block; width: 400px; position: relative; text-decoration: none; font-weight: 600; }
.about .staff a::after { content: ''; position: absolute; right: 30px; top: 55%; transform: translateY(-50%) rotate(180deg); width: 14px; height: 14px; background: url('images/icon/chevron.svg') no-repeat center center; background-size: contain; transition: var(--anim); }
.about .staff a.rotated::after { transform: translateY(-50%) rotate(0deg); }
.about .staff a:hover { color: #000; background: #fff; }
.about-staff { padding: 0 20px; }
.about-staff.show { display: block; }

.gallery { width: 1024px; margin: 0 auto 100px !important; position: relative; opacity: 0; transform: translateY(40px); transition: opacity 1s ease-out, transform 1s ease-out; }
.gallery.is-visible { opacity: 1; transform: translateY(0); }
.gallery img { width: 100%; height: auto; display: block; }

.contact {   text-align: center; color: #fff; font: 32px 'Rammetto One'; padding: 200px 0 0; }
.contact  {
  position: relative;
  background-image: 
    url('images/usne.png'),
    url('images/bg/bg-3.jpg');

  background-repeat: 
    no-repeat,
    no-repeat;

  background-position: 
    center 300px,
    bottom;

  background-size: 
    1600px,
    cover; }
.contact .container > * { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.contact .container > *.is-visible { opacity: 1; transform: translateY(0); }
.contact .container > *:nth-child(2) { transition-delay: 0.15s; }
.contact .container > *:nth-child(3) { transition-delay: 0.3s; }
.contact .container > *:nth-child(4) { transition-delay: 0.45s; }
.contact .container > *:nth-child(5) { transition-delay: 0.6s; }
.contact .container > *:nth-child(6) { transition-delay: 0.75s; }
.contact h2 { font: 28px 'Dosis', sans-serif; }
.contact h2 strong { display: block; font: 32px 'Rammetto One'; text-transform: uppercase; }
.contact .subtitle { font: 42px 'Rammetto One'; text-transform: uppercase; margin: 0 auto; }
.contact h2, .contact .container div { margin-bottom: 130px; }
.contact .hours span { display: block; text-transform: uppercase; font-size: 28px; }
.contact .hours p:first-child { margin-bottom: 50px; }
.contact .address, .contact .social { font: 22px 'Dosis', sans-serif; font-weight: 600; }
.contact .social svg { width: 64px; fill: #fff; transition: var(--anim); }
.contact .social svg:hover { fill: var(--blue) !important; }
.contact .address p { margin-bottom: 40px; }
.contact .address span, .contact .social span { display: block; }
.contact .address a { color: #fff; text-decoration: none; border-bottom: 1px solid #fff; }
.contact .social a { margin: 0 40px; }
.contact .icon:before { content: ''; display: block; width: 96px; height: 96px; margin: 0 auto; margin-bottom: 15px; }
.contact .title.icon:before { background: url('images/icon/tooth.svg') no-repeat center center; background-size: contain; }
.contact .subtitle.icon:before { background: url('images/icon/phone.svg') no-repeat center center; background-size: contain; }
.contact .hours.icon:before { background: url('images/icon/clock.svg') no-repeat center center; background-size: contain; }
.contact .address.icon:before { background: url('images/icon/location.svg') no-repeat center center; background-size: contain; }

.footer { text-align: center; font: 16px 'Dosis', sans-serif; padding: 30px 0; line-height: 1.6em; color: #fff; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.footer.is-visible { opacity: 1; transform: translateY(0); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { border-bottom: 1px solid #fff; }
.footer span { margin: 0 20px; }
.footer p:first-child { margin-bottom: 5px; }


.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 350px;
  background: #000;
  color: #fff;
  padding: 20px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #fff;
}

.cookie-banner button {
  align-self: flex-start;
  padding: 10px 20px;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--anim);
}

.cookie-banner button:hover {
  background: #fff;
  color: var(--blue);
}



.container article { padding: 100px 0; width: 800px; margin: 0 auto; font-size: 24px;  }
.container article h1 { color: var(--blue); margin-bottom: 30px;  }
.container article p { margin-bottom: 40px;  }
.container article a { color: var(--blue) }
.container article a:hover { text-decoration: underline }
.container article ul { margin: 40px;  }
.container article li { margin-bottom: 10px; font-size: 22px;  }

@keyframes logoBounceMobile {
    0% {
        transform: scale(16);
        visibility: visible;
    }
    50% {
        transform: scale(.7);
    }
    75% {
        transform: scale(2);
        opacity: 1;
    }
    90% {
        transform: scale(2);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        visibility: hidden;
    }
}

.assessment-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1401px) {
    .services { min-width: auto; }
    .service { width: 100%; margin: 0 auto !important; }
    .service-icon img { max-width: 80%; margin: 0 auto; }
    iframe { width: 100%; }
    .gallery, .container { width: 100%; }
    .hero-smile h1 { font-size: 70px; }
}

@media (max-width: 1024px) {
    body { font-size: 19px; }
    .service { font-size: 26px; }
    .services { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .benefits { padding: 60px 15px; }
    .service-icon { width: 70%; margin: 0 auto 20px; }
    .container { width: 100%; padding: 0 15px; }
    .about,
    .contact { padding: 60px 0; }
    .contact h2, .contact .container div { margin-bottom: 90px; }
    .benefit-list { width: 90%; }
    .services { padding: 60px; }
    .service { padding: 60px 30px; }
    .gallery { width: 100%; }
    .contact .subtitle { font-size: 28px; }
    .contact h2 { font-size: 24px; }
    .contact h2 strong { font-size: 28px; }
    .contact .hours span { font-size: 24px; }
    .contact .address, .contact .social { font-size: 19px; }
    .hero-smile h1 { font-size: 52px; }
    .benefit-list li { font-size: 40px; line-height: 1.3em }
    .about .staff h2 { font-size: 28px; }
    .about .staff .titule { font-size: 24px; }
    .container article { width: 100%; padding: 60px 0 }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
.hero-smile { background-size: 180% }
  .hero-smile h1 { font-size: 38px;  }
  
  .about {
    padding: 0 0 80px;
  }

  .about .staff {
    margin: 80px auto 0;
    
  }
  .about-staff {
    font-size: 20px; line-height: 1.4em;
    padding: 0; }

  .about .staff-image img {
    width: 240px;
    height: 240px;
  }

    .service { font-size: 25px; line-height: 1.2em }

    .benefit-list li { font-size: 30px; line-height: 1.4em }
  

  .animate-from-right {
    transform: translateX(120px);
  }

  .animate-from-left {
    transform: translateX(-120px);
  }

  .animate-from-right.is-visible,
  .animate-from-left.is-visible {
    transform: translateX(0);
  }


  .about .staff-image::after {
    width: 90%;
    height: 18px;
    transform: translateX(115px);
    margin-top: -130px;
  }

  .about .staff.p2 .staff-image::after {
transform: scaleX(-1) translateX(calc(50% + 430px));
    margin-top: -130px;
    z-index: 1;
  }
    .benefits::before { width: 600px; height: 450px; }
    .benefits-content h2 { font-size: 26px; }
    .benefits-list li { font-size: 18px; }
    .benefits img { width: 100%; }
    .services { padding: 60px 0;  }
        .service-icon { width: 100%;  }
    .benefit-list li:before { width: 64px !important; height: 64px !important;  }
.hero-smile::before, .hero-smile::after { width: 300%; left: 50%; transform: translateX(-50%); }
    .hero-smile h1 { width: 90% }

.hero img {
    animation: logoBounceMobile 4.5s ease-in-out forwards; 
}
.benefits {

  background-position:
  center
  center;
  
  background-size: 
    300%,
    cover;

}

  #location iframe {
    width: 100%;
    height: 250px;
  }

  .social { padding: 60px 0 }
  .social svg { width: 48px !important;  }
  .contact .icon:before { content: ''; display: block; width: 64px; height: 64px; margin: 0 auto; margin-bottom: 15px; }
  .contact .subtitle { font-size: 24px; }
  .contact h2 { font-size: 22px; }
  .contact h2 strong { font-size: 24px; }
  .contact .hours span { font-size: 20px; }
  .contact .address, .contact .social { font-size: 17px; }
  .about .staff h2 { font-size: 24px; margin-bottom: 0px; line-height: 1.2  }
  .about .staff .titule { margin: 10px 0; font-size: 20px; line-height: 1  }
  .assessment-logos { display: grid; grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 600px) {
    .services { grid-template-columns: 1fr; gap: 20px; }
    .about .staff a { width: 100%; }
    .hero img { width: 100%; height: auto; }
    .hero::after { width: 30px; height: 63px;  }
    .logo-break { margin: 0; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .hero-smile h1 { font-size: 45px; }

    .contact .subtitle { font-size: 30px; line-height: 1.2em }
    .contact h2 { font-size: 30px; }
    .contact h2 strong { font-size: 30px; line-height: 1.2em; margin-top: 10px }
    .contact .hours span { font-size: 30px;  line-height: 1.2em; }
    .contact .address, .contact .social { font-size: 24px; }
    .about .staff h2 { font-size: 24px; }
    .about .staff .titule { font-size: 24px; }
    .benefits::before { width: 400px; height: 300px; }
    .benefits-content h2 { font-size: 18px; }
}  