/* 
 * OceanDrops Website Styles
 * Professional Wholesale/Distributor Theme
 */

:root {
  /* Professional Color Palette - Green & White */
  --primary-color: #166534; /* Green */
  --secondary-color: #15803d; /* Medium Green */
  --accent-color: #ffffff; /* White */
  --accent-hover: #f3f4f6; /* Light Gray Tint */
  --text-dark: #1f2937; /* Charcoal */
  --text-light: #f3f4f6; /* Light Gray */
  --text-dim: #6b7280; /* Medium Gray */
  --white: #ffffff;
  --bg-light: #f9fafb; /* Off White */
  --bg-section: #ffffff; /* White Background */
  --shadow: 0 10px 30px -10px rgba(22, 101, 52, 0.3);

  /* Dark Mode Variables Override - Professional Slate Palette */
  --bg-dark: #0f172a; /* Slate 900 - Deep Professional Dark */
  --bg-card-dark: #1e293b; /* Slate 800 - Lighter Card Background */
  --text-primary-dark: #f8fafc; /* Slate 50 - High Contrast Text */
  --text-secondary-dark: #94a3b8; /* Slate 400 - Softer Secondary Text */
  --border-dark: #334155; /* Slate 700 - Subtle Borders */

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);

  /* Brand Color Adaptation for Dark Mode - Lighter/Brighter for Contrast */
  --primary-color: #22c55e; /* Green 500 - Vibrant against dark bg */
  --secondary-color: #16a34a; /* Green 600 */
}

body.dark-mode .why-choose-section,
body.dark-mode .innovation-section,
body.dark-mode .section,
body.dark-mode .products-page,
body.dark-mode .who-we-are-section,
body.dark-mode .features-section,
body.dark-mode .core-values-section,
body.dark-mode .products-main,
body.dark-mode .product-card,
body.dark-mode .products-sidebar,
body.dark-mode header,
body.dark-mode .services-overview,
body.dark-mode .equipment-section,
body.dark-mode .dealers-list,
body.dark-mode .dealers-hero,
body.dark-mode .contact-form-section,
body.dark-mode .service-request,
body.dark-mode .map-section {
  background-color: var(--bg-dark); /* Darkest base for sections */
  color: var(--text-primary-dark);
  box-shadow: none;
}

body.dark-mode .footer {
  background: var(--bg-card-dark);
  border-top: 1px solid var(--border-dark);
}

/* Remove gradients from hero sections in dark mode */
body.dark-mode .services-hero,
body.dark-mode .contact-hero {
  background: var(--bg-card-dark);
  border-bottom: 1px solid var(--border-dark);
}

