/* ===========================
   ŽIVIM — Custom Styles
   =========================== */

:root {
  --navy: #252C62;
  --navy-dark: #1a1f49;
  --navy-light: #353f80;
  --teal: #00B9AD;
  --teal-dark: #00938a;
  --teal-light: #2ad9cd;
  --green: #8AC75A;
  --green-dark: #6fae42;
  --green-light: #a3d77c;
  --black: #000809;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===========================
   NAVIGACIJA
   =========================== */

#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(26, 31, 73, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--teal-light);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal-light);
}

/* Hamburger */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
#hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   HERO
   =========================== */

.hero-bg {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, #1a4a6e 70%, #0d3d5c 100%);
}

.hero-overlay {
  background: radial-gradient(ellipse at center top, rgba(0,185,173,0.15) 0%, transparent 70%);
}

/* ===========================
   GUMBI
   =========================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 185, 173, 0.4);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 185, 173, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ===========================
   SEKCIJA HEADER
   =========================== */

.section-badge {
  display: inline-block;
  background: rgba(0, 185, 173, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 185, 173, 0.3);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* ===========================
   STRATEGIJA KARTICE
   =========================== */

.strategy-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  opacity: 0;
  transition: opacity 0.3s;
}

.strategy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.strategy-card:hover::before {
  opacity: 1;
}

.strategy-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.strategy-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  line-height: 1;
}

.strategy-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.strategy-text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===========================
   ACCORDION
   =========================== */

.accordion-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.accordion-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 1rem;
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: rgba(0, 0, 0, 0.02);
}

.accordion-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content.open {
  max-height: 800px;
}

.accordion-chevron.rotated {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
}

/* Info kartice unutar accordiona */
.info-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
  border-left: 3px solid var(--teal);
}

.risk-tag {
  background: rgba(37, 44, 98, 0.08);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(37, 44, 98, 0.2);
}

.diag-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
}

.diag-number {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.treatment-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.treatment-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ===========================
   KONTAKT KARTICE
   =========================== */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

/* ===========================
   FOOTER
   =========================== */

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
}

.footer-link:hover {
  color: var(--teal-light);
}

/* ===========================
   ANIMACIJE
   =========================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Hero animacije (odmah) */
.hero-bg .fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.hero-bg .delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-bg .delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   SCROLL INDIKATOR
   =========================== */

.scroll-indicator {
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

/* ===========================
   FOCUS STILOVI (Accessibility)
   =========================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-bg h1 {
    font-size: 2rem;
  }
}
