/* =====================================================================
   SGWESTEC IMMO — Home CSS
   Hero : 1920 × 750 px — gauche texte / droite slider automatique
   ===================================================================== */

.sgw-home {
  --sgw-navy:   #06152b;
  --sgw-gold:   #eda62a;
  --sgw-ink:    #0c1b32;
  --sgw-muted:  #5c6675;
  --sgw-line:   #dfe5ed;
  background: #f4f7fb;
  color: var(--sgw-ink);
}

.sgw-home svg {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.sgw-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  min-height: clamp(430px, 58vh, 540px);
  overflow: hidden;
  background: radial-gradient(circle at 6% 42%, rgba(237,166,42,.11), transparent 14rem),
              linear-gradient(125deg, #071a34 0%, #031124 58%, #092a4f 100%);
}

/* Motif grille pointillée décoratif sur le contenu gauche */
.sgw-hero::before {
  content: "";
  position: absolute;
  left: 0; top: 6rem;
  width: 18rem; height: 24rem;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 13px 13px;
  pointer-events: none;
}

/* ─── Contenu (côté gauche) ─────────────────────────────────────────── */
.sgw-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 3.2vw, 3rem) clamp(1rem, 2.4vw, 2.45rem);
  color: #fff;
}

.sgw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .45rem;
  color: var(--sgw-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sgw-eyebrow span {
  width: .75rem; height: .42rem;
  border-radius: 2px;
  background: var(--sgw-gold);
}

.sgw-hero h1 {
  max-width: 30rem;
  margin: 0;
  color: #fff;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
  text-transform: uppercase;
}

.sgw-hero h1 span { display: block; color: var(--sgw-gold); }

.sgw-hero__lead {
  max-width: 30rem;
  margin: .6rem 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(.84rem, .92vw, .94rem);
  line-height: 1.42;
}

/* ─── Slider (côté droit) ───────────────────────────────────────────── */
.sgw-hero__media {
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Overlap arrondi bleu-marine qui "mord" sur la zone image, de gauche */
.sgw-hero__media::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 -16%;
  width: 34%;
  background: #06152b;
  clip-path: ellipse(63% 58% at 0% 50%);
  pointer-events: none;
}

/* Arc décoratif doré sur le bord gauche du media */
.sgw-hero__media::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: -15%; top: 16%;
  width: 38%; height: 58%;
  border: 2px solid var(--sgw-gold);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
  opacity: .9;
  pointer-events: none;
}

/* Slides */
.sgw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.sgw-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.sgw-slide img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ken Burns subtil sur la slide active */
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.sgw-slide.is-active img { transform: scale(1); }

/* Dégradé bas pour lisibilité des dots */
.sgw-hero__media > .sgw-slider__gradient {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(6,21,43,.6));
  z-index: 6;
  pointer-events: none;
}

/* Dots de navigation */
.sgw-slider__dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .45rem;
  z-index: 10;
}

.sgw-slider__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s ease, width .35s cubic-bezier(.4,0,.2,1), border-radius .35s;
}

.sgw-slider__dot.is-active {
  background: var(--sgw-gold);
  width: 26px;
  border-radius: 4px;
}

.sgw-slider__dot:hover:not(.is-active) { background: rgba(255,255,255,.7); }

/* Label de slide (bas-gauche de l'image) */
.sgw-slider__label {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  padding: .38rem .82rem;
  background: rgba(6,21,43,.72);
  border: 1px solid rgba(237,166,42,.35);
  border-radius: 4px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ─── Bannière / défilement images (côté droit) ─────────────────────── */
.sgw-hero__banner {
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Défilement automatique des images (slider CSS pur, sans JS) */
.sgw-hero__banner-slides {
  display: flex;
  width: 100%;
  height: 100%;
  animation: sgw-slide-scroll 16s cubic-bezier(.4,0,.2,1) infinite;
  will-change: transform;
}

.sgw-hero__banner-slides:hover {
  animation-play-state: paused;
}

.sgw-hero__banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.sgw-hero__banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Légende discrète en bas de l'image */
.sgw-hero__slide-caption {
  position: absolute;
  bottom: 1rem; right: 1rem;
  padding: .3rem .7rem;
  border-radius: 4px;
  background: rgba(6,21,43,.72);
  border: 1px solid rgba(237,166,42,.3);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Indicateur de progression bas */
.sgw-hero__banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--sgw-gold);
  animation: sgw-progress 16s linear infinite;
  transform-origin: left;
}

@keyframes sgw-slide-scroll {
  0%,22%       { transform: translateX(0); }
  25%,47%      { transform: translateX(-100%); }
  50%,72%      { transform: translateX(-200%); }
  75%,97%      { transform: translateX(-300%); }
  100%         { transform: translateX(-400%); }
}

@keyframes sgw-progress {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* Fallback image unique (si pas de slides) */
.sgw-hero__banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sgw-hero__banner-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #071a34, #0a2240);
  color: rgba(255,255,255,.4);
  font-size: .9rem;
}

/* ─── Barre de recherche ─────────────────────────────────────────────── */
.sgw-search {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1fr) 3rem;
  width: min(100%, 39rem);
  margin-top: .85rem;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.32), 0 0 0 1px rgba(237,166,42,.18);
  transition: box-shadow .2s;
}

