/* ==========================================================================
   PAGE SPECIFIC LAYOUTS & STYLES (pages.css)
   ========================================================================== */

/* ==========================================================================
   HOME PAGE (`index.html`)
   ========================================================================== */
.hero-home {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-darkest);
  color: var(--white);
  background-image: url('../images/hero_factory_workshop.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 45, 0.85) 0%, rgba(29, 59, 94, 0.6) 100%);
  z-index: 1;
}

.hero-home-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-home h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-home p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-primary);
  font-weight: 500;
}

.hero-badge-item svg {
  color: var(--blue-accent);
}

/* Stats metrics bar */
.stats-bar {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-item {
  border-right: 1px solid var(--border-color);
}

.stats-item:last-child {
  border-right: none;
}

.stats-number {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-accent);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.stats-label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-darkest);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-sublabel {
  font-size: 0.6875rem;
  color: var(--text-medium);
  margin-top: 0.125rem;
}

/* Product Range Section */
.product-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-range-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.product-range-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.product-card-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--navy-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.product-card-content p {
  color: var(--text-medium);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blue-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-link:hover {
  color: var(--navy-primary);
}

/* Why Choose Us Section */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-choose-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.why-choose-item:hover {
  background-color: var(--blue-light);
}

.why-choose-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: rgba(42, 96, 157, 0.08);
  color: var(--blue-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-choose-text p {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* Featured Projects 4-Column Layout */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.featured-projects-grid .gallery-masonry-item {
  height: 380px; /* Large premium cards */
}

@media (max-width: 1024px) {
  .featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-projects-grid .gallery-masonry-item {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
  .featured-projects-grid .gallery-masonry-item {
    height: 240px;
  }
}


/* 8-step timeline grid layout on Services page */
.timeline-grid {
  flex-wrap: wrap;
}
.timeline-grid::before {
  display: none !important; /* Hide horizontal line connector in 2-row layout */
}
.timeline-grid .timeline-step {
  width: 22%;
  margin-bottom: 2.5rem;
}

/* Timeline Process Section */
.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 15%;
}

.timeline-step-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  color: var(--text-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 0 0 6px var(--white);
}

.timeline-step:hover .timeline-step-icon {
  background-color: var(--blue-accent);
  border-color: var(--blue-accent);
  color: var(--white);
  transform: scale(1.1);
}

.timeline-step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-step p {
  font-size: 0.8125rem;
  color: var(--text-medium);
  line-height: 1.4;
}

/* Industries We Serve Section */
.industries-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.industry-badge {
  flex: 1 1 200px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-speed) ease;
}

.industry-badge:hover {
  background-color: var(--navy-primary);
  color: var(--white);
  transform: translateY(-4px);
}

.industry-badge svg {
  color: var(--blue-accent);
  transition: color var(--transition-speed) ease;
}

.industry-badge:hover svg {
  color: var(--white);
}

.industry-badge span {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Map Section */
.map-container {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.map-details {
  flex: 1 0 300px;
}

.map-details h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.map-details p {
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.map-metrics {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.map-metric-item h4 {
  font-size: 2.5rem;
  color: var(--blue-accent);
  line-height: 1;
}

.map-metric-item span {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
}

.map-graphic {
  flex-grow: 1;
  position: relative;
}

.map-svg-wrap {
  width: 100%;
  opacity: 0.85;
}

/* Interactive pins on SVG world map */
.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--blue-accent);
  border-radius: 50%;
  cursor: pointer;
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--blue-accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Global CTA Section */
.cta-banner {
  padding: 4.5rem 0;
  background-color: var(--navy-primary);
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 59, 94, 0.95) 0%, rgba(15, 28, 45, 0.85) 100%);
}

.cta-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: var(--text-light);
}

/* Contact/Inquiry Form Grid */
.inquiry-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.inquiry-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.inquiry-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.inquiry-info p {
  color: var(--text-medium);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  color: var(--blue-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  color: var(--navy-darkest);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* Clean Form inputs */
.inquiry-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--blue-light);
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-accent);
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   ABOUT US PAGE (`about.html`)
   ========================================================================== */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.overview-img-main {
  grid-column: span 3;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
}

.overview-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-img-sub {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100px;
}

.overview-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.overview-text p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

/* Vision / Mission cards */
.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vision-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 350px;
}

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

.vision-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vision-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.vision-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--blue-soft);
  color: var(--blue-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vision-card-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.vision-card-text p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

/* Manufacturing details */
.manufacture-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.manufacture-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .manufacture-stats-grid {
    grid-template-columns: 1fr;
  }
}

