/* ================= HEADER ================= */
.header {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-icon {
  height: 5.6rem;
  width: auto;
  border-radius: 0.8rem;
}

.main-nav .nav-list {
  display: flex;
  gap: 4.8rem;
}

.main-nav a {
  font-size: 1.7rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
}

#pocetna {
  scroll-margin-top: 9rem;
}

/* Mobilno dugme (skriveno na desktopu) */
.btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.6rem;
}

.btn-mobile-nav svg {
  width: 3rem;
  height: 3rem;
}

.icon-mobile-close {
  display: none;
}

/* ================= SECTION HERO ================= */
.hero-section {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.72)),
    url("../img/vinograd.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--text-white);
  padding: 6rem 0;
}

.hero-container {
  width: 100%;
}

.hero-content {
  max-width: 85rem;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.hero-description {
  font-size: 2.2rem;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.92;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 0.8rem;
}

.btn-call svg {
  width: 2rem;
  height: 2rem;
}

/* ================= SECTION O NAMA ================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6.4rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.about-section p {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  line-height: 1.65;
  text-align: justify;
}

.about-image {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to bottom,
    rgba(27, 56, 41, 0.15),
    rgba(27, 56, 41, 0.55)
  ); */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.45)
  );

  pointer-events: none;
}

.about-image img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 5 / 5;
  object-fit: cover;
  border-radius: 1.2rem;
  display: block;
}

/* ================= SECTION USLUGE ================= */
.services-grid {
  margin-top: 4rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 3.6rem 3.2rem;
  border-radius: 1.6rem;
  border: 1px solid var(--border-green);
  box-shadow: 0 0.8rem 2.4rem rgba(27, 56, 41, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.8rem rgba(27, 56, 41, 0.08);
}

.service-icon {
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 2rem;
  background-color: var(--bg-light-green);
  color: var(--primary-green);
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 2.6rem;
  height: 2.6rem;
}

.service-card h3 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin: 1.2rem 0;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1.6;
}

/* ================= SECTION FAQ ================= */
.faq-list {
  max-width: 110rem;
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.4rem;
  align-items: start;
}

.faq-item {
  background-color: var(--bg-light-green);
  border: 1px solid var(--border-green);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  background-color: var(--bg-white);
  border-color: var(--primary-green);
  box-shadow: 0 0.8rem 2rem rgba(27, 56, 41, 0.08);
}

.faq-question {
  min-height: 7.4rem;
  padding: 1.6rem 2.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-green);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 2.2rem 1.8rem;
}

.faq-answer p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ================= SECTION KONTAKT ================= */
.cta {
  max-width: 96rem;
  margin: 0 auto;
  background-color: var(--primary-dark);
  color: var(--text-white);
  border-radius: 1.6rem;
  padding: 5.6rem 6.4rem;
  box-shadow: 0 2.4rem 4.8rem rgba(27, 56, 41, 0.15);
}

.cta-header {
  margin-bottom: 3.6rem;
}

.cta .heading-secondary {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 1.6rem;
  color: var(--text-white);
}

.cta-text {
  font-size: 1.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.8rem;
  row-gap: 2.4rem;
}

.cta-form-title {
  grid-column: 1 / -1;
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-full-width {
  grid-column: 1 / -1;
}

.cta-form label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.label-row label {
  margin-bottom: 0;
}

.optional-badge {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 1.4rem 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 2px solid transparent;
  border-radius: 0.8rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-form textarea {
  min-height: 16rem;
  resize: vertical;
  line-height: 1.5;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #888888;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.4rem rgba(82, 150, 74, 0.35);
}

.btn--form {
  padding: 1.8rem 3.2rem;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  margin-top: 0.8rem;
}

.cta-response-note {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-privacy {
  margin-top: 3.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.35rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.privacy-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.form-result {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.8rem;
}

.form-result.success {
  padding: 1.4rem 2rem;
  background-color: rgba(82, 150, 74, 0.25);
  border: 1px solid var(--primary-green);
  color: #b7f0b1;
}

.form-result.error {
  padding: 1.4rem 2rem;
  background-color: rgba(220, 38, 38, 0.2);
  border: 1px solid #ef4444;
  color: #fecaca;
}

/* ================= FOOTER ================= */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 3.2rem 0;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copy {
  font-size: 1.3rem;
  opacity: 0.8;
  font-style: italic;
  text-align: center;
}

/* ================= RESPONZIVNOST PO SEKCIJAMA ================= */

/* Tablet (<= 1024px) */
@media (max-width: 64em) {
  .main-nav .nav-list {
    gap: 3.2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-image {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-question {
    min-height: auto;
  }

  .cta {
    padding: 4.8rem 4rem;
  }
}

/* Telefon (<= 768px) */
@media (max-width: 48em) {
  .logo-icon {
    height: 4.4rem;
  }

  /* Mobilni meni */
  .btn-mobile-nav {
    display: block;
    z-index: 101;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(27, 56, 41, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .header.nav-open .icon-mobile-open {
    display: none;
  }

  .header.nav-open .icon-mobile-close {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 3.6rem;
  }

  .main-nav a {
    font-size: 2.4rem;
  }

  /* Hero */
  .hero-section {
    min-height: 75vh;
  }

  .hero-description {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.6rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* O nama */
  .about-section p {
    text-align: left;
  }

  /* Kontakt */
  .cta {
    padding: 3.6rem 2.4rem;
  }

  .cta .heading-secondary {
    font-size: 2.8rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }
}
