
/* Alternating layout for predelne stene detail, like .proj-item */
.predelne-detail-alt {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  margin: 2.5rem auto;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 1200px;
  width: 100%;
  .prose-pro .prose-text {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 540px;
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    font-size: 1.18rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    font-weight: 400;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s;
    color: #222;
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10), 0 1.5px 8px 0 rgba(225,6,0,0.08);
  }
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: #2c2c2c;
  font-size: 1.15rem;
  line-height: 1.75;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 1rem !important;
  border-radius: 0 !important;
}

.predelne-detail-alt .zakljucek-section h3 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.predelne-detail-alt .zakljucek-section p {
  text-align: center;
}

/* Lead paragraph styling - elegant RED, centered, full width */
.predelne-detail-alt .lead {
  color: var(--rdeca) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  font-size: 1.35rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 1rem !important;
  border-radius: 0 !important;
  text-align: center !important;
  max-width: 100%;
  width: 100%;
}

.predelne-detail-alt .proj-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
  justify-content: center;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 1rem !important;
  border-radius: 0 !important;
}
.predelne-detail-alt .proj-item.text-left {
  flex-direction: row;
}
.predelne-detail-alt .proj-item.text-right {
  flex-direction: row-reverse;
}
.predelne-detail-alt .proj-text {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  background: none !important;
  color: #222;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-weight: 400;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Strong text inside proj-text should be RED and medium weight */
.predelne-detail-alt .proj-text strong,
.predelne-detail-alt .proj-text b {
  color: var(--rdeca) !important;
  font-weight: 500 !important;
}

.predelne-detail-alt .proj-text * {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.predelne-detail-alt .proj-image {
  flex: 0 0 440px;
  max-width: 480px;
  min-width: 320px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
  border: none !important;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
}
.predelne-detail-alt .proj-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 1rem !important;
  display: block;
  transition: transform 0.25s cubic-bezier(.4,1.4,.6,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  border: none !important;
  background: none !important;
}
.predelne-detail-alt .proj-image:hover img {
  transform: scale(1.045) rotate(-1deg);
}
@media (max-width: 1100px) {
  .predelne-detail-alt .proj-text { max-width: 100%; }
  .predelne-detail-alt .proj-image { max-width: 300px; }
}
@media (max-width: 900px) {
  .predelne-detail-alt .proj-item, .predelne-detail-alt .proj-item.text-left, .predelne-detail-alt .proj-item.text-right {
    flex-direction: column !important;
    align-items: stretch;
    gap: 1.2rem;
  }
  .predelne-detail-alt .proj-image { max-width: 100%; min-width: 0; margin: 0 auto; }
}

/* Center section headings on Home page only (mobile) */
@media (max-width:760px) {
  /* Center all section headings on the Home page only (mobile phones) */
  /* target specific section headings on home page to ensure centering is applied */
  body.home-page section#nasveti .container > h2,
  body.home-page section#reference .container > h2,
  body.home-page #nasveti h2,
  body.home-page #reference h2 {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* Aggressive fallback: center all home page section headings on slightly larger mobiles
   This ensures devices that report slightly larger CSS widths still see centered headings. */
@media (max-width:820px) {
  body.home-page section#nasveti .container > h2,
  body.home-page section#reference .container > h2,
  body.home-page #nasveti h2,
  body.home-page #reference h2,
  /* Fallback: also target any section h2 inside .container on the home page */
  body.home-page .container > h2,
  body.home-page section h2 {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 600px) {
  .predelne-detail-alt .proj-text { font-size: 1.04rem; }
  .predelne-detail-alt .intro-text { font-size: 1.05rem; }
}
/* Professional detail layout for predelne stene */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  width: auto;
  height: auto;
}
.carousel-prev { left: -48px; }
.carousel-next { right: -48px; }
.carousel-prev:hover, .carousel-next:hover { color: var(--rdeca); }
.carousel-prev, .carousel-next {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
  background: #f7f7f7;
  margin-bottom: 0.7rem;
}
.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.2rem;
  transition: transform 0.25s cubic-bezier(.4,1.4,.6,1);
}
.main-img-box:hover .main-img {
  transform: scale(1.045) rotate(-1deg);
}
.thumbs-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.thumb-img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.6rem;
  box-shadow: 0 1.5px 6px 0 rgba(0,0,0,0.10);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.18s, box-shadow 0.18s, transform 0.18s;
}
.thumb-img:hover {
  opacity: 1;
  box-shadow: 0 2.5px 12px 0 rgba(225,6,0,0.13);
  transform: scale(1.08) rotate(-2deg);
}
@media (max-width: 900px) {
  .prose-pro {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-gallery-pro {
    max-width: 100%;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: flex-start;
  }
  .main-img-box {
    max-width: 60vw;
    margin-bottom: 0;
  }
  .thumbs-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
/* ==== OSNOVNI STILI ==== */
:root {
  --rdeca: #e10600;
  --rdeca-dark: #b00400;
  --crna: #0d0d0d;
  --siva: #f1f1f1;
  --temno-siva: #888;
  --bela: #ffffff;
  --transition: all 0.4s ease;
  --accent-grad: linear-gradient(90deg, rgba(225,16,0,0.95), rgba(176,6,6,0.9));
  --muted: #f7f7f7;
}

* {
  box-sizing: border-box;
  /* scroll-behavior removed - instant scroll for better UX */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--crna);
  background-color: var(--bela);
  overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

/* Remove body background for hero */
body::before{
  display: none;
}

/* ==== HEADER ==== */
.site-header {
  background-color: var(--crna);
  border-bottom: 4px solid var(--rdeca);
  color: var(--bela);
  position: sticky;
  top: 0;
  z-index: 10001;
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero container - NO padding */
.container.hero-section {
  padding: 0;
  max-width: none;
}
/* CLEAN FULLSCREEN HERO with image slider - NO GAP FROM HEADER */
#hero {
  position: relative;
  width: 100vw;
  margin: 0;
  margin-top: 0 !important;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Background image slider - JavaScript controlled for mobile compatibility */
#hero .hero-section {
  position: relative;
  overflow: hidden;
}

/* Hero background layers: two absolutely positioned divs will be used for
   crossfading images. The old ::before background is removed to avoid
   visual conflicts with the JS-controlled layers. */
#hero .hero-section::before {
  display: none;
}

/* Two background layers used for smooth crossfade */
#hero .hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity;
}

#hero .hero-section .hero-bg.active {
  opacity: 1;
}
/* hero arrow styles removed (reverted) */

/* GRADIENT OVERLAY on images - left to right for text emphasis */
#hero .hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.85) 15%,
    rgba(0, 0, 0, 0.70) 30%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.20) 60%,
    rgba(0, 0, 0, 0.05) 75%,
    transparent 85%
  );
  z-index: 1;
  pointer-events: none;
}

/* Red separator line - full width */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rdeca);
  z-index: 100;
}

.hero-section {
  display: flex;
  gap: 0;
  align-items: center;
  padding: 0;
  margin: 0;
  margin-top: 0 !important;
  margin-bottom: -2px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  background: #1a1a1a;
  width: 100%;
}

.hero-left {
  flex: 1;
  position: relative;
  z-index: 10000 !important;
  padding: 4rem 3rem 4rem 5%;
  max-width: 900px;
}

/* Bold white text - ABOVE overlay, crisp and clear */
.hero-left h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10000;
}

.hero-left p {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10000;
}

