/* ─────────────────────────────────────
   Homepage styles
   ───────────────────────────────────── */

:root {
  --lime: #cfef7d;
  --olive: #3a4d00;
  --dark: #1b1c15;
}


.home-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.home-link { font-size: 16px; color: #000; letter-spacing: 0.5px; }
.home-link:hover { text-decoration: underline; color: #000; }

.nav-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: filter .15s;
}
.arrow-btn:hover { filter: brightness(1.08); }
.arrow-btn svg { fill: #fff; }
.arrow-btn--left svg { transform: rotate(180deg); }

/* ── Buttons ── */
.btn-h {
  height: 46px;
  border-radius: var(--radius);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.6px;
  color: #fff;
  white-space: nowrap;
  transition: filter .15s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-h:hover { filter: brightness(1.06); color: #fff; }
.btn-h--green  { background: var(--green); text-transform: uppercase; }
.btn-h--teal   { background: var(--teal); text-transform: uppercase; }
.btn-h--olive  { background: var(--olive); height: 40px; font-size: 13px; padding: 0 28px; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 600px;
  background:
    linear-gradient(rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 63%),
    url('/assets/img/home/hero.jpg') center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin-top: 300px;
  font-family: var(--font);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-cta { margin-top: 22px; display: flex; gap: 16px; }

.hero-rating {
  position: absolute;
  top: 22px;
  right: 56px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
}
.hero-rating__num   { font-size: 32px; font-weight: 700; line-height: 1; }
.hero-rating__meta  { font-size: 13px; line-height: 1.3; }
.hero-rating__stars { display: flex; gap: 2px; margin-top: 4px; }
.hero-rating__stars svg { width: 13px; height: 13px; fill: var(--lime); }

/* ── Trust bar ── */
.trust-bar {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.trust-item__icon { width: 48px; height: 48px; color: var(--olive); display: flex; align-items: center; justify-content: center; }
.trust-item__icon svg { width: 100%; height: 100%; fill: currentColor; }
.trust-item__title { font-weight: 700; font-size: 16px; letter-spacing: 0.5px; }
.trust-item__desc  { font-size: 14px; letter-spacing: 0.25px; color: var(--dark); }

/* ── Banner ── */
.home-banner {
  height: 300px;
  background: #c4c4c4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 32px;
}
.banner-dots { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.banner-dot  { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
.banner-dot--active { background: var(--dark); }

/* ── Categories carousel ── */
.cat-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-carousel::-webkit-scrollbar { display: none; }

.cat-carousel__card {
  flex: 0 0 211px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #000;
}
.cat-carousel__card:hover { color: var(--teal); }
.cat-carousel__img {
  width: 211px;
  height: 211px;
  border-radius: 4px;
  background-color: #f2f2f2;
  background-size: cover;
  background-position: center;
  transition: opacity .2s;
}
.cat-carousel__card:hover .cat-carousel__img { opacity: .85; }
.cat-carousel__label { font-size: 18px; }

/* ── Rooms by-space grid ── */
.rooms {
  display: grid;
  grid-template-columns: 57% 1fr;
  gap: 16px;
}
.rooms__big {
  border-radius: 4px;
  background: url('/assets/img/home/dnevni-boravak.jpg') center / cover no-repeat;
  position: relative;
  min-height: 551px;
}
.rooms-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.room {
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 267px;
  display: block;
  text-decoration: none;
}
.room-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ── Before / After ── */


/* ── Projektiranje CTA ── */
.proj-cta {
  margin-top: 160px;
  height: 600px;
  position: relative;
  display: flex;
}
.proj-cta__bg {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--lime);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.proj-cta__img {
  width: 712px;
  height: 500px;
  margin-top: 100px;
  background: url('/assets/img/home/projektiranje.jpg') center / cover no-repeat;
  border-radius: 0 4px 0 0;
  flex-shrink: 0;
}
.proj-cta__text {
  padding: 100px 0 0 32px;
  max-width: 417px;
}
.proj-cta__text h2 {
  font-family: var(--font);
  font-size: 43px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--olive);
}
.proj-cta__text p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--olive);
}
.proj-cta__text .btn-h { margin-top: 16px; }

/* ── Calculator ── */
.calc {
  margin-top: 160px;
  min-height: 300px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.calc__text { flex: 1; padding-left: 48px; }
.calc__text h2 {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--dark);
}
.calc__text p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: #000;
}
.calc__text .btn-h { margin-top: 32px; }
.calc__img {
  width: 603px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 4px 0 0 4px;
  background: url('/assets/img/home/calculator.jpg') center / cover no-repeat;
}

/* ── B2B projects carousel ── */
.b2b-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.b2b-carousel::-webkit-scrollbar { display: none; }
.b2b-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #000;
}
.b2b-card:hover { color: var(--teal); }
.b2b-card__img {
  width: 320px;
  height: 320px;
  border-radius: 4px;
  background-color: #f2f2f2;
  background-size: cover;
  background-position: center;
  transition: opacity .2s;
}
.b2b-card:hover .b2b-card__img { opacity: .85; }
.b2b-card__label { font-size: 18px; }

/* ── Blog cards ── */
.blog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--dark);
}
.blog-card__img {
  width: 100%;
  aspect-ratio: 437 / 246;
  border-radius: 4px;
  background: #1a1a1a center / cover no-repeat;
}
.blog-card__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: var(--dark);
  transition: color .15s;
}
.blog-card:hover .blog-card__title { color: var(--teal); }

