* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 102, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f2eb 0%, #f4f0ea 48%, #ffffff 100%);
  color: #333;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(40, 28, 16, 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  margin-left: 0;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 102, 0, 0.08);
  color: #ff6600;
  transform: translateY(-1px);
}

.nav-links .active {
  background: #ff6600;
  color: #fff;
}

.nav-links .active:hover {
  color: #ff6600;
  background: rgba(255, 102, 0, 0.16);
  transform: translateY(-1px);
}

.nav-links .active,
.nav-links .active:hover {
  color: #fff;
  background: #ff6600;
}

.hero {
  background: url('resources/pc.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 102, 0, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 102, 0, 0.05) 2px, transparent 2px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 1.8rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #ff6600;
  color: #fff;
}

.btn.primary:hover {
  background-color: #e65c00;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background-color: #fff;
  color: #ff6600;
}

.cta-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 0;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-square:hover {
  background: #e35a00;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 102, 0, 0.22);
}

.cta-square-light {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: calc(0.95rem - 2px) calc(1.8rem - 2px);
}

.cta-square-light:hover {
  background: #fff;
  color: #ff6600;
  border-color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.cta-square-outline {
  background: transparent;
  color: #1d1d1d;
  border: 2px solid #1d1d1d;
  padding: calc(0.95rem - 2px) calc(1.8rem - 2px);
}

.cta-square-outline:hover {
  background: #1d1d1d;
  color: #fff;
  border-color: #1d1d1d;
  box-shadow: 0 12px 24px rgba(29, 29, 29, 0.18);
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 5rem 4rem;
}

.service-card {
  width: 380px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  background-color: #fdfdfd;
  padding: 1rem 0;
}

.card-top img,
.card-top .svg-img {
  width: auto;
  max-width: 85%;
  max-height: 80%;
  object-fit: contain;
}

.svg-img-njega {
  transform: scale(2.5) translateY(6px);
}

.svg-img-specka {
  transform: scale(2) translateY(6px);
}

.svg-img-patronaza {
  transform: scale(1.5) translateY(6px);
}

.svg-img-nod {
  transform: scale(0.65) translateY(6px);
}

.svg-img-btl {
  transform: scale(1.5) translateY(6px);
}

.card-bottom {
  margin-top: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.card-bottom h3 {
  color: #222;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-bottom p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.card-bottom a {
  display: inline-block;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-bottom a:hover {
  background-color: #e35a00;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 102, 0, 0.22);
}

.extra-services {
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  padding: 6rem 0 5rem;
}

.extra-services h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #ff6600;
  margin-bottom: 3rem;
}

.footer {
  background-color: #111;
  color: #fff;
  padding: 3rem 0 1rem; /* horizontal padding removed so inner container controls width */
  font-size: 0.95rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-column p {
  color: #ccc;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ff6600;
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #aaa;
}

/* SHARED PAGE LAYOUT (premješteno iz page-specific datoteka) */
.page-header {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 3.5rem 3rem 3.25rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  color: #222;
  border: 1px solid #ececec;
  border-left: 8px solid #ff6600;
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(40, 28, 16, 0.12);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 102, 0, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32));
  pointer-events: none;
}

.page-kicker,
.page-header .page-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ff6600;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.1rem;
  color: #1f1f1f;
}

.page-header p {
  position: relative;
  z-index: 1;
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0;
  color: #666;
}

.content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.content h2 {
  color: #ff6600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* istaknute kutije */
.highlight-box {
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid #ff6600;
  padding: 1rem 1.5rem;
  border-radius: 0;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Carousel (jedinstvena implementacija za sve stranice) */
.carousel {
  position: relative;
  max-width: 1000px;
  height: 600px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.5rem;
}

.carousel-slide.active {
  display: flex;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.document-img {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 88%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 0;
  font-size: 1.2rem;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Lokalna navigacija poglavlja (tab-nav) - koristi se na više stranica */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.extra-services + .extra-services {
  margin-top: -2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-left: 0;
  transform: scale(1.6);
  transform-origin: left center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo img:hover {
  transform: scale(1.68);
  opacity: 0.92;
}


.contact-section {
  padding: 2rem 4rem;
}

.map-container {
  width: 100%;
  margin-bottom: 2rem;
}

.contact-divider {
  margin: 2rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-title {
  color: #ff6600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-box p {
  margin-bottom: 0.7rem;
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 29, 29, 0.12);
  padding: 0.7rem;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: 0.3s;
}



@media (max-width: 900px) {
  .navbar {
    width: 100%;
    padding: 0.95rem 1rem;
  }

  .card-grid {
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
  }

  .service-card {
    width: 90%;
  }

  .card-top {
    height: 180px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .extra-services h2 {
    font-size: 1.8rem;
  }

  .page-header {
    padding: 2.75rem 2rem 2.5rem;
  }
}

/* MOBITEL */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    box-shadow: 0 28px 70px rgba(40, 28, 16, 0.16);
    backdrop-filter: blur(16px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.9rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    width: 100%;
    max-width: 340px;
    text-align: center;
    font-size: 1.15rem;
    padding: 1rem 1.2rem;
  }

  .nav-links.open {
    transform: translateY(0);
  }
  .nav-inner {
    justify-content: space-between;
    position: relative;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 0;
  }

  .contact-section {
    padding: 1.5rem 1.5rem;
  }
  .logo {
    margin: 0;
  }

  .logo img {
    height: 44px;
    width: auto;
    display: block;
  }

  .page-header {
    margin-top: 1.1rem;
    padding: 2.2rem 1.2rem 2rem;
  }

  .page-header h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page-header p {
    font-size: 1rem;
  }
}

.content ul {
  list-style-position: inside;
  padding-left: 0;
}