/* Hide lead paragraph until typing begins */
/* Generic typing targets start invisible until first char */
.type-target {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.type-target.typing-active {
  opacity: 1;
}

/* Pop-out animation for hero CTA button */
@keyframes heroCtaPop {
  0% { transform: scale(0.85); opacity: 0; }
  45% { transform: scale(1.05); opacity: 1; }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.hero-left .hero-cta .btn-cta {
  transform-origin: center;
  animation: heroCtaPop 0.85s cubic-bezier(0.22, 1.1, 0.32, 1) 0.2s both;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
}

/* Subtle pulse on hover only */
@keyframes heroCtaHoverPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.hero-left .hero-cta .btn-cta:hover {
  animation: heroCtaHoverPulse 0.6s ease;
}

/* WOW effects: shine sweep + glow ripple */
.hero-left .hero-cta .btn-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -160%;
  width: 60%;
  background: linear-gradient(60deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  filter: blur(2px);
  pointer-events: none;
  animation: ctaShine 1.1s ease-out 0.9s both;
}

.hero-left .hero-cta .btn-cta::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.0), 0 0 0 0 rgba(255,255,255,0.0);
  animation: ctaRipple 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes ctaShine {
  0% { left: -160%; opacity: 0; }
  10% { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

@keyframes ctaRipple {
  0% { opacity: 0.0; box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.0), 0 0 0 0 rgba(255,255,255,0.0); }
  40% { opacity: 0.75; box-shadow: 0 0 30px 8px rgba(225, 6, 0, 0.35), 0 0 10px 2px rgba(255,255,255,0.25); }
  100% { opacity: 0.0; box-shadow: 0 0 60px 18px rgba(225, 6, 0, 0.0), 0 0 0 0 rgba(255,255,255,0.0); }
}

/* Re-trigger shine on hover */
.hero-left .hero-cta .btn-cta:hover::before {
  animation: ctaShine 0.9s ease-out 0s both;
}

.hero-right {
  display: none;
}

.lead {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 1rem;
  text-align: left;
  line-height: 1.65;
  font-weight: 400;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10000;
}

.hero-cta {
  position: relative;
  z-index: 10000 !important;
  margin-top: 1.5rem;
  text-align: left;
}

.hero-cta button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--rdeca);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(225, 6, 0, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1001;
  display: inline-block;
  width: auto;
}

.hero-cta button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.hero-cta button:hover::before {
  width: 300px;
  height: 300px;
}

.hero-cta button:hover {
  background: var(--rdeca-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.5);
}

.hero-bar{height:0;display:none}

.hero-more{
  max-width:700px;
  margin-top:1rem;
  color:rgba(255,255,255,0.85);
  line-height:1.7;
  font-size:1.05rem;
}

/* Generic h1 styling - minimal - NO ANIMATION */
h1 {
  /* animation disabled - može interferirati sa hero slider */
  opacity: 1;
  transform: none;
}

/* section heading enhancement - NO ANIMATION */
section h2{font-weight:800;letter-spacing:0.6px}
section h2 span{display:inline-block;background:var(--rdeca);height:6px;width:40px;margin-left:8px;border-radius:4px;vertical-align:middle;transform:translateY(-2px);opacity:1}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand h1 {
  margin: 0;
  color: var(--rdeca);
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.brand .tagline {
  font-size: 0.9rem;
  color: var(--siva);
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: lighten;
  filter: brightness(1.1) contrast(1.05);
}

/* ==== NAVIGACIJA ==== */
.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav .nav-btn {
  background: none;
  border: none;
  color: var(--bela);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
}

.main-nav .nav-btn::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rdeca);
  transition: var(--transition);
}

.main-nav .nav-btn:hover {
  color: var(--rdeca);
}

.main-nav .nav-btn:hover::after {
  width: 100%;
}

/* Dropdown container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  color: var(--bela);
  font-size: 1rem;
  transition: var(--transition);
}

/* Red line animation like other nav buttons */
.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rdeca);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--rdeca);
}

.nav-dropdown:hover .nav-dropdown-btn::after {
  width: 100%;
}

/* Main dropdown menu - appears below button */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  background: var(--crna);
  border: 2px solid var(--rdeca);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10002; /* Higher than header (10001) */
  overflow: visible; /* Changed from hidden to visible so submenu can show outside */
  pointer-events: none; /* Prevent interference when hidden */
}

.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Enable interaction when visible */
}

/* Mobile-specific: display dropdown & submenus as stacked boxes */
@media (max-width: 768px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.12rem; /* tighter spacing between top-level items */
  }
  .nav-dropdown .dropdown-menu {
    position: static !important;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: var(--crna) !important;
    /* Removed red border so submenu visually matches other menu boxes */
    border: none !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45) !important;
    margin: 0.4rem 0 0 0;
    padding: 0.6rem 0;
  }
  .nav-dropdown .dropdown-item {
    display: block;
    margin: 0.45rem 0.8rem;
    padding: 0.7rem 0.9rem;
    background: var(--crna);
    color: var(--bela);
    border-radius: 10px;
    /* use subtle separation (shadow) instead of red border */
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: none !important;
  }
  .nav-dropdown .dropdown-item:hover,
  .nav-dropdown .dropdown-item:focus {
    background: var(--crna) !important;
    color: var(--bela) !important;
    padding-left: 0.9rem;
  }
  /* Submenu shown inside dropdown-item: stack smaller boxes */
  .nav-dropdown .submenu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin: 0.35rem 0 0 0;
    padding: 0 0;
    display: block;
  }
  .nav-dropdown .submenu-item {
    display: block;
    margin: 0.3rem 1rem;
    padding: 0.55rem 0.9rem;
    background: var(--crna);
    color: var(--bela);
    border-radius: 8px;
    /* match dropdown items: no red border, subtle shadow */
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    font-size: 0.95rem;
  }
  .nav-dropdown .submenu-item:hover,
  .nav-dropdown .submenu-item:focus {
    background: var(--crna) !important;
    color: var(--bela) !important;
  }
  /* Add underline animation like other nav buttons (left→right) */
  /* underline animation only for the Storitve & Projekti button */
  .nav-dropdown .nav-dropdown-btn {
    position: relative;
  }

  .nav-dropdown .nav-dropdown-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 3px;
    width: 0%;
    background: var(--rdeca);
    border-radius: 3px;
    will-change: width;
  }
  /* transient underline animation: expand then collapse (no persistent line) */
  @keyframes underlineFlash {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
  }

  .nav-dropdown .nav-dropdown-btn:hover::after,
  .nav-dropdown .nav-dropdown-btn:focus::after {
    animation: underlineFlash 0.72s cubic-bezier(0.16,1,0.3,1);
  }

  /* Mobile: completely disable any nav underline pseudo-elements/animations */
  .main-nav .nav-btn::after,
  .main-nav .nav-btn:hover::after,
  .nav-dropdown-btn::after,
  .nav-dropdown-btn:hover::after,
  .nav-dropdown .nav-dropdown-btn::after,
  .nav-dropdown .nav-dropdown-btn:hover::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Dropdown items */
.dropdown-item {
  position: relative;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--bela);
  font-weight: 500;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(225, 6, 0, 0.15);
  padding-left: 1.4rem;
}

.dropdown-item.has-submenu {
  display: block;
  position: relative;
}

.dropdown-item.has-submenu > span {
  display: block;
}

/* Remove the arrow - not needed */
.dropdown-item.has-submenu::after {
  display: none;
}

/* Submenu - appears to the right */
.submenu {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  background: var(--crna);
  border: 2px solid var(--rdeca);
  border-radius: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10003; /* Higher than dropdown-menu (10002) */
  pointer-events: none;
}

.dropdown-item.active .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Submenu items */
.submenu-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: none;
  border: none;
  color: var(--bela);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-item:hover {
  background: rgba(225, 6, 0, 0.2);
  padding-left: 1.5rem;
  color: #fff;
}

/* hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bela);
}

.menu-toggle svg rect {
  fill: var(--bela);
}

/* ==== SEKCIJE ==== */
.app-container {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  opacity: 1;
  will-change: opacity; /* Optimize opacity transitions */
}

/* Add padding back for sections AFTER hero */
.app-container section:not(#hero) {
  padding: 2rem 1rem;
}

