:root{
    --yellow:#FCB31C;
    --siva:#cccccc;
    --rj:#2e2925;
    --rob_card: 0px;
}
html {
	scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
}
ul{
    list-style-type: none;
}
h1{
    font-size: 2.5rem;
    font-family: 'Urbanist', sans-serif; 
    color: var(--yellow);
}
h2{
    font-size: 1.5rem;
    font-family: 'Urbanist', sans-serif;
    color: var(--yellow);
}
a{
    font-size: 19px;
}
p{
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

a[href] {
    text-decoration: none !important;   
}

/*---------------------------------nav bar-----------------------*/

header{
  margin: 0;
  width: 100%;
  top: 0;
  left: 0;
  padding-top: 0;
  background-color: var(--rj);
  border-end-end-radius: 200%;
  border-end-start-radius: 200%;
  height: 110px;
  z-index: 2; 
  position: fixed;
  transition:all 0.5s linear;
}

.nav-pages {
  width: 1400px;
 padding-top: 0%;
  margin-top: 8px;
  transition: all 0.5s linear;
}
#povezave{
  padding-top: 5px;
  margin-right:auto;
  margin-left:auto;
  justify-content: center;
  transition: all 0.5s linear;  
 
}
#povezave li{
  text-align: center;
  height: 100%;
   width: 100%;
  margin-top: 15px;
 position: relative;
  transition: all 0.5s linear; 
}

.link {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-radius: 0;
  border: none;
  position: relative;
  transition: color 0.3s;
}

#povezave li:nth-child(4), #povezave li:nth-child(5), #povezave li:nth-child(6)
{
  float:right;
 
}

#povezave li:nth-child(1), #povezave li:nth-child(2), #povezave li:nth-child(3)
{
  float:left;
 
}
#povezave li:nth-child(3)
{
 margin-right: 10%; 
}
#povezave li:nth-child(4)
{
 margin-left: 10%; 
}
#nav{
display: flex;
height: 100px;
padding-top: 20px;
margin-left: auto;
margin-right: auto;
justify-content: center;
}
#logo{
  width: 190px;
  margin-top: -40px;
  margin-bottom: 5px;
 transition: all 0.5s linear;
 position: absolute;
}
#logo img{
  width: 100%;
margin-left: 10px;
  /*margin-left: -68%;*/
 
}

.link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FCB31C;
  border-radius: 2px;
  transition: width 0.3s, left 0.3s;
}

.link:hover {
  color: #FCB31C;
  border: none;
  background: none;
}

.link:hover::after {
  width: 80%;
  left: 10%;
}

.selected {
  color: #FCB31C;
  background: none;
}

.selected::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #FCB31C;
  border-radius: 2px;
}

.selected:hover {
  color: #FCB31C;
}
/*──────────────────── SCROLL UP ────────────────────*/
.scrollLink {
    position: fixed;
    top: 50%;
    right: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    border-radius: 2rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: 0.2s ease-out;
    z-index: 2;
}
.scrollLink span {
    color: black;
    font-size: 2.5rem;
    transition: 0.2s ease-out;
}
.scrollLink:hover { background-color: #d3910e; }
.scrollLink:hover span { transform: translateY(-4px); color: var(--siva); }

/*──────────────────── HERO ────────────────────*/
.bgimg1 {
    margin: 0;
    width: 100%;
    min-height: 60vh;
    padding-top: 0.1px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bgimg1::after {
    content: "";
    width: 100%;
    top: 0; left: 0; bottom: 0; right: 0;
    background-image: url('../img/projektiranje.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    position: absolute;
}
.bgimg1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46,41,37,0.5) 0%, rgba(46,41,37,0.9) 100%);
    z-index: 0;
}
#main-box {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 110px;
}
.main-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
    letter-spacing: 1px;
    padding: 0 20px;
}
.main-container h1 {
    font-size: 4rem;
    letter-spacing: 1px;
    line-height: 95%;
    margin-bottom: 30px;
}
.main-container p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--siva);
}