.manufacture-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.manufacture-gallery-item {
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.manufacture-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Customer photos grid layout */
.customer-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Certifications Image Gallery styles */
.certs-image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-image-card {
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  padding: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--blue-accent);
}

.cert-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #f7f9fc;
  display: block;
}

.cert-image-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 28, 45, 0.85); /* Semi-transparent navy */
  color: var(--white) !important;
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  line-height: 1.3;
}

.cert-image-card:hover .cert-image-name {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .customer-photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .certs-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .customer-photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .certs-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Certifications */
.certs-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cert-card {
  flex: 1 1 120px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--navy-darkest);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.cert-card svg {
  margin-bottom: 0.5rem;
}

.cert-card span {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

/* Our People */
.people-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.people-main-img {
  height: 380px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.people-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-subs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.people-sub-img {
  height: 180px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.people-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PRODUCTS PAGE (`products.html`)
   ========================================================================== */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

/* Sidebar filtering styles */
.sidebar-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  color: var(--navy-darkest);
}

.category-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-link {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.category-link:hover, .category-link.active {
  background-color: var(--blue-light);
  color: var(--blue-accent);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-cb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  cursor: pointer;
}

.filter-cb-item input {
  cursor: pointer;
}

.btn-reset-filters {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: var(--blue-light);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  border-radius: var(--border-radius-sm);
}

.btn-reset-filters:hover {
  background-color: var(--blue-soft);
  color: var(--navy-darkest);
}

/* Products lists block */
.products-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.products-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.product-results-count {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.products-sort select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

/* Product Cards */
.products-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 768px) {
  /* Off-canvas sidebar filter drawer styles */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
  }
  .sidebar-filters.active {
    transform: translateX(290px);
  }
  .sidebar-header {
    display: flex !important;
  }
  .filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    background-color: var(--blue-accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .filter-fab:active {
    transform: translateX(-50%) scale(0.95);
  }

  /* Product details features scroll-snap slider */
  .detail-features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
  }
  .detail-features-grid::-webkit-scrollbar {
    display: none;
  }
  .detail-features-grid .why-choose-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  /* Timeline Grid mobile override */
  .timeline-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-left: 2rem;
  }
  .timeline-grid::before {
    display: block !important; /* Restore vertical line connector on mobile */
    top: 0;
    left: 2.5rem;
    width: 2px;
    height: 100%;
  }
  .timeline-grid .timeline-step {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 1.5rem;
  }

  /* Off-canvas sidebar filter drawer styles for news page */
  #news-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  #news-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .news-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
  }
  .news-sidebar.active {
    transform: translateX(290px);
  }
  #news-filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    background-color: var(--blue-accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #news-filter-fab:active {
    transform: translateX(-50%) scale(0.95);
  }

  
  

/* Support warranty contact box vertical stack on mobile */
  .support-contact-box {
    flex-direction: column !important;
    padding: 2rem 1.5rem !important;
    gap: 2.5rem !important;
  }
  .support-contact-card {
    width: 100% !important;
    padding: 1.5rem !important;
  }

  /* Tabs container scroll-snap slider on mobile */
  .tabs-container {
    justify-content: flex-start !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scrollbar-width: none;
    margin-bottom: 2rem;
    padding: 0.25rem;
  }
  .tabs-container::-webkit-scrollbar {
    display: none;
  }
  .tabs-container .tab-btn {
    flex: 0 0 calc((100% - 2rem) / 3) !important;
    text-align: center;
    padding: 0.6rem 0.25rem !important;
    font-size: 0.75rem !important;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
  }

  .customer-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Collapse product spec card details to scroll-snap slider on mobile */
  .detail-quick-specs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
  }
  .detail-quick-specs::-webkit-scrollbar {
    display: none;
  }
  .detail-quick-specs .detail-spec-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    display: flex; /* Ensure inner flex alignment works */
  }
  .project-quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Collapse services strengths grid to vertical column on mobile */
  .service-strengths {
    flex-direction: column;
    gap: 2rem;
  }
  .products-cards-grid {
    grid-template-columns: 1fr;
  }
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.product-card-body p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.product-spec-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-spec-item svg {
  color: var(--text-light);
  flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (`product-detail.html`)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  padding: 3rem 0;
}