.sgw-search:focus-within {
  box-shadow: 0 24px 60px rgba(0,0,0,.36), 0 0 0 2px rgba(237,166,42,.45);
}

.sgw-search__field {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .46rem .62rem;
  border-right: 1px solid var(--sgw-line);
  color: var(--sgw-ink);
  transition: background .15s;
}

.sgw-search__field:hover { background: #fafbfd; }

.sgw-search__icon {
  display: grid;
  width: 1.35rem; height: 1.35rem;
  place-items: center;
  color: var(--sgw-navy);
  flex: 0 0 auto;
}

.sgw-search__field > span:last-child { display: grid; min-width: 0; gap: .04rem; }

.sgw-search strong { color: #596173; font-size: .64rem; font-weight: 700; }

.sgw-search input,
.sgw-search select {
  width: 100%; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  color: var(--sgw-ink);
  font-size: .74rem;
}

.sgw-search input::placeholder { color: #7b8390; }

.sgw-search__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  width: 3rem;
  border: 0;
  background: linear-gradient(135deg, #f5b236, #c97e0e);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s;
  letter-spacing: .01em;
}

.sgw-search__button svg {
  width: 1.05rem;
  height: 1.05rem;
}

.sgw-search__button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sgw-search__button:hover { filter: brightness(1.12); }
.sgw-search__button:active { filter: brightness(.95); }

/* ─── Checks du hero ─────────────────────────────────────────────────── */
.sgw-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: .65rem;
  padding: .48rem .65rem;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(237,166,42,.22);
  backdrop-filter: blur(4px);
}

.sgw-hero__checks span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: rgba(255,255,255,.95);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.sgw-hero__checks svg {
  flex-shrink: 0;
  width: 1rem; height: 1rem;
  color: var(--sgw-gold);
  background: rgba(237,166,42,.15);
  border-radius: 50%;
  padding: 1px;
}

.sgw-hero__stats-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  max-width: min(100%, 38rem);
  margin: .65rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
}

.sgw-hero__stats-line svg {
  flex-shrink: 0;
  width: 1.1rem; height: 1.1rem;
  color: var(--sgw-gold);
}

.sgw-hero__stats-line strong {
  color: #fff;
  font-size: 1.1em;
  font-weight: 900;
}

/* ─── Bandeau de confiance ──────────────────────────────────────────── */
.sgw-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 2rem, 86rem);
  margin: 0 auto;
  padding: 1.55rem 0;
}

.sgw-trust__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: .2rem 1.35rem;
  border-right: 1px solid var(--sgw-line);
}

.sgw-trust__item:last-child { border-right: 0; }

