/* Osnovni stilovi */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #8a3415;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8f5c4b;
  outline-offset: 4px;
}

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

/* Header i navigacija */
.header {
  position: relative;
  padding: 20px 0 clamp(48px, 6vw, 76px);
  background: linear-gradient(145deg, #fafafa, #e8e8e8);
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}

.logo-link {
  flex: 0 0 auto;
  border-radius: 8px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 25px);
  padding: 0;
  list-style: none;
}

.nav-menu a,
.phone {
  color: #333;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.phone:hover {
  color: #c23d10;
}

.contact-info {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.callback-btn,
.cta-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.callback-btn,
.cta-button {
  background-color: #e94e1b;
  color: #fff;
}

.callback-btn {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.75rem;
}

.cta-button {
  padding: 13px 24px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(194, 61, 16, 0.18);
}

.secondary-button {
  border: 2px solid #8f5c4b;
  background: #fff;
  color: #633f33;
  padding: 11px 20px;
}

.callback-btn:hover,
.cta-button:hover {
  background-color: #c23d10;
  transform: translateY(-2px);
}

.secondary-button:hover {
  background: #8f5c4b;
  color: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid #c9c9c9;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-top: clamp(20px, 4vw, 48px);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 8px;
  color: #333;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3;
}

.hero-text h1 {
  max-width: 11ch;
  margin-bottom: 16px;
  color: #8f5c4b;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.hero-summary {
  max-width: 58ch;
  margin-bottom: 16px;
  color: #4d4d4d;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.price {
  margin-bottom: 22px;
  color: #333;
  font-size: 1.125rem;
  font-weight: 650;
}

.note {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
}

.hero-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 632 / 490;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* Sekcije */
.section {
  padding: clamp(52px, 7vw, 84px) 0;
  background-color: #f5f5f5;
}

.section:nth-of-type(even) {
  background-color: #fff;
}

.section h2 {
  max-width: 24ch;
  margin-bottom: 18px;
  color: #222;
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  line-height: 1.2;
}

.section h3 {
  color: #633f33;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.3;
}

.section p,
.section li {
  color: #555;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.section p {
  max-width: 78ch;
  margin-bottom: 14px;
}

.section ul,
.section ol {
  padding-left: 22px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin-top: 24px;
}

.epoxy-section {
  background: #efe9e6;
}

.epoxy-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(28px, 4vw, 46px);
}

.eyebrow {
  margin-bottom: 7px !important;
  color: #a23f18 !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.price-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid #e94e1b;
  background: rgba(255, 255, 255, 0.65);
}

.benefits-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 24px;
}

.epoxy-gallery-block {
  padding-bottom: clamp(28px, 4vw, 46px);
}

.epoxy-gallery-block h3 {
  margin-bottom: 8px;
}

.epoxy-gallery-note {
  margin-bottom: 20px !important;
  font-size: 0.95rem !important;
}

.epoxy-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.epoxy-photo-grid figure {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.epoxy-photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.epoxy-photo-grid figcaption {
  padding: 12px 14px 15px;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.5;
}
/* Galerija */
.gallery-group {
  margin-top: 36px;
}

.gallery-group h3 {
  margin-bottom: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.gallery-credits {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.gallery-credits summary {
  color: #444;
  font-weight: 700;
  cursor: pointer;
}

.gallery-credits ul {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.gallery-credits li {
  margin: 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
/* Proces */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding: 0 !important;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-width: 0;
  padding: 54px 17px 20px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  counter-increment: process;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 17px;
  color: #e94e1b;
  font-size: 1.35rem;
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 7px;
  color: #333;
}

.process-list span {
  font-size: 0.93rem;
}

/* Kontakt i footer */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  margin-top: 28px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 !important;
  list-style: none;
}

.contact-list li {
  min-width: 0;
  padding: 17px;
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}

.contact-list span {
  display: block;
  margin-bottom: 3px;
  color: #333;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-actions {
  display: grid;
  gap: 11px;
}

.footer {
  padding: 24px 0;
  background-color: #222;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

/* Tablet i mobilni prikaz */
@media (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-menu {
    order: 3;
    width: 100%;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  .logo {
    width: 68px;
    height: 68px;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 6px;
  }

  .nav-menu a:hover {
    background: #f4ece9;
  }

  .contact-info {
    order: 3;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .hero-text h1,
  .hero-summary {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-img {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .service-list,
  .epoxy-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery,
  .epoxy-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container {
    width: min(92%, 1200px);
  }

  .phone {
    font-size: 0.92rem;
  }

  .callback-btn {
    padding-inline: 11px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .note {
    display: block;
    margin-top: 4px;
  }

  .cta-button,
  .secondary-button {
    width: 100%;
  }

  .gallery,
  .epoxy-photo-grid,
  .process-list,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .gallery img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}