/* Remove padding ONLY for predelne-stene detail section */
.app-container section#predelne-stene {
  padding: 0 !important;
  background: none !important;
  max-width: 100% !important;
}

section {
  /* NO animation - disabled to prevent interference with hero slider */
  opacity: 1;
  transform: none;
  will-change: auto; /* Prevent unnecessary GPU acceleration */
}

/* Hero section should NOT have entry animation - it's always visible */
#hero {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Disable ALL child animations when page is returning with fade-in */
/* This prevents any flicker/jump from CSS animations during the fade transition */
.fade-in-smooth * {
  animation: none !important;
}

/* But keep the main fade-in-smooth animation on the container itself */
.fade-in-smooth {
  animation: fadeInSmooth 0.5s ease-in-out forwards !important;
}

/* Permanently disable entry animations after first load to prevent re-triggering */
.no-entry-animations section,
.no-entry-animations .service-card,
.no-entry-animations .large-card,
.no-entry-animations .card,
.no-entry-animations h1,
.no-entry-animations h2,
.no-entry-animations h3,
.no-entry-animations section h2 span,
.no-entry-animations .proj-item,
.no-entry-animations .proj-text,
.no-entry-animations .proj-image,
.no-entry-animations p {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Buttons - but NOT slider arrows */
.no-entry-animations button:not(.slider-arrow) {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Images - but NOT in service sliders */
.no-entry-animations img:not(.service-image-slider img) {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* EXCEPTION: Slider arrows must keep their transform */
.no-entry-animations .slider-arrow {
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  transition: color 0.2s ease !important;
  animation: none !important;
}

.no-entry-animations .slider-arrow:hover,
.no-entry-animations .slider-arrow:focus,
.no-entry-animations .slider-arrow:active {
  transform: translateY(-50%) !important;
}

/* EXCEPTION: Service slider images - let JavaScript control transitions */
.no-entry-animations .service-image-slider img {
  /* Do NOT force transition here; JS toggles transition between 'none' and '0.8s' */
  animation: none !important;
}

/* DO NOT disable transitions - keep them for smooth interactions */
/* Removed: transition: none !important; */

/* Hero slider is now controlled by JavaScript for mobile compatibility */

/* Keep essential transitions for interactive elements */
.no-entry-animations button:hover,
.no-entry-animations a:hover,
.no-entry-animations .card:hover {
  transition: all 0.3s ease !important;
}

/* Make sure sections are visible immediately */
.no-entry-animations section {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Make sure text and cards are visible */
.no-entry-animations h1,
.no-entry-animations h2,
.no-entry-animations h3,
.no-entry-animations p,
.no-entry-animations .card,
.no-entry-animations .service-card,
.no-entry-animations .project-card {
  opacity: 1 !important;
  visibility: visible !important;
}

/* BUT prevent transform: none on elements that need specific transforms */
.no-entry-animations .slider-arrow {
  transform: translateY(-50%) !important; /* Keep arrow centering */
}

/* Disable section animations when page is returning with fade-in */
.fade-in-smooth section,
.fade-in-smooth .service-card,
.fade-in-smooth .large-card,
.fade-in-smooth .card,
.fade-in-smooth h1,
.fade-in-smooth h2,
.fade-in-smooth h3,
.fade-in-smooth section h2 span {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Hero slider controlled by JavaScript */

.prose{line-height:1.7;color:#333;text-align:left}
.prose .lead{color:#222;text-shadow:none;font-weight:500}


section h2 {
  color: var(--crna);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

/* small red square accent before section headings to visually separate blocks */
section h2::before{content:'';display:inline-block;width:8px;height:8px;background:var(--rdeca);margin-right:12px;border-radius:2px;vertical-align:middle}
section h2{display:inline-block;padding-left:6px}

section h2::after{display:block;width:60px;height:3px;background:var(--rdeca);margin:0.5rem auto;content:'';opacity:0.95}

section p {
  max-width: 900px;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* ==== GUMBI ==== */
button,
.link-btn {
  cursor: pointer;
  background: var(--rdeca);
  color: var(--bela);
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-weight: bold;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

button:hover,
.link-btn:hover {
  background: var(--rdeca-dark);
  transform: scale(1.03);
}

/* "Nazaj" vrstica */
.back-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-left: 0;
  padding-left: 0.75rem;
  padding-top: 0.75rem;
  /* Test background removed */
  background: transparent;
}

.back-row-bottom {
  margin-left: 0;
  padding-left: 0.75rem;
  padding-top: 0;
  padding-bottom: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Corner positioning ONLY for full O nas detail page */
#o-podjetju-detail { position: relative; }
#o-podjetju-detail .back-row {
  position: absolute;
  top: 8px;
  left: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  gap: 0; /* tighten layout */
}
#o-podjetju-detail .back-row-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
}
#o-podjetju-detail .back-row .btn-back,
#o-podjetju-detail .back-row-bottom .btn-back {
  margin: 0;
}

/* ==== STORITVE & PROJEKTI ==== */
.cards {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

/* 2x2 fixed grid used for product/system previews - REDESIGNED */
.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
}

/* Service card - no box, free layout */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: cardSlideIn 0.6s ease-out forwards;
}

/* Stagger effect - each card appears with delay */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideIn {
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Image slider container */
.service-image-slider {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  pointer-events: none;
}

.service-image-slider img.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.service-image-slider img.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.service-image-slider img.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: auto;
  height: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color 0.2s ease !important;
  font-size: 3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
  padding: 0.5rem;
  outline: none !important;
  box-shadow: none !important;
  margin: 0;
}

.slider-arrow:hover {
  color: rgba(255, 255, 255, 1) !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  transform: translateY(-50%) !important;
}

.slider-arrow:focus {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: translateY(-50%) !important;
}

.slider-arrow:active {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: translateY(-50%) !important;
}

.slider-arrow.left {
  left: 15px;
}

.slider-arrow.right {
  right: 15px;
}

/* Service text content - no box */
.service-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: var(--crna);
}

.service-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  text-align: left;
}

.service-content .btn-more {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.large-card { 
  padding: 1.4rem; 
  opacity: 0;
  transform: translateY(30px);
  animation: cardSlideIn 0.6s ease-out forwards;
}

/* Stagger effect - each card appears with delay */
.large-card:nth-child(1) { animation-delay: 0.1s; }
.large-card:nth-child(2) { animation-delay: 0.2s; }
.large-card:nth-child(3) { animation-delay: 0.3s; }
.large-card:nth-child(4) { animation-delay: 0.4s; }

.large-card .image-box { 
  height: 220px; 
  border-radius:14px; 
  overflow:hidden; 
  box-shadow:0 4px 20px rgba(0,0,0,0.08); 
  transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease; 
}

.large-card .image-box img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  transition:transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.large-card:hover .image-box { 
  transform:translateY(-5px) scale(1.02); 
  box-shadow:0 12px 40px rgba(225, 6, 0, 0.15), 0 6px 20px rgba(0,0,0,0.1); 
}

.large-card:hover .image-box img { 
  transform:scale(1.08); 
}

/* Buttons used in the new handlers */
.btn-more { 
  background: transparent; 
  border: 2px solid var(--rdeca); 
  color: var(--rdeca); 
  padding: 0.5rem 0.9rem; 
  border-radius: 8px; 
  font-weight: 700;
  min-height: 44px; /* Touch-friendly na mobilnih */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-more:hover { background: var(--rdeca); color: var(--bela) }

.btn-home, .btn-back { 
  background: transparent; 
  border: 1px solid rgba(0,0,0,0.08); 
  color: #222; 
  padding: 0.5rem 0.9rem; 
  border-radius: 8px;
  min-height: 44px; /* Touch-friendly */
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-home:hover { border-color: var(--rdeca); color: var(--rdeca) }
.btn-back:hover { background: var(--rdeca); color: var(--bela); border-color: var(--rdeca) }

.btn-cta { 
  background: linear-gradient(90deg,var(--rdeca),var(--rdeca-dark)); 
  padding: 0.8rem 1.2rem; 
  border-radius: 10px; 
  color: #fff;
  min-height: 48px; /* Touch-friendly */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Slightly larger typography for headings and better spacing */
h1 { font-size: 2.2rem; margin: 0 0 0.6rem 0 }
.lead { font-size: 1.12rem }
.container { padding-left: 1.1rem; padding-right: 1.1rem }

.card {
  background: var(--bela);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  position:relative;overflow:hidden;
}

.card p {
  text-align: center;
}

/* section divider used on home to separate hero/storitve/projekti/about/contact */
.section-divider { 
  height: 0;
  margin: 0;
  border: none;
}

/* First section after hero - no gap */
#hero + .section-divider {
  display: none;
}

/* Lightbox styles */
.lightbox{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:2000}
.lightbox.active{opacity:1;pointer-events:auto}
.lightbox-content{background:#fff;max-width:900px;width:94%;border-radius:12px;overflow:hidden;position:relative}
.lightbox-close{position:absolute;right:8px;top:8px;background:transparent;border:none;font-size:28px;padding:6px;cursor:pointer}
.lightbox-body{padding:2rem;display:flex;gap:1rem;align-items:center}
.lb-img{width:220px;height:220px;border-radius:8px;background:linear-gradient(135deg,#fafafa,#eee);display:flex;align-items:center;justify-content:center;font-size:48px}
.lb-caption{font-size:1rem;color:#222}

/* focus outlines for accessibility */
button:focus, .nav-btn:focus, .card:focus, .image-box:focus{outline:3px solid rgba(225,16,0,0.16);outline-offset:3px}

/* Remove ALL focus/hover effects for slider arrows */
.slider-arrow:focus,
.slider-arrow:hover,
.slider-arrow:active,
.slider-arrow:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.card:hover {
  border-color: var(--rdeca);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateY(-10px) scale(1.02);
}

/* floating accent on cards */
.card::after{content:'';position:absolute;right:-30%;top:-30%;width:120%;height:120%;background:radial-gradient(circle at 20% 20%, rgba(225,16,0,0.04), transparent 20%), radial-gradient(circle at 80% 80%, rgba(0,0,0,0.02), transparent 20%);transform:rotate(8deg);pointer-events:none}

.card .card-title{font-weight:800;margin:0.5rem 0}

/* image placeholder improved */
.image-box{background:linear-gradient(135deg,#fafafa,#eee);border-radius:12px;height:220px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:0}
.image-box img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:12px;display:block}
.image-box .placeholder-icon{font-size:14px;color:#666;opacity:0.9}
.image-box .placeholder-tag{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,0.06);padding:0.3rem 0.5rem;border-radius:6px;font-size:0.8rem}

/* CTA and special buttons visual */
.btn-more{transition:transform .18s ease}
.btn-more:active{transform:translateY(2px)}

/* detail page image grid */
.prose-container .image-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1.2rem}
.prose-container .image-grid .image-box{height:220px;overflow:hidden;padding:0}

/* small, tasteful color shift animation for accent */
.hero-visual, .card{transition:transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 420ms}

/* responsive tweak: 2x2 grid becomes single column on narrow screens */
@media (max-width: 900px){
  .grid-2x2{grid-template-columns:1fr}
  .hero-right .hero-visual{height:220px}
}

/* ABOUT TWO-COLUMN LAYOUT */
.about-grid { padding: 2.4rem 0; }
.grid-two-col { display:grid; grid-template-columns: 1fr 360px; gap:2rem; align-items:start }
.about-text { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98)); padding:2.5rem 3rem; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,0.04); text-align:center; max-width:800px; margin:0 auto; display:flex; flex-direction:column; justify-content:center; align-items:center; }

/* Override for O nas detail page - left align everything */
#o-podjetju-detail .about-text {
  text-align: left !important;
  align-items: flex-start !important;
}

.about-text h2{font-size:1.6rem}
.about-text p{color:#333;line-height:1.6;text-align:center;font-size:0.95rem;}
.about-text ul{margin-left:1.1rem}

.about-side { display:flex; flex-direction:column; gap:1rem }
.map-box { border-radius:12px; overflow:hidden; border:1px solid rgba(0,0,0,0.06); background:var(--muted); box-shadow:0 8px 20px rgba(0,0,0,0.04) }
.map-placeholder { height:200px; display:flex; align-items:center; justify-content:center; color:#444; font-weight:700 }
.address{padding:0.8rem 1rem; background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,250,250,0.99));}
.address strong{display:block;margin-bottom:.4rem}

.contact-info{padding:0.8rem 1rem;background:transparent}
.contact-info h4{margin:0 0 .6rem 0}
.contact-info p{margin:0.25rem 0}
.contact-info p strong{font-weight:800}

.inquiry{padding:0.8rem 1rem;border-radius:10px;background:linear-gradient(180deg, #fff, #fbfbfb)}
.inquiry form{display:flex;flex-direction:column;gap:0.6rem}
.inquiry input, .inquiry textarea{padding:0.7rem;border-radius:8px;border:1px solid #e6e6e6}
.inquiry textarea{min-height:100px}
.inquiry .btn-cta{align-self:stretch}

@media (max-width: 900px){
  .grid-two-col { grid-template-columns: 1fr; }
}

/* subtle SVG decoration in footer/sections */
.decor-svg { position:absolute; right:0; top:-30px; width:220px; height:220px; opacity:0.06; pointer-events:none }

/* Animated SVG decor */
.decor-svg{animation:decorFloat 8s ease-in-out infinite; transform-origin:50% 50%}
@keyframes decorFloat{0%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-8px) rotate(2deg)}100%{transform:translateY(0) rotate(0deg)}}

/* hero extra SVG decor */
.hero-decor-extra{opacity:0.09;animation:decorFloat 9s ease-in-out infinite;pointer-events:none}

/* small animated dot appended to section dividers */
.section-divider{position:relative}
.section-anim-dot{display:none}
@keyframes dotPulse{0%{transform:scale(0.9);opacity:0.9}50%{transform:scale(1.15);opacity:1}100%{transform:scale(0.9);opacity:0.9}}

/* refined gallery for product details */
.detail-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:0.8rem;margin-top:1.2rem}
.detail-gallery .gallery-item{background:linear-gradient(135deg,#fafafa,#f0f0f0);border-radius:10px;padding:0.6rem;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:140px;border:1px solid rgba(0,0,0,0.04)}
.detail-gallery .gallery-item .caption{font-size:0.9rem;color:#444;margin-top:0.5rem;text-align:center}

@media (max-width:900px){
  .detail-gallery{grid-template-columns:repeat(2,1fr)}
}

/* FAQ styles */
.faq-grid, .faq-list{max-width:900px;margin:0 auto}
.faq-item{border-bottom:1px solid rgba(255,255,255,0.03);padding:0.8rem 0}
.faq-q{font-weight:700;color:var(--crna);cursor:pointer}
.faq-q.open{color:var(--rdeca)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .28s ease, padding .2s;opacity:0;color:#333}
.faq-a.open{max-height:400px;padding-top:0.6rem;opacity:1}

/* Nasveti accordion styles - NAZAJ na originalno levo poravnavo */
.nasveti-intro {
  text-align: left;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: 920px;
  width: 100%;
}

.nasveti-intro p {
  text-align: left !important;
  margin: 0;
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
  max-width: 920px;
}

.nasvet-list{max-width:920px;margin:0 auto}
.nasvet-item{border-bottom:1px solid rgba(0,0,0,0.04);padding:0.6rem 0}
.nasvet-q{display:flex;align-items:center;gap:12px;font-weight:800;cursor:pointer;color:var(--crna)}
.nasvet-q .nasvet-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;background:var(--rdeca);color:#fff;font-weight:800}
.nasvet-q.open .nasvet-icon{background:var(--rdeca-dark)}
.nasvet-a{max-height:0;overflow:hidden;transition:max-height .32s ease, padding .2s;opacity:0;color:#333;padding-left:40px;text-align:left}
.nasvet-a.open{max-height:1600px;padding-top:0.6rem;opacity:1;padding-bottom:0.6rem}
.nasvet-a p,
.nasvet-a ul {
  text-align: left !important;
  margin-left: 0;
  line-height: 1.7;
}

/* Projekti list on Home: no card borders, alternate text/image layout */
.projekti-list{display:flex;flex-direction:column;gap:2.4rem;margin-top:2rem}
.proj-item{display:flex;gap:2rem;align-items:center;transition:transform .28s ease}
.proj-item:hover{transform:translateX(6px)}
.proj-text{flex:1;text-align:left}
.proj-text h3{margin:0 0 0.6rem 0;font-size:1.4rem;color:var(--crna)}
.proj-text p{margin:0 0 1rem 0;line-height:1.5;color:#444}
.proj-text button{align-self:flex-start}
.proj-image{
  flex:0 0 320px;
  height:220px;
  background:#f8f8f8;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  position:relative;
}
.proj-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform 0.3s ease;
  display:block;
}
.proj-image .image-placeholder{font-size:1.2rem;color:#aaa}
.proj-item:hover .proj-image{transform:scale(1.02);box-shadow:0 6px 30px rgba(0,0,0,0.12);}
.proj-item:hover .proj-image img{transform:scale(1.05);}
@media (max-width: 900px){
  .proj-item{flex-direction:column}
  .proj-text{order:1} /* Besedilo prvo */
  .proj-image{order:2;flex:0 0 auto;width:100%;height:200px} /* Slika drugo */
}

/* animated gradient sweep on hero visual - DISABLED to prevent interference */

/* editorial entry animations: image and text will animate when section receives .reveal */
.detail-layout .lead-image, .lead-stacked .lead-image, .detail-layout .detail-text { opacity:0; transform:translateY(18px); transition:opacity 520ms ease, transform 520ms ease }
.prose-container.reveal .detail-layout .lead-image, .prose-container.reveal .lead-stacked .lead-image, .prose-container.reveal .detail-layout .detail-text, .prose-container.reveal .prose { opacity:1; transform:none }

/* small stagger for gallery thumbs */
.small-grid .image-box { opacity:0; transform:translateY(12px); transition:opacity 420ms ease, transform 420ms ease }
.prose-container.reveal .small-grid .image-box { opacity:1; transform:none }

/* micro interactions for links and headings */
.about-text a{color:var(--rdeca);text-decoration:none;border-bottom:1px dashed rgba(225,16,0,0.12)}
.about-text a:hover{color:var(--rdeca-dark)}

/* contact-panel styling */
.contact-panel{display:grid;grid-template-columns: 520px 420px;gap:3.6rem;align-items:start;padding-top:1rem;margin:0 auto;justify-content:center}
.contact-form-wrap{padding:0}
.contact-form-wrap form{max-width:none;margin:0;display:flex;flex-direction:column;gap:1rem}
.contact-form-wrap input, .contact-form-wrap textarea{width:100%;padding:12px 14px;border-radius:8px;border:1px solid #ebecec;background:#fff;box-shadow:none;font-size:1rem;color:#333}
.contact-form-wrap input{height:46px}
.contact-form-wrap textarea{min-height:140px;resize:vertical;padding-top:12px}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus{outline:2px solid rgba(225,16,0,0.12);box-shadow:0 10px 24px rgba(225,16,0,0.04)}
.btn-submit{display:flex;align-items:center;gap:12px;padding:12px 20px;border-radius:8px;background:linear-gradient(90deg,var(--rdeca),var(--rdeca-dark));box-shadow:0 8px 18px rgba(0,0,0,0.08);font-weight:800;font-size:1rem;border:none;width:100%;height:52px}
.btn-submit .btn-label{flex:1;text-align:center;color:#fff;display:inline-block}
.btn-submit .btn-icon{flex:0 0 40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;padding:6px;border:2px solid rgba(225,16,0,0.08)}
.btn-submit .btn-icon svg path{fill:var(--rdeca)}

.contact-brief{padding:1rem 0.6rem;display:flex;flex-direction:column;gap:18px}
.contact-item{display:flex;gap:14px;align-items:center}
.ci-icon{position:relative;width:44px;height:44px;border-radius:50%;background:rgba(225,16,0,0.08);display:flex;align-items:center;justify-content:center;border:none}
 .ci-icon::after{content:'';position:absolute;width:24px;height:24px;border-radius:50%;background:#fff;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 0 1px rgba(225,16,0,0.02)}
 .ci-icon svg{position:relative;z-index:2;width:12px;height:12px;fill:var(--rdeca);opacity:0.98}
.ci-text{display:flex;flex-direction:column}
.ci-text strong{font-weight:800;margin-bottom:6px}

.mapbox{height:240px;border-radius:12px;overflow:hidden;border:1px solid rgba(0,0,0,0.03);background:#f7f7f8;display:flex;align-items:center;justify-content:center;padding:30px}
.mapbox .map-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b33;text-align:center;padding:0 20px}
.mapbox .map-placeholder svg{width:36px;height:36px;fill:var(--rdeca);opacity:0.98}
.mapbox:hover{cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,0.06);transform:translateY(-2px)}
.contact-brief{padding:1rem 0.6rem;display:flex;flex-direction:column;gap:18px}
.contact-item{display:flex;gap:14px;align-items:center}
.ci-icon{position:relative;width:44px;height:44px;border-radius:50%;background:rgba(225,16,0,0.08);display:flex;align-items:center;justify-content:center;border:none}
.ci-icon::after{content:'';position:absolute;width:24px;height:24px;border-radius:50%;background:#fff;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 0 1px rgba(225,16,0,0.02)}
.ci-icon svg{position:relative;z-index:2;width:12px;height:12px;fill:var(--rdeca);opacity:0.98}
.ci-text{display:flex;flex-direction:column}
.ci-text strong{font-weight:800;margin-bottom:6px}
.mapbox{height:240px;border-radius:12px;overflow:hidden;border:1px solid rgba(0,0,0,0.03);background:#f7f7f8;display:flex;align-items:center;justify-content:center;padding:30px}
.mapbox .map-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b33;text-align:center;padding:0 20px}
.mapbox .map-placeholder svg{width:36px;height:36px;fill:var(--rdeca);opacity:0.98}
.mapbox:hover{cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,0.06);transform:translateY(-2px)}

/* detail editorial layout */
.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;align-items:start}
.detail-layout.left-image .lead-image{grid-column:1}
.detail-layout.left-image .detail-text{grid-column:2}
.detail-layout.right-image .lead-image{grid-column:2}
.detail-layout.right-image .detail-text{grid-column:1}
.lead-image{height:360px;overflow:hidden}
.lead-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

.lead-text-hero{height:360px;display:flex;align-items:flex-start;justify-content:center;padding-top:1.6rem;background:linear-gradient(180deg, rgba(250,250,250,0.98), rgba(245,245,245,0.98));border-radius:12px;margin-bottom:1rem}
.lead-text-hero .lead-text-inner{max-width:920px;padding:1.8rem 1.4rem 1.4rem;text-align:left}
.lead-text-hero .lead-text-inner h2{margin-top:0;margin-bottom:0.6rem}
.lead-text-hero .lead-text-inner .prose{max-width:none;margin:0}
.lead-text-hero .lead-text-inner .lead{font-size:1rem;margin-bottom:0.6rem}
.small-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.8rem;margin-top:1rem}
.predelne-right .image-box{height:140px}
.lead-image .placeholder-icon{font-size:60px}

@media (max-width: 900px){
  .contact-panel{grid-template-columns:1fr}
  .detail-layout{grid-template-columns:1fr}
  .lead-image{height:260px}
  .mapbox{height:180px}
}

/* Precise contact layout for large desktop to match supplied measurements image */
@media (min-width: 1200px) {
  /* Center the contact panel instead of left-aligning */
  #kontakt .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Two fixed columns matching exact widths */
  .contact-panel {
    grid-template-columns: 424px 424px;
    gap: 48px; /* space between left and right = 48 (679 - (207+424)) */
    align-items: start;
  }

  /* Left form: exact sizing for inputs and textarea */
  .contact-form-wrap {
    width: 424px;
    min-height: 358px; /* full left column height per spec */
  }

  .contact-form-wrap form { width: 424px; }

  .contact-form-wrap input[type="text"],
  .contact-form-wrap input[type="email"],
  .contact-form-wrap input[type="tel"] {
    width: 424px;
    height: 42px; /* per spec */
    margin: 0 0 16px 0; /* vertical spacing between inputs = 16px */
    box-sizing: border-box;
  }

  .contact-form-wrap textarea {
    width: 424px;
    height: 114px; /* per spec */
    margin: 0 0 22px 0; /* space between textarea and button = 22px */
    box-sizing: border-box;
    resize: none;
  }

  .btn-submit {
    width: 424px;
    height: 48px; /* per spec */
    align-self: start;
    padding: 0 18px;
    box-sizing: border-box;
    margin-top: 0;
  }

  /* Right column: contact items and map box sizing */
  .contact-brief { width: 424px; }

  .contact-item { margin-bottom: 24px; }

  /* icon sizes roughly match provided coordinates */
  .ci-icon { width: 32px; height: 32px; }
  .ci-icon::after { width: 20px; height: 20px; }
  .ci-icon svg { width: 16px; height: 16px; }

  /* Map box exact size */
  .mapbox { width: 424px; height: 256px; }
}

.card h3 {
  color: var(--crna);
}

/* Contact section reveal animations and micro-interactions */
.contact-panel{opacity:0;transform:translateY(10px);transition:opacity 520ms ease, transform 520ms ease}
section.reveal .contact-panel{opacity:1;transform:none}
section#kontakt .contact-panel{opacity:1 !important;transform:none !important}
.contact-panel .contact-form-wrap, .contact-panel .contact-brief{opacity:0;transform:translateY(6px);transition:opacity 420ms ease, transform 420ms ease}
section.reveal .contact-panel .contact-form-wrap, section.reveal .contact-panel .contact-brief{opacity:1;transform:none}
section#kontakt .contact-panel .contact-form-wrap, section#kontakt .contact-panel .contact-brief{opacity:1 !important;transform:none !important}

/* Button micro-animation: plane icon slide */
.btn-submit .btn-icon{transition:transform 260ms ease}
.btn-submit:hover .btn-icon{transform:translateX(6px)}

/* subtle focus styles for contact inputs */
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus{outline:2px solid rgba(225,16,0,0.12);box-shadow:0 8px 20px rgba(225,16,0,0.06)}

.card p {
  color: var(--temno-siva);
}

/* slike */
.image-box {
  background: var(--siva);
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  height: 180px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* CTA and buttons */
button{box-shadow:0 6px 18px rgba(225,16,0,0.12)}

/* readable article container - default box for all EXCEPT predelne-stene */
.prose-container{
  max-width:900px;
  margin:0 auto;
  padding:1.6rem;
  background:var(--bela);
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.04);
  box-shadow:0 8px 30px rgba(0,0,0,0.04);
}

/* Override for predelne-stene - NO BOX */
section#predelne-stene.prose-container,
section#izolacija.prose-container,
section#akusticne-obloge.prose-container,
section#spuscani-stropi.prose-container,
section#o-podjetju-detail {
  max-width: 100%;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Add comfortable vertical breathing room for O nas detail */
#o-podjetju-detail {
  padding-top: 6rem !important;
  padding-bottom: 7rem !important; /* extra space so bottom button doesn't crowd */
}

/* Extra breathing around the text block itself */
#o-podjetju-detail .about-text {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.prose-container .prose {
  text-align: left;
}

.prose-container .prose p,
.prose-container .prose ul,
.prose-container .prose h3,
.prose-container .prose h4 {
  margin-left: 0;
  text-align: left;
}

/* About detail visual tuning: make the full about page read like the rest of the site */
#o-podjetju-detail .about-text {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  color: #222;
  line-height: 1.85;
  font-size: 1rem;
  text-align: left !important;
}

#o-podjetju-detail .about-text h2 {
  font-size: 1.8rem;
  margin-top: 0;
  text-align: left !important;
}

#o-podjetju-detail .about-text h3 {
  text-align: left !important;
}

#o-podjetju-detail .about-text p {
  text-align: left !important;
  font-weight: 400;
}

#o-podjetju-detail .about-text .intro-text p {
  font-size: 1.06rem;
  line-height: 1.75;
  font-weight: 400;
  color: #222;
  margin-bottom: 1rem;
  text-align: left !important;
}

#o-podjetju-detail .about-text .proj-text p {
  font-weight: 400;
}

#o-podjetju-detail .about-text .zakljucek-section {
  text-align: center;
  max-width: 900px;
  margin: 2rem auto;
}

#o-podjetju-detail .about-text .zakljucek-section h3 {
  text-align: center !important;
}

#o-podjetju-detail .about-text .zakljucek-section p {
  text-align: center !important;
  font-weight: 400;
}

#o-podjetju-detail .about-text ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}



/* subtle transitions */
.fade-in{animation:fadeIn 0.6s ease both}

/* ==== OBRAZEC ==== */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--rdeca);
}

