/* osnovno */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arimo', sans-serif;
  font-size: 20px;
  color: #0a0a0a;
  scroll-behavior: smooth;
}
a {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* izbornik */
.izbornik {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 9999;
}
.izbornik-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 80px;
  width: auto;
}
.logo-text {
  font-family: 'Bakbak One', sans-serif;
  font-size: 30px;
  color: #8d839f;
}
.logo-text span { color: #d6cbea; 
}
/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #4f1b62;
  margin: 6px 0;
}
.menu {
  list-style: none;
  display: flex;
  gap: 40px;
}
.menu a {
  text-decoration: none;
  color: #4f1b62;
  font-weight: 600;
  display: inline-block;
	transition: transform 0.3s ease, color 0.3s ease;
		}
.menu li a:hover {
		transform: scale(1.3);
		color: #d6cbea;
		}			
.social-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}
.social-nav i,
.social-nav svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #4f1b62;
  transition: transform .3s ease, color .3s ease;
}
.social-nav i:hover,
.social-nav svg:hover {
  transform: scale(1.3);
  color: #8d839f;
}

@media (max-width: 900px) {
 .izbornik-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hamburger {
    display: none;
    margin-left: auto;
  }
    .logo {
    flex: 1;
  }

}
/* sekcije */
section { padding: 40px 20px; 
}
[id] {
  scroll-margin-top: 90px;
}
/* Naslovnica */
#naslovnica {
  background: radial-gradient(circle at top right, #8d839f 0, #4f1b62 40%, #0a0a0a 100%);
  color: #fff;
	min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
  overflow: visible;
}
#naslovnica::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.hero {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.hero > * {
  opacity: 0;
  transform: translateY(25px);
  animation: heroFade 0.8s ease forwards;
}
.hero > *:nth-child(1) { animation-delay: 0.2s; }
.hero > *:nth-child(2) { animation-delay: 0.4s; }

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
    font-size: 44px;
  }
.hero-text { 
	flex: 1.6; 
}
.text-1 { 
	font-size: 24px; 
}

h1.text-2 {
  font-family: 'Bakbak One', sans-serif;
  font-size: 60px;
  color: #8d839f;
}
h1.text-2 span { 
	color: #d6cbea; 
	}
.text-3 { 
	font-size: 20px; 
	margin-top: 10px; 
	padding-right: 4px;
	}
.text-3 .typing {
	font-size: 40px;
	font-weight: 700;
	color: #d6cbea;
	display: inline-block;
	position: relative;
  padding-right: 2px;
	line-height: 1.2;
	min-height: 1.2em;
	min-width: 1px;
	vertical-align: top;
	}
.text-3 .typing::after {
  content: '';
  position: absolute;
  right: 0;
  color: #ffb347;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 40%, 100% { opacity: 1; }
  41%, 80%      { opacity: 0; }
}
.hero-subtext {
  margin-top: 58px;  
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: #d6cbea;
}
.hero-cta { 
	margin-top: 45px; 
	}
.cta-button {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  background: linear-gradient(45deg, #8d839f, #4f1b62);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.hero-image { 
	flex: 0.6; 
	display: flex; 
	justify-content: flex-end; 
	margin-left: 0;
	}
.hero-image img { 
	max-width: 100%; 
	height: auto;
	}

/*naslovnica za mobile*/
@media (max-width: 900px) {

  #naslovnica {
    padding: 40px 20px;
  }

  .hero {
    flex-direction: column;
    padding-left: 0;
    text-align: left;
  }

  .hero-text {
    flex: unset;
    width: 100%;
  }

  .text-1 {
    font-size: 18px;
  }

  h1.text-2 {
    font-size: 40px;
    line-height: 1.2;
  }

  .text-3 {
    font-size: 18px;
  }
  
  .text-3 .typing {
    font-size: 26px;
    display: inline-block;
    line-height: 1.2;
    min-height: 1.2em;
    min-width: 1px;
    vertical-align: top;
  }
 .hero-subtext {
    margin-top: 30px;
    margin-bottom: 28px;
    font-size: 16px;
  }

  .hero-cta {
    margin-top: 32px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 16px;
  }

  .hero-image {
    width: 100%;
    justify-content: center;
    margin-top: 40px;
  }

  .hero-image img {
    max-width: 380px;
  }
}

/*o nama*/
#onama { background: #d6cbea;
 padding: 40px 10%;
 }
h2.position {
		padding-left: 20px;
		padding-top: 25px;
}
#onama .position {
  margin-bottom: 20px;
}
.about-box {
  display: flex;
  gap: 40px;
  align-items: center;
  background: linear-gradient(
    135deg,
    #f6f4fb 0%,
    #d6cbea 100%
  );
  padding: 38px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}