body.dark-mode header {
  background: rgba(30, 41, 59, 0.95); /* Slate 800 with opacity */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .stat-number,
body.dark-mode .nav-links a,
body.dark-mode .category-item {
  color: var(--text-primary-dark);
}

body.dark-mode p,
body.dark-mode .stat-label,
body.dark-mode .product-description,
body.dark-mode .contact-info-header {
  color: var(--text-secondary-dark);
}

body.dark-mode .highlight-text {
  color: var(--white);
  text-shadow: none;
}

body.dark-mode .category-item .count,
body.dark-mode .product-count {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .product-count {
  background-color: transparent;
}

body.dark-mode .category-item:hover,
body.dark-mode .category-item.active {
  background-color: var(--bg-dark);
  color: var(--primary-color);
}

body.dark-mode .product-card,
body.dark-mode .stat-card,
body.dark-mode .value-card,
body.dark-mode .service-card,
body.dark-mode .equipment-item,
body.dark-mode .dealer-card-new,
body.dark-mode .contact-form-container,
body.dark-mode .contact-info-card,
body.dark-mode .why-choose-card,
body.dark-mode .innovation-item,
body.dark-mode .feature-card {
  border-color: var(--border-dark);
  background-color: var(--bg-card-dark); /* Lighter/Elevated for cards */
}

body.dark-mode .product-image {
  border-bottom-color: var(--border-dark);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 10px;
}

body.dark-mode .theme-toggle {
  color: var(--text-primary-dark);
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Elevate specific containers to card background */
body.dark-mode .products-main,
body.dark-mode .products-sidebar {
  background-color: var(--bg-card-dark);
  border-color: var(--border-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  max-width: 60ch;
  color: var(--text-dim);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Section Padding */
.section-padding {
  padding: 60px 0;
}

.section {
  padding: 60px 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-primary svg {
  margin-right: 8px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(22, 101, 52, 0.1);
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  display: inline-block; /* Ensures background fits around the logo */
  border-radius: 6px; /* Optional rounded corners */
}

.logo img {
  width: 120px; /* Set logo width */
  height: 50px; /* Set logo height */
  object-fit: contain; /* Keeps image from stretching */
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.contact-info-header {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.contact-info-header a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
  letter-spacing: 1px;
}

/* Hide hamburger on desktop - only show on mobile */
.hamburger {
  display: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1;
}

.nav-links a:hover {
  background-color: rgba(22, 101, 52, 0.1);
  color: var(--primary-color);
}

.nav-links a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-color);
  color: var(--primary-color) !important;
  padding: 0 20px !important;
  height: 100% !important;
  border-radius: 0 !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-left: 10px;
}

.btn-whatsapp:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.whatsapp-icon {
  font-size: 1.2rem;
}

/* Hero Carousel */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

/* Overlay for better text readability */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.7) 0%,
    rgba(30, 64, 175, 0.5) 100%
  );
}

.slide-bg-1 {
  background-image: url("Images/slide5.png");
}

.slide-bg-2 {
  background-image: url("https://picsum.photos/id/101/1920/1080");
}

.slide-bg-3 {
  background-image: url("Images/slide1.png");
}

/* Index Page Carousel Slides */
.slide-bg-index-1 {
  background-image: url("Images/SImage1.png");
}

.slide-bg-index-2 {
  background-image: url("Images/SImage2.png");
}

.slide-bg-index-3 {
  background-image: url("Images/SImage3.png");
}

.slide-bg-index-4 {
  background-image: url("Images/SImage4.png");
}

.slide-bg-index-5 {
  background-image: url("Images/SImage5.png");
}

.about-carousel-section {
  position: relative;
  height: 70vh; /* Slightly shorter than hero */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height); /* Offset for fixed header */
}

@media (max-width: 768px) {
  .about-carousel-section {
    height: 50vh;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: var(--white);
}

.hero-content p {
  margin: 0 auto 30px;
  color: var(--text-light);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Features Section */
.features-section {
  background-color: var(--white);
}

.section-header {
  margin-bottom: 40px; /* Reduced from 50px */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px; /* Reduced from 15px */
  font-family: "Inter", sans-serif; /* Ensure font consistency */
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 0 auto;
  line-height: 1.5; /* Optimize line height */
}

.text-center {
  text-align: center;
}

.features-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* Reduced gap */
  text-align: center;
}

.feature-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.feature-icon-wrapper {
  width: auto;
  height: auto;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 15px;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 0;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: var(--text-dark);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: transparent;
  color: var(--text-dark);
}

.stat-item {
  padding: 10px; /* Reduced padding */
}

.stat-number {
  font-size: 2.5rem; /* Reduced font size */
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px; /* Reduced margin */
}

.stat-label {
  font-size: 0.95rem; /* Reduced font size */
  color: var(--text-dim);
  font-weight: 500;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Mobile Header Adjustments */
  header {
    padding: 0;
  }

  .navbar {
    padding: 0 15px;
  }

  /* Mobile Logo Styles */
  .logo {
    background-color: transparent; /* Remove background on mobile */
    padding: 5px; /* Reduce padding */
    border-radius: 4px; /* Smaller border radius */
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 100px; /* Smaller logo width for mobile */
    height: 40px; /* Smaller logo height for mobile */
    object-fit: contain;
  }

  /* Show hamburger on mobile */
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    min-width: 40px;
    min-height: 40px;
  }

  .hamburger:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
  }

  .contact-info-header,
  .header-actions .btn {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 20px 30px;
    transition: right 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 8px;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    height: auto;
    width: 100%;
    margin: 0;
  }

  .nav-links a {
    height: auto;
    width: 100%;
    padding: 16px 20px;
    justify-content: flex-start;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text-dark) !important;
    background-color: var(--bg-light) !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: rgba(22, 101, 52, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateX(5px);
  }

  .nav-links a.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
  }

  .btn-whatsapp {
    height: auto !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    margin: 20px auto 0;
    width: auto !important;
    display: inline-flex;
  }

  /* Mobile Menu Dark Mode Support */
  body.dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.98); /* Deep dark background */
    border-left: 1px solid var(--border-dark);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  }

  body.dark-mode .nav-links a {
    color: var(--text-primary-dark) !important;
    background-color: var(--bg-card-dark) !important;
    border: 1px solid var(--border-dark);
  }

  body.dark-mode .nav-links a:hover {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
  }

  body.dark-mode .hamburger {
    color: var(--text-primary-dark);
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  /* Extra Small Screen Adjustments */
  .navbar {
    padding: 0 10px; /* Reduce padding further on very small screens */
  }

  .logo {
    padding: 3px;
  }

  .logo img {
    width: 190px; /* Even smaller logo for very small screens */
    height: 55px;
  }

  .hamburger {
    font-size: 1.6rem;
    min-width: 36px;
    min-height: 36px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 5px 10px;
  }

  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
}

