/* =============================================
   PELJEM.SI — Premium Custom Styles
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* Logo invert when over dark hero */
#navbar:not(.scrolled) .nav-logo {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
#navbar.scrolled .nav-logo {
  filter: none;
  transition: filter 0.3s ease;
}
/* Nav links */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
  color: rgba(255, 255, 255, 0.85);
}
.nav-link:hover { color: white; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4bb6f5;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }
#navbar.scrolled .nav-link {
  color: #374151;
}
#navbar.scrolled .nav-link:hover { color: #111827; }
/* Nav CTA */
.nav-cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: white !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: none !important;
}
#navbar.scrolled .nav-cta {
  background: #4bb6f5 !important;
  border-color: #4bb6f5 !important;
  color: white !important;
}
#navbar.scrolled .nav-cta:hover {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
}
/* Mobile toggle */
.nav-toggle-icon { color: rgba(255,255,255,0.9); }
#navbar.scrolled .nav-toggle-icon { color: #374151; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-parallax {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 40%;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transition: transform 0s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 28, 0.82) 0%,
    rgba(10, 15, 28, 0.55) 55%,
    rgba(10, 15, 28, 0.22) 100%
  );
}
/* Subtle noise texture */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 80px;
}

/* Hero label pill */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(75, 182, 245, 0.12);
  border: 1px solid rgba(75, 182, 245, 0.3);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-label .dot {
  width: 6px;
  height: 6px;
  background: #4bb6f5;
  border-radius: 50%;
  display: inline-block;
}

/* Hero trust chips */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 100px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.trust-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}
.trust-chip-check {
  width: 14px;
  height: 14px;
  color: #4bb6f5;
  flex-shrink: 0;
}

/* Stats bottom bar */
.stats-bar {
  background: rgba(10, 15, 28, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4bb6f5;
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4bb6f5;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid #4bb6f5;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(75, 182, 245, 0.28);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary:hover {
  background: #1e88e5;
  border-color: #1e88e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(75, 182, 245, 0.42);
}
.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(75, 182, 245, 0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111827;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid #111827;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark:hover {
  background: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid #374151;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-dark:hover {
  background: #111827;
  color: white;
  transform: translateY(-1px);
}

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ===== STATS BAR (standalone section) ===== */
.stat-item { transition: opacity 0.3s ease; }
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: transform 0.2s ease;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: white;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.service-icon {
  width: 46px;
  height: 46px;
  background: #e3f0fc;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}
.service-card:hover .service-icon {
  background: #4bb6f5;
}
.service-card:hover .service-icon svg {
  color: white;
}
.service-icon svg {
  color: #4bb6f5;
  transition: color 0.2s ease;
}

/* ===== WHY US CARDS ===== */
.why-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.why-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.why-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #e3f0fc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PROCESS SECTION ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}
.process-step {
  padding: 28px 24px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #f1f5f9;
}
@media (max-width: 768px) {
  .process-step::after { display: none; }
  .process-step { border-right: none; }
}
.process-num {
  width: 40px;
  height: 40px;
  background: #111827;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* ===== GALLERY ===== */

/* Editorial grid: 3 cols, auto rows */
.gallery-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 420px 280px;
  gap: 10px;
  margin-bottom: 10px;
}
/* Feature: landscape van — spans first 2 columns, row 1 */
.gallery-feature {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}
/* Tall portrait — column 3, spans both rows */
.gallery-tall {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}
/* Small portraits — row 2, columns 1 and 2 */
.gallery-small {
  grid-row: 2 / 3;
}
/* Full-width strip for 5th image */
.gallery-strip {
  height: 260px;
}
.gallery-strip .gallery-item {
  height: 100%;
}
/* Mobile: stack vertically */
@media (max-width: 767px) {
  .gallery-editorial-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 360px 240px;
  }
  .gallery-feature {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .gallery-tall {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .gallery-small:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .gallery-small:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
  .gallery-strip {
    height: 200px;
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  background: #f1f5f9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,28,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  color: white;
  transform: translateY(6px);
  transition: transform 0.3s ease;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-tile {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

/* ===== PRICING CARDS ===== */
.pricing-card {
  background: white;
  border: 1.5px solid #e8edf3;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pricing-card:hover {
  border-color: #4bb6f5;
  box-shadow: 0 10px 36px rgba(75, 182, 245, 0.1);
  transform: translateY(-3px);
}
.pricing-example {
  background: #e3f0fc;
  border-left: 3px solid #4bb6f5;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #374151;
  margin-top: auto;
}

/* ===== BRAND SECTION ===== */
.brand-section {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.brand-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.brand-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 55%;
  position: absolute;
  top: -10%;
}
.brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 15, 28, 0.92) 0%,
    rgba(10, 15, 28, 0.70) 55%,
    rgba(10, 15, 28, 0.35) 100%
  );
}
.brand-content {
  position: relative;
  z-index: 10;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: #e2e8f0;
}
.google-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3px 8px;
}

/* ===== CONTACT FORM ===== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: #4bb6f5;
  box-shadow: 0 0 0 3px rgba(75, 182, 245, 0.12);
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

/* ===== FOOTER ===== */
.footer-cta-banner {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #2196f3 100%);
  border-radius: 18px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.footer-cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: white;
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.contact-card:hover {
  border-color: #4bb6f5;
  box-shadow: 0 4px 16px rgba(75, 182, 245, 0.1);
  transform: translateX(3px);
}
.contact-card-wa:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.12);
}

/* ===== MOBILE STICKY ===== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
}
@media (min-width: 768px) {
  .mobile-cta-bar { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .hero-parallax { height: 100%; transform: none !important; }
  .hero-label { font-size: 0.65rem; }
  .brand-section { min-height: 360px; }
  .process-step:not(:last-child)::after { display: none; }
  .footer-cta-banner { padding: 28px 24px; }

  /* Stats bar: single row of 4 on mobile to reduce height */
  .stats-bar { padding-top: 10px; padding-bottom: 10px; }
  .stats-bar .grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .stats-bar .text-2xl { font-size: 1rem; }
  .stats-bar .text-xs { font-size: 0.6rem; }

  /* Card padding reduction */
  .service-card { padding: 22px; }
  .pricing-card { padding: 22px; }

  /* Fix process step separators on mobile - steps with style="border-bottom:none" need borders back */
  .process-step { border-bottom: 1px solid #f1f5f9 !important; }
  .process-step:last-child { border-bottom: none !important; }

  /* Footer CTA buttons full width on mobile */
  .footer-cta-banner .flex-col a,
  .footer-cta-banner .sm\:flex-row a {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
  border: none;
  margin: 0;
}

/* ===== HORIZONTAL SCROLL TESTIMONIALS (mobile) ===== */
@media (max-width: 768px) {
  .testimonials-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 16px;
    padding-bottom: 12px;
  }
  .testimonials-scroll .testimonial-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .testimonials-grid {
    display: none;
  }
}
@media (min-width: 768px) {
  .testimonials-scroll { display: none; }
}
