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

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


.home-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.home-head__actions, .carousel-nav { display: flex; align-items: center; gap: 10px; }
.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;
  border: 0;
  padding-bottom: 4px; 
}
.arrow-btn:hover { filter: brightness(1.08); }
.arrow-btn svg { fill: #fff; }

/* ── 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;
  left: 56px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px;
}
.hero-rating:hover, .hero-rating:focus-visible { color: #fff; background: rgba(0,0,0,.28); }
.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;
  scroll-snap-type: x mandatory;
}
.cat-carousel::-webkit-scrollbar { display: none; }

.cat-carousel__card {
  flex: 0 0 calc((100% - 96px) / 5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #000;
  scroll-snap-align: start;
}
.cat-carousel__card:hover { color: var(--teal); }
.cat-carousel__img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  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;
  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;
  position: relative;
  min-height: 267px;
  display: block;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--room-image) center / cover no-repeat;
  transition: transform .45s ease, filter .45s ease;
  will-change: transform;
}
.room:hover,
.room:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.room:hover::before,
.room:focus-visible::before {
  transform: scale(1.08);
  filter: brightness(.96);
}
.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; }
.proj-cta__benefits { margin: 16px 0 0; padding: 0; list-style: none; color: var(--olive); }
.proj-cta__benefits li { margin-top: 8px; line-height: 1.4; }
.proj-cta__benefits li::before { content: "✓"; margin-right: 8px; font-weight: 800; }

/* ── 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: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.blog-row::-webkit-scrollbar { display: none; }
.blog-card {
  flex: 0 0 calc((100% - 32px) / 3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--dark);
  scroll-snap-align: start;
}

/* ── Partner carousel ── */
.partners-row { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; scrollbar-width: none; }
.partners-row::-webkit-scrollbar { display: none; }
.partner-logo { flex: 0 0 calc((100% - 96px) / 5); height: 76px; padding: 12px 20px; display: flex; align-items: center; justify-content: center; border: 1px solid #e6e8e1; border-radius: 6px; background: #fff; scroll-snap-align: start; }
.partner-logo img { width: 100%; max-width: 150px; max-height: 48px; object-fit: contain; }
.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;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid #757967;
  background: #fff;
  padding: 10px 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-card { flex-basis: calc((100% - 16px) / 2); }
  .cat-carousel__card { flex-basis: calc((100% - 48px) / 3); }
  .partner-logo { flex-basis: calc((100% - 32px) / 3); }
  .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); }
  .home-head { align-items: flex-start; gap: 16px; }
  .home-head__actions { align-items: flex-end; flex-direction: column; }
  .blog-card { flex-basis: 86vw; }
  .cat-carousel { gap: 12px; }
  .cat-carousel__card { flex-basis: 68vw; }
  .partner-logo { flex-basis: 100%; }
  .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: 32px 24px; gap: 16px; }
  .newsletter__copy h2 { font-size: 36px; line-height: 1.05; }
  .newsletter__copy p { font-size: 15px; line-height: 1.55; }
  .newsletter__form { flex-direction: column; }
  .newsletter__submit { width: 100%; height: 46px; }
  .newsletter__input { width: 100%; padding: 12px 16px; }
  .partners-title { max-width: calc(100% - 104px); font-size: 16px; line-height: 1.4; }
  .home-head .carousel-nav { flex-shrink: 0; gap: 8px; }
  .home-head .arrow-btn { width: 40px; height: 40px; }
}