/*──────────────────── VSEBINA ────────────────────*/
.container {
    width: 100%;
    background-color: var(--rj);
    background-image: url('../img/les_letnice.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 80vh;
    height: fit-content;
}
.container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(46,41,37,0.15) 30%, rgba(46,41,37,1) 100%),
        linear-gradient(180deg, rgba(46,41,37,0.15) 30%, rgba(46,41,37,1) 100%);
    z-index: 0;
}

/*──────────────────── KONTAKT WRAPPER ────────────────────*/
.contact-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 5%;
    padding: 6% 6% 4% 6%;
    max-width: 1300px;
    margin: auto;
}

/*──────────────────── INFO KARTICE (levo) ────────────────────*/
.info-side {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(252,179,28,0.2);
    border-radius: 16px;
    padding: 20px 22px;
    transition: border-color 0.3s, background 0.3s;
}
.info-card:hover {
    border-color: rgba(252,179,28,0.6);
    background: rgba(252,179,28,0.07);
}
.info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a1410;
}
.info-text h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 6px;
}
.info-text p {
    font-size: 0.95rem;
    color: var(--siva);
    line-height: 1.6;
    letter-spacing: 0;
}
.info-text a {
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.info-text a:hover { color: var(--yellow); }

/*──────────────────── OBRAZEC (desno) ────────────────────*/
.form-side {
    flex: 1;
}
.form-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}
.form-row .polje { flex: 1; }

.polje {
    min-height: 65px;
    width: 100%;
    margin-bottom: 8px;
}
.polje.full { width: 100%; }

.polje input,
.polje textarea {
    width: 100%;
    background: rgba(91,85,80,0.5);
    border: none;
    border-bottom: 2px solid var(--siva);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.3s;
}
.polje input { height: 42px; }
.polje textarea {
    resize: none;
    height: 150px;
    margin-top: 10px;
    display: block;
}

.line {
    height: 2px;
    width: 0;
    background: var(--yellow);
    transition: width 0.4s ease-in-out;
    position: relative;
    top: -2px;
}
.line-t { top: -4px; }

.polje input:focus + .line,
.polje textarea:focus + .line {
    width: 100%;
}

/*──────────────────── GUMB ────────────────────*/
.gumb {
    margin-top: 24px;
}
.gumb button {
    background: var(--yellow);
    color: #1a1410;
    border: none;
    padding: 12px 36px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
}
.gumb button:hover {
    background: #d3910e;
    transform: scale(1.04);
}