/* status sporočila */
#formStatus {
  text-align: left;
  margin-top: 1rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

#formStatus.form-error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

#formStatus.form-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

#formStatus.form-sending {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==== FOOTER ==== */
.site-footer {
  background: var(--crna);
  color: var(--bela);
  border-top: 4px solid var(--rdeca);
  padding: 2rem 1rem;
  text-align: left;
}

.site-footer a {
  color: var(--rdeca);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Footer inner grid */
/* Footer grid tuned to match screenshot proportions */
.footer-inner{display:flex;flex-wrap:nowrap;gap:2rem;align-items:flex-start;justify-content:space-between;padding-bottom:1rem}
/* ensure each column keeps its intended width */
.footer-col.company{flex:0 0 260px}
.footer-col.quick-nav{flex:0 0 220px}
.footer-col.policies{flex:0 0 220px}
.footer-col.social{flex:0 0 140px;display:flex;flex-direction:column;align-items:flex-end}
.footer-col h3{color:var(--bela);margin:0 0 .6rem 0;font-size:1.08rem}
.footer-col h4{color:var(--rdeca);margin:0 0 .6rem 0;font-size:0.98rem}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col ul li{margin:0.5rem 0;color:rgba(255,255,255,0.88);font-size:0.95rem;line-height:1.45}
.footer-col .contact-list svg, .footer-col .social-link svg{margin-right:8px;vertical-align:middle;fill:var(--rdeca)}
.footer-col.company .contact-list{padding:0;margin:0}
.footer-col.company .contact-list li{display:flex;align-items:flex-start;gap:12px;padding-left:0}
.footer-col.company .contact-list li svg{margin-top:4px;flex:0 0 18px}
.footer-col.company{text-align:left}
.footer-col.company h3{font-weight:800;font-size:1.12rem}
.footer-col.company .contact-list li{color:rgba(255,255,255,0.92);line-height:1.35}
.footer-col.company .contact-list li svg{fill:var(--rdeca);opacity:0.95}

/* Quick nav should look like a simple link list and be left-aligned */
.footer-col.quick-nav ul{padding-left:6px}
.footer-col.quick-nav li{margin:0.45rem 0}
.footer-col.quick-nav .nav-btn{background:none;border:none;color:rgba(255,255,255,0.92);padding:0;font-weight:600;cursor:pointer;text-align:left;display:inline-block}
.footer-col.quick-nav .nav-btn:hover{color:var(--rdeca)}

.footer-col.policies a{color:rgba(255,255,255,0.9);display:inline-block}
.social-icons{display:flex;gap:0.6rem;align-items:center}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,0.02);color:var(--bela);transition:background .18s}
.social-link:hover{background:rgba(225,16,0,0.12);color:var(--rdeca)}
.footer-bottom{padding-top:1rem;text-align:center}
.footer-hr{border:0;height:1px;background:rgba(255,255,255,0.06);margin:0 0 18px}
.site-footer{font-size:15px}
.site-footer .copyright{color:rgba(255,255,255,0.6);padding:14px 0 6px}

