* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Inter", sans-serif;
  background: #E1C485;
  color: #fff;
}

/* ===============================
   CONTAINER
   =============================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  max-height: none;
}

/* ===============================
   HEADER
   =============================== */
.site-header {
  background: #E1C485;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

.main-nav a:not(.btn-primary) {
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:not(.btn-primary):hover {
  transform: translateY(-1px);
}

.main-nav a:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

.main-nav a:not(.btn-primary):active {
  transform: translateY(0);
  opacity: 0.7;
}

.logo img {
  height: 40px;
}

/* ===============================
   MAIN
   =============================== */
.page-main {
  padding: 24px 0 40px;
}

.main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SLIKA */
.main-image {
  width: 70%;
  max-width: 900px;
  height: auto;
  display: block;
}

/* ===============================
   BELO POLJE
   =============================== */
.info-card {
  width: 70%;
  max-width: 900px;
  background: #ffffff;
  color: #E1C485;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  height: 65vh;
}

/* ===============================
   VIEW SISTEM
   =============================== */
.card-view {
  position: absolute;
  inset: 0;
  padding: 18px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.card-view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===============================
   LIST VIEW
   =============================== */
.card-view--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, padding-left 160ms ease;
}

.row:hover {
  background: rgba(225,196,133,0.12);
  padding-left: 10px;
}

.row:active {
  background: rgba(225,196,133,0.18);
}

.row + .row {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.row-ico {
  width: 26px;
  height: 26px;
}

.row-text {
  font-weight: 600;
  font-size: 18px;
  color: #E1C485;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
  color: #E1C485;
}

/* ===============================
   DETAIL VIEW (SCROLL)
   =============================== */
.card-view--detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #E1C485;
}

.detail-text {
  font-size: 20px;
  line-height: 1.55;
  color: #E1C485;
  padding-bottom: 16px;
}

/* ===============================
   STICKY FOOTER U KARTICI
   =============================== */
.detail-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 0 6px;
  background: #ffffff;

}

/* NAZAD DUGME */
.back-btn {
  border: none;
  background: rgba(225,196,133,0.15);
  color: #E1C485;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.back-btn:hover {
  background: rgba(225,196,133,0.25);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0);
}
/* ===============================
   CONTACT CTA (ISPOD KARTICE)
   =============================== */
.contact-card {
  width: 70%;
  max-width: 900px;
  background: #ffffff;
  color: #E1C485;
  margin-top: 12px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 18px;
  text-align: center;
}

.contact-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #E1C485;
}

.contact-text {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
  color: #E1C485;
}

.contact-btn {
  display: inline-block;
  text-decoration: none;
  background: rgba(225,196,133,0.15);
  color: #E1C485;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-btn:hover {
  background: rgba(225,196,133,0.25);
  transform: translateY(-1px);
}

.contact-btn:active {
  transform: translateY(0);
}


/* footer */
.site-footer{
  border-top:1px solid rgba(0,0,0,0.25);
  padding:24px 0;
  margin-top:56px;
  background:#E1C485
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:white;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #f0f0f0; }


/* ===============================
   MOBILE
   =============================== */
@media (max-width: 900px) {


  body {
    overflow-x: hidden;
  }

  .main-image,
  .info-card {
    width: 90%;
  }

  .info-card {
    height: auto;
    min-height: 55vh;
  }


  .row-text {
    font-size: 14px;
  }

  .detail-title {
    font-size: 20px;
  }

  .detail-text {
    font-size: 16px;
  }
   .contact-card {
    width: 90%;
  }
}
