:root {
  --maintxt: #794e0d;       /* Temno olivno-zelena, bolj čista */
  --body-txt: #000000;      /* Mehka naravna olivno-siva */
  --subtext: #88745d;       /* Svetla olivna za sekundarni tekst */
  --footerbg: #2D403D;      /* Enaka kot glavna temna za enotnost */
  --main-bg: #F5F2EB;       /* Še svetlejša, moderna topla bež */
  --menu-bg: #b3652d5d;       /* Glavni meni v temni olivno-zeleni */
  --product-bg: #E9E4D8;    /* Svetla topla bež za sekcije */
  --crack: #E9E4D8;         /* Prehodne sekcije */
  --second-main: #C48A69;   /* Lep opečnato-topel ton (ne premočan) */
  --btn-bg: #C48A69;        /* Gumbi v toplih tonih */
  --btn-border: #C48A69;
  --icon-hover: #A47149;    /* Opečnata za hover efekt */
  --icon-hover-txt: #F5F2EB; /* Svetlo besedilo na hoverju */
  --icon-colour: #2D403D;   /* Ikone v osnovni temno olivni */
  --graphite: #232323;


  --shadow: 0 8px 32px rgba(27,42,54,0.14);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  }

  html {
    scroll-behavior: smooth;
  }


  /* RESET & BASE */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: "Work Sans", sans-serif;
    background-color: var(--main-bg);
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    background-repeat: repeat;
    background-size: 600px;
    background-position: 0 0;
    animation: cementRollVertical 120s linear infinite;
    color: var(--body-txt);
    min-height: 200vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
  }
  
  /* Optional: faint lighting effect overlay */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.02) 0%, transparent 70%);
    animation: floatLight 90s ease-in-out infinite alternate;
  }
  
  /* Rolling vertical texture */
  @keyframes cementRollVertical {
    0% { background-position: 0 0; }
    100% { background-position: 0 2000px; }
  }
  
  /* Optional: floating light texture for natural shift */
  @keyframes floatLight {
    0% { transform: translateY(0px); }
    100% { transform: translateY(10px); }
  }
    .logo-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.4s ease-out;
      pointer-events: none; /* This allows scrolling even when overlay is visible */
    }
    
    .logo-overlay img {
      max-width: 80vw;
      max-height: 40vh;
    }
    
    
    
    /* Main menu container and cards */
    .main-menu-container {
      background: var(--menu-bg);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      top: 0;
      z-index: 200;
    }
    
    .product-card {
      background: var(--product-bg);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      top: 0;
      z-index: 200;
    }
  
    .footer-container {
      background: var(--footerbg);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      top: 0;
      z-index: 200;
    }
  
    @keyframes metalTilt {
      from { transform: rotateZ(-2deg); }
      to { transform: rotateZ(2deg); }
    }
    
    /* Simulate slab lines on cards */
    .main-menu-container::before,
    .product-card::before {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 40%;
      height: 1.5px;
      background:
        repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
        repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
      opacity: 0.13;
      opacity: 0.25;
      pointer-events: none;
      z-index: 2;
    }
  
    
  
    .product-card::before { top: 60%; }
    .main-menu-container::after,
    .product-card::after {
      content: "";
      position: absolute;
      top: 0; bottom: 0; left: 60%;
      width: 1.5px;
      background:
      repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
      repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
    opacity: 0.13;
      opacity: 0.18;
      pointer-events: none;
      z-index: 2;
    }
    .product-card::after { left: 30%; }
    
    /* Menu background image */
    .menu-bg-image {
      width: 100%;
      height: 40v; /* or taller if your logo is very tall */
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      overflow: hidden;
      position: relative;
    }
    
    .menu-bg-image img {
      height: 100%;
      width: auto;
      max-width: 40vw; /* adjust as needed for your logo */
      object-fit: contain;
      display: block;
      margin: 0 auto;
      filter: grayscale(0.1) brightness(0.9) blur(0.5px);
      opacity: 0.94;
    }
    
    .nase-storitve-box:hover,
    .product-card:hover {
    transform: translateY(-6px) scale(1.03) rotateZ(-1.5deg);
    box-shadow: var(--shadow-strong);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
  }
  
    
   /* Main menu container and cards */
  .main-menu-container {
    background: var(--menu-bg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }
  
  .product-card {
    background: var(--product-bg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }

  .footer-container {
    background: var(--footerbg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }

  @keyframes metalTilt {
    from { transform: rotateZ(-2deg); }
    to { transform: rotateZ(2deg); }
  }
  
  /* Simulate slab lines on cards */
  .main-menu-container::before,
  .product-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 40%;
    height: 1.5px;
    background:
      repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
      repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
    opacity: 0.13;
    opacity: 0.25;
    pointer-events: none;
    z-index: 2;
  }

  

  .product-card::before { top: 60%; }
  .main-menu-container::after,
  .product-card::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 60%;
    width: 1.5px;
    background:
    repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
    repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
  opacity: 0.13;
    opacity: 0.18;
    pointer-events: none;
    z-index: 2;
  }
  .product-card::after { left: 30%; }
  
  /* Menu background image */
  .menu-bg-image {
    width: 100%;
    height: 40v; /* or taller if your logo is very tall */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
  }
  
  .menu-bg-image img {
    height: 100%;
    width: auto;
    max-width: 40vw; /* adjust as needed for your logo */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(0.1) brightness(0.9) blur(0.5px);
    opacity: 0.94;
  }
  
  .nase-storitve-box:hover,
  .product-card:hover {
  transform: translateY(-6px) scale(1.03) rotateZ(-1.5deg);
  box-shadow: var(--shadow-strong);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
}

  
  /* Menu section */
  .menu-btn-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    background: transparent;
    padding: 1.3rem 1rem 1.1rem 1rem;
    gap: 1.5rem;
    position: relative;
    z-index: 1000;
    margin-top: -40px;
    animation: navShadow linear both;
    animation-timeline: scroll(root);
    position: sticky;
    top: 0;
  }

  @keyframes navShadow {
    to { box-shadow: var(--shadow-strong); }
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--blac);
    font-size: 1.13rem;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    min-width: 100px;
    padding: 0.85rem 0.7rem;
    border-radius: 0.7rem;
    padding-top: 2rem;
    transition: 
      background var(--btn-bg), 
      color var(--maintxt);
    box-shadow: none;
    position: relative;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .menu-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.1rem;
    background: var(--black);
    border-radius: 50%;
    padding: 0.2em;
    animation: iconBounce 2.2s infinite;
  }
  @keyframes iconBounce {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-6px);}
  }
  .menu-btn .icon svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: var(--icon-hover);
    transition: stroke var(--transition);
  }
  .menu-btn span:last-child {
    font-size: 1.13rem;
    letter-spacing: 0.04em;
  }
  .menu-btn:hover,
  .menu-btn:focus {
    background: var(--icon-colour);
    color: var(--icon-hover-txt);
    transform: translateY(-3px) scale(1.05);
  }
  .menu-btn:hover .icon,
  .menu-btn:focus .icon {
    background: var(--icon-hover);
  }
  .menu-btn:hover .icon svg,
  .menu-btn:focus .icon svg {
    stroke: #fff;
  }
 
  /* Animated SVG icon stroke */
  .icon-anim {
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    animation: iconDraw 0.7s forwards;
  }
  .menu-btn:hover .icon-anim,
  .menu-btn:focus .icon-anim {
    animation: iconDraw 0.7s forwards, iconPulse 1s infinite alternate;
  }
  @keyframes iconDraw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes iconPulse {
    0% { stroke: var(--accent);}
    100% { stroke: #fff;}
  }
  /* Highlight home button */
  .menu-btn-home {   
     color: #000;
  }
  .menu-btn-home .icon {
    background: var(--icon-hover-txt);
  }
  .menu-btn-home .icon svg {
    stroke: var(--icon-colour);
  }
  .menu-btn-home:hover,
  .menu-btn-home:focus {
    background: var(--icon-colour);
    color: var(--icon-hover-txt);
  }
  .menu-btn-home:hover .icon,
  .menu-btn-home:focus .icon {
    background: var(--icon-hover);
  }
  .menu-btn-home:hover .icon svg,
  .menu-btn-home:focus .icon svg {
    stroke: var(--icon-hover-txt);
  }
  
  /* Responsive: vertical menu on mobile */
  @media (max-width: 700px) {
    .main-menu-container {
      max-width: 98vw;
      padding: 0;
    }
    .menu-bg-image { height: 80px; }
    .menu-btn-section {
      flex-direction: column;
      align-items: stretch;
      gap: 1.1rem;
      margin-top: -24px;
      padding: 1.1rem 0.7rem 0.7rem 0.7rem;
    }
    .menu-btn {
      flex-direction: row;
      justify-content: flex-start;
      gap: 0.9rem;
      min-width: 0;
      font-size: 1.02rem;
      padding: 0.7rem 0.8rem;
    }
    .menu-btn .icon {
      margin-bottom: 0;
    }
  }


/* GALLERY SECTION */
.gallery {
    padding: 60px 24px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

.gallery-container a {
    display: block;
}

.gallery-container img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE BREAKPOINTS */
@media screen and (min-width: 600px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.contact-form button {
    padding: 14px 20px;
    font-size: 18px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #444;
}

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 22px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s ease;
}

#backToTop:hover {
    background: #444;
}

/* Footer */
.footer-container {
  background-color: var(--main-bg); 
  padding: 40px 20px; 
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin-top: 31vh;
  height: auto; /* Adjusted for responsiveness */
}

/* Left section (Kontakt) */
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  margin-left: 100px; 
}