@media (max-width:900px){
  .footer-inner{display:grid;grid-template-columns:1fr;gap:1rem}
  .footer-col.company{order:1;text-align:left}
  .footer-col.quick-nav{order:2}
  .footer-col.policies{order:3}
  .footer-col.social{order:4;align-items:flex-start}
  .footer-bottom{text-align:center}
}

/* ==== ANIMACIJE ==== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInSmooth {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade in animation for back navigation */
/* Reveal (AOS-like) */
.reveal-hidden { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal { opacity: 1 !important; transform: translateY(0) !important; }

/* Hero section should never have reveal animations */
#hero .hero-section,
#hero .hero-section.reveal-hidden,
#hero .hero-section.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Card reveal specifics */
.card.reveal { box-shadow: 0 18px 40px rgba(0,0,0,0.12); transform: translateY(-6px) scale(1.01); }

/* image placeholders grid helper */
.grid.md\:grid-cols-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; }

/* ==== TESTIMONIALS ==== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.32s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(225, 16, 0, 0.12);
  border-color: rgba(225, 16, 0, 0.08);
}

.testimonial-stars {
  font-size: 1.4rem;
  color: #FFD700;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  flex: 1;
  line-height: 1.7;
  color: #333;
  font-size: 0.98rem;
  text-align: left;
  margin: 0;
}

.testimonial-author {
  font-weight: 700;
  color: var(--rdeca);
  margin: 0;
  padding-top: 0.25rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 1rem;
  text-align: left;
}

.testimonials-carousel .testimonial-text {
  margin: 0 0 0.35rem 0;
  line-height: 1.5;
}

/* Carousel styles for testimonials */
.testimonials-carousel {
  position: relative;
  max-width: 1100px;
  margin: 2.4rem auto 0 auto;
  padding: 1rem;
  min-height: auto;
  overflow: hidden;
}