.sgw-trust h2 {
  margin: 0;
  color: var(--sgw-ink);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sgw-trust p { margin: .18rem 0 0; color: var(--sgw-ink); font-size: .82rem; line-height: 1.35; }

/* ─── Icônes ────────────────────────────────────────────────────────── */
.sgw-icon {
  position: relative;
  display: grid;
  width: 3.05rem; height: 3.05rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #082347, #06152b);
  color: var(--sgw-gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 20px rgba(6,21,43,.12);
}

.sgw-icon::before,
.sgw-icon::after {
  content: "";
  position: absolute;
  inset: 30%;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.sgw-icon--shield::before   { border-radius: 40% 40% 48% 48%; transform: translateY(-2px); }
.sgw-icon--award::before    { border-radius: 50%; }
.sgw-icon--award::after     { inset: auto 34% 20%; height: 12px; border-top: 0; border-radius: 0 0 2px 2px; }
.sgw-icon--users::before    { inset: 28% 38% 44%; border-radius: 50%; }
.sgw-icon--users::after     { inset: 48% 24% 25%; border-radius: 50% 50% 3px 3px; }
.sgw-icon--headset::before  { border-bottom-color: transparent; border-radius: 50% 50% 0 0; }
.sgw-icon--headset::after   { inset: 58% 28% 28% 56%; border-radius: 2px; }
.sgw-icon--building::before { inset: 23% 34% 24%; border-radius: 2px; }
.sgw-icon--search::before   { inset: 25% 35% 35% 25%; border-radius: 50%; }
.sgw-icon--search::after    { inset: auto 25% 26% auto; width: 15px; height: 2px; border: 0; background: currentColor; transform: rotate(45deg); }
.sgw-icon--document::before { inset: 24% 30%; }
.sgw-icon--handshake::before{ inset: 36% 24% 34%; transform: rotate(-18deg); }
.sgw-icon--home::before     { inset: 35% 28% 25%; }
.sgw-icon--home::after      { inset: 20% 24% auto; height: 24px; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.sgw-icon--announce::before,
.sgw-icon--light::before,
.sgw-icon--badge::before    { border-radius: 50%; }

/* ─── Biens en vedette ──────────────────────────────────────────────── */
.sgw-featured {
  display: block; /* sgw-why supprimé — panel pleine largeur */
  width: min(100% - 2rem, 86rem);
  margin: 0 auto;
}

.sgw-featured__panel,
.sgw-why,
.sgw-seller-cta { border-radius: 8px; }

.sgw-featured__panel {
  padding: 1.35rem;
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 50px rgba(12,27,50,.08);
}

.sgw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sgw-section-head h2,
.sgw-why h2,
.sgw-seller-cta h2 {
  margin: 0;
  font-family: var(--font-body, Inter, sans-serif);
  letter-spacing: 0;
}

.sgw-section-head h2 { color: var(--sgw-ink); font-size: 1.18rem; font-weight: 900; text-transform: uppercase; }

.sgw-section-head span,
.sgw-why__line { display: block; width: 1.5rem; height: 2px; margin-top: .35rem; background: var(--sgw-gold); }

.sgw-section-head a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--sgw-navy);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.sgw-property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* Grille "tous les biens" : 4 colonnes par défaut, responsive */
.sgw-property-grid--all {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .sgw-property-grid--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .sgw-property-grid--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .sgw-property-grid--all { grid-template-columns: 1fr; }
}

.sgw-property-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(12,27,50,.1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.sgw-property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(12,27,50,.14);
}

.sgw-property-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1.55;
  overflow: hidden;
  color: #fff;
}

.sgw-property-card__image img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.sgw-property-card:hover .sgw-property-card__image img { transform: scale(1.04); }

.sgw-property-card__image span {
  position: absolute;
  left: .6rem; top: .55rem;
  padding: .32rem .65rem;
  border-radius: 4px;
  background: #07182f;
  font-size: .67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sgw-property-card__body { padding: .78rem .86rem .95rem; }

.sgw-property-card h3 {
  min-height: 2.35rem;
  margin: 0;
  color: var(--sgw-ink);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: .93rem;
  font-weight: 900;
  line-height: 1.25;
}

.sgw-property-card h3 a { color: inherit; text-decoration: none; }
.sgw-property-card h3 a:hover { color: var(--sgw-navy); }

.sgw-property-card__place {
  display: flex;
  align-items: center;
  gap: .32rem;
  margin: .45rem 0 .55rem;
  color: #303b4c;
  font-size: .74rem;
  line-height: 1.2;
}

.sgw-property-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  min-height: 1.05rem;
  color: #3f4856;
  font-size: .74rem;
}

.sgw-property-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}

.sgw-property-card__facts span::before {
  content: "";
  display: inline-block;
  width: .65rem; height: .65rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.sgw-property-card__price { margin: .65rem 0 0; color: var(--sgw-ink); font-size: 1.05rem; font-weight: 900; }
.sgw-property-card__price small { font-size: .74rem; font-weight: 700; }

.sgw-empty {
  padding: 2rem;
  border: 1px dashed var(--sgw-line);
  border-radius: 8px;
  text-align: center;
}

.sgw-empty h3 { margin: 0; font-family: var(--font-body, Inter, sans-serif); }
.sgw-empty p  { margin: .5rem 0 0; color: var(--sgw-muted); }

/* ─── Encart "Pourquoi SGWESTEC" ────────────────────────────────────── */
.sgw-why {
  padding: 1.55rem 1.65rem;
  background: linear-gradient(135deg, rgba(7,24,47,.98), rgba(5,17,36,.98)),
              url("/images/sgwestec-hero-house.jpg") center/cover;
  color: #fff;
  box-shadow: 0 22px 50px rgba(12,27,50,.14);
}

.sgw-why h2 { color: #fff; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; }

.sgw-why > p {
  max-width: 42rem;
  margin: .58rem 0 .85rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  line-height: 1.45;
}

.sgw-why__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.15rem 0;
}

.sgw-why__items article {
  display: grid;
  justify-items: center;
  gap: .58rem;
  padding: .45rem .8rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.22);
}

.sgw-why__items article:last-child { border-right: 0; }

.sgw-why__items .sgw-icon { width: 3.5rem; height: 3.5rem; background: transparent; box-shadow: none; color: var(--sgw-gold); }

.sgw-why__items h3 {
  max-width: 8rem;
  margin: 0;
  color: #fff;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
}

.sgw-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 2rem, 86rem);
  margin: 1.2rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(6,21,43,.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(6,21,43,.08);
}

