/* =============================================
   PETSHOP - stylesHome.css
   Home page specific styles
   ============================================= */

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f4 0%, #fff3e0 60%, #fff 100%);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.shape-1 {
  width: 500px; height: 500px;
  background: rgba(255, 145, 77, 0.15);
  top: -100px; right: -100px;
}

.shape-2 {
  width: 350px; height: 350px;
  background: rgba(255, 209, 102, 0.2);
  bottom: 0; right: 300px;
}

.shape-3 {
  width: 250px; height: 250px;
  background: rgba(76, 175, 80, 0.12);
  top: 200px; left: -80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 145, 77, 0.12);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1.5px solid rgba(255, 145, 77, 0.25);
  animation: slideDown 0.6s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  animation: slideUp 0.7s ease;
}

.hero-title span { color: var(--orange); }

.hero-subtitle {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: slideUp 0.9s ease;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: slideUp 1s ease;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--orange);
  display: block;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-light); font-weight: 700; }
.stat-divider { width: 1.5px; height: 40px; background: var(--gray); }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease;
}

.hero-img-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
}

.hero-img-bg {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.15;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
}

.hero-img {
  width: 100%;
  border-radius: 40% 60% 40% 60%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(255,145,77,0.3));
}

.hero-float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.card-1 { bottom: 10%; left: -40px; animation-delay: 0s; }
.card-2 { top: 10%; right: -20px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-emoji { font-size: 1.8rem; }
.card-title { font-weight: 800; font-size: 0.85rem; display: block; line-height: 1.2; }
.card-sub { font-size: 0.75rem; color: var(--text-light); }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
}

.hero-wave svg { width: 100%; height: 100%; display: block; }

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

/* CATEGORIES */
.categories-section { background: var(--gray-light); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.cat-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem;
}

.cat-icon { font-size: 2rem; }
.cat-name { font-weight: 800; font-size: 0.95rem; }
.cat-count { font-size: 0.78rem; color: var(--text-light); }

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-light);
}

.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-img-wrap .badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,145,77,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.overlay-btn {
  background: white;
  color: var(--orange);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.product-info { padding: 1.25rem; }
.product-cat { font-size: 0.78rem; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.product-name { font-weight: 800; font-size: 0.95rem; margin: 0.35rem 0; line-height: 1.3; }
.product-stars { display: flex; align-items: center; gap: 6px; margin-bottom: 0.75rem; }
.review-count { font-size: 0.8rem; color: var(--text-light); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; }
.product-old-price { font-size: 0.82rem; color: var(--text-light); text-decoration: line-through; display: block; }
.product-price { font-size: 1.15rem; font-weight: 900; color: var(--orange); }

.add-cart-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255,145,77,0.35);
}

.add-cart-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(255,145,77,0.5); }

.text-center { text-align: center; }

/* SERVICES PREVIEW */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--orange);
}

.service-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon { font-size: 2rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
.service-price { font-weight: 800; color: var(--green); font-size: 0.9rem; display: block; margin-bottom: 0.75rem; }
.service-link { color: var(--orange); font-weight: 800; font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.service-link:hover { letter-spacing: 0.5px; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f06d";
  position: absolute;
  font-size: 12rem;
  opacity: 0.05;
  right: 200px;
  top: -30px;
}

.promo-tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.promo-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.promo-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.promo-text p strong { color: var(--yellow); }

.promo-img {
  width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-img img { width: 100%; height: 200px; object-fit: cover; }

/* ADOPT */
.adopt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.adopt-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.adopt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.adopt-img-wrap { position: relative; height: 220px; overflow: hidden; }
.adopt-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.adopt-card:hover .adopt-img-wrap img { transform: scale(1.05); }

.adopt-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--green);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.adopt-info { padding: 1.5rem; }
.adopt-name { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; }
.adopt-details { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; }
.adopt-details span { font-size: 0.85rem; color: var(--text-mid); font-weight: 700; }
.adopt-desc { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

/* TESTIMONIALS */
.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-text {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin: 1rem 0 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.author-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.author-name { font-weight: 800; display: block; font-size: 0.95rem; }
.author-pet { font-size: 0.82rem; color: var(--text-light); }

/* BLOG PREVIEW */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-img-wrap { position: relative; height: 200px; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }

.blog-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.blog-content { padding: 1.5rem; }
.blog-date { font-size: 0.8rem; color: var(--text-light); font-weight: 700; }
.blog-title { font-family: var(--font-display); font-size: 1.2rem; margin: 0.5rem 0 0.75rem; line-height: 1.3; }
.blog-excerpt { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-link { color: var(--orange); font-weight: 800; font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.blog-link:hover { letter-spacing: 0.5px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 600px; margin: 0 auto; }
  .hero-subtitle { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .adopt-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-img { width: 100%; }
}

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .adopt-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .promo-banner { padding: 2rem; }
  .promo-text h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}
