/* ============================================================
   URBAN CLAVE — home.css
   Home Page: Banner Slider · Featured Sections · Brands · Newsletter
   urbanclave.com
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. BANNER SLIDER
   ──────────────────────────────────────────────────────────── */

.banner-slider-section { padding: 0; overflow: hidden; }

.banner-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--clr-primary);
}

.banner-slider__track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual slide */
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 21 / 7;    /* fluid ratio — 16:5.3 */
  min-height: clamp(260px, 36vw, 580px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .banner-slide { aspect-ratio: 4 / 3; min-height: 280px; }
}
@media (max-width: 480px) {
  .banner-slide { aspect-ratio: 3 / 4; min-height: 360px; }
}

/* Background image */
.banner-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
  will-change: transform;
}
.banner-slide.is-active .banner-slide__bg {
  transform: scale(1.04);
}

/* Dark overlay for text readability */
.banner-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

/* Content */
.banner-slide__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (max-width: 768px) {
  .banner-slide__content { max-width: 90%; gap: var(--sp-3); }
}

.banner-slide__badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--clr-accent);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  width: fit-content;
}

.banner-slide__title {
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: inherit;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.banner-slide__sub {
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-family: var(--font-secondary);
  color: inherit;
  opacity: 0.85;
  line-height: var(--lh-relaxed);
  max-width: 45ch;
}

.banner-slide__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Slider controls */
.banner-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: var(--clr-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background-color var(--t-base), transform var(--t-base);
}
.banner-slider__arrow:hover {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}
.banner-slider__arrow--prev { left: var(--gutter); }
.banner-slider__arrow--next { right: var(--gutter); }

@media (max-width: 480px) {
  .banner-slider__arrow { display: none; }
}

/* Dot indicators */
.banner-slider__dots {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 3;
}

.banner-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: width var(--t-smooth), background-color var(--t-smooth);
  padding: 0;
}
.banner-slider__dot.is-active {
  width: 28px;
  background-color: var(--clr-white);
}

/* Progress bar */
.banner-slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(255,255,255,0.2);
  z-index: 3;
}
.banner-slider__progress-bar {
  height: 100%;
  background-color: var(--clr-accent);
  transform-origin: left;
  transition: width linear;
}

/* ── Section subtitle ── */
.section-head__sub {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  font-family: var(--font-secondary);
  margin-top: var(--sp-1);
}


/* ────────────────────────────────────────────────────────────
   2. DRAG SCROLL (all horizontal scroll rows)
   ──────────────────────────────────────────────────────────── */

.uc-drag-scroll {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.uc-drag-scroll.is-dragging { cursor: grabbing; }
.uc-drag-scroll.is-dragging * { pointer-events: none; }


/* ────────────────────────────────────────────────────────────
   3. FEATURED SECTION WRAPPER
   ──────────────────────────────────────────────────────────── */

.featured-section {
  /* background/color can be overridden via inline style from DB */
}

/* ── banner_products layout ── */
.banner-products-layout {
  display: grid;
  grid-template-columns: clamp(220px, 28%, 340px) 1fr;
  gap: var(--inner-gap);
  align-items: start;
}

.banner-products-layout__banner {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.banner-products-layout__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-products-layout__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  display: flex;
  align-items: flex-end;
  padding: var(--sp-6);
}

.banner-products-layout__text h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-3);
}
.banner-products-layout__text p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-secondary);
}

@media (max-width: 768px) {
  .banner-products-layout {
    grid-template-columns: 1fr;
  }
  .banner-products-layout__banner {
    position: static;
    aspect-ratio: 21/8;
  }
}

/* ── countdown layout ── */
.countdown-section-header {
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  justify-content: space-between;
}

.countdown-section-header__left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.countdown-section-header__icon {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

.countdown-section-header__title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: var(--lh-tight);
}

.countdown-section-header__sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-secondary);
  margin-top: 2px;
}

.countdown-section-header__cta {
  flex-shrink: 0;
  color: inherit !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.countdown-section-header__cta:hover {
  background-color: rgba(255,255,255,0.15) !important;
}

/* Inline countdown variant (inside header bar) */
.countdown--inline {
  background-color: transparent !important;
  padding: 0;
  gap: var(--sp-1);
}
.countdown--inline .countdown__unit {
  background-color: rgba(0,0,0,0.2);
  min-width: 52px;
  padding: var(--sp-2);
}
.countdown--inline .countdown__num {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
}

@media (max-width: 640px) {
  .countdown-section-header {
    padding: var(--sp-4);
    gap: var(--sp-4);
  }
  .countdown--inline { display: none; } /* hide timer on very small screens */
}

/* ── full_slider layout ── */
.full-product-slider {
  position: relative;
}

.full-product-slider__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}
.full-product-slider__track::-webkit-scrollbar { display: none; }

