@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* =========================
   GLOBAL
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background: linear-gradient(135deg,
      #c9cfcf,
      #eac2a8);

  font-family: "Poppins", sans-serif;

  overflow-x: hidden;
  overflow-y: auto;

  padding:
    18px 18px calc(120px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
}

/* =========================
   PAGE CONTAINER
========================== */

.page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================== */

.top-header {
  width: 100%;

  display: flex;
  align-items: center;

  margin-bottom: 18px;

  animation: fadeTop 0.8s ease;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO */

.brand-logo {
  width: 80px;
  height: 80px;

  object-fit: contain;

  display: block;

  flex-shrink: 0;
}

/* BRAND NAME */

.brand-section h1 {
  font-family: "Montserrat", serif;

  font-size: 1.6rem;
  font-weight: 700;

  color: #000000;

  letter-spacing: 1px;

  line-height: 1;

  text-transform: uppercase;

  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.10);
}

/* =========================
   OFFER SECTION
========================== */

.offer-section {
  width: 100%;
}

.offer-grid {
  display: grid;

  grid-template-columns: repeat(1, 1fr);

  gap: 16px;
}

/* TABLET */

@media (min-width:768px) {

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP */

@media (min-width:1024px) {

  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* LARGE DESKTOP */

@media (min-width:1400px) {

  .offer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   CARD
========================== */

.offer-card {
  background: #ffffff;

  border-radius: 24px;

  padding: 7px;

  overflow: hidden;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06);

  animation: cardFade 0.8s ease forwards;

  opacity: 0;
  transform: translateY(40px);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  text-decoration: none;
}

.offer-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.10);
}

/* STAGGER */

.offer-card:nth-child(1) {
  animation-delay: 0.1s;
}

.offer-card:nth-child(2) {
  animation-delay: 0.2s;
}

.offer-card:nth-child(3) {
  animation-delay: 0.3s;
}

.offer-card:nth-child(4) {
  animation-delay: 0.4s;
}

.offer-card:nth-child(5) {
  animation-delay: 0.5s;
}

.offer-card:nth-child(6) {
  animation-delay: 0.6s;
}

.offer-card:nth-child(7) {
  animation-delay: 0.7s;
}

.offer-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* IMAGE */

.offer-card img {
  width: 100%;
  aspect-ratio: 1/1;

  object-fit: cover;

  border-radius: 18px;

  margin-bottom: 4px;

  display: block;
}

/* TITLE */

.offer-card h3 {
  font-family: "Playfair Display", serif;

  font-size: 1rem;
  font-weight: 700;

  color: #1f1f1f;

  text-align: center;

  padding: 4px 0 6px;
}

/* =========================
   ANIMATIONS
========================== */

@keyframes cardFade {

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeTop {

  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BOTTOM NAVIGATION
========================== */

.bottom-nav {
  position: fixed;

  bottom: calc(15px + env(safe-area-inset-bottom));

  left: 50%;
  transform: translateX(-50%);

  width: min(92vw, 420px);
  height: 78px;

  background: rgba(182, 181, 181, 0.92);

  border-radius: 28px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  padding: 0 10px;

  backdrop-filter: blur(12px);

  z-index: 9999;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-item {
  position: relative;

  width: 68px;
  height: 68px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;

  text-decoration: none;
  color: #ffffff;

  transition: 0.35s ease;
}

.nav-link i {
  font-size: 1.2rem;
  transition: 0.35s ease;
}

.nav-text {
  position: absolute;

  bottom: -10px;

  font-size: 0.7rem;

  opacity: 0;

  transform: translateY(10px);

  transition: 0.35s ease;

  color: #000000;
}

.nav-item.active .nav-link i {
  transform: translateY(-10px);

  color: #9c5015;

  text-shadow:
    0 0 10px rgb(253, 210, 196),
    0 0 25px rgba(255, 187, 164, 1);
}

.nav-item.active .nav-text {
  opacity: 1;
  transform: translateY(0);

  font-weight: 600;
}

/* =========================
   ANIMATIONS
========================== */

@keyframes cardFade {

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeTop {

  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================== */

@media (max-width:480px) {

  body {
    padding:
      14px 12px calc(120px + env(safe-area-inset-bottom));
  }

  .brand-section {
    gap: 10px;
  }

  .nav-text {
    font-size: 0.62rem;
  }

  .offer-grid {
    gap: 12px;
  }

  .offer-card {
    padding: 6px;
    border-radius: 20px;
  }

  .offer-card img {
    border-radius: 16px;
  }

  .offer-card h3 {
    font-size: 0.9rem;
  }
}