/* 
==============================================
   PREMIUM PVC/UPVC PIPE COMPANY STYLESHEET
==============================================
   Theme matching: Professional, Industrial, Modern.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Branding Colors */
  --primary-color: #003B73;
  /* Deep Corporate Blue */
  --secondary-color: #0074B7;
  /* Vibrant Blue for accents */
  --accent-color: #F39C12;
  /* Industrial Orange/Yellow */
  --text-dark: #222222;
  --text-light: #777777;
  --bg-color: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #E2E8F0;

  /* Typography */
  --font-family: 'Inter', sans-serif;

  /* Spacing & Utilities */
  --container-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 1;
  transform: none;
  transition: all 0.8s ease-out;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

ul {
  list-style: none;
}

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

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* CONTAINER */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  background-color: var(--white);
}

.section.alt-bg {
  background-color: var(--bg-color);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
}

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

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

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
  border: 2px solid var(--accent-color);
}

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

.btn-whatsapp-dynamic {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-whatsapp-dynamic:hover {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--white);
}

/* NAVBAR (STICKY) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 5px 0;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  margin-top: 50px;
  background: linear-gradient(rgba(0, 59, 115, 0.7), rgba(0, 59, 115, 0.85)), url('../images/industrial_hero.png') center/cover;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* TRUST BADGES IN HERO */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ABOUT PREVIEW */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  border-radius: var(--border-radius);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* PRODUCTS GRID (Optimized for 5x5) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.filter-item {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-img {
  height: 250px;
  background-color: #eee;
  overflow: hidden;
}

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

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

.product-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
}

.features-list {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.features-list li {
  margin-bottom: 5px;
  list-style-type: circle;
}

/* WHY CHOOSE US */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.feature-box h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* CATALOG CONTROLS (Search + Tabs) */
.catalog-controls {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.search-container {
  display: flex;
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border-radius: 50px;
  padding: 5px 5px 5px 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.search-container:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.search-container input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 10px 0;
  background: transparent;
}

.search-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

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

/* CATEGORY TABS */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-btn {
  padding: 10px 25px;
  border: none;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* PREMIUM CATALOG LAYOUT */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.catalog-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 10;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: left;
  width: 100%;
}

.sidebar-btn:hover,
.sidebar-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar-btn i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.search-sidebar {
  margin-bottom: 30px;
}

.search-sidebar input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  outline: none;
  background: var(--bg-color);
  transition: var(--transition);
  font-size: 0.95rem;
}

.search-sidebar input:focus {
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 30px;
    padding: 20px;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 15px;
  }

  .sidebar-btn {
    white-space: nowrap;
    width: auto;
  }
}

/* MANUFACTURING RANGE SHOWCASE (Homepage) */
.range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.range-item {
  text-align: center;
  background: var(--white);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.range-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.range-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  background: #fdfdfd;
}

.range-item span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* GALLERY (Updated for 50+ items) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* Home Visual Gallery - Full Image (contain) */
#home-visual-gallery .gallery-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

#home-visual-gallery .gallery-item img {
  object-fit: contain;
  padding: 5px;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 59, 115, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay h4 {
  color: var(--white);
  transform: translateY(20px);
  transition: var(--transition);
}

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

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

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* CTA STRIP */
.cta-strip {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 30px;
  font-size: 2.5rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-bg {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-info-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 800px;
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
}

.specs-table th,
.specs-table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

.specs-table th {
  background: var(--bg-color);
  font-weight: 600;
  color: var(--primary-color);
}

/* NOTIFICATION / TOAST */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}


.hero-with-widget {
  margin-top: 100px;
}

/* FLOATING BUTTONS */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

.floating-catalog {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}

.floating-catalog:hover {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: white;
}

/* FOOTER */
.footer {
  background: rgba(240, 248, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 70px 0 20px;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-dark);
}

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

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .header {
    padding: 10px 0;
  }

  .logo img {
    height: 60px !important;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 15px;
    width: 100%;
    border-bottom: 1px solid #f8f9fa;
  }

  /* SPACING FOR STACKED ELEMENTS */
  .about-grid,
  .contact-grid {
    gap: 30px;
  }

  .about-image {
    order: 2;
  }

  .about-content {
    order: 1;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 5px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 10px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for clean look */
  }

  .tab-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* FLOATING BUTTONS MOBILE */
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }

  .floating-catalog {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 75px;
    right: 15px;
  }

  /* BUTTONS MOBILE */
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* GRID AND CARD ADJUSTMENTS */
  .range-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-info h3 {
    font-size: 1.1rem;
  }

  .product-info p {
    font-size: 0.9rem;
  }

  /* CONTACT FORM MOBILE */
  .form-control {
    font-size: 16px !important;
    /* Prevents auto-zoom on iOS */
    padding: 12px 15px;
  }

  .contact-form-bg {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .range-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2 items for density */
  }

  .floating-catalog,
  .floating-whatsapp {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .floating-catalog {
    bottom: 70px;
  }
}

/* ==============================================
   UPGRADED GALLERY & LIGHTBOX STYLES
============================================== */

.gallery-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.gallery-grid-v2 .gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

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

.gallery-grid-v2 .gallery-item h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 59, 115, 0.9));
  color: var(--white);
  font-size: 0.85rem;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.gallery-grid-v2 .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.gallery-grid-v2 .gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-grid-v2 .gallery-item:hover h4 {
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
}

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

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  z-index: 3010;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.2);
}

.lightbox-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#prev-btn {
  left: 40px;
}

#next-btn {
  right: 40px;
}

@media (max-width: 1100px) {
  .gallery-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-content {
    max-width: 95%;
  }

  #prev-btn,
  #next-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* FORM VALIDATION STYLES */
.error-text {
  color: #ff3333;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.error-text.active {
  max-height: 20px;
  margin-bottom: 15px;
}

.input-error {
  border-color: #ff3333 !important;
  background-color: #fff9f9 !important;
}

.input-error:focus {
  box-shadow: 0 0 5px rgba(255, 51, 51, 0.3) !important;
}