/* Gallery View */
.gallery-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--navy-darkest);
}

.gallery-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-darkest);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
  background-color: var(--white);
}

.gallery-arrow-left {
  left: 1rem;
}

.gallery-arrow-right {
  right: 1rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.thumb-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-speed) ease;
}

.thumb-item.active {
  border-color: var(--blue-accent);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right layout metadata */
.detail-meta-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-category-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--blue-soft);
  color: var(--blue-accent);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 4px;
  width: max-content;
}

.detail-meta-box h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

.detail-desc {
  color: var(--text-medium);
  line-height: 1.7;
}


.project-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.detail-spec-card {
  display: flex;
  gap: 0.75rem;
}

.detail-spec-icon {
  color: var(--blue-accent);
  flex-shrink: 0;
}

.detail-spec-text h4 {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.detail-spec-text p {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-darkest);
}

.detail-actions {
  display: flex;
  gap: 1rem;
}

.detail-actions .btn {
  flex: 1;
}


/* Product features custom grid */
.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Technical parameters table */
.spec-table-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:nth-child(even) td {
  background-color: var(--blue-light);
}

.spec-table td.spec-name {
  font-weight: 600;
  color: var(--navy-darkest);
  width: 25%;
}

.spec-table td.spec-val {
  color: var(--text-medium);
  width: 25%;
}

/* Highlights Blueprint Interactive Diagram */
.highlights-diagram-wrap {
  position: relative;
  background-color: var(--blue-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlights-blueprint-img {
  width: 100%;
  max-width: 650px;
  position: relative;
}

/* Pin overlays mapping parts */
.blueprint-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--blue-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.blueprint-pin:hover {
  background-color: var(--navy-primary);
  transform: scale(1.15);
}

/* Hotspot coordinates (placed based on outline) */
.pin-roof { top: 15%; left: 35%; }
.pin-sec-frame { top: 40%; left: 20%; }
.pin-main-frame { top: 60%; left: 45%; }
.pin-wall { top: 75%; left: 65%; }
.pin-natural-light { top: 25%; left: 75%; }
.pin-accessories { top: 80%; left: 25%; }

/* Map lines and tooltips on the blueprint styling */
.blueprint-callout {
  position: absolute;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  width: 200px;
  font-size: 0.8125rem;
  color: var(--text-medium);
  z-index: 10;
}

.blueprint-callout h4 {
  font-size: 0.875rem;
  color: var(--navy-darkest);
  margin-bottom: 0.25rem;
}

/* Brochure Download card */
.brochure-card {
  background-color: var(--blue-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.brochure-card-img {
  flex-shrink: 0;
  width: 140px;
  height: 180px;
  background-color: var(--navy-darkest);
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: var(--white);
}

.brochure-card-img h5 {
  font-size: 0.9rem;
  line-height: 1.2;
}

.brochure-card-info {
  flex-grow: 1;
}

.brochure-card-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.brochure-card-info p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.brochure-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.brochure-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brochure-list li svg {
  color: var(--success);
}

/* FAQ Accordion dropdowns */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

details.faq-item[open] {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

details.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-darkest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform var(--transition-speed) ease;
}

details.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.6;
  border-top: 1px solid var(--blue-light);
  padding-top: 1rem;
}

/* ==========================================================================
   SOLUTIONS PAGE (`solutions.html`)
   ========================================================================== */
.solutions-list-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.solution-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-row:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.solution-row:nth-child(even) .solution-image {
  grid-order: 2;
}

.solution-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 320px;
}

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

.solution-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.solution-text p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.solution-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.solution-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.solution-bullets li::before {
  content: '•';
  color: var(--blue-accent);
  font-size: 1.25rem;
}

/* ==========================================================================
   PROJECTS / CASE STUDIES PAGE (`projects.html`)
   ========================================================================== */
.projects-gallery-section {
  padding: 4rem 0;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  padding: 0.625rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  background-color: var(--blue-light);
  color: var(--text-dark);
}

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

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

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

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

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,28,45,0.85) 0%, rgba(15,28,45,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

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

.gallery-hover-overlay h4 {
  font-size: 1.1rem;
  color: var(--white);
}

.gallery-hover-overlay span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Featured Case Study Panel */
.case-study-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background-color: var(--blue-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.case-study-img {
  height: 400px;
}

.case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 3rem;
}

.case-study-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--navy-primary);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.case-study-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.case-study-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-study-spec-item h4 {
  font-size: 1.5rem;
  color: var(--blue-accent);
}

.case-study-spec-item span {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

/* Testimonials */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide blockquote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--navy-darkest);
  margin-bottom: 2rem;
}

