/* ============================================
   SNJ COMPANY WEBSITE - STYLES (FINAL)
   - B2B / EU-ready
   - No emoji UI
   - Services 2x2 desktop
   - Cleaned (no duplicates)
   ============================================ */

:root {
  --primary-color: #001F3F;
  --secondary-color: #4A90E2;
  --accent-color: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --border-color: #E8E8E8;
  --shadow: 0 4px 15px rgba(0, 31, 63, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 31, 63, 0.2);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--accent-color);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { cursor: pointer; font-family: inherit; border: none; transition: all 0.3s ease; }

/* Shared lead paragraph */
.section-lead {
  max-width: 820px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo-section { display: flex; align-items: center; gap: 1rem; }
.logo { height: 40px; width: auto; }
.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.nav-menu { display: flex; list-style: none; gap: 2.5rem; }
.nav-menu a {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}
.nav-menu a:hover { color: var(--secondary-color); }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.25s ease;
}
.nav-menu a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Accessibility focus */
.cta-button:focus-visible,
.nav-menu a:focus-visible {
  outline: 3px solid rgba(74, 144, 226, 0.7);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
  color: var(--accent-color);
  padding: 6rem 2rem;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* CTA row + buttons */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-button.primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Trust chips */
.trust-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
}
.trust-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  background: #0b2b4d;
  color: var(--accent-color);
  padding: 1.35rem 0;
  margin-top: -1px;
}
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.trust-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.trust-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--accent-color);
}
.trust-item span {
  display: block;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background-color: #F5F7FA;
  padding: 5rem 2rem;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.services-container {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Desktop: force 2x2 for premium look */
@media (min-width: 1024px) {
  .services-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem;
  }
}

.service-item {
  background-color: var(--accent-color);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary-color);
  border: 1px solid rgba(0, 31, 63, 0.10);

  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}
.service-icon svg { width: 30px; height: 30px; }

.service-item h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-benefit {
  color: var(--text-light);
  margin: 0 0 1.1rem;
  line-height: 1.7;
  font-size: 0.98rem;
  min-height: 78px;
}

.service-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-features li {
  padding: 0.45rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.55;
}
.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.service-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-link:hover { color: var(--primary-color); text-decoration: underline; }

/* ============================================
   PROCESS
   ============================================ */
.process {
  background-color: var(--accent-color);
  padding: 5rem 2rem;
}
.process h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}
.process-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.process-step {
  background: linear-gradient(135deg, #F5F7FA 0%, #E8F0F8 100%);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid rgba(74, 144, 226, 0.5);
  transition: all 0.3s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--secondary-color);
}
.process-step h3 {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ============================================
   INDUSTRIES (NO EMOJI, B2B)
   ============================================ */
.industries {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0,31,63,0.96) 100%);
  color: var(--accent-color);
  padding: 5rem 2rem;
}
.industries .section-lead {
  color: rgba(255,255,255,0.72);
}

.industries h2{
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}


.industries-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.industry-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem;
  text-align: left;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(6px);
}

.industry-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.085);
  border-color: rgba(74,144,226,0.55);
}

.industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(74,144,226,0.18);
  border: 1px solid rgba(74,144,226,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
}
.industry-icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.92);
}



.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 0.4rem;
}

.industry-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-choose-us {
  background-color: var(--accent-color);
  padding: 5rem 2rem;
}
.why-choose-us h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}
.values-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.value-card {
  background: linear-gradient(135deg, #F5F7FA 0%, #E8F0F8 100%);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.value-icon {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}
.value-card h3 { color: var(--primary-color); margin-bottom: 0.75rem; }
.value-card p { color: var(--text-light); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 31, 63, 0.95) 100%);
  color: var(--accent-color);
  padding: 5rem 2rem;
}
.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}
.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  background-color: rgba(74, 144, 226, 0.15);
  transform: translateY(-5px);
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background-color: #F5F7FA;
  padding: 5rem 2rem;
  text-align: center;
}
.contact h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.contact > p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.contact .cta-row { margin-top: 1.25rem; margin-bottom: 2.5rem; }
.contact .cta-button.secondary {
  color: var(--primary-color);
  border: 1px solid rgba(0, 31, 63, 0.20);
  background: transparent;
}
.contact .cta-button.secondary:hover { background: rgba(0, 31, 63, 0.06); }

.contact-info {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.contact-item {
  background-color: var(--accent-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
}
.contact-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-item a { color: var(--secondary-color); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.contact-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(74,144,226,0.12);
  border: 1px solid rgba(74,144,226,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.contact-ico svg {
  width: 18px;
  height: 18px;
  stroke: rgba(0,31,63,0.9);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 3rem 2rem 1rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h4 { color: var(--secondary-color); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section a {
  color: var(--accent-color);
  opacity: 0.8;
  font-size: 0.95rem;
}
.footer-section a:hover { opacity: 1; color: var(--secondary-color); }
.footer-section li { margin-bottom: 0.5rem; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .trust-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-container { position: relative; }

  /* pokaži burger */
  .hamburger { display: flex; }

  /* sakrij desktop meni i pretvori ga u dropdown */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 2rem;
    left: 2rem;
    margin-top: 0.8rem;
    background: rgba(0, 31, 63, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 2000;
  }

  .nav-menu.active { display: flex; }

  .nav-menu a {
    padding: 0.35rem 0;
    width: fit-content;
  }

  /* ostali mobile rules koje si imao */
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  h2 { font-size: 2rem !important; }

  .service-item { padding: 1.75rem; min-height: auto; }
  .services-container { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}

/* hamburger X animacija (izvan media, OK je ovdje) */
.hamburger.active span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
}
.hamburger.active span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 520px) {
  .trust-strip-inner { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; padding: 0 1rem; }
  .industries-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 1rem; }
  .logo { height: 30px; }
  .company-name { font-size: 1.2rem; }
  .nav-menu { gap: 1rem; }
  .nav-menu a { font-size: 0.75rem; }

  .hero { padding: 3rem 1rem; min-height: calc(100vh - 60px); }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }

  .cta-button { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

  .services { padding: 3rem 1rem; }
  .industries { padding: 3rem 1rem; }
  .why-choose-us { padding: 3rem 1rem; }
  .testimonials { padding: 3rem 1rem; }
  .contact { padding: 3rem 1rem; }

  .contact h2 { font-size: 1.8rem; }
  .footer-content { gap: 1.5rem; }
}

/* ============================================
   SNJ: Professional scroll reveal (Animista-style)
   ============================================ */
@keyframes fade-in-up {
  0% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

.reveal.is-visible {
  animation: fade-in-up 720ms ease-out both;
}

/* Stagger (optional): mali delay po karticama */
.reveal.d1 { animation-delay: 80ms; }
.reveal.d2 { animation-delay: 160ms; }
.reveal.d3 { animation-delay: 240ms; }
.reveal.d4 { animation-delay: 320ms; }

/* EU-friendly accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
