/*
 * sodnamis — blocks.css
 * Sections matching the variantas-4 homepage: offers banner, finder, showroom,
 * prices band, FAQ, video. Author: sodnamis.lt
 */

.section--sm { padding-block: var(--space-12); }
@media (min-width: 768px) { .section--sm { padding-block: var(--space-16); } }

/* Gradient-highlighted heading fragment */
.gradient-text {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Offers banner (slanted image collage) ---------- */
.offers-banner {
  position: relative; display: block;
  min-height: clamp(300px, 42vw, 460px);
  overflow: hidden; isolation: isolate;
  background: hsl(var(--primary));
}
.offers-banner__strip { position: absolute; inset: -2px -8% ; display: flex; gap: 6px; transform: skewX(-9deg); }
.offers-banner__slide { flex: 1 1 0; min-width: 0; overflow: hidden; }
.offers-banner__slide img { width: 100%; height: 100%; object-fit: cover; transform: skewX(9deg) scale(1.25); }
.offers-banner__overlay { position: absolute; inset: 0; transform: skewX(9deg); background: var(--gradient-hero-overlay); }
.offers-banner__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 6vw, 5rem);
}
.offers-banner__title {
  color: #fff; margin: 0; text-align: center;
  font-family: var(--font-heading); font-weight: 800; letter-spacing: 0.06em;
  font-size: clamp(1.75rem, 5vw, 3.75rem); text-transform: uppercase;
  text-shadow: 0 4px 24px hsl(220 40% 8% / 0.5);
}
.offers-banner__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(3.5rem, 7vw, 5.25rem); aspect-ratio: 1; border-radius: 9999px;
  background: hsl(var(--destructive)); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(0.9rem, 1.6vw, 1.35rem);
  box-shadow: 0 8px 24px hsl(0 60% 30% / 0.4); flex-shrink: 0;
}
@media (max-width: 640px) { .offers-banner__badge { display: none; } }

/* ---------- Find Your Perfect Home ---------- */
.finder__inner { max-width: 64rem; margin-inline: auto; }
.finder__head { margin-bottom: var(--space-8); }
.finder__head h2 { margin-bottom: 0.35rem; }
.finder__card { padding: 1.5rem; }
@media (min-width: 768px) { .finder__card { padding: 2rem; } }
.finder__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .finder__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .finder__grid { grid-template-columns: repeat(4, 1fr); } }
.finder__field { display: flex; flex-direction: column; gap: 0.4rem; }
.finder__field label { font-size: 0.85rem; font-weight: 600; color: hsl(var(--foreground)); }
.finder__field select {
  height: 2.75rem; padding: 0 0.75rem; font: inherit; font-size: 0.9rem;
  border: 1px solid hsl(var(--input)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground));
}
.finder__field select:disabled { background: hsl(var(--secondary) / 0.5); cursor: not-allowed; }
.finder__btn { width: 100%; margin-top: 1.25rem; }

/* ---------- Visit showroom (navy band) ---------- */
.visit__eyebrow { display: inline-block; margin-bottom: 0.75rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(0 0% 100% / 0.6); }
.visit__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .visit__grid { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.visit__media { border-radius: var(--radius); overflow: hidden; }
.visit__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.visit__card {
  display: flex; flex-direction: column; gap: 2rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.07); backdrop-filter: blur(6px); border: 1px solid hsl(0 0% 100% / 0.1);
}
@media (min-width: 768px) { .visit__card { padding: 2rem; } }
.visit__text { color: hsl(0 0% 100% / 0.8); font-size: 1.0625rem; margin: 0; }
.visit__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.visit__info li { display: flex; align-items: flex-start; gap: 0.75rem; color: hsl(0 0% 100% / 0.85); font-size: 0.95rem; }
.visit__info strong { color: #fff; }
.visit__ico { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 0.6rem; background: hsl(0 0% 100% / 0.1); color: #fff; }
.visit__btn { margin-top: auto; align-self: flex-start; }

/* ---------- Prices band ---------- */
.prices-band { background: hsl(var(--accent) / 0.08); }
.prices-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.prices-band__text h2 { margin-bottom: 0.35rem; }
.prices-band__text p { margin: 0; max-width: 44rem; }

/* ---------- Blog preview ---------- */
.blog-preview__grid .post-card__title { font-size: 1rem; }

/* ---------- FAQ accordion ---------- */
.faq__list { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.faq__item { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 0 1.5rem; background: hsl(var(--background)); transition: background 0.2s ease; }
.faq__item[open] { background: hsl(var(--muted) / 0.5); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; color: hsl(var(--foreground));
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q { color: hsl(var(--primary)); }
.faq__chevron { flex-shrink: 0; transition: transform 0.2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 0 1.25rem; color: hsl(var(--muted-foreground)); }
.faq__a p { margin: 0; }

/* ---------- Video ---------- */
.video-block__frame { position: relative; max-width: 64rem; margin-inline: auto; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-card-hover); }
.video-block__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.video-block__scrim { position: absolute; inset: 0; background: hsl(var(--foreground) / 0.3); }
.video-block__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
}
.video-block__play svg { display: inline-flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; padding: 1.7rem; margin-left: 0.15rem; border-radius: 9999px; background: hsl(var(--primary)); color: #fff; box-shadow: var(--shadow-card-hover); transition: transform 0.2s ease; }
.video-block__play:hover svg { transform: scale(1.06); }

/* ---------- Contact CTA (dark, newsletter + contact card) ---------- */
.cta-contact { position: relative; overflow: hidden; }
.cta-contact__blob { position: absolute; width: 24rem; height: 24rem; border-radius: 9999px; filter: blur(80px); z-index: 0; }
.cta-contact__blob--a { top: 0; left: 0; background: hsl(var(--primary) / 0.25); transform: translate(-50%, -50%); }
.cta-contact__blob--b { bottom: 0; right: 0; background: hsl(var(--accent) / 0.25); transform: translate(50%, 50%); }
.cta-contact__grid { position: relative; z-index: 1; display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .cta-contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.cta-contact__lead h2 { color: #fff; margin-bottom: 1rem; }
.cta-contact__lead .section-lead { color: hsl(0 0% 100% / 0.7); margin-bottom: 1.5rem; }
.cta-contact__newsletter { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-contact__newsletter input {
  flex: 1 1 14rem; min-width: 0; height: 3rem; padding: 0 1rem 0 1rem;
  border: 1px solid hsl(0 0% 100% / 0.2); border-radius: 9999px;
  background: hsl(0 0% 100% / 0.08); color: #fff; font: inherit;
}
.cta-contact__newsletter input::placeholder { color: hsl(0 0% 100% / 0.5); }
.cta-contact__card { padding: 2rem; background: hsl(0 0% 100% / 0.06); border: 1px solid hsl(0 0% 100% / 0.1); backdrop-filter: blur(6px); }
.cta-contact__card h3 { color: #fff; margin-bottom: 1.25rem; }
.cta-contact__list { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.cta-contact__list li { display: flex; align-items: center; gap: 0.75rem; color: hsl(0 0% 100% / 0.85); }
.cta-contact__list a { color: hsl(0 0% 100% / 0.85); }
.cta-contact__list a:hover { color: #fff; }
.cta-contact__ico { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 0.6rem; background: hsl(var(--primary)); color: #fff; }