.testimonial-slide blockquote::before {
  content: '“';
  font-size: 4rem;
  line-height: 0;
  vertical-align: middle;
  color: var(--blue-soft);
  margin-right: 0.5rem;
}

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

.testimonial-author-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--navy-darkest);
}

.testimonial-author-title {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.testimonial-dot.active {
  background-color: var(--blue-accent);
  transform: scale(1.2);
}

/* ==========================================================================
   SERVICES PAGE (`services.html`)
   ========================================================================== */
.service-strengths {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.service-strength-card {
  flex: 1;
  text-align: center;
}

.service-strength-card svg {
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.service-strength-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-strength-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.service-details-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-detail-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-row:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.service-detail-row:nth-child(even) .service-detail-image {
  grid-order: 2;
}

.service-detail-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
}

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

.service-detail-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.service-detail-text p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.service-detail-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.service-detail-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-detail-checklist li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ==========================================================================
   NEWS & INSIGHTS PAGE (`news.html`)
   ========================================================================== */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 4rem 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background-color: var(--blue-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.featured-article-img {
  height: 320px;
}

.featured-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--navy-primary);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
  width: max-content;
}

.featured-article-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-article-content p {
  color: var(--text-medium);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Blog list items */
.news-articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-article-card {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.news-card-img {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-category-badge {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
}

.news-card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-card-content p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Sidebar elements */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-medium);
}

.tag-item:hover {
  background-color: var(--blue-light);
  color: var(--blue-accent);
}

.download-list-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
}

.download-list-item:hover {
  background-color: var(--blue-light);
  border-color: var(--blue-accent);
}

.download-list-icon {
  color: var(--blue-accent);
}

.download-list-text h4 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.download-list-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.page-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.page-btn-text {
  width: auto;
  padding: 0 1rem;
}

/* ==========================================================================
   SUPPORT / RESOURCES PAGE (`support.html`)
   ========================================================================== */
.support-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.support-download-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

.support-download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.support-download-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--blue-light);
  color: var(--blue-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.support-download-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.support-download-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.support-contact-box {
  background-color: var(--navy-darkest);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  color: var(--white);
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.support-contact-info {
  flex: 1;
}

.support-contact-info h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.support-contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.support-contact-card {
  flex: 1;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-contact-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.support-contact-icon {
  color: var(--blue-accent);
}

.support-contact-text h4 {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.support-contact-text p {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   CONTACT PAGE (`contact.html`)
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.contact-info-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-light);
  color: var(--blue-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-card p.contact-val {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--navy-darkest);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p.contact-note {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.office-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.office-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.office-card-img {
  height: 180px;
}

.office-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.office-card-content h3 {
  font-size: 1.15rem;
  color: var(--navy-darkest);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.office-details-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.office-details-item svg {
  color: var(--blue-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .stats-item {
    border-right: none;
  }
  

  .inquiry-split, .overview-split, .vision-grid, .manufacture-grid, .people-grid, .product-detail-layout, .solution-row, .solution-row:nth-child(even), .case-study-panel, .service-detail-row, .service-detail-row:nth-child(even), .news-layout, .featured-article, .support-contact-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .featured-article-content {
    padding: 2.5rem;
  }
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
  .office-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Off-canvas sidebar filter drawer styles */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
  }
  .sidebar-filters.active {
    transform: translateX(290px);
  }
  .sidebar-header {
    display: flex !important;
  }
  .filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    background-color: var(--blue-accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .filter-fab:active {
    transform: translateX(-50%) scale(0.95);
  }

  /* Product details features scroll-snap slider */
  .detail-features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
  }
  .detail-features-grid::-webkit-scrollbar {
    display: none;
  }
  .detail-features-grid .why-choose-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  /* Timeline Grid mobile override */
  .timeline-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-left: 2rem;
  }
  .timeline-grid::before {
    display: block !important; /* Restore vertical line connector on mobile */
    top: 0;
    left: 2.5rem;
    width: 2px;
    height: 100%;
  }
  .timeline-grid .timeline-step {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 1.5rem;
  }

  /* Off-canvas sidebar filter drawer styles for news page */
  #news-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  #news-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .news-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
  }
  .news-sidebar.active {
    transform: translateX(290px);
  }
  #news-filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    background-color: var(--blue-accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #news-filter-fab:active {
    transform: translateX(-50%) scale(0.95);
  }

  
  

/* Support warranty contact box vertical stack on mobile */
  .support-contact-box {
    flex-direction: column !important;
    padding: 2rem 1.5rem !important;
    gap: 2.5rem !important;
  }
  .support-contact-card {
    width: 100% !important;
    padding: 1.5rem !important;
  }

  /* Tabs container scroll-snap slider on mobile */
  .tabs-container {
    justify-content: flex-start !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scrollbar-width: none;
    margin-bottom: 2rem;
    padding: 0.25rem;
  }
  .tabs-container::-webkit-scrollbar {
    display: none;
  }
  .tabs-container .tab-btn {
    flex: 0 0 calc((100% - 2rem) / 3) !important;
    text-align: center;
    padding: 0.6rem 0.25rem !important;
    font-size: 0.75rem !important;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
  }

  .customer-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Collapse product spec card details to scroll-snap slider on mobile */
  .detail-quick-specs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
  }
  .detail-quick-specs::-webkit-scrollbar {
    display: none;
  }
  .detail-quick-specs .detail-spec-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    display: flex; /* Ensure inner flex alignment works */
  }
  .project-quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Collapse services strengths grid to vertical column on mobile */
  .service-strengths {
    flex-direction: column;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .stats-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
  }
  .stats-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }
  .stats-number {
    font-size: 1.85rem;
  }
  .stats-sublabel {
    font-size: 0.75rem;
  }
  .product-range-grid {
    grid-template-columns: 1fr;
  }
  .why-choose-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
  }
  .why-choose-grid::-webkit-scrollbar {
    display: none;
  }
  .why-choose-grid .why-choose-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }
  .timeline-track {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-left: 2rem;
  }
  .timeline-track::before {
    top: 0;
    left: 2.5rem;
    width: 2px;
    height: 100%;
  }
  .timeline-step {
    width: 100%;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 1.5rem;
  }
  .timeline-step-icon {
    margin: 0;
    flex-shrink: 0;
  }
  .map-container {
    flex-direction: column;
    padding: 2rem;
  }
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  .office-cards-grid {
    grid-template-columns: 1fr;
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .brochure-card {
    flex-direction: column;
    text-align: center;
  }
  .brochure-list {
    grid-template-columns: 1fr;
  }
  .news-article-card {
    flex-direction: column;
  }
  .news-card-img {
    width: 100%;
    height: 200px;
  }
  /* Mobile Form Layout Fix */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .inquiry-form-card {
    padding: 1.5rem;
  }
}