.sgw-stats div {
  display: grid;
  gap: .1rem;
  padding: .95rem .8rem;
  text-align: center;
  border-right: 1px solid var(--sgw-line);
}

.sgw-stats div:last-child { border-right: 0; }
.sgw-stats strong {
  color: var(--sgw-gold);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}
.sgw-stats span {
  color: #3e4857;
  font-size: .78rem;
  font-weight: 700;
}
.sgw-stats .sgw-stats__value {
  color: var(--sgw-gold);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}
.sgw-stats .sgw-stats__label {
  color: #3e4857;
  font-size: .78rem;
  font-weight: 700;
}

/* ─── CTA Vendeur ───────────────────────────────────────────────────── */
.sgw-seller-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(20rem, .9fr);
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2rem, 86rem);
  margin: .6rem auto 3.5rem;
  padding: 1.35rem 1.55rem;
  background: linear-gradient(90deg, rgba(6,21,43,.98), rgba(6,21,43,.92)),
              url("/images/sgwestec-hero-house.jpg") center/cover;
  color: #fff;
  border-radius: 8px;
}

.sgw-seller-cta__title { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.sgw-seller-cta__title .sgw-icon { width: 4.1rem; height: 4.1rem; border: 2px solid var(--sgw-gold); background: transparent; box-shadow: none; }
.sgw-seller-cta h2 { color: #fff; font-size: 1.18rem; font-weight: 900; text-transform: uppercase; }
.sgw-seller-cta p  { margin: .35rem 0 0; color: rgba(255,255,255,.9); font-size: .9rem; }

.sgw-seller-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--sgw-gold);
  border-radius: 8px;
  color: var(--sgw-gold);
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.sgw-seller-cta__button:hover { background: var(--sgw-gold); color: var(--sgw-navy); }

.sgw-seller-cta__benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sgw-seller-cta__benefits span { display: flex; align-items: center; gap: .6rem; min-width: 0; color: #fff; font-size: .88rem; line-height: 1.35; }
.sgw-seller-cta__benefits .sgw-icon { width: 2.3rem; height: 2.3rem; background: transparent; box-shadow: none; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .sgw-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 430px;
  }
  .sgw-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .sgw-hero__media::before,
  .sgw-hero__media::after { display: none; }
  .sgw-hero__content { z-index: 2; background: rgba(5,17,36,.72); backdrop-filter: blur(4px); }
  .sgw-search { width: min(100%, 39rem); }
  .sgw-featured   { grid-template-columns: 1fr; }
  .sgw-seller-cta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sgw-search,
  .sgw-trust,
  .sgw-property-grid,
  .sgw-why__items,
  .sgw-stats,
  .sgw-seller-cta__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgw-search__button { min-height: 2.45rem; }
  .sgw-trust__item:nth-child(2n),
  .sgw-why__items article:nth-child(2n),
  .sgw-stats div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 640px) {
  .sgw-hero { min-height: 0; }
  .sgw-hero__content { padding: 1.45rem 1rem 1.35rem; }
  .sgw-hero h1 { font-size: clamp(1.75rem, 9vw, 2.45rem); }
  .sgw-hero__lead { font-size: .84rem; }
  .sgw-hero__stats-line { font-size: .88rem; }
  .sgw-slider__label { display: none; }
  .sgw-search {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    border-radius: 8px;
  }
  .sgw-search,
  .sgw-trust,
  .sgw-property-grid,
  .sgw-why__items,
  .sgw-stats,
  .sgw-seller-cta__benefits { grid-template-columns: 1fr; }
  .sgw-search__field {
    min-height: 3.55rem;
    padding: .65rem .8rem;
  }
  .sgw-search__button {
    width: 3.25rem;
    min-height: 2.75rem;
    justify-self: start;
    border-radius: 0 0 0 8px;
  }
  .sgw-search__field,
  .sgw-trust__item,
  .sgw-why__items article,
  .sgw-stats div { border-right: 0; border-bottom: 1px solid var(--sgw-line); }
  .sgw-why__items article,
  .sgw-stats div { border-bottom-color: rgba(255,255,255,.18); }
  .sgw-search__field:last-of-type,
  .sgw-trust__item:last-child,
  .sgw-why__items article:last-child,
  .sgw-stats div:last-child { border-bottom: 0; }
  .sgw-featured,
  .sgw-trust,
  .sgw-stats,
  .sgw-seller-cta { width: min(100% - 1rem, 86rem); }
  .sgw-section-head { align-items: flex-start; flex-direction: column; }
  .sgw-seller-cta__title { align-items: flex-start; flex-direction: column; }
  .sgw-seller-cta__button { width: 100%; }
}