.testimonials-carousel .testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease;
  padding: 1.6rem 2rem;
  box-sizing: border-box;
}

.testimonials-carousel .testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonials-carousel .testimonial-slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

.testimonials-carousel .testimonial-slide.exit-right {
  transform: translateX(100%);
  opacity: 0;
}


/* Carousel controls outside the box (left & right) */
.testimonials-wrap { position: relative; max-width: 1100px; margin: 2.4rem auto 0 auto; }
.testimonials-carousel { min-height: auto; position: relative; overflow: hidden; }
.testimonials-carousel .testimonial-slide { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; min-height: var(--testimonials-min-height); width: 100%; box-sizing: border-box; }
.testimonials-carousel .testimonial-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: var(--testimonials-min-height);
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  /* Only animate horizontal movement and opacity */
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease;
  will-change: transform, opacity;
}

.testimonials-carousel .testimonial-slide.active {
  z-index: 2;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  width: auto;
  height: auto;
}
.carousel-prev { left: -48px; }
.carousel-next { right: -48px; }
.carousel-prev:hover, .carousel-next:hover { color: var(--rdeca); }
/* Remove any default focus outline but keep accessible focus-visible */
.carousel-prev:focus, .carousel-next:focus { outline: none }
.carousel-prev:focus-visible, .carousel-next:focus-visible { outline: 3px solid rgba(225,16,0,0.12); border-radius: 6px }

