/* CLEANED CSS FOR KID FOUR GRADNJA SITE - FINAL CONSTRUCTION THEME */

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Calibri", sans-serif;
  font-size: 1em;
  color: #1f2937;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 80px;
  height: 100%;
  background-color: #f3f4f6;
}

p {
  line-height: 1.9;
}

a {
  transition: all 0.3s ease;
  color: #d97706;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #facc15;
}

/* Section Divider */
.tm-section-divider {
  width: 100%;
  height: 2px;
  background-color: #d1d5db;
  margin: 60px 0;
}

/* Utility Classes */
.tm-font-big { font-size: 1.25rem; }

.tm-text-primary {
  color: #d97706;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tm-section-pad-top {
  padding: 80px 0 40px;
  background-color: #f3f4f6;
}

.tm-content-box {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  padding: 8px 32px;
  border: none;
}

.btn:hover {
  background-color: #facc15;
}

.tm-btn-primary {
  color: #ffffff;
  background-color: #d97706;
  padding: 14px 30px;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  background-color: #b45309;
  color: #ffffff;
}

.tm-btn-submit {
  font-size: 0.9em;
  color: #fff;
  background-color: #d97706;
  width: 50%;
  margin-bottom: 60px;
}

.tm-btn-submit:hover {
  background-color: #b45309;
}

/* Navbar */
.tm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: #374151;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 80px; /* Match navbar height */
}

#hero-image2 {
  margin-top: 60px;
  max-height: 400px;
  margin-left: -60px;
  width: auto;
  display: block;
}

.navbar-toggler {
  border: 1px solid #ffffff;
  padding: 0 10px;
  position: absolute;
  right: 10px;
  top: 20px;
}

.navbar-toggler-icon {
  color: #ffffff;
  padding-top: 6px;
}

.tm-nav-link {
  color: #ffffff;
  padding: 10px 15px;
  font-size: x-large;
  text-transform: uppercase;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  margin-left: 50px;
}

.tm-nav-link:hover {
  color: #facc15;
}

/* Hero Section */
#infinite {
  position: relative;
  width: 100%;
  min-height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.background-image1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(2px) brightness(80%);
}

.tm-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: -200px;
  color: #ffffff;
  text-shadow: 2px 2px 4px #374151;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 3px;
  animation: fadeIn 1.5s ease-in-out forwards;
  margin-bottom: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tm-intro-next {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.tm-down-arrow {
  color: #d97706;
  background: #fff;
  padding: 15px 40px;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tm-down-arrow:hover {
  color: #facc15;
  background: #d97706;
  padding: 20px 50px;
}

/* Contact Section */
#contact {
  color: #1f2937;
  padding: 80px 0 40px;
  background-color: #f3f4f6;
}

.contact-item {
  margin: 20px 0;
}

.item-link {
  display: flex;
  align-items: center;
  color: #374151;
  transition: all 0.3s ease;
}

.item-link:hover {
  color: #facc15;
}

.tm-input {
  margin-bottom: 20px;
  width: 90%;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: transparent;
  color: #1f2937;
}

/* Footer */
.tm-footer {
  background-color: #111827;
  padding: 15px 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

.tm-footer a {
  color: #fff;
}

.tm-footer a:hover {
  color: #facc15;
}

/* Responsive */
@media (max-width: 767px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .navbar-collapse {
    display: block;
    background-color: #f3f4f6;
    padding: 10px;
    border-radius: 5px;
  }

  .tm-intro-next { bottom: 20px; }
  .tm-hero-title { font-size: 2rem; }

  .navbar-brand {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1350px) {
  .tm-intro-text-container { padding-left: 0; }
  .navbar-nav .nav-link { padding: 0 30px; }
}

.godina {
  font-size: 2rem;
  font-weight: 900;
  color: #d97706;
  border-left: 6px solid #d97706;
  padding-left: 20px;
  margin: 60px 0 30px 0;
  background: linear-gradient(to right, #facc15 0 1.5%, transparent 25%);
  letter-spacing: 2px;
}

.big-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 5px;
  margin-bottom: 36px;
}

.big-div {
  background: #fffbea;
  border-radius: 14px;
  border-left: 5px solid #d97706;
  padding: 18px 26px 18px 38px;
  box-shadow: 0 2px 10px rgba(217,119,6,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}

.big-div:hover {
  box-shadow: 0 6px 20px rgba(217,119,6,0.13);
  border-color: #facc15;
  transform: translateY(-2px) scale(1.012);
}

.text-container h4 {
  margin: 0;
  font-size: 1.21rem;
  font-weight: 600;
  color: #1a3a62;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ref-badge {
  display: inline-block;
  background: #d97706;
  color: #fff;
  font-weight: bold;
  font-size: 1em;
  border-radius: 7px;
  padding: 3px 14px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  min-width: 48px;
  text-align: center;
  box-shadow: 0 1px 4px #e8c87144;
}

.project-link {
  color: #1a3a62;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.18s;
  word-break: break-word;
}

.project-link:hover {
  color: #d97706;
  text-decoration: underline;
}

.page-title {
  text-align: center;           /* Centers text horizontally */
  font-size: 2.4rem;            /* Large, prominent size */
  font-weight: 800;             /* Boldest */
  color: #d97706;               /* Construction-themed orange */
  letter-spacing: 2px;          /* Slightly spaced out letters */
  margin-top: 60px;        /* Space above and below */
  text-transform: uppercase;    /* ALL CAPS */
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: 1px 2px 10px #eee; /* Soft shadow for pop */
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fffbea !important;      /* Svijetlo-narančasta */
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 16px #facc1540;
    margin-top: 8px;
    padding-bottom: 16px;
  }
  .navbar-nav {
    width: 100%;
    align-items: center;
  }
  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
  .tm-nav-link {
    color: #b45309 !important;      /* Tamno-narančasta */
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 1.3px;
    margin: 0 auto;
    display: block;
    padding: 12px 0;
    border-radius: 7px;
    transition: background 0.17s, color 0.17s;
  }
  .tm-nav-link:hover,
  .tm-nav-link:focus {
    color: #fff !important;
    background: #d97706;
  }
}

/* Da je hamburger sam po sebi vidljiv na svijetloj podlozi */
.navbar-toggler {
  background: #fffbea;
  border: 2px solid #d97706;
  border-radius: 7px;
  margin-right: 12px;
}

.navbar-toggler .navbar-toggler-icon,
.navbar-toggler i {
  color: #d97706 !important;
  font-size: 1.5rem;
}

/* Obrisati default border na dropdown izborniku ako postoji */
.navbar-collapse {
  border: none !important;
}