.about-text {
  flex: 2;
}
.about-text p {
  margin-bottom: 1.4em;
  line-height: 1.7;
  color: #2b2b2b;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  max-width: 380px;
}

/*o nama za mobile*/
@media (max-width: 900px) {
  .about-box {
    flex-direction: column;
    padding: 32px;
  }

  .about-image img {
    max-width: 100%;
  }
}

/* usluge */
#usluge {
  background: #8d839f;
  padding: 40px 10%;
}

.usluge-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.usluge-title {
  color: #fff;
  font-size: 42px;
  margin-bottom: 20px;
}

/* Grid */
.usluge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Kartice */
.usluga-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.usluga-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.usluga-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.usluga-card h2 {
  color: #4f1b62;
  font-size: 22px;
  margin-bottom: 16px;
  color: #8d839f;
}

.usluga-card p {
  color: #0a0a0a;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Alternativne kartice (kontrast) */
.usluga-card.accent {
  background: linear-gradient(135deg, #ffffff 0%, #d6cbea 100%);
}
/* usluge za mobile */
@media (max-width: 900px) {

  #usluge {
    padding: 30px 20px;
  }

  .usluge-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .usluge-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .usluga-card {
    padding: 24px;
	display: flex;
	flex-direction: column;
  }

  .usluga-card h2 {
    font-size: 20px;
  }

  .usluga-card p {
    font-size: 15px;
  }
}

.usluga-card.image-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usluga-card.image-card img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

@media (max-width: 900px) {
	  #usluge {
    padding: 40px 20px;
	width: 100%;
    min-height: 720px; 
  }

  .usluge-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .usluge-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .usluga-card {
    padding: 18px;
	border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  min-height: 700px;
  }

  .usluga-card h2 {
    font-size: 18px;
	font-weight: 700;
  }

  .usluga-card p {
    font-size: 16px;
    line-height: 1.6;
  }

  .card-cta {
    margin-top: 10px;
  }
  .usluga-card.image-card {
    order: -1; /* slika ide prva na mobitelu */
  } 
  .flip-back {
	font-size: 11px;
  }
}

.flip-card {
  perspective: 1300px;
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 600px;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 32px;
}

.flip-front {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.flip-front h2 {
  color: #4f1b62;
  font-size: 24px;
  margin-bottom: 18px;
}
.flip-front p {
  font-size: 18px;
  line-height: 1.5;
  color: #0a0a0a;
}

.flip-back {
  background: linear-gradient(135deg, #ffffff 0%, #d6cbea 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: justify;
}
.card-cta {
  margin-top: 20px;
  text-align: center;
}

.flip-front,
.flip-back {
  pointer-events: none;
}

.flip-back a {
  pointer-events: auto;
}

@media (max-width: 760px) {

.card-cta {
    margin-top: 20px;
  }
  #usluge .flip-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 2 / 3;  
  }
}


/*Novosti*/
.page-home #novosti { 
	background: #d7dade;
	padding: 40px 20px;
	}
.novosti-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.novosti-title {
  font-size: 42px;
  margin-bottom: 30px;
}

/* GRID */
.page-home  .novosti-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.page-article .novosti-grid {
  display: block;
}
.novost-card {
  background: linear-gradient(160deg, #ffffff, #f3f1f8);
  color: #0a0a0a;
  border-radius: 20px;
  padding: 36px 38px;
  
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
}
.novost-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}
.novost-card.featured {
						grid-column: span 3;
						}
.novost-card.small {
						font-size: 18px;
						grid-column: span 2;
					}
.page-home .novost-image img {
  width: 100%;
  height: 550px;
  overflow: hidden;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  margin: 18px 0;
}

