/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

/* ================= HEADER ================= */
.page-header {
  background: linear-gradient(135deg, #be123c, #fb7185);
  padding: 18px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-arrow {
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-6px);
}

.title-box h1 {
  color: #fff;
  font-size: 24px;
}

.title-box p {
  color: #ffe4e6;
  font-size: 14px;
}

/* ================= CATEGORY BUTTONS ================= */
.tile-varieties {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 75px;
  z-index: 90;
}

.tile-varieties::-webkit-scrollbar {
  display: none;
}

.tile-varieties a {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: all 0.35s ease;
  animation: fadeUp 0.8s ease both;
}

.tile-varieties a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* CATEGORY COLORS */
.interior { background: linear-gradient(135deg, #fb7185, #be123c); }
.exterior { background: linear-gradient(135deg, #f97316, #c2410c); }
.emulsion { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.distemper { background: linear-gradient(135deg, #4ade80, #15803d); }
.texture { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.wood { background: linear-gradient(135deg, #facc15, #a16207); }

/* ================= GRID ================= */
.tiles-grid {
  max-width: 1200px;
  margin: auto;
  padding: 10px 16px 30px;
}

.tiles-grid h2 {
  margin: 24px 0 18px;
  font-size: 22px;
  color: #7c2d12;
  position: relative;
  animation: fadeLeft 0.6s ease;
}

.tiles-grid h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #fb7185, transparent);
  display: block;
  margin-top: 6px;
  border-radius: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ================= PAINT CARD ================= */
.tile-card {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.45s ease;
  animation: fadeUp 0.7s ease both;
  text-align: center;
}

.tile-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* IMAGE */
.tile-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile-card:hover img {
  transform: scale(1.15) rotate(-1deg);
}

/* TEXT */
.tile-card p {
  padding: 12px 10px 4px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #7c2d12;
}

.tile-card small {
  display: block;
  font-size: 13px;
  color: #92400e;
}

.tile-card strong {
  display: block;
  padding: 6px 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #be123c;
}
/* ================= PAINT CONTACT ================= */
.tile-contact {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 5px;
  margin-bottom: 10px;
}

/* CONTACT BUTTON */
.tile-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #fff, #ffe4e6);
  color: #9f1239;
  box-shadow: 0 6px 14px rgba(190, 18, 60, 0.25);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* ICON */
.tile-contact i {
  font-size: 13px;
  color: #be123c;
  transition: transform 0.35s ease, color 0.35s ease;
}

/* HOVER EFFECT */
.tile-contact a:hover {
  background: linear-gradient(135deg, #be123c, #fb7185);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(190, 18, 60, 0.45);
}

/* ICON ANIMATION */
.tile-contact a:hover i {
  color: #fff;
  transform: rotate(12deg) scale(1.2);
}

/* CLICK EFFECT */
.tile-contact a:active {
  transform: scale(0.95);
}

/* LOCATION BUTTON SLIGHT VARIATION */
.tile-contact a:last-child {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
}

.tile-contact a:last-child i {
  color: #ea580c;
}

.tile-contact a:last-child:hover {
  background: linear-gradient(135deg, #ea580c, #fb923c);
  color: #fff;
}

.tile-contact a:last-child:hover i {
  color: #fff;
}

/* MOBILE */
@media (max-width: 480px) {
  .tile-contact a {
    font-size: 13px;
    padding: 7px 12px;
  }
}


/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-45px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .title-box h1 {
    font-size: 20px;
  }

  .tile-card img {
    height: 170px;
  }

  .tiles-grid h2 {
    font-size: 20px;
  }
}