.footer-left h3 {
  color: var(--maintxt);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px; 
}

.footer-item {
  display: flex;
  align-items: center; 
  flex-direction: column;
  margin-bottom: 10px; 
}

.footer-item img {
  width: 50px; 
  height: auto;
  margin-right: 15px; 
}

.footer-item p {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color:  var(--subtext);
  width: 100%; 
}

/* Center section (Logo) */
.footer-center {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-right: 150px; /* Added padding for spacing */  
}

.footer-center img {
  width: 371.93px;
  height: 212px;
}

.footer-center p {
  color: var(--subtext);
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;  
}

/* Right section (Sledite nam) */
.footer-right {
  text-align: center; 
  margin-right: 150px;
}

.footer-right h3 {
  color: var(--maintxt);;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}

.social-info {
  display: flex;
  align-items: center; 
  margin-bottom: 10px; 
}

.social-info img {
  width: 50px; 
  height: auto;
}

.social-info p {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color: var(--subtext);
  width: 100%;
}

.footer-credits {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: var(--subtext); /* Medium gray text color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: center;
      padding: 20px;
  }

  .footer-left, .footer-center, .footer-right {
      margin-bottom: 20px;
  }
}

@media (max-width: 900px) {
  .footer-container {
    gap: 24px;
    padding: 32px 10px 18px 10px;
    max-width: 98vw;
  }
  .footer-center img {
    width: 120px;
  }
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 4vw 12px 4vw;
    border-radius: 12px 12px 0 0;
  }
  .footer-left, .footer-center, .footer-right {
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .footer-center img {
    width: 90px;
  }
  .footer-credits {
    font-size: 13px;
    margin-top: 18px;
  }
}

/* Extra: Center all footer text on small screens */
@media (max-width: 700px) {
  .footer-container, 
  .footer-container * {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
}