/* ==========================================================================
   OSSA Nieruchomości — homepage sections
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero .hero-search {
  position: absolute;
  left: 50%; bottom: 122px;
  transform: translateX(-50%);
  width: 800px; max-width: calc(100vw - 2 * var(--gutter));
  color: var(--c-white);
  font-family: var(--f-ui);
}
.hero .hs-box {
  display: flex;
  align-items: stretch;
  background: var(--c-beige-15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-height: 96px;
  transition: background 0.3s ease;
}
.hero .hs-box:hover { background: rgba(203, 196, 188, 0.25); }
.hero .hs-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.hero .hs-label { font-size: 16px; margin-bottom: 8px; opacity: 0.9; }
.hero .hs-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: none; outline: none;
  padding: 0.6rem 1rem;
  font-size: 14px;
  color: var(--c-white);
}
.hero .hs-input::placeholder { color: rgba(255, 255, 255, 0.85); }
.hero .hs-btn {
  width: 80px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero .hs-btn:hover { background: rgba(255, 255, 255, 0.08); }
.hero .hs-btn svg { width: 22px; height: 22px; transition: transform 0.2s ease; }
.hero .hs-btn:hover svg { transform: scale(1.15); }

@media (max-width: 809px) {
  .hero .hero-search { bottom: 60px; }
  .hero .hs-box { min-height: 84px; }
}

/* ---------- Shared section scaffolding ---------- */
.section { padding: 40px var(--gutter) 60px; }
.section .section-title { margin-bottom: 32px; }

/* ---------- Latest offers grid ---------- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px var(--grid-gap);
}
@media (max-width: 1199px) and (min-width: 810px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 809px) { .latest-grid { grid-template-columns: 1fr; } }

/* ---------- Premium (Starannie wyselekcjonowane oferty) ---------- */
.premium { padding: 40px var(--gutter) 80px; }
.premium .section-title { margin-bottom: 40px; }
.premium-inner { display: flex; }
.premium-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex: 1 1 52%;
}
.premium-tiles a { position: relative; overflow: hidden; aspect-ratio: 703 / 433; }
.premium-tiles img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.7s cubic-bezier(0.44, 0, 0.56, 1);
}
.premium-tiles a:hover img { transform: scale(1.12); }
.premium-panel {
  flex: 1 1 48%;
  background: var(--c-beige-60);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 70px;
  gap: 28px;
}
.premium-panel .t-section { text-align: center; }
.premium-panel p { text-align: left; color: var(--c-text); }
@media (max-width: 1199px) {
  .premium-inner { flex-direction: column; }
  .premium-panel { padding: 40px 30px; }
}

/* ---------- Details sections ---------- */
.details {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px var(--gutter);
}
.details .d-media { flex: none; overflow: hidden; }
.details .d-media--photo { width: 469px; }
.details .d-media--photo img { width: 100%; height: auto; }
.details .d-media--video { width: 459px; height: 687px; }
.details .d-media--video video { width: 100%; height: 100%; object-fit: cover; }
.details .d-inner { max-width: 839px; display: flex; flex-direction: column; gap: 24px; }
.details .d-inner .d-content { display: flex; flex-direction: column; gap: 16px; }
.details--center { justify-content: space-between; }
.details--center .d-inner { max-width: 839px; margin-left: auto; }
.details--right .d-inner { max-width: 776px; margin-left: 20px; margin-right: auto; }
.details--left .d-inner { max-width: 776px; margin-left: 60px; }

@media (max-width: 1199px) {
  .details { flex-direction: column; align-items: flex-start; gap: 32px; }
  .details .d-media--photo, .details .d-media--video { width: 100%; height: auto; }
  .details .d-media--video { max-height: 70vh; }
  .details .d-inner { margin: 0 !important; }
}

/* ---------- Contact form ---------- */
.home-form {
  display: flex;
  gap: 50px;
  padding: 50px var(--gutter);
  align-items: center;
}
.home-form .hf-title { flex: 1 1 50%; text-align: center; }
.home-form form { flex: 1 1 50%; display: flex; flex-direction: column; }
.form-field { position: relative; border-bottom: 1px solid var(--c-text-30); }
.form-row { display: flex; gap: 40px; }
.form-row .form-field { flex: 1; }
.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none; outline: none;
  padding: 18px 0 12px;
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--c-text);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--c-grey); }
.form-field textarea { resize: none; min-height: 76px; }
.home-form .form-submit {
  margin-top: 26px;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 12px 20px;
  text-align: center;
  width: 100%;
  transition: opacity 0.25s ease;
}
.home-form .form-submit:hover { opacity: 0.9; }
@media (max-width: 1199px) {
  .home-form { flex-direction: column; align-items: stretch; }
  .home-form .hf-title { text-align: left; }
}
@media (max-width: 809px) {
  .form-row { flex-direction: column; gap: 0; }
}

/* ---------- Blog list ---------- */
.blog-list { padding: 50px var(--gutter); }
.blog-list .section-title { margin-bottom: 36px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.blog-card { display: flex; flex-direction: column; }
.blog-card .bc-media { overflow: hidden; aspect-ratio: 437 / 310; }
.blog-card .bc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.44, 0, 0.56, 1);
}
.blog-card:hover .bc-media img { transform: scale(1.06); }
.blog-card .bc-date { margin-top: 16px; color: var(--c-text-70); }
.blog-card .bc-title { margin-top: 8px; line-height: 1.3em; }
.blog-card .bc-title a:hover { color: var(--c-orange); }
.blog-list .bl-more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 1199px) and (min-width: 810px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 809px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Awards strip ---------- */
.awards { display: flex; justify-content: center; padding: 40px var(--gutter) 60px; }
.awards img { height: 90px; width: auto; }