.novost-card:hover .novost-cta {
  background-color: #d6cbea;
}
.novost-card:focus-within {
  outline: 2px solid #d6cbea;
  outline-offset: 4px;
}
.novost-naslov {
  margin: 14px 0;
  line-height: 1.25;
}
.novost-card.featured .novost-naslov {
  font-size: 28px;
  line-height: 1.2;
  margin: 12px 0 16px;
}
.novost-card.small .novost-naslov {
  font-size: 24px;
}
.novost-kategorija {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.novost-excerpt {
  line-height: 1.5;
  margin: 12px 0 16px;
}
.novost-cta {
  align-self: flex-start;
  padding: 10px 22px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(45deg, #8d839f, #4f1b62);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;   
  align-self: flex-start; 
  transition: transform .25s ease;
}
.novost-cta:hover {
  transform: translateY(-2px);
}
.novost-card time {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

/* mobile */
@media (max-width: 900px) 
{

  .page-home .novosti-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .novost-card,
  .novost-card.featured,
  .novost-card.small {
    grid-column: unset;
    width: 100%;
  }

  .novost-card {
    padding: 22px;
  }

  .novost-naslov,
  .novost-card.featured .novost-naslov,
  .novost-card.small .novost-naslov {
    font-size: 20px;
    line-height: 1.3;
  }

  .novost-excerpt {
    font-size: 15px;
  }

  .novost-image img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
  }
.novost-card.featured:last-of-type {
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
  margin-bottom: 10px;
}
}

.page-article #article-page {
  background: radial-gradient(circle at top left, #8d839f, #4f1b62);
  padding: 80px 20px;
}

.page-article .article-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}

.article-meta {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #6a5c85;
  margin-bottom: 10px;
}

.article-title {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.article-lead {
	font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: #555;
  margin: 10px 0 12px;
}
.article-image {
  text-align: center;
  margin: 10px 0;
  background: #fff;
}

.article-image img {
  max-width: 940px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 20px;
}

.article-content h2 {
  margin-top: 30px;
  font-size: 28px;
}

.article-content p {
  line-height: 1.7;
  margin-top: 18px;
  text-align: justify;
}
.article-content li {
	margin-top: 16px;
  margin-left: 32px;
  text-align: left;
}
.article-cta { 
	margin-top: 30px; 
	}
.sticky-cta {
  position: fixed;
  bottom: 64px;
  right: 100px;
  z-index: 999;
}

.sticky-cta a {
	display: inline-block;
  white-space: nowrap;
  background: linear-gradient(45deg, #8d839f, #4f1b62);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
@media (max-width: 900px) {
  .sticky-cta {
	 position: fixed;
	 transform: none;
    left: 12px; 
    bottom: 16px;   
    max-width: 85vw;
  }
  .sticky-cta a {
	  display: block;
    width: 100%;    
    text-align: center;
    white-space: normal; 
  }
  #backToTop {
    bottom: 56px; 
    left: 295px; 
	transform: none;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 20px;
  }
}

.article-layout {
  display: block;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 20px;
}

.page-article .article-image img {
  width: 100%;
  border-radius: 20px;
}
.page-gray #article-page {
  background: #d7dade;
}
.blog-hero {
  padding: 140px 20px 80px;
  background: radial-gradient(circle at top right, #8d839f 0, #4f1b62 40%, #0a0a0a 100%);
  color: #fff;
  text-align: center;
}

.blog-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.blog-category {
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.blog-hero h1 {
  font-size: 44px;
  margin: 20px 0;
}

.blog-intro {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
}
.blog-content {
  padding: 60px 20px;
  background: #fff;
  text-align: justify;
}

.blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-wrapper p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 28px;
  color: #333;
}
.blog-image {
  text-align: center;
  background: #fff;
}

.blog-image img {
  max-width: 540px;
  width: 100%;
  height: auto;
  border-radius: 9px;
 
}
.blog-quote {
  font-size: clamp(24px, 3vw, 26px);
  font-weight: 600;
  width: 100%;
  text-align: center;
  max-width: 800px;
  margin: 40px 0;
  padding: 20px 20px;
  border-left: 4px solid #6f42c1;
  color: #4f1b62; 
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
.page-plain #article-page {
  background: #ffffff;
  padding: 40px 20px;
}

.page-plain .plain-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 30px;
}

.page-plain h1 {
  margin-bottom: 22px;
}

.page-plain p {
  margin-bottom: 20px;
  line-height: 1.7;
}
.privacy-page {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-page h1 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.privacy-page .lead {
  font-size: 19px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  color: #333;
}

.privacy-block {
  margin-bottom: 40px;
}

.privacy-block h2 {
  font-size: 22px;
  margin-bottom: 18px;
  position: relative;
}

.privacy-block h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #6f42c1;
  margin-top: 8px;
  border-radius: 2px;
}

.privacy-block h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.privacy-page p {
  line-height: 1.9;
  margin-bottom: 22px;
  color: #444;
}

.privacy-page ul {
 list-style: none;
  padding-left: 0;
  margin: 25px 0;
}

.privacy-page li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.8;
}
.privacy-page li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: #6f42c1;
  border-radius: 50%;
}

.info-box {
  background: #f8f6fc;
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid rgba(111, 66, 193, 0.15);
  margin-top: 15px;
}

.info-box p {
  margin-bottom: 8px;
}

.privacy-page a {
  color: #6f42c1;
  text-decoration: none;
}

