/* ==========================================================================
   Aurum Theme — Homepage
   Hero, trust bar, carousels, editorial grid, brand story
   ========================================================================== */

/* ---- Hero ---- */
.au-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
}

.au-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.au-hero__video,
.au-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.au-hero__video {
  display: block;
}

.au-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 2, 19, 0.3) 0%,
    rgba(3, 2, 19, 0.55) 100%
  );
  z-index: 1;
}

.au-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: var(--au-sp-6);
}

.au-hero__brand {
  font-family: var(--au-font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--au-fw-semibold);
  letter-spacing: var(--au-ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--au-sp-3);
  line-height: 1;
}

.au-hero__collection {
  font-family: var(--au-font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: var(--au-fw-regular);
  letter-spacing: var(--au-ls-wider);
  text-transform: uppercase;
  color: var(--au-gold-light);
  margin-bottom: var(--au-sp-4);
}

.au-hero__tagline {
  font-family: var(--au-font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: var(--au-fw-medium);
  font-style: italic;
  margin-bottom: var(--au-sp-4);
  line-height: var(--au-lh-tight);
}

.au-hero__sub {
  font-family: var(--au-font-body);
  font-size: var(--au-fs-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--au-sp-8);
  line-height: var(--au-lh-base);
}

.au-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--au-sp-4) var(--au-sp-10);
  font-family: var(--au-font-body);
  font-size: var(--au-fs-sm);
  font-weight: var(--au-fw-medium);
  letter-spacing: var(--au-ls-widest);
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--au-gold);
  border: 1px solid var(--au-gold);
  border-radius: var(--au-radius);
  transition: all var(--au-duration) var(--au-ease);
  line-height: 1;
}

.au-hero__cta:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 575px) {
  .au-hero {
    min-height: 500px;
    height: 85vh;
  }
}

/* ---- Trust bar ---- */
.au-trust-bar {
  padding: var(--au-sp-10) 0;
  background-color: var(--au-surface);
  border-bottom: 1px solid var(--au-border-light);
}

.au-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--au-sp-6);
  max-width: var(--au-container);
  margin: 0 auto;
  padding: 0 var(--au-gutter);
}

.au-trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--au-sp-3);
}

.au-trust-bar__icon {
  width: 40px;
  height: 40px;
  color: var(--au-gold);
}

.au-trust-bar__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.au-trust-bar__label {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-md);
  font-weight: var(--au-fw-medium);
  color: var(--au-text);
}

.au-trust-bar__desc {
  font-size: var(--au-fs-sm);
  color: var(--au-muted);
  margin-top: calc(-1 * var(--au-sp-1));
}

@media (max-width: 991px) {
  .au-trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .au-trust-bar__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Section shared ---- */
.au-section {
  padding: var(--au-sp-16) 0;
}

.au-section__header {
  text-align: center;
  margin-bottom: var(--au-sp-10);
}

.au-section__title {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-3xl);
  font-weight: var(--au-fw-semibold);
  letter-spacing: var(--au-ls-wide);
  color: var(--au-text);
}

.au-section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--au-gold);
  margin: var(--au-sp-4) auto 0;
}

@media (max-width: 575px) {
  .au-section {
    padding: var(--au-sp-10) 0;
  }

  .au-section__title {
    font-size: var(--au-fs-2xl);
  }
}

/* ---- Carousel ---- */
.au-carousel {
  position: relative;
}

.au-carousel__track {
  display: flex;
  gap: var(--au-sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--au-sp-2);
  margin: calc(-1 * var(--au-sp-2));
}

.au-carousel__track::-webkit-scrollbar {
  display: none;
}

.au-carousel__track > * {
  scroll-snap-align: start;
  flex: 0 0 calc(25% - var(--au-sp-6) * 3 / 4);
  min-width: 250px;
}

.au-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-full);
  cursor: pointer;
  z-index: 3;
  transition: all var(--au-duration) var(--au-ease);
  box-shadow: var(--au-shadow);
  backdrop-filter: blur(4px);
}

.au-carousel__nav:hover {
  border-color: var(--au-gold);
  color: var(--au-gold);
}

.au-carousel__nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.au-carousel__nav--prev {
  left: calc(-1 * var(--au-sp-5));
}

.au-carousel__nav--next {
  right: calc(-1 * var(--au-sp-5));
}

@media (max-width: 991px) {
  .au-carousel__track > * {
    flex: 0 0 calc(33.333% - var(--au-sp-6) * 2 / 3);
  }

  .au-carousel__nav {
    display: none;
  }
}

@media (max-width: 575px) {
  .au-carousel__track > * {
    flex: 0 0 70%;
    min-width: 220px;
  }
}

/* ---- Category editorial grid ---- */
.au-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--au-sp-6);
}

.au-categories-grid__item {
  position: relative;
  border-radius: var(--au-radius);
  overflow: hidden;
}

.au-categories-grid__item:first-child {
  grid-row: span 2;
}

.au-categories-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--au-duration-slow) var(--au-ease);
}

.au-categories-grid__item:hover .au-categories-grid__img {
  transform: scale(1.05);
}

.au-categories-grid__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 2, 19, 0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--au-sp-6);
  transition: background var(--au-duration-slow) var(--au-ease);
}

.au-categories-grid__item:hover .au-categories-grid__overlay {
  background: linear-gradient(to top, rgba(3, 2, 19, 0.65) 0%, rgba(3, 2, 19, 0.1) 60%);
}

.au-categories-grid__name {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-xl);
  font-weight: var(--au-fw-semibold);
  color: #ffffff;
  letter-spacing: var(--au-ls-wide);
}

@media (max-width: 991px) {
  .au-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .au-categories-grid__item:first-child {
    grid-row: span 1;
  }
}

@media (max-width: 575px) {
  .au-categories-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .au-categories-grid__item:first-child {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
}

/* ---- Bestsellers grid ---- */
.au-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--au-sp-6);
}

@media (max-width: 991px) {
  .au-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .au-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Brand story ---- */
.au-brand-story {
  background-color: var(--au-surface-dark);
  color: #ffffff;
}

.au-brand-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.au-brand-story__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--au-sp-16) var(--au-sp-12);
}

.au-brand-story__label {
  font-size: var(--au-fs-sm);
  letter-spacing: var(--au-ls-widest);
  text-transform: uppercase;
  color: var(--au-gold-light);
  margin-bottom: var(--au-sp-4);
}

.au-brand-story__title {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-3xl);
  font-weight: var(--au-fw-semibold);
  color: #ffffff;
  margin-bottom: var(--au-sp-6);
  line-height: var(--au-lh-tight);
}

.au-brand-story__desc {
  font-size: var(--au-fs-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--au-lh-loose);
  margin-bottom: var(--au-sp-8);
}

.au-brand-story__cta {
  align-self: flex-start;
}

.au-brand-story__image {
  position: relative;
  overflow: hidden;
}

.au-brand-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .au-brand-story__inner {
    grid-template-columns: 1fr;
  }

  .au-brand-story__text {
    padding: var(--au-sp-12) var(--au-sp-6);
  }

  .au-brand-story__image {
    min-height: 350px;
  }
}

@media (max-width: 575px) {
  .au-brand-story__text {
    padding: var(--au-sp-8) var(--au-sp-4);
  }

  .au-brand-story__title {
    font-size: var(--au-fs-2xl);
  }
}

/* ---- Newsletter section ---- */
.au-newsletter {
  background-color: var(--au-surface-darker);
  color: #ffffff;
  padding: var(--au-sp-16) 0;
}

.au-newsletter__inner {
  max-width: var(--au-container-sm);
  margin: 0 auto;
  padding: 0 var(--au-gutter);
  text-align: center;
}

.au-newsletter__title {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-2xl);
  font-weight: var(--au-fw-semibold);
  color: #ffffff;
  margin-bottom: var(--au-sp-3);
}

.au-newsletter__desc {
  font-size: var(--au-fs-base);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--au-sp-8);
}
