/* File: assets/css/pages/home.css */
.home-page .hero{
  min-height: min(88vh, 820px);
  display:flex;
  align-items:flex-end;
  background-size:cover;
  background-position:center;
  position:relative;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.home-page .hero--find{
  min-height: min(60vh, 560px);
  align-items:center;
}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.74));
}
.hero__overlay--dark{
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.82));
}
.hero__inner{
  position:relative;
  width:min(1100px, calc(100% - 32px));
  margin-inline:auto;
  padding:76px 0;
}
.hero__inner--left{margin-inline:auto auto; padding-left:16px; padding-right:16px; width:min(900px, calc(100% - 32px));}
.hero__eyebrow{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(230,237,246,.86);
}
.hero__eyebrow--small{font-size:12px}
.hero__title{
  margin:0 0 18px;
  text-transform:uppercase;
  letter-spacing:-.02em;
  text-shadow:0 10px 30px rgba(0,0,0,.45);
}
.hero__title--medium{font-size:clamp(24px,3vw,40px)}
.hero__btn{margin-top:6px}

.hero__scroll{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:34px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(230,237,246,.72);
}
.hero__scroll-line{
  height:1px;
  width:84px;
  background:rgba(230,237,246,.45);
}

.section-image img{
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.12);
}

.home-featured__header,
.home-brands__header{
  margin:0 0 22px;
}
.home-featured__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
@media (max-width: 1020px){
  .home-featured__grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 640px){
  .home-featured__grid{grid-template-columns:1fr}
}

.home-featured__card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,32,.60);
  box-shadow:var(--shadow-soft);
  text-decoration:none;
  min-height:100%;
}
.home-featured__media{
  aspect-ratio: 16/10;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
.home-featured__media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.home-featured__card:hover .home-featured__media img{transform:scale(1.03)}
.home-featured__info{padding:14px 14px 16px}
.home-featured__title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.home-featured__title{
  margin:0;
  font-size:18px;
  letter-spacing:-.01em;
}
.home-featured__meta{color:var(--muted);font-size:14px;margin-top:6px}
.home-featured__price{margin-top:10px;font-weight:850}
.home-featured__price-was{color:rgba(230,237,246,.60);text-decoration:line-through;margin-right:8px;font-weight:650}
.home-featured__price-now{color:var(--brand-2)}
.home-featured__badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.home-featured__badge--discount{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.16)}
.home-featured__price-sold{color:rgba(230,237,246,.78)}
.home-featured__price-ask{color:var(--muted)}

.home-brands__grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  margin-top:18px;
}
@media (max-width: 960px){
  .home-brands__grid{grid-template-columns: repeat(4, minmax(0, 1fr))}
}
@media (max-width: 560px){
  .home-brands__grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
.home-brands__item{
  padding:12px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  text-align:center;
  font-weight:750;
  text-decoration:none;
  color:rgba(230,237,246,.92);
}
.home-brands__item:hover{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.09)}
.home-brands__actions{margin-top:18px}

.home-news{
  position:relative;
  background-size:cover;
  background-position:center;
  padding:72px 0;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.home-news__overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.60), rgba(0,0,0,.80));
}
.home-news__inner{
  position:relative;
  width:min(900px, calc(100% - 32px));
  margin-inline:auto;
  text-align:center;
}
.home-news__eyebrow{
  margin:0;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(230,237,246,.72);
  font-weight:800;
  font-size:12px;
}
.home-news__title{
  margin:10px 0 8px;
  font-size:clamp(40px,6vw,72px);
  letter-spacing:-.04em;
  text-transform:uppercase;
}
.home-news__text{max-width:62ch;margin:0 auto 18px;color:rgba(230,237,246,.78)}
.home-news__form{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
}
.home-news__input{
  width:min(440px, 100%);
}
.home-news__btn{min-width:140px}

.home-contact{
  padding:70px 16px;
}
.home-contact__inner{
  width:min(980px, 100%);
  margin-inline:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,32,.55);
  box-shadow:var(--shadow-soft);
  padding:22px;
}
.home-contact__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:16px;
}
.home-contact__title{
  margin:0;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:20px;
}
.home-contact__note{margin:0;color:rgba(230,237,246,.72);font-size:13px}

.home-contact__row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-bottom:14px;
}
@media (max-width: 900px){
  .home-contact__row{grid-template-columns:1fr}
}
.home-contact__field label{font-size:13px;color:rgba(230,237,246,.86)}
.char-counter{opacity:.75}
.fx-reveal{animation: fxFade .55s ease both}
@keyframes fxFade{
  from{opacity:0; transform:translateY(10px)}
  to{opacity:1; transform:translateY(0)}
}


/* PAGE-POLISH-v1 */
/* Home: calmer spacing + responsive headings */
.front-page main, .home main{padding-block:clamp(18px, 3vw, 42px)}
.front-page :where(h1, .hero-title), .home :where(h1, .hero-title){
  font-size:clamp(2.0rem, 1.2rem + 3.0vw, 3.4rem);
  line-height:1.1;
  letter-spacing:-.03em;
}
.front-page :where(section, .dag-section){scroll-margin-top:96px}


/* CSS-IMPROVEMENTS-v4 */
/* Home v4: spacing polish + focus visibility for cards */
.home-page .home-section{
  padding-block: clamp(28px, 4vw, 56px);
}

.home-page .home-featured__card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-page .home-featured__card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 12px 30px rgba(0,0,0,.25));
  border-color: rgba(37,99,235,.28);
}
.home-page .home-featured__card:focus-within{
  outline: 2px solid rgba(37,99,235,.55);
  outline-offset: 2px;
}

@media (max-width: 720px){
  .home-page .home-hero{ padding: 44px 0 18px; }
  .home-page .home-section{ padding-block: 28px; }
}

.home-deals__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 22px;
}
@media (max-width: 640px){
  .home-deals__header{flex-direction:column; align-items:flex-start}
  .home-deals__viewall{width:100%; text-align:center}
}

.home-deals__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
@media (max-width: 1020px){
  .home-deals__grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 640px){
  .home-deals__grid{grid-template-columns:1fr}
}

.home-deals__card{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  box-shadow:var(--shadow-soft);
  text-decoration:none;
  min-height:100%;
}
.home-deals__media{
  aspect-ratio: 16/10;
  background:rgba(255,255,255,.06);
}
.home-deals__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .25s ease;
}
.home-deals__overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:16px 16px 14px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.84) 100%);
  color:#fff;
}
.home-deals__title{
  margin:0;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.01em;
  text-shadow:0 10px 26px rgba(0,0,0,.55);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-deals__price{
  margin-top:10px;
  font-weight:850;
  font-size:18px;
}
.home-deals__meta{
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,.82);
}
.home-deals__details{
  display:inline-block;
  margin-top:10px;
  font-weight:800;
  color:var(--brand-2);
}
.home-deals__card:hover .home-deals__media img{transform:scale(1.03)}
.home-deals__card:hover{transform:translateY(-2px)}
.home-deals__card:focus-within{
  outline: 2px solid rgba(37,99,235,.55);
  outline-offset: 2px;
}

