/* GLOBAL */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #f1f5f6;
  --secondary-color: #3b82f6;
  --white-color: #ffffff;
  --black-color: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Slab", serif;
  background-color: var(--white-color);
  font-weight: 400;

  &:has(.nav-links.active),
  &:has(.modal-overlay.active-slider) {
    overflow: hidden;
  }
}

.container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0px 15px;
}

img {
  max-width: 100%;
}

.sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
}

/* HEADER */

.header {
  background: var(--primary-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  width: 52px;
}

.logo-text {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}

.nav-links li {
  margin: 0;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--black-color);
  padding-bottom: 4px;
  font-size: 20px;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--black-color);
  transition: width 0.2s ease-in;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-links.active {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e6e8eb;
  padding-top: 80px;
  padding-bottom: 30px;
  overflow: auto;
  gap: 24px;
  z-index: 50;
  font-size: 22px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  z-index: 51;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
  }

  .nav-links.active {
    position: static;
    height: auto;
    padding: 0;
    flex-direction: row;
    font-size: 16px;
  }

  .nav-link {
    font-size: 16px;
  }

  .menu-toggle {
    display: none;
  }
}

/* Footer */

.footer {
  background: var(--primary-color);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 60px;
  height: 60px;
}

@media (min-width: 768px) {
  .footer-logo {
    width: 80px;
    height: 80px;
  }
}

.footer-text {
  font-size: 12px;
  text-align: center;
}

/* Hero */

.hero {
  padding-top: 20px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero-image-wrapper {
  position: relative;
  height: 0;
  padding-top: 70vw;
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    height: 600px;
    padding-top: 0;
  }
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.hero-content {
  padding: 20px 15px;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 40px;
    text-align: left;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    padding: 80px;
  }
}

.hero-title {
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

/* Services Section */

.services-section {
  background: var(--primary-color);
  padding: 30px 0;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .services-section {
    padding: 60px 0;
  }
}

.services-header {
  max-width: 800px;
  margin: 0 auto;
}

.services-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

@media (min-width: 1024px) {
  .services-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
}

.services-intro p {
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.services-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
}

.service-card-icon {
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-size: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

/* Contact */

.contact-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.contact-box {
  background: var(--white-color);
  width: 100%;
  max-width: 800px;
  padding: 40px;
  margin: 80px 0;
}

@media (min-width: 1280px) {
  .contact-box {
    margin: 120px 0;
  }
}

.contact-subtitle {
  font-size: 12px;
  text-align: center;
  font-weight: 400;
  margin-bottom: 8px;
}

.contact-title {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 1024px) {
  .contact-title {
    font-size: 28px;
  }
}

.contact-info {
  width: 100%;
  max-width: 650px;
  margin: 24px auto 0 auto;
}

.contact-columns {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-blue {
  color: var(--secondary-color);
  margin-right: 6px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.icon-btn {
  background: var(--secondary-color);
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.icon-btn-ico {
  color: var(--white-color);
}

.icon-btn:hover {
  opacity: 0.6;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-radovi {
  padding: 30px 0px;
}

@media (min-width: 1024px) {
  .section-radovi {
    padding: 60px 0px;
  }
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.title-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.gallery-title {
  font-weight: 500;
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .gallery-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
  }
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 0.375rem;
  overflow: hidden;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: inherit;
  transition: background-color 0.2s ease-in;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.4);
}

.gallery-img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 0.375rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

#modal-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
}

.mySwiper {
  width: 90vw;
  height: 70vh;
}

@media (min-width: 1280px) {
  .mySwiper {
    width: 70vw;
  }
}

@media (min-width: 1536px) {
  .mySwiper {
    width: 60vw;
  }
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
  color: var(--secondary-color);
  background-color: var(--white-color);
  border-radius: 100%;
  width: 44px !important;
  height: 44px !important;
}

@media (min-width: 1280px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
  }
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}