@media (max-width:900px) {
  .testimonials-carousel { padding: 0.8rem; }
  .testimonials-carousel .testimonial-slide { padding: 1.2rem; }
  /* mobile: keep default sizing */
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==== RESPONSIVE ==== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding: 0 1.5rem;
  }
  
  /* Adjust back-row margin to match container padding */
  .back-row,
  .back-row-bottom {
    margin-left: -1.5rem;
    padding-left: 1.5rem;
  }

  .hero-left h1 {
    font-size: 2.8rem;
  }

  .hero-left p {
    font-size: 1.15rem;
  }

  .grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .service-image-slider {
    height: 300px;
  }

  .contact-panel {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Header adjustments */
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--crna);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-top: none;
    border-left: none;
    padding: 1rem 0;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    align-items: stretch;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav .nav-btn {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* Ensure no extra vertical gap is reserved by collapsed dropdowns */
  .nav-dropdown .dropdown-menu {
    margin: 0;
    padding-top: 0; /* ensure no extra padded gap above submenu */
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-item {
    padding: 0.66rem 1.1rem; /* slightly reduced */
    margin: 0; /* remove extra margins so top-level spacing is consistent */
    border-bottom: none; /* Odstranjena rdeča črta */
  }

  .dropdown-item:hover {
    padding-left: 1.5rem;
  }

  .dropdown-item::after {
    content: "▼" !important;
    transform: rotate(0deg) !important;
    transition: transform 0.3s ease;
  }

  .dropdown-item.active::after {
    transform: rotate(180deg) !important;
  }

  /* Mobile submenu */
  .submenu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none; /* Odstranjena rdeča črta */
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-item.active .submenu {
    max-height: 400px;
  }

  .submenu-item {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }

  .submenu-item:hover {
    padding-left: 2.2rem;
  }

  .menu-toggle {
    display: block;
    background: var(--crna);
    border-radius: 6px;
    padding: 8px;
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--rdeca); /* closed state: red border */
  }

  /* Make hamburger menu lines RED on mobile/tablet */
  .menu-toggle svg rect {
    fill: var(--rdeca);
    transition: fill 0.3s ease;
  }

  /* When menu is open (active state) */
  .menu-toggle.active {
    background: var(--rdeca);
    /* keep border visible when active; change if you prefer no border */
    border-color: var(--rdeca);
  }

  .menu-toggle.active svg rect {
    fill: var(--crna);
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .brand-logo {
    height: 50px;
  }

  /* Hero section */
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-left {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .hero-cta button {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  .hero-right {
    display: none;
  }

  /* Grids */
  .grid-2x2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-image-slider {
    height: 280px;
  }

  /* Projekti layout */
  .proj-item {
    flex-direction: column;
  }

  .proj-text {
    order: 1; /* Besedilo prvo */
  }

  .proj-image {
    order: 2; /* Slika drugo */
    flex: 0 0 auto;
    width: 100%;
    height: 220px;
  }

  /* Contact panel */
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrap,
  .contact-brief {
    width: 100%;
  }

  .contact-form-wrap form {
    width: 100%;
  }

  .contact-form-wrap input,
  .contact-form-wrap textarea,
  .btn-submit {
    width: 100%;
  }

  .mapbox {
    width: 100%;
    height: 220px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col.company,
  .footer-col.quick-nav,
  .footer-col.policies,
  .footer-col.social {
    flex: 1;
    width: 100%;
    align-items: flex-start;
  }

  .footer-col.social {
    align-items: flex-start;
  }

  /* Detail layout */
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .lead-image {
    height: 260px;
  }

  .lead-text-hero {
    height: auto;
    min-height: 260px;
  }

  /* About two-column */
  .grid-two-col {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Detail gallery */
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .small-grid {
    grid-template-columns: 1fr;
  }

  /* Typography adjustments */
  section h2 {
    font-size: 1.8rem;
  }

  .about-text {
    padding: 2rem 1.5rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Header */
  .brand-logo {
    height: 40px;
  }

  .header-inner {
    padding: 0.8rem 0;
  }

  /* Hero */
  .hero-section {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-left {
    padding: 1.5rem 1rem;
  }

  .hero-left h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-left p,
  .lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-cta button {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
    width: auto;
  }

  /* Section headings */
  section h2 {
    font-size: 1.6rem;
  }

  section h2::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
  }

  /* Cards */
  .service-card {
    gap: 0.8rem;
  }

  .service-image-slider {
    height: 240px;
  }

  .slider-arrow {
    font-size: 2rem;
    padding: 0.3rem;
  }

  .slider-arrow.left {
    left: 8px;
  }

  .slider-arrow.right {
    right: 8px;
  }

  .service-content h3 {
    font-size: 1.3rem;
  }

  .service-content p {
    font-size: 0.95rem;
  }

  /* Projekti */
  .proj-image {
    height: 200px;
  }

  .proj-text h3 {
    font-size: 1.3rem;
  }

  .proj-text p {
    font-size: 0.95rem;
  }

  /* Buttons */
  button,
  .link-btn,
  .btn-more {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Contact form */
  .contact-form-wrap input,
  .contact-form-wrap textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .contact-form-wrap input {
    height: 42px;
  }

  .contact-form-wrap textarea {
    min-height: 120px;
  }

  .btn-submit {
    padding: 10px 16px;
    height: 48px;
    font-size: 0.95rem;
  }

  /* Contact items */
  .ci-icon {
    width: 36px;
    height: 36px;
  }

  .ci-icon::after {
    width: 20px;
    height: 20px;
  }

  .ci-icon svg {
    width: 10px;
    height: 10px;
  }

  .ci-text {
    font-size: 0.9rem;
  }

  .ci-text strong {
    font-size: 0.95rem;
  }

  /* Map */
  .mapbox {
    height: 200px;
  }

  /* Footer */
  .footer-col h3 {
    font-size: 1rem;
  }

  .footer-col h4 {
    font-size: 0.9rem;
  }

  .footer-col ul li {
    font-size: 0.88rem;
  }

  .social-link {
    width: 34px;
    height: 34px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-stars {
    font-size: 1.2rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
  }

  .testimonial-author {
    font-size: 0.95rem;
  }

  /* Detail pages */
  .prose-container {
    padding: 1.2rem;
  }

  .lead-image {
    height: 220px;
  }

  .lead-text-hero {
    padding-top: 1.2rem;
    min-height: auto;
  }

  .lead-text-hero .lead-text-inner {
    padding: 1.2rem 1rem;
  }

  .lead-text-hero .lead-text-inner h2 {
    font-size: 1.5rem;
  }

  /* Detail gallery */
  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .detail-gallery .gallery-item {
    min-height: 120px;
  }

  /* FAQ and Nasveti */
  .faq-q,
  .nasvet-q {
    font-size: 0.95rem;
    padding: 0.8rem 0;
  }

  .nasvet-icon {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .faq-a,
  .nasvet-a {
    font-size: 0.9rem;
    padding-left: 34px;
  }

  /* About text */
  .about-text {
    padding: 1.5rem 1.2rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.92rem;
  }

  /* Scroll to top button */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top::before {
    font-size: 20px;
  }

  /* Back row buttons */
  .back-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .btn-back,
  .btn-home {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Ensure Nasveti icons are uniform on small screens (phones) */
@media (max-width: 760px) {
  .nasvet-q .nasvet-icon,
  .nasvet-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    flex: 0 0 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 30px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-left h1 {
    font-size: 1.6rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  .service-image-slider {
    height: 200px;
  }

  .slider-arrow {
    font-size: 1.8rem;
  }

  .contact-form-wrap input,
  .contact-form-wrap textarea,
  .btn-submit {
    font-size: 0.9rem;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .service-image-slider {
    height: 260px;
  }
}

/* Scroll animations */
section.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Scroll to top button - GLOBAL for all pages */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--rdeca), var(--rdeca-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
  z-index: 9999;
}

/* Hide scroll-to-top on Kontakt page */
#kontakt ~ * .scroll-to-top,
body:has(#kontakt) .scroll-to-top {
  display: none !important;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(225, 6, 0, 0.5);
}

.scroll-to-top::before {
  content: '↑';
  color: white;
  font-size: 24px;
  font-weight: bold;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle shine effect to cards */
.large-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.large-card:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* ==================== COOKIE BANNER STYLES ==================== */
:root {
  --cb-black: var(--crna, #000);
  --cb-white: var(--bela, #fff);
  --cb-red: var(--rdeca, #e10600);
  --cb-height-desktop: 80px;
  --cb-height-mobile: 130px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cb-black);
  color: var(--cb-white);
  width: 100%;
  z-index: 10050;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.cookie-banner.cookie-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.cookie-left { flex: 0 0 auto; }
.cookie-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--cb-red);
  display: block;
}

.cookie-content { flex: 1 1 auto; min-width: 0 }
.cookie-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; text-align: left }
.cookie-text { font-size: 16px; line-height: 1.4; color: var(--cb-white); margin-bottom: 6px }
.cookie-more { color: var(--cb-white); font-size: 0.92rem; display:inline-block; margin-top:2px; text-decoration:underline }

.cookie-actions { display:flex; gap:0.6rem; align-items:center }
.cookie-btn { border-radius:8px; font-weight:700; cursor:pointer; min-height:38px; padding:0.45rem 0.9rem; transition: background .18s ease, transform .12s ease }
.cookie-accept { background: var(--cb-red); color:#000; border: 2px solid transparent; min-width:120px }
.cookie-accept:hover { background: var(--rdeca-dark); }
.cookie-reject { background:#000; color:var(--cb-red); border:2px solid var(--cb-red); min-width:120px }
.cookie-reject:hover { background: rgba(255,255,255,0.02); }

/* mobile adjustments */
@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: center; gap: 0.6rem; padding: 1rem; }
  .cookie-icon { width: 44px; height: 44px; border-width:2px; margin-left:0 }
  .cookie-text { font-size: 14px; text-align: center }
  .cookie-title { text-align: center; width: 100% }
  /* Center the "Več o piškotkih" / more link on mobile */
  .cookie-more { display: block; text-align: center; width: 100%; margin-top: 4px }
  .cookie-actions { width: 100%; justify-content: center }
  .cookie-accept, .cookie-reject { min-width: 100px; padding: 0.45rem 0.8rem }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-banner.cookie-visible { transition: none !important; transform: none !important; opacity: 1 !important }
}

/* show/hide animation timing */
.cookie-banner { transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1), opacity 0.25s ease }
.cookie-banner.cookie-hide { transition: transform 0.3s ease, opacity 0.25s ease; transform: translateY(110%); opacity: 0 }

/* focus styles */
.cookie-btn:focus { outline: 3px solid rgba(225,16,0,0.18); outline-offset: 3px }

/* small layout tweaks for tablet */
@media (min-width: 761px) and (max-width: 1024px) {
  .cookie-inner { padding: 1rem 1.2rem }
  .cookie-text { font-size: 15px }
}

/* Utility class to force content max-width on ultra-wide screens */
.cookie-inner.container { max-width: 1200px }

/* ==================== END COOKIE BANNER STYLES ==================== */

/* Specifically remove the divider and spacing between #reference and #o-podjetju on Home */
/* Small, sensible spacing so testimonials are fully visible but sections remain tight */
/* Slightly tighter but safe spacing so testimonials fully show */
body.home-page #reference { padding-bottom: 0.4rem !important; }
body.home-page #reference > .container { padding-bottom: 0.4rem !important; }
body.home-page #reference + .section-divider { height: 0.12rem !important; margin: 0 !important; padding: 0 !important; }
body.home-page #o-podjetju { padding-top: 0.4rem !important; }
body.home-page #o-podjetju > .container { padding-top: 0.4rem !important; }


