/*
 * Vigour United - Common CSS Components
 * This file contains styles for common components used across multiple pages
 */

:root {
  /* Primary Colors */
  --primary-color: #8b4513; /* Brown - representing leather */
  --secondary-color: #d2b48c; /* Tan/Light brown */
  --accent-color: #3c2415; /* Dark brown for accents */
  --light-bg: #f9f9f9;

  /* Neutral Colors */
  --dark: #191919;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f4f4f4;
  --white: #ffffff;

  /* Font Families */
  --heading-font: "Playfair Display", serif;
  --body-font: "Montserrat", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Container Width */
  --container-width: 1200px;

  /* Border Radius */
  --border-radius: 4px;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.1);
}

.whatsapp-float i {
  margin-top: 0;
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  margin-bottom: var(--spacing-md);
  position: relative;
}

/* Removed underlines from section titles */
.section-title:after {
  display: none;
}

.text-center .section-title:after {
  margin-left: auto;
  margin-right: auto;
}

/* ==================
   Buttons 
   ================== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ==================
   Header & Navigation 
   ================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999; /* Increased z-index to ensure it's above all content */
  padding: 0.5rem 0; /* Further reduced padding to make header more compact */
  transition: var(--transition);
  height: 85px; /* Fixed header height for consistent positioning */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  flex-wrap: wrap;
}

.logo a {
  display: flex;
}

.logo img {
  max-height: 80px; /* Slightly reduced to ensure proper alignment */
  width: auto;
  min-width: 180px; /* Make the logo wider */
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--dark-gray);
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active:after,
.main-nav a:hover:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--dark-gray);
  background: none;
  border: none;
  padding: 10px;
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-size: 2.4rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* ==================
   Footer Styles 
   ================== */
footer {
  background-color: var(--dark);
  color: var(--light-gray);
  padding: var(--spacing-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-logo h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--light-gray);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--light-gray);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 0.3rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: var(--spacing-sm) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  color: var(--medium-gray);
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* About Preview Section */
.about-preview {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.about-content {
  padding: 0 var(--spacing-md);
}

.about-content .section-subtitle {
  display: block;
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 3.6rem;
}

.about-content p {
  margin-bottom: 3rem;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 1s ease;
}

.reveal-image {
  transition: transform 0.8s ease;
}

.about-image:hover .reveal-image {
  transform: scale(1.05);
}

/* Page Header (For Backwards Compatibility) */
.page-header {
  height: 50vh;
  min-height: 350px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/industry-banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 0; /* Removed margin */
}

.page-header .container {
  max-width: 800px;
  padding: 0 var(--spacing-sm);
}

.page-header h1 {
  font-size: 4.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.page-header p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--light-gray);
}

/* Hero Slider Section */
.hero-slider {
  height: 85vh;
  position: relative;
  overflow: hidden;
 
}

#heroSwiper {
  height: 100%;
}

.slide-image {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 80%;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
}

.slide-caption h2 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.hero-pagination {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 10;
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 30px;
}

.hero-pagination span {
  margin: 0 5px;
}

/* Navigation Arrows Styling */
.hero-slider .swiper-button-next, 
.hero-slider .swiper-button-prev {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-slider .swiper-button-next {
  right: 25px;
}

.hero-slider .swiper-button-prev {
  left: 25px;
}

.hero-slider .swiper-button-next:hover, 
.hero-slider .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-slider .swiper-button-next::after, 
.hero-slider .swiper-button-prev::after {
  font-size: 20px;
  color: var(--white);
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Leather Showcase Styling */
.leather-showcase {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: var(--spacing-lg);
}

.leather-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.leather-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.leather-item:hover img {
  transform: scale(1.1);
}

.leather-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20px);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.leather-item:hover .leather-overlay {
  transform: translateY(0);
  opacity: 1;
}

.leather-overlay h3 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.leather-overlay .btn-text {
  color: var(--secondary-color);
  font-size: 1.6rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.leather-overlay .btn-text i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Utility Classes */
.mt-4 {
  margin-top: 4rem !important;
}

.leather-overlay .btn-text:hover i {
  transform: translateX(5px);
}

/* Features Icons Section */
.features-icons {
  background-color: var(--primary-color);
  padding: 3rem 0; /* Reduced overall section padding */
  color: var(--white);
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.features-icons::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 17, 8, 0.85);
}

.features-icons .container {
  position: relative;
  z-index: 2;
}

.features-icons .section-title,
.features-icons .section-subtitle {
  color: var(--white);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; /* Reduced spacing between cards */
  margin-top: 2rem; /* Reduced top margin */
}

.icon-item {
  text-align: center;
  padding: 15px; /* Reduced internal padding */
  transition: transform 0.3s ease;
}

.icon-item:hover {
  transform: translateY(-10px);
}



.icon-item .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 15px;
}

.icon-item .feature-icon img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
}

.icon-item h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--white);
}

.icon-item p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0 100px; /* Increased bottom padding for pagination */
  background: linear-gradient(135deg, #f9f5f0 0%, #efe8e0 100%);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/leather-texture-light.jpg');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-section .section-title {
  color: #593D25;
  margin-bottom: 15px;
}

.testimonials-section .section-subtitle {
  color: #82614A;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.testimonials-carousel {
  padding: 20px 0;
  overflow: hidden;
}

.testimonial-slider {
  margin-top: 20px;
  padding-bottom: 70px; /* Increased space for pagination */
}

.testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(89, 61, 37, 0.1);
  margin: 10px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(130, 97, 74, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #82614A, #593D25);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(89, 61, 37, 0.15);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quote-icon {
  color: #82614A;
  font-size: 1.8rem;
  opacity: 0.7;
}

.stars {
  color: #F9A826;
}

.testimonial-content {
  margin-bottom: 25px;
  position: relative;
}

.testimonial-content p {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f0e6dc;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  color: #593D25;
  font-size: 1.1rem;
  font-weight: 600;
}

.author-info p {
  margin: 5px 0 0;
  color: #82614A;
  font-size: 0.9rem;
}

/* Swiper pagination for testimonials */
.testimonials-section .swiper-pagination {
  bottom: 0;
  position: absolute;
  width: 100%;
  bottom: 20px;
}

.testimonials-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d7c3b1;
  opacity: 0.7;
  margin: 0 5px;
}

.testimonials-section .swiper-pagination-bullet-active {
  background: #593D25;
  opacity: 1;
  width: 14px;
  height: 14px;
}

/* Testimonial Navigation Arrows */
.testimonials-section .swiper-button-next,
.testimonials-section .swiper-button-prev {
  background: rgba(89, 61, 37, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.testimonials-section .swiper-button-next:hover,
.testimonials-section .swiper-button-prev:hover {
  background: rgba(89, 61, 37, 0.9);
}

.testimonials-section .swiper-button-next::after,
.testimonials-section .swiper-button-prev::after {
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 100;
}

.lightbox-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  font-size: 1.8rem;
  margin-top: 15px;
  font-weight: 500;
}

.lightbox-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive styles for common components */
@media (max-width: 992px) {
  .industry-card,
  .industry-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .industry-content {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 768px) {
  .page-banner h1,
  .page-header h1 {
    font-size: 3.6rem;
  }

  .page-banner p,
  .page-header p {
    font-size: 1.6rem;
  }

  .industry-intro h2,
  .industry-content h2 {
    font-size: 2.8rem;
  }
}
