/*
 * STK Radnički Niš
 * Look based on Start Bootstrap "Agency" (MIT), rewritten without Bootstrap.
 */

:root {
  --primary: #fed136;
  --primary-hover: #fec503;
  --primary-btn-hover: #fec810;
  --dark: #212529;
  --muted: #6c757d;
  --light: #f8f9fa;
  --border: #e9ecef;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto Slab', Georgia, serif;
  --font-serif: 'Noto Serif', Georgia, serif;
  --font-script: 'Kaushan Script', cursive;

  --nav-h: 56px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5rem;
}

p { line-height: 1.75; margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--primary); text-shadow: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-muted { color: var(--muted); }
.bg-light { background-color: var(--light); }

.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid transparent;
  border-radius: .25rem;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-btn-hover); border-color: var(--primary-btn-hover); color: #fff; }
.btn-xl { font-size: 18px; padding: 20px 40px; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
@media (min-width: 768px) { section { padding: 150px 0; } }

.section-head { text-align: center; }
.section-heading {
  font-size: 40px;
  margin: 0 0 15px;
  text-transform: uppercase;
}
.section-subheading {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 75px;
}
.section-head:not(:has(.section-subheading)) { margin-bottom: 75px; }

/* ---------- Navbar ---------- */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background-color: var(--dark);
  padding: .5rem 0;
}
.navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--primary);
  padding: .3rem 0;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--primary-hover); }

.navbar-toggler {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--primary);
  border: 0;
  border-radius: .25rem;
  padding: 13px;
  cursor: pointer;
}
.navbar-toggler .icon { margin-left: .25rem; }

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: none;
}
#mainNav.open .navbar-nav { display: block; }

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 90%;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  padding: .75em 0;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

@media (min-width: 992px) {
  #mainNav {
    padding: 25px 0;
    background-color: transparent;
    transition: padding .3s, background-color .3s;
  }
  .navbar-inner { flex-wrap: nowrap; }
  .navbar-brand { font-size: 1.75em; transition: font-size .3s; }
  .navbar-toggler { display: none; }
  .navbar-nav { display: flex; width: auto; }
  .nav-link { padding: 1.1em 1em; }

  #mainNav.navbar-shrink { padding: 0; background-color: var(--dark); }
  #mainNav.navbar-shrink .navbar-brand { font-size: 1.25em; padding: 12px 0; }
}

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
  color: #fff;
  background: var(--dark) url("../img/hero-sm.jpg") center / cover no-repeat;
}
@media (min-width: 768px) {
  .masthead { background-image: url("../img/hero.jpg"); }
}
.intro-text { padding: 150px 0 100px; }
.intro-lead-in {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 22px;
  margin-bottom: 25px;
}
.intro-heading {
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 700;
  line-height: 50px;
  margin-bottom: 25px;
  text-transform: uppercase;
}
.intro-lead-in, .intro-heading { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

@media (min-width: 768px) {
  .intro-text { padding: 300px 0 200px; }
  .intro-lead-in { font-size: 40px; line-height: 40px; }
  .intro-heading { font-size: 74px; line-height: 75px; margin-bottom: 50px; }
}

/* ---------- Icon circles (fa-stack replacement) ---------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  font-size: 2rem;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}
.icon-circle-lg { font-size: 4rem; }
.icon-circle .icon { width: 1em; height: 1em; }

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 0 -15px;
}
.service { flex: 0 0 100%; padding: 0 15px; }
@media (min-width: 768px) { .service { flex-basis: 25%; } }
.service-heading { margin: 15px 0; text-transform: none; font-size: 1.5rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 576px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.portfolio-link {
  position: relative;
  display: block;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  cursor: zoom-in;
}
.portfolio-link img { width: 100%; }
.portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  color: #fff;
  background: rgba(254, 209, 54, .9);
  opacity: 0;
  transition: opacity .5s;
}
.portfolio-link:hover .portfolio-hover,
.portfolio-link:focus-visible .portfolio-hover { opacity: 1; }

/* ---------- About / timeline ---------- */
.timeline-image {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: var(--primary);
  border: 7px solid var(--border);
  border-radius: 50%;
}
.timeline-image h4 { font-size: 12px; line-height: 16px; margin: 0; padding: 0 6px; text-transform: uppercase; }

@media (min-width: 768px) {
  .timeline-image h4 { font-size: 13px; line-height: 18px; }
}
@media (min-width: 992px) {
  .timeline-image { width: 150px; height: 150px; }
  .timeline-image h4 { font-size: 18px; line-height: 26px; padding: 0 12px; }
}
@media (min-width: 1200px) {
  .timeline-image { width: 170px; height: 170px; }
}

/* ---------- Contact ---------- */
#contact {
  padding: 68px 0 0;
  background: var(--dark) url("../img/map-image.webp") center top no-repeat;
}
#contact .section-heading { color: #fff; }

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
  padding: 3rem 1.25rem;
  text-align: center;
  color: rgba(0, 0, 0, .5);
}
.card .card-title {
  margin: 1rem 0 0;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.5;
}
.card hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  margin: 1.5rem 0;
}
.card a { word-break: break-word; }
.card a[href^="tel"] { color: inherit; }

.map { margin-top: 2%; height: 30em; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
footer { padding: 25px 0; text-align: center; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.copyright { font-family: var(--font-heading); font-size: 90%; line-height: 40px; }

.social-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  color: #fff;
  background-color: var(--dark);
  border-radius: 50%;
  transition: background-color .3s;
}
.social-buttons a:hover, .social-buttons a:focus-visible { background-color: var(--primary); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img {
  max-width: min(1600px, 92vw);
  max-height: 88vh;
  width: auto;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .5);
}
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 24px;
  color: #fff;
  background: rgba(0, 0, 0, .4);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--primary); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