/* Who We Are Section */
.who-we-are-section {
  background-color: var(--bg-section);
  padding: 40px 0;
}

.who-we-are-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.who-we-are-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.who-we-are-content p {
  margin-bottom: 20px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: none;
}

/* Stats Grid for About Page */
.stats-grid-about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-light);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e5e7eb;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* About Carousel Section */
.about-carousel-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

/* Responsive for Who We Are */
@media (max-width: 768px) {
  .who-we-are-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid-about {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stats-grid-about {
    grid-template-columns: 1fr;
  }
}

/* Core Values Section */
.core-values-section {
  background-color: var(--white);
  padding: 40px 0 80px 0;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.value-card {
  background-color: #f9fafb;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(22, 101, 52, 0.15);
  border-color: var(--primary-color);
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(22, 101, 52, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  stroke-width: 2.5;
}

.value-card:hover .value-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  transform: scale(1.05);
}

.value-card:hover .value-icon svg {
  color: var(--white);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 0;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

/* Responsive for Core Values */
@media (max-width: 1024px) {
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .core-values-section {
    padding: 60px 0;
  }

  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .value-card {
    padding: 30px 20px;
  }

  .value-icon {
    width: 50px;
    height: 50px;
  }

  .value-icon svg {
    width: 24px;
    height: 24px;
  }

  .value-card h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .core-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 30px 25px;
  }
}

/* Products Page Styles */
.products-page {
  margin-top: var(--header-height);
  padding: 40px 0;
  background-color: var(--bg-light);
  min-height: calc(100vh - var(--header-height));
}

.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar Styles */
.products-sidebar {
  background-color: var(--white);
  border-radius: 16px;
  padding: 0;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 24px 20px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.category-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
  font-weight: 500;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background-color: rgba(22, 101, 52, 0.05);
  color: var(--primary-color);
  padding-left: 28px;
}

.category-item.active {
  background-color: rgba(22, 101, 52, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  border-left: 5px solid var(--primary-color);
}

.category-item .count {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.category-item:hover .count,
.category-item.active .count {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Products Main Content */
.products-main {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(22, 101, 52, 0.1);
  position: relative;
}

.products-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: var(--primary-color);
}

.products-header h1 {
  font-size: 2.25rem;
  margin: 0;
  color: var(--text-dark);
  font-weight: 800;
  text-transform: capitalize;
}

.product-count {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Category Specific Backgrounds Consistently White */
.category-concealled-cisterns .product-image,
.category-intraslim-flush-plates .product-image,
.category-dual-flush-valves .product-image,
.category-fill-valves .product-image,
.category-flush-valves-df .product-image {
  background-color: #ffffff;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.3);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #1a1a1a;
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.btn-view-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.2);
  margin-top: auto;
}

.btn-view-details:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 101, 52, 0.3);
  filter: brightness(1.1);
}

.btn-view-details:active {
  transform: translateY(-1px);
}

.btn-view-details svg {
  width: 16px;
  height: 16px;
}

/* Product Details Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  max-width: 550px;
  border-radius: 12px;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #000;
}

.modal-body {
  padding: 25px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  padding-right: 30px;
}

.modal-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.modal-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  position: relative; /* Anchor for zoom controls */
  transition: all 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* Prevent blue selection highlight */
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to prevent cropping */
  transition: transform 0.3s ease; /* Smooth zoom transition */
  transform-origin: center center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* Prevent blue selection highlight */
  pointer-events: none; /* detailed control usually handled by parent or specific js, but this prevents native drag interactions */
}

.zoom-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  padding: 0;
}

.zoom-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0;
}

.modal-image.fullscreen-active .close-fullscreen {
  display: flex;
}

.close-fullscreen:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(90deg) scale(1.1);
}

.close-fullscreen svg {
  width: 24px;
  height: 24px;
}

.image-scroller {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scrollbar styling for WebKit (Chrome, Safari, Edge) */
.image-scroller::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.image-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.image-scroller::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.image-scroller::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.modal-details p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 25px 0;
  font-size: 14px;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2d3748;
  font-size: 14px;
}

.feature-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Dark Mode Support for Modal and Products */
body.dark-mode .modal-content {
  background-color: var(--bg-card-dark);
  color: var(--text-primary-dark);
  border: 1px solid var(--border-dark);
}

body.dark-mode .modal-header h2,
body.dark-mode .modal-details h3,
body.dark-mode .product-title {
  color: var(--text-primary-dark);
}

body.dark-mode .modal-details p,
body.dark-mode .feature-item span {
  color: var(--text-secondary-dark);
}

body.dark-mode .modal-image,
body.dark-mode .product-image {
  background-color: #ffffff; /* Keep white for engineering drawings clarity or maybe logic below */
}

/* Ensure engineering products keep white BG even in dark mode for clarity */
body.dark-mode .category-concealled-cisterns .product-image,
body.dark-mode .category-intraslim-flush-plates .product-image,
body.dark-mode .category-dual-flush-valves .product-image,
body.dark-mode .category-fill-valves .product-image,
body.dark-mode .modal.category-concealled-cisterns .modal-image,
body.dark-mode .modal.category-intraslim-flush-plates .modal-image,
body.dark-mode .modal.category-dual-flush-valves .modal-image,
body.dark-mode .modal.category-fill-valves .modal-image {
  background-color: #ffffff;
}

body.dark-mode .modal-close {
  background-color: var(--border-dark);
  color: var(--text-primary-dark);
}

body.dark-mode .modal-close:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

body.dark-mode .zoom-btn {
  background-color: var(--bg-card-dark);
  border-color: var(--border-dark);
  color: var(--text-primary-dark);
}

body.dark-mode .zoom-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-inquire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.2);
}

.btn-inquire:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 101, 52, 0.3);
  filter: brightness(1.1);
}

.btn-inquire:active {
  transform: translateY(-1px);
}

/* Responsive Design for Products Page */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 220px 1fr;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-sidebar {
    position: static;
  }

  .products-main {
    padding: 20px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products-header h1 {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-image {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .modal-content {
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .modal-body {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-image {
    height: 250px;
  }

  .modal-features {
    grid-template-columns: 1fr;
  }

  .modal-close {
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 480px) {
  .products-page {
    padding: 20px 0;
  }

  .products-main {
    padding: 15px;
  }

  .sidebar-title {
    font-size: 1.1rem;
    padding: 15px;
  }

  .category-item {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    padding: 15px;
  }

  .modal-image {
    height: 200px;
  }
}

/* ========================================
   SERVICES & SUPPORT PAGE STYLES
   ======================================== */

/* Services Hero Section */
.services-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 40px 0;
  margin-top: var(--header-height);
  text-align: center;
  color: var(--white);
}

.services-hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.services-hero-content p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Overview Section */
.services-overview {
  background-color: var(--white);
  padding: 50px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #f9fafb;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(22, 101, 52, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(22, 101, 52, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  stroke-width: 2.5;
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* Equipment Section */
.equipment-section {
  background-color: var(--bg-light);
  padding: 50px 0;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.equipment-item {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.equipment-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(22, 101, 52, 0.2);
}

.equipment-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.equipment-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
}

.equipment-item h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  text-align: center;
}

.equipment-item ul {
  list-style: none;
  padding: 0;
}

.equipment-item ul li {
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  position: relative;
  padding-left: 22px;
}

.equipment-item ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Service CTA Section */
.service-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  text-align: center;
  color: var(--white);
  padding: 50px 0;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 0.95rem;
}

.cta-buttons .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cta-buttons .btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-buttons .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Design for Services Page */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 70px 0 40px;
  }

  .services-hero-content h1 {
    font-size: 1.8rem;
  }

  .services-hero-content p {
    font-size: 0.95rem;
  }

  .services-overview {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    padding: 20px 18px;
  }

  .equipment-section {
    padding: 40px 0;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-cta {
    padding: 40px 0;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 60px 0 35px;
  }

  .service-card {
    padding: 18px 15px;
  }

  .service-icon {
    width: 55px;
    height: 55px;
  }

  .equipment-item {
    padding: 20px 18px;
  }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: none;
}

/* Dealers Page Styles */
.dealers-hero {
  background-color: #008037; /* Green from image */
  color: var(--white);
  padding: 40px 0; /* Reduced from 80px */
  margin-top: var(--header-height);
  text-align: center;
}

.dealers-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px; /* Reduced from 20px */
}

.dealers-hero p {
  color: var(--white);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

.dealers-list {
  background-color: var(--white);
  padding: 40px 0; /* Override section-padding */
}

.dealers-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px; /* Reduced from 40px */
}

.dealer-card-new {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.dealer-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dealer-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dealer-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dealer-card-new:hover .dealer-image img {
  transform: scale(1.08);
}

/* Green separator line */
.dealer-info {
  padding: 20px;
  text-align: center;
  border-top: 3px solid #008037; /* Green line */
}

.dealer-info h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.dealer-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.dealer-location svg {
  color: #008037; /* Green icon */
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
}

/* Responsive Design for Dealers */
@media (max-width: 1200px) {
  .dealers-grid-new {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .dealer-image {
    height: 180px;
    padding: 18px;
  }
}

@media (max-width: 992px) {
  .dealers-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .dealer-image {
    height: 160px;
    padding: 15px;
  }

  .dealer-info h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .dealers-grid-new {
    gap: 18px;
  }

  .dealer-image {
    height: 150px;
    padding: 12px;
  }

  .dealer-info {
    padding: 18px;
  }
}

@media (max-width: 576px) {
  .dealers-grid-new {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dealers-hero {
    padding: 60px 0;
  }

  .dealers-hero h1 {
    font-size: 2rem;
  }

  .dealer-image {
    height: 180px;
    padding: 20px;
  }

  .dealer-info h3 {
    font-size: 1rem;
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.4);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===================================
   CONTACT PAGE STYLES
   =================================== */

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 40px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease;
}

.contact-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* Contact Form Section */
.contact-form-section {
  background: var(--bg-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Form Container */
.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.contact-form-container h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-form-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Form Groups */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit svg {
  position: relative;
  z-index: 1;
}

/* Contact Info Container */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-container h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.contact-info-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-icon svg {
  color: var(--white);
  width: 24px;
  height: 24px;
}

.contact-details h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-details p {
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0;
}

.contact-details a {
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

/* Map Section */
.map-section {
  padding: 60px 0;
  background: var(--white);
}

.map-title {
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.map-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 1200px;
  margin: 0 auto;
}

.map-container iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 80px 0 60px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-form-container,
  .contact-info-container {
    padding: 30px 20px;
  }

  .contact-form-container h2,
  .contact-info-container h2,
  .map-title {
    font-size: 1.75rem;
  }

  .contact-info-card {
    padding: 20px;
  }

  .contact-info-card:hover {
    transform: translateY(-5px);
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .map-section {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 1.75rem;
  }

  .contact-form-container,
  .contact-info-card {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 16px;
  }

  .btn-submit {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Innovation Section (About Page) */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  /* margin-top: 40px; removed to reduce spacing */
}

.innovation-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: default;
}

.innovation-item:hover {
  background-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(22, 101, 52, 0.2);
}

.innovation-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.innovation-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.innovation-item:hover .innovation-icon {
  color: var(--white);
}

.innovation-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  transition: var(--transition);
}

.innovation-item:hover .innovation-content h3 {
  color: var(--white);
}

.innovation-content p {
  color: var(--text-dim);
  margin-bottom: 0;
  font-size: 0.95rem;
  transition: var(--transition);
}

.innovation-item:hover .innovation-content p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .innovation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .innovation-item {
    padding: 20px;
  }
}

.innovation-section {
  padding: 40px 0;
}

/* Why Choose Us Section */
.why-choose-section {
  background-color: var(--bg-light);
  padding: 40px 0;
}

.highlight-text {
  color: var(--text-dark);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  /* margin-top: 40px; removed to reduce spacing */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.why-choose-card {
  background: var(--white);
  padding: 35px 25px;
  text-align: center;
  position: relative;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hexagon-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(22, 101, 52, 0.1) 0%,
    rgba(21, 128, 61, 0.1) 100%
  );
  border-radius: 50%;
}

.hexagon-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.why-choose-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
}

.why-choose-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .why-choose-card:nth-child(5),
  .why-choose-card:nth-child(6),
  .why-choose-card:nth-child(7),
  .why-choose-card:nth-child(8) {
    margin-top: 0;
  }

  .why-choose-card:nth-child(2),
  .why-choose-card:nth-child(5) {
    margin-top: 30px;
  }
}

@media (max-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .why-choose-card {
    min-height: 260px;
  }

  .why-choose-card:nth-child(2),
  .why-choose-card:nth-child(4),
  .why-choose-card:nth-child(6),
  .why-choose-card:nth-child(8) {
    margin-top: 30px;
  }

  .why-choose-card:nth-child(5),
  .why-choose-card:nth-child(7) {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-choose-card {
    padding: 30px 20px;
    min-height: 240px;
  }

  .why-choose-card:nth-child(n) {
    margin-top: 0 !important;
  }
}

/* Upload Button for Products */
.product-image {
  position: relative;
}

.upload-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 5;
  opacity: 0;
}

.product-image:hover .upload-btn {
  opacity: 1;
}

.upload-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.upload-btn svg {
  width: 16px;
  height: 16px;
}

/* Dark Mode for Product Modal */
body.dark-mode .modal-content {
  background-color: #111111;
  border: 1px solid #333;
}

body.dark-mode .modal-header h2 {
  color: #ffffff;
}

body.dark-mode .modal-details h3 {
  color: #e5e7eb;
}

body.dark-mode .modal-details p,
body.dark-mode .feature-item {
  color: #9ca3af;
}

body.dark-mode .modal-image {
  background-color: #000000;
  border-color: #333;
}

body.dark-mode .zoom-btn {
  background-color: #1f2937;
  color: #ffffff;
  border-color: #374151;
}

body.dark-mode .zoom-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

body.dark-mode .modal-close {
  background-color: #1f2937;
  color: #ffffff;
}

body.dark-mode .modal-close:hover {
  background-color: #374151;
  color: #ffffff;
}

/* Handle category-specific image backgrounds in dark mode */
body.dark-mode .modal.category-concealled-cisterns .modal-image img,
body.dark-mode .modal.category-cistern .modal-image img,
body.dark-mode .modal.category-intraslim-flush-plates .modal-image img {
  background-color: #222; /* Dark background instead of white */
}

/* Fullscreen Modal Image Override */
.modal-image.fullscreen-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important; /* Force viewport width */
  height: 100vh !important; /* Force viewport height */
  z-index: 10000 !important; /* On top of everything */
  margin: 0 !important;
  border-radius: 0 !important;
  background-color: #000 !important; /* Black background */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-image.fullscreen-active img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Ensure full image is visible */
  max-width: none !important;
  max-height: none !important;
}

/* Adjust zoom controls position in fullscreen */
.modal-image.fullscreen-active .zoom-controls {
  bottom: 30px;
  right: 30px;
}