/* ── Newsletter ── */
.newsletter {
  margin-top: 160px;
  min-height: 325px;
  display: flex;
  margin-bottom: 80px;
}
.newsletter__img {
  width: 599px;
  flex-shrink: 0;
  background: url('/assets/img/home/newsletter.jpg') center / cover no-repeat;
}
.newsletter__copy {
  flex: 1;
  background: var(--lime);
  padding: 70px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.newsletter__copy h2 {
  font-family: var(--font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--olive);
}
.newsletter__copy p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--olive);
  max-width: 550px;
}
.newsletter__form { display: flex; gap: 8px; max-width: 437px; }
.newsletter__input {
  flex: 1;
  height: 44px;
  border-radius: 4px;
  border: 1px solid #757967;
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  color: var(--dark);
  font-family: var(--font);
  outline: none;
}
.newsletter__input::placeholder { color: #757967; }
.newsletter__submit {
  height: 44px;
  padding: 0 22px;
  background: var(--olive);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: filter .15s;
}
.newsletter__submit:hover { filter: brightness(1.1); }
.newsletter__submit:disabled { opacity: .7; cursor: default; }
.newsletter__msg { margin: 10px 0 0; font-size: 14px; color: #7a9a2e; }
.newsletter__msg.is-error { color: #c0392b; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .proj-cta__img { width: 420px; }
  .proj-cta__text { max-width: 340px; }
  .calc__img { width: 420px; }
}

@media (max-width: 900px) {
  .rooms { grid-template-columns: 1fr; }
  .rooms__big { min-height: 300px; }
  .blog-row { grid-template-columns: repeat(2, 1fr); }
  .proj-cta { height: auto; }
  .proj-cta__bg { flex-direction: column; height: auto; }
  .proj-cta__img { width: 100%; height: 260px; border-radius: 0; margin-top: 0; }
  .proj-cta__text { padding: 32px 24px 40px; max-width: 100%; }
  .calc { flex-direction: column-reverse; height: auto; gap: 0; }
  .calc__text { padding: 32px 24px; }
  .calc__img { width: 100%; border-radius: 4px 4px 0 0; }
  .newsletter { flex-direction: column; }
  .newsletter__img { width: 100%; min-height: 220px; }
  .hero { height: 500px; }
  .hero h1 { font-size: 28px; margin-top: 220px; }
  .hero-rating { display: none; }
}

@media (max-width: 600px) {
  .trust-bar { flex-wrap: wrap; }
  .trust-item { flex: 1 1 calc(50% - 12px); }
  .blog-row { grid-template-columns: 1fr; }
  .rooms-small { grid-template-columns: 1fr; }
  .newsletter { margin-top: 80px; }
  /* Hero */
  .hero { height: 420px; }
  .hero h1 { margin-top: 160px; font-size: 22px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
  /* proj-cta & calc margins */
  .proj-cta { margin-top: 80px; }
  .proj-cta__text h2 { font-size: 28px; }
  .calc { margin-top: 80px; }
  /* Newsletter */
  .newsletter__copy { padding: 40px 20px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__submit { width: 100%; height: 46px; }
}