.privacy-page a:hover {
  text-decoration: underline;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.last-updated {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.last-updated::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: #6f42c1;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}


#kontakt { background: #f8f6fc;
  padding: 80px 20px;
  text-align: center; }

/* MOBILE */
@media (max-width: 900px) {
  .menu { display: none; flex-direction: column; background: #fff; position: absolute; top: 100%; right: 0; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
  .menu.active { display: flex; }
  .hamburger { display: block; }

  .hero { flex-direction: column; text-align: center; }
  .hero-image { justify-content: center; }
  .hero-image img { max-width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


.kontakt-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.kontakt-item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #4f1b62;
}

.kontakt-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

.kontakt-item a {
  color: #6f42c1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kontakt-item a:hover {
  transform: translateX(3px);
}

/* Mobile tweak */
@media (max-width: 900px) {
  .kontakt-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .kontakt-section {
    padding: 60px 15px;
  }
}

#backToTop {
  position: fixed;
  bottom: 55px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #4f1b62;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  line-height: 45px; 
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover {
  background: #5a32a3;
}

#site-footer {
  background: #111;
  color: #fff;
}

.footer-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px;
text-align: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.logo-blog-text {
  font-family: 'Bakbak One', sans-serif;
  font-size: 30px;
  color: #8d839f;
}
.logo-blog-text span { color: #d6cbea; 
}
.footer-col h3,
.footer-col h4 {
  margin-bottom: 16px;
  padding: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

.scroll-indicator,
#backToTop {
  will-change: transform, opacity;
}
@media (max-width: 900px) {

  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 20px;
  }

  .footer-col {
    text-align: center;
	padding: 15px;
  }

  .footer-col h3,
  .footer-col h4 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col a {
    font-size: 15px;
  }

  .footer-bottom {
    padding: 16px;
    font-size: 14px;
  }
.footer-col:not(:last-child) {
  border-bottom: 1px solid #222;
  padding-bottom: 24px;
}
}
@media (max-width: 900px) {

  /* GLOBALNI H1 (osim hero) */
  h1:not(.hero h1):not(.hero-title) {
    font-size: 28px;
    line-height: 1.25;
  }
  .hero h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  body {
    font-size: 15px;
  }
  p,
  li,
  a {
    font-size: 15px;
    line-height: 1.6;
  }
}
@media (min-width: 1400px) {
  .container
  .blog-wrapper,
  .article-wrapper,
  .privacy-page,
  .plain-box {
   width: min(1200px, 90%);
  margin-inline: auto;
  }
}
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: clamp(40px, 8vw, 100px) 0;
}

/* ============================================ */
/* === UX & RESPONSIVE FIXES (konsolidirano) === */
/* ============================================ */

/* --- Flip kartice: podrška za touch uređaje (klik mijenja .active) --- */
.flip-card.active .flip-inner {
  transform: rotateY(180deg);
}
/* CTA gumb na prednjoj strani flip kartice mora biti klikabilan */
.flip-front a {
  pointer-events: auto;
}

/* --- Bolja vidljivost fokusa (tipkovnička navigacija, accessibility) --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d6cbea;
  outline-offset: 3px;
}

/* --- Onemogući hover efekte na touch uređajima da se ne "zaglave" --- */
@media (hover: none) {
  .usluga-card:hover,
  .novost-card:hover,
  .cta-button:hover,
  .novost-cta:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
}

