/* Home Page Specific Styles */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 120px;
}

/* Scroll Indicator Animation */
.scroll-down {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-light);
  z-index: 5;
}

.scroll-down p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  opacity: 0.8;
  font-weight: 600;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-light);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--primary-color);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% { transform: translate(-50%, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-50%, 20px); opacity: 0; }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
  text-align: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 3vw, 2rem);
  max-width: 800px;
  color: var(--text-light);
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw + 2vh, 4rem);
  line-height: 1.2;
  margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
  color: var(--text-light);
}

.hero-content p {
  font-size: clamp(0.9rem, 1vw + 1vh, 1.2rem);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-btns .btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.hero-btns .btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Quick Order Section */
.quick-order {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.order-partners {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: var(--bg-color);
}
.order-partners p {
  font-weight: 600;
  font-size: 1.1rem;
}
.partner-logos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Ensure icons wrap on mobile */
}
.partner-logos span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.partner-logos span:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .order-partners {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.category-card {
  display: block;
  text-align: center;
}
.category-card .img-box {
  border-radius: 50%;
  overflow: hidden;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--soft-beige);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}
.category-card:hover .img-box {
  border-color: var(--primary-color);
  transform: scale(1.05);
}
.category-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover .img-box img {
  transform: scale(1.1);
}
.category-card h3 {
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}
.category-card:hover h3 {
  color: var(--accent-gold);
}

/* Best Sellers */
.bg-light {
  background-color: var(--soft-beige);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.product-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-color);
  transition: var(--transition-normal);
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-info {
  padding: 1.5rem;
  text-align: center;
}
.product-info h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.price span {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}
.add-to-cart {
  width: 100%;
}

/* Why Choose Us */
.flex-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.why-img {
  flex: 1;
}
.rounded-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.why-content {
  flex: 1;
}
.why-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.icon-box {
  background: var(--soft-beige);
  color: var(--accent-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.features-list h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.features-list p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: var(--transition-fast);
}
.social-links a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}
.footer-links ul li {
  margin-bottom: 0.8rem;
}
.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .flex-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 120px;
  }
  .hero-content {
    margin-top: clamp(40px, 8vh, 80px);
    width: 95%;
  }
  .quick-order {
    margin-top: -15px;
  }
  .order-partners { flex-direction: column; gap: 1rem; text-align: center; }
  .section-header { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Optimized Grid for Mobile (2 per row is best for clarity) */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 5px;
    width: 100%;
  }
  .category-card {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .category-card .img-box {
    width: 120px;
    height: 120px;
  }

  /* Products Grid (2 per row for better readability on phones) */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px 5px;
  }
  .product-card {
    width: 100%;
  }
  .product-img {
    height: 160px;
  }
  .product-info {
    padding: 1rem 0.8rem;
  }
  .product-info h4 {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  .product-info .price {
    font-size: 0.85rem;
  }
  .add-to-cart {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Future friendly grid for large tablets and desktops */
@media (min-width: 993px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Future friendly grid spacing */
.product-grid {
  margin-bottom: 2rem;
}

/* Home Page Story Section */
.home-story {
  background: #fdf8f5;
  overflow: hidden;
}

.story-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.story-img {
  flex: 1;
  position: relative;
}

.story-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.story-content {
  flex: 1;
}

.story-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #555;
}

@media (max-width: 992px) {
  .story-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .story-img img {
    height: 350px;
  }
  .story-content {
    text-align: center;
  }
}
/* Testimonials Column Layout (V2) */
.testimonials-columns-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-height: 550px; /* Focus on 2 reviews on mobile */
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

@media (min-width: 768px) {
  .testimonials-columns-container {
    grid-template-columns: repeat(2, 1fr);
    max-height: 740px; /* Show more on tablet/desktop */
  }
}

@media (min-width: 1024px) {
  .testimonials-columns-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.column-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: scrollVertical 20s linear infinite;
}

.column-track.reverse {
  animation: scrollVerticalReverse 25s linear infinite;
}

/* Testimonial Stars V2 */
.stars-v2 {
  display: flex;
  gap: 4px;
  color: #ffb400; /* Professional Star Gold */
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.default-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--soft-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.8rem;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-card-v2 {
  background: #ffffff;
  border: 1px solid rgba(69, 43, 31, 0.1);
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(69, 43, 31, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.testimonial-card-v2:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(69, 43, 31, 0.12);
}

.testimonial-card-v2 p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(69, 43, 31, 0.05);
  padding-top: 1.5rem;
}

.user-meta img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-meta h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.user-meta p {
  font-size: 0.85rem;
  color: var(--accent-gold);
  opacity: 1;
  margin-bottom: 0 !important;
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollVerticalReverse {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Visibility Utilities */
@media (max-width: 767px) {
  .desktop-only { display: none; }
}

@media (max-width: 1023px) {
  .large-only { display: none; }
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--soft-beige);
  border-radius: 20px;
  position: relative;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.testimonial-card .ri-double-quotes-l {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.stars {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #444;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.user-info h5 {
  font-size: 1.1rem;
  margin: 0;
}

.user-info p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Industrial Banner Layout */
.industrial-banner {
  background: #23120b;
  border-radius: 12px;
  margin: 1.5rem auto 2.5rem;
  max-width: 1100px;
  width: calc(100% - 40px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.industrial-banner-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.industrial-banner-text span {
  color: var(--primary-color);
}

.industrial-banner .btn-primary {
  padding: 0.6rem 2.8rem;
  font-size: 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 260px;
  text-align: center;
  animation: industrial-btn-pulse 2.2s infinite ease-in-out;
  transition: all 0.3s ease;
}

.industrial-banner .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
  animation-play-state: paused;
}

@keyframes industrial-btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 180, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 180, 0, 0);
  }
}

@media (max-width: 768px) {
  .industrial-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.2rem;
    gap: 1.2rem;
  }
  .industrial-banner-text {
    font-size: 1.15rem;
  }
  .industrial-banner .btn-primary {
    width: 100%;
    max-width: 300px;
  }
}