.full-product-slider__item {
  flex: 0 0 clamp(180px, 22vw, 260px);
  scroll-snap-align: start;
}

.full-product-slider__arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--clr-white);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: box-shadow var(--t-base), transform var(--t-base);
  color: var(--clr-text);
}
.full-product-slider__arrow:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.08);
}
.full-product-slider__arrow--prev { left: calc(-1 * var(--sp-5)); }
.full-product-slider__arrow--next { right: calc(-1 * var(--sp-5)); }

@media (max-width: 768px) {
  .full-product-slider__arrow { display: none; }
}


/* ────────────────────────────────────────────────────────────
   4. BRAND CAROUSEL
   ──────────────────────────────────────────────────────────── */

.brand-carousel-section { overflow: hidden; }

.brand-carousel-wrap {
  overflow: hidden;
  position: relative;
  /* Fade edges */
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brand-carousel {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: brandScroll 30s linear infinite;
  will-change: transform;
}
.brand-carousel:hover { animation-play-state: paused; }

.brand-carousel__item {
  flex-shrink: 0;
  width: clamp(120px, 14vw, 180px);
  height: clamp(60px, 7vw, 80px);
  padding: var(--sp-3);
}

@keyframes brandScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel {
    animation: none;
    overflow-x: auto;
    width: auto;
  }
}


/* ────────────────────────────────────────────────────────────
   5. OFFERS GRID
   ──────────────────────────────────────────────────────────── */

.offers-grid {
  display: grid;
  gap: var(--inner-gap);
}
.offers-grid--three {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr;
}
.offers-grid--two   { grid-template-columns: 1fr 1fr; }
.offers-grid--one   { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
  .offers-grid--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .offers-grid--three,
  .offers-grid--two { grid-template-columns: 1fr; }
}

/* Offer card */
.offer-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 7;
  text-decoration: none;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.offer-card--featured { aspect-ratio: 16 / 9; }

@media (max-width: 640px) {
  .offer-card,
  .offer-card--featured { aspect-ratio: 16 / 7; }
}

.offer-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.offer-card:hover .offer-card__img { transform: scale(1.04); }

.offer-card__body {
  position: relative;
  z-index: 1;
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.offer-card__badge {
  display: inline-block;
  background-color: var(--clr-accent);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--sp-2);
}

.offer-card__title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: var(--fw-black);
  color: inherit;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-1);
}

.offer-card__sub {
  font-size: var(--fs-sm);
  color: inherit;
  opacity: 0.8;
  font-family: var(--font-secondary);
  margin-bottom: var(--sp-3);
  max-width: none !important;
}

.offer-card__cta {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: inherit;
  opacity: 0.9;
}


/* ────────────────────────────────────────────────────────────
   6. NEWSLETTER SECTION
   ──────────────────────────────────────────────────────────── */

.newsletter-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(232,51,60,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(245,158,11,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--sp-6);
  align-items: center;
}

.newsletter-text {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  grid-column: 1;
}
.newsletter-icon {
  font-size: clamp(2rem, 4vw, 3rem);
  flex-shrink: 0;
}
.newsletter-title {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-1);
}
.newsletter-sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-secondary);
  max-width: none !important;
}

.newsletter-form {
  display: flex;
  gap: 0;
  grid-column: 2;
  align-self: center;
  min-width: clamp(280px, 30vw, 420px);
}

.newsletter-form__input-wrap { flex: 1; }
.newsletter-form__input-wrap .input-icon { color: var(--clr-text-tertiary); }

.newsletter-form__input {
  border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
  border-right: none !important;
  height: 48px;
}
.newsletter-form__btn {
  border-radius: 0 var(--radius-full) var(--radius-full) 0 !important;
  height: 48px;
  padding-inline: var(--sp-6);
  flex-shrink: 0;
}

.newsletter-disclaimer {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  font-family: var(--font-secondary);
  grid-column: 2;
  text-align: center;
  max-width: none !important;
  margin: 0;
}

@media (max-width: 1024px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
  }
  .newsletter-text { justify-content: center; grid-column: 1; }
  .newsletter-form { grid-column: 1; min-width: unset; width: 100%; justify-content: center; }
  .newsletter-disclaimer { grid-column: 1; }
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; gap: var(--sp-3); }
  .newsletter-form__input {
    border-radius: var(--radius-full) !important;
    border-right: 1.5px solid var(--clr-border) !important;
  }
  .newsletter-form__btn {
    border-radius: var(--radius-full) !important;
    width: 100%;
  }
}