/* ===== TABLET (768–900 px) ===== */
@media (max-width: 900px) {
  /* Veće tap mete u izborniku (preporuka 44×44 px) */
  .menu {
    min-width: 220px;
    padding: 6px 0;
    border-radius: 8px;
  }
  .menu li {
    width: 100%;
  }
  .menu a {
    display: block;
    padding: 12px 22px;
  }
  .social-nav {
    padding: 12px 22px;
    border-top: 1px solid #eee;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 18px;
  }

  /* Razumna visina servisnih kartica (prije 700 px – previše dugačko) */
  .usluga-card {
    min-height: auto;
  }
  .flip-inner {
    min-height: 460px;
  }

  /* Article stranice – uže breathing room (prije 60 px padding sa svake strane) */
  .page-article #article-page {
    padding: 30px 12px;
  }
  .page-article .article-wrapper {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .article-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .article-lead {
    font-size: 17px;
  }
  .article-content h2 {
    font-size: 22px;
    margin-top: 22px;
  }
  /* Justified text na uskom ekranu izgleda razvučeno – prebacujemo na lijevo */
  .article-content p,
  .blog-wrapper p {
    text-align: left;
  }
  .blog-quote {
    margin: 24px 0;
    padding: 14px 16px;
  }

  /* Hero slika malo veća (prije max-width: 60% – izgledala premala) */
  .hero-image img {
    max-width: 78%;
  }

  /* Hero subtext bliže gore – manje praznog prostora */
  .hero-subtext {
    margin-top: 24px;
    margin-bottom: 22px;
  }

  /* Kontakt sekcija manji padding po vertikali */
  #kontakt {
    padding: 50px 16px;
  }

  /* Popravljen položaj „back to top" gumba (prije hardkodirano left: 295px – pucalo na uskim ekranima) */
  #backToTop {
    left: auto;
    right: 16px;
    bottom: 78px;
  }

  /* Sticky CTA na mobilcu malo manji da ne zaklanja sadržaj */
  .sticky-cta a {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ===== MANJI MOBITELI (≤ 600 px) ===== */
@media (max-width: 600px) {
  /* Manji logo da ne dominira ekranom */
  .logo img {
    height: 56px;
  }
  .logo-text {
    font-size: 22px;
  }

  /* Tighter section spacing */
  #onama,
  #usluge {
    padding: 32px 16px;
  }

  /* Hero malo manji da naslovi stanu */
  h1.text-2 {
    font-size: 34px;
  }
  .text-3 .typing {
    font-size: 22px;
  }

  /* Flip kartice malo više prostora za sadržaj */
  .flip-inner {
    min-height: 420px;
  }
  .flip-front,
  .flip-back {
    padding: 22px;
  }
  .flip-front h2 {
    font-size: 20px;
  }
  .flip-front p {
    font-size: 16px;
  }

  /* Article naslov još malo manji na vrlo uskom ekranu */
  .article-title {
    font-size: 22px;
  }

  /* Footer logo manji */
  .logo-blog-text {
    font-size: 24px;
  }
}

/* ===== JAKO MALI EKRANI (≤ 360 px – stari iPhone SE i sl.) ===== */
@media (max-width: 360px) {
  .izbornik-inner {
    padding: 10px 14px;
  }
  .logo img {
    height: 48px;
  }
  .logo-text {
    font-size: 18px;
  }
  .cta-button {
    padding: 12px 22px;
    font-size: 15px;
  }
}

/* ============================================================ */
/* === DODATNI POPRAVCI (na osnovu testiranja na malim ekranima) === */
/* ============================================================ */

/* --- HAMBURGER izbornik: vidljive social ikone, izbornik ne izlazi izvan ekrana --- */
@media (max-width: 900px) {
  /* Da izbornik ne nestane izvan vidnog polja na uskim ekranima */
  .menu {
    max-width: calc(100vw - 24px);
    min-width: 240px;
  }
  /* Override gornjeg .menu a (display:block + padding 22) — to je razvuklo
     social anchor-e i izgurali izbornik izvan ekrana */
  .social-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
  }
  .social-nav i,
  .social-nav svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
  }
  /* Layout: label + ikonice centrirano, kompaktno */
  .social-nav {
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 16px;
    font-size: 14px;
    gap: 6px 14px;
  }
}

/* --- FOOTER: sve centrirati na mobilcu, uključujući logo (koji je flex item) --- */
@media (max-width: 900px) {
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col .logo {
    justify-content: center;
  }
}

/* --- USLUGE: flip kartice više nisu premale, tekst stane unutra --- */
@media (max-width: 900px) {
  /* Stari CSS imao .flip-back { font-size: 11px } – nečitljivo */
  .flip-back {
    font-size: 15px;
    line-height: 1.55;
    text-align: left;            /* justify razvlači riječi na uskom stupcu */
    justify-content: flex-start;  /* tekst od vrha, bez nepotrebnih praznina */
    gap: 12px;
  }
  .flip-back p {
    margin: 0;
  }
  .flip-front h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .flip-front p {
    font-size: 16px;
  }
  .flip-front,
  .flip-back {
    padding: 22px;
  }
  /* Dovoljna visina da stane h2 + 2 dulja paragrafa + CTA */
  .flip-inner {
    min-height: 720px;
  }
  /* Početna ilustracija razumne veličine, ne preko cijele širine */
  .usluga-card.image-card img {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .flip-inner {
    min-height: 780px;
  }
  .flip-back {
    font-size: 14.5px;
  }
  .usluga-card.image-card img {
    max-width: 220px;
  }
}

/* Maknuti aspect-ratio: 2/3 i max-width: 320px na flip-card koje su sile prostor */
@media (max-width: 760px) {
  #usluge .flip-card {
    aspect-ratio: auto;
    max-width: none;
    width: 100%;
  }
}