/*──────────────────── SPOROČILA ────────────────────*/
.error-msg {
    background: rgba(192,57,43,0.15);
    border: 1px solid rgba(192,57,43,0.5);
    color: #ff6b6b;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uspesno-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10vh 5%;
}
.uspesno-box {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(252,179,28,0.3);
    border-radius: 20px;
    padding: 60px 50px;
    max-width: 500px;
}
.uspesno-box i {
    font-size: 4rem;
    color: var(--yellow);
    margin-bottom: 20px;
    display: block;
}
.uspesno-box h2 {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 14px;
}
.uspesno-box p {
    color: var(--siva);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.btn-nazaj {
    display: inline-block;
    background: var(--yellow);
    color: #1a1410;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.btn-nazaj:hover { background: #d3910e; transform: scale(1.04); }

/*──────────────────── GOOGLE MAPS ────────────────────*/
.map-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 6% 6% 6%;
    max-width: 1300px;
    margin: auto;
}
.map-wrapper iframe {
    border-radius: 16px;
    display: block;
    filter: grayscale(20%);
}

/*──────────────────── NOGA ────────────────────*/
.container3 {
    margin: 0;
    padding-top: 6%;
    width: 100%;
    background-color: var(--rj);
    height: auto;
}
.noga {
    display: flex;
    width: 100%;
    flex-direction: row;
    background-color: var(--rj);
}
.box1 {
    width: 32.5%;
    padding: 3% 0 0 0;
    display: flex;
    justify-content: center;
    text-align: left;
    border-right: rgba(255,255,255,0.1) solid 0.5px;
}
.box2 {
    width: 35%;
    padding: 1% 2%;
    text-align: center;
    border-right: rgba(255,255,255,0.1) solid 0.5px;
}
.box3 {
    width: 32.5%;
    padding: 3% 0;
    display: flex;
    justify-content: center;
    text-align: left;
}
.box2 img { width: 210px; margin-bottom: 20px; }
.box2 a img {
    display: inline-flex;
    width: 2.8rem;
    margin-left: 3%;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.box2 a img:hover { opacity: 0.5; scale: 1.2; }
.box1 ul li, .box3 ul li { text-align: left; list-style-type: none; margin-top: 4%; }
.box1 ul li a, .box3 ul li a { text-decoration: none; }
.box1 ul li a p, .box3 ul li a p, .box3 ul li p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--siva);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.box1 ul li a p:hover, .box3 ul li a p:hover { color: var(--yellow); }
.kontakt-noga h2 { color: white; text-shadow: 1px 1px black; margin-bottom: 15px; }
.kontakt-noga ul li { list-style-type: none; }
.kontakt-noga ul li p, .kontakt-noga ul li a p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--siva);
    font-size: 0.95rem;
}
li p a {
    text-decoration: none;
    color: var(--siva);
    transition: color 0.2s;
    color: var(--siva);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
li p a:hover {
    color: var(--yellow);
}

footer {
    color: var(--siva);
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    padding-bottom: 10px;
    background-color: var(--rj);
}

/*──────────────────── mobile NAV ────────────────────*/
.nav-mobile {
    display: none;
    height: 70px;
    width: 70px;
    position: absolute;
    top: 0; right: 0;
    background-color: var(--rj);
    z-index: 3;
}
#nav-toggle {
    position: absolute;
    left: 18px; top: 22px;
    cursor: pointer;
    padding: 10px 35px 16px 0;
}
#nav-toggle span,
#nav-toggle span::before,
#nav-toggle span::after {
    cursor: pointer;
    border-radius: 1px;
    height: 4px;
    width: 30px;
    background: white;
    position: absolute;
    display: block;
    content: '';
    transition: all 300ms ease-in-out;
}
#nav-toggle span::before { top: -10px; }
#nav-toggle span::after { bottom: -10px; }
#nav-toggle.active span { background-color: transparent; }
#nav-toggle.active span::before, #nav-toggle.active span::after { top: 0; }
#nav-toggle.active span::before { transform: rotate(45deg); }
#nav-toggle.active span::after { transform: rotate(-45deg); }

/*──────────────────── RESPONSIVE ────────────────────*/
@media only screen and (max-width: 1000.5px) {
    .nav-mobile { display: block; margin-top: 25px; }
    .nav-pages { width: 100%; padding: 0; }
    .nav-pages ul { display: none; left: 0; padding-left: 25%; }
    .nav-pages ul li a { padding: 15px; line-height: 20px; }
    .link { display: block; width: 50%; }
    #ozadje {
    background-color: var(--rj);
    position: absolute;
    width: 100%;
    overflow: hidden;
    transition: .5s linear;
    box-shadow: 0 17px 0 0 var(--rj); 
}
}
@media screen and (min-width: 1000.5px) {
    #povezave { display: flex !important; }
}

@media (max-width: 1100px) {
    header { border-end-end-radius: 0%; border-end-start-radius: 0%; }
    #logo img { width: 70%; margin-left: 30px; padding-top: 5%; }
}

@media (max-width: 900px) {
    .contact-wrapper { flex-direction: column; padding: 5% 5% 3% 5%; }
    .info-side { flex: none; width: 100%; }
    .form-side { margin-top: 40px; }
    .main-container h1 { font-size: 2.8rem; }
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .main-container h1 { font-size: 2.2rem; }
    .main-container p { font-size: 1rem; }
    .map-wrapper { padding: 0 4% 6% 4%; }
    .noga { flex-direction: column; }
    .box1, .box2, .box3 { width: 85%; margin: auto; border: none; }
    .box2 img { width: 160px; margin: 20px auto -10px; }
    .kontakt-noga h2 { text-align: center; margin-top: 20px; }
    .box1 ul li, .box3 ul li { text-align: center; }
    footer { margin-top: 30px; font-size: 0.75rem; }
    .scrollLink { right: 15px; }
}
   #nav img {
  max-width: 80%;
  height: auto;
}