/* Extra small screens stats layout collapse */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .stats-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding-bottom: 1rem !important;
  }
  .stats-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* Extra small screens project specs collapse */
@media (max-width: 480px) {
  .project-quick-specs {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Extra small screens contact methods grid collapse */
@media (max-width: 480px) {
  
}

/* ==========================================================================
   CONTACT METHODS RESPONSIVE GRID LAYOUT
   ========================================================================== */
/* Desktop base: 5 columns */
.contact-methods-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1.5rem !important;
}

/* Tablet viewports: 3 columns */
@media (max-width: 1024px) {
  .contact-methods-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile viewports: 2 columns */
@media (max-width: 768px) {
  .contact-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Extra small viewports: 1 column */
@media (max-width: 480px) {
  .contact-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Extra small screens customer photos grid collapse */
@media (max-width: 480px) {
  .customer-photos-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ==========================================================================
   PORTRAIT CERTS VS LANDSCAPE CUSTOMERS OVERRIDES
   ========================================================================== */
/* Certifications: Portrait 3:4 and Contain to ensure readability */
.certs-image-grid .cert-image-card img {
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  background-color: #f8fafc !important;
  padding: 0.5rem; /* Give a small inner padding for nice certificate border spacing */
}

/* Customer Photos: Landscape 4:3 and Cover to fill the card grid beautifully */
.customer-photos-grid .cert-image-card img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  background-color: transparent !important;
  padding: 0 !important;
}
