/* HOME PAGE CSS
   This file is linked only on pages/home.html.
   Main design variables and common components remain in frontend.css. */

/* Hero */

.hero-content {
  max-width: 720px;
}

.hero-content span {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  margin: 18px 0;
}

.hero p {
  max-width: 620px;
  color: #eee;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 32px;
}

.hero-buttons a {
  transition: 0.35s ease;
  font-size: 13px;
}

.hero-buttons a:hover {
  transform: translateY(-4px) scale(1.03);
}

/* Category section */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 5px;
  margin: 25px;
  padding-bottom: 25px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transition: 0.3s;
  z-index: 0;
}

.category-card span {
  position: relative;
  z-index: 1;
}

.category-card:hover {
  color: #fff;
  transform: translateY(-6px);
}

.category-card:hover::before {
  height: 100%;
}

/* Featured section */
.static-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.mini-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.static-featured .product-card,
.mini-track .product-card {
  min-width: 260px;
}


/* Track order */
.track-section {
  padding: 90px 6%;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.76)),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?q=80&w=1800")
    center/cover fixed;
  text-align: center;
}

.track-box {
  max-width: 850px;
  margin: auto;
}

.track-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
}

.track-form {
  max-width: 640px;
  margin: 28px auto;
  display: flex;
}

.track-form input {
  flex: 1;
  padding: 16px 18px;
  border: 0;
  outline: none;
}

.track-form button {
  background: var(--gold);
  color: #fff;
  padding: 0 28px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.step {
  opacity: 0.45;
}

.step.active {
  opacity: 1;
  color: var(--gold);
}

.step i {
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: var(--muted);
}

.testimonial-card strong {
  display: block;
  color: var(--gold);
  margin-top: 15px;
}

/* Newsletter */
.newsletter {
  padding: 80px 6%;
  text-align: center;
  color: #fff;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
}

.newsletter form {
  max-width: 640px;
  margin: 28px auto;
  display: flex;
}

.newsletter input {
  flex: 1;
  padding: 16px 18px;
  border: 0;
  outline: none;
}

.newsletter button {
  background: var(--gold);
  color: #fff;
  padding: 0 28px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

/* Smooth Hero Animation */
.hero-content span,
.hero-content h1,
.hero-content p,
.hero-buttons {
  opacity: 0;
  transform: translateY(35px);
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-content span {
  animation-delay: 0.2s;
}

.hero-content h1 {
  animation-delay: 0.45s;
}

.hero-content p {
  animation-delay: 0.7s;
}

.hero-buttons {
  animation-delay: 0.95s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: heroBgZoom 12s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  from {
    background-size: 100%;
  }

  to {
    background-size: 108%;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-card {
    min-height: 0px;
    border-radius: 18px;
  }

  .tracking-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .track-form,
  .newsletter form {
    flex-direction: column;
    gap: 10px;
  }

  .track-form button,
  .newsletter button {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .tracking-steps {
    grid-template-columns: 1fr;
  }
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: #fff;
}

.hero-track{
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.hero-slide{
    min-width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
}
/* BUTTONS */

.hero-prev,
.hero-next{
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: rgba(255,255,255,.18);

    backdrop-filter: blur(10px);

    color: #fff;

    border: none;

    font-size: 18px;

    cursor: pointer;

    z-index: 10;

    transition: .3s;
}

.hero-prev:hover,
.hero-next:hover{
    background: #d4af37;
}

.hero-prev{
    left: 20px;
}

.hero-next{
    right: 20px;
}

/* DOTS */

.hero-dots{
    position: absolute;

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 10;
}

.dot{
    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: rgba(255,255,255,.5);

    cursor: pointer;

    transition: .3s;
}

.dot.active{
    background: #d4af37;

    transform: scale(1.2);
}

/* MOBILE */

@media(max-width:768px){

    .hero-slider{
        height: 40vh;
        aspect-ratio: 16 / 8;
    }

    .hero-prev,
    .hero-next{
        width: 40px;
        height: 40px;

        font-size: 14px;
    }

    .dot{
        width: 10px;
        height: 10px;
    }
}
