/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.nav-logo .logo-img {
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-link.logo-link.active::after {
  display: none !important;
}
.nav-logo h2 {
  color: #f7931e;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link-logo {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #f7931e;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  /* background: #f7931e; */
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
}

/* Sections */
.section {
  display: none;
  min-height: 100vh;
  padding-top: 70px;
}

.section.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.section-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f7931e;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  padding: 4rem 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f7931e;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-highlight {
  background: #fff4e6;
  border-left: 4px solid #f7931e;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.hero-highlight p {
  color: #cc7a19;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* image stretch na ho */
}

.hero-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: rotate(5deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-card img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

/* Features */
.features {
  padding: 4rem 0;
  background: white;
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
  background: #fafafa;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* Fix: Product image cropping issue - ensure proper aspect ratio and uniform cards */
.product-image {
  width: 100%;
  height: 220px; /* Fixed height for uniform cards */
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fix: Use contain to show full image without cropping */
  object-position: center;
  transition: transform 0.3s ease;
  padding: 10px; /* Add padding to prevent edge cropping */
}

.product-card:hover .product-image img {
  transform: scale(1.05); /* Reduced scale to prevent overflow */
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #f7931e;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Loading State */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

#products-loading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  padding: 4rem 0;
  position: relative;
}

#products-loading .loading-spinner {
  margin: 0 auto 1rem auto;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #f7931e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-container p {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Error State */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: #fef2f2;
  border-radius: 16px;
  border: 1px solid #fecaca;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-container h3 {
  color: #dc2626;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-container p {
  color: #7f1d1d;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.no-products {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 95%;
  max-width: 1000px; /* Increased max-width for better image display */
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #6b7280;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close:hover {
  color: #ef4444;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: 2rem;
  align-items: stretch; /* Make columns equal height on desktop */
}

/* Header spans both columns above images and info */
.product-detail-header {
  grid-column: 1 / -1;
}

/* Fix: Display all 4 images in modal */
.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.image-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumbnail {
  width: 100px;
  height: 100px;
  margin-left: 78px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* border: 2px solid maroon; */
  border-radius: 8px;
  background: #fff;
}

.thumbnail:hover {
  border-color: #f7931e;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #f7931e;
  box-shadow: 0 0 0 2px rgba(247, 147, 30, 0.3);
}

.detail-price {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.specs-table {
  margin-bottom: 2rem;
}

.specs-table h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Let specs live in the right column on desktop and expand naturally */
.specs-table {
  grid-column: 2;
  align-self: start;
}
/* Remove forced scrollbars when content fits */
.specs-table .specifications-content {
  max-height: none;
  overflow: visible;
}

/* Fix: Handle large HTML specifications with proper styling */
.specifications-content {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

.specifications-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specifications-content td,
.specifications-content th {
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.specifications-content th {
  background: #f7931e;
  color: white;
  font-weight: 600;
  color: #1a1a1a;
}

.specifications-content td:first-child,
.specifications-content th:first-child {
  font-weight: 600;
  width: 40%;
}

.specifications-content p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.specifications-content strong {
  color: #f7931e;
}

.product-description {
  margin-bottom: 2rem;
}

.product-description h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Full-width description below both columns */
.product-detail > .product-description {
  grid-column: 1 / -1;
}
/* Remove fixed height/scrollbars so it expands naturally */
.product-description .description-content {
  max-height: none;
  overflow: visible;
}

/* Fix: Handle long descriptions gracefully */
.description-content {
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #374151;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.description-content::-webkit-scrollbar {
  width: 6px;
}

.description-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb {
  background: #f7931e;
  border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb:hover {
  background: #e6851b;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Place bottom action row across full width under description */
.product-detail > .modal-buttons {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

/* About Section */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: 4rem;
}

.lead {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.strengths {
  margin-bottom: 4rem;
}

.strengths h2 {
  text-align: center;
  color: #f7931e;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.strength-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.strength-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.strength-card h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.partners {
  text-align: center;
}

.partners h2 {
  color: #f7931e;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.partner-card {
  background: #fafafa;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  background: #f7931e;
  color: white;
  transform: translateY(-3px);
}

.partner-avatar {
  margin-bottom: 1.5rem;
}

.partner-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.partner-card:hover .partner-avatar img {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.partner-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h2 {
  color: #f7931e;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #f7931e;
}

.contact-card h3 {
  color: #f7931e;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin-bottom: 0.25rem;
  color: #374151;
}

.office-info {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.office-info h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.office-info p {
  margin-bottom: 0.5rem;
  color: #374151;
}

.office-info a {
  color: #f7931e;
  text-decoration: none;
}

.office-info a:hover {
  text-decoration: underline;
}

/* Form Styles */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  color: #f7931e;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f7931e;
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

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

.loading-spinner.small-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f7931e;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #f7931e;
  color: white;
}

.btn-primary:hover {
  background: #e6851b;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #f7931e;
  border: 2px solid #f7931e;
}

.btn-secondary:hover {
  background: #f7931e;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f7931e;
  color: white;
  border-color: #f7931e;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-info p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-socials {
  margin-top: 0.75rem;
}
.footer-socials .social-link {
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.footer-socials .social-link:hover {
  color: #ffffff;
}

.footer-links h4,
.footer-contact h4 {
  color: #f7931e;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f7931e;
}

.footer-contact p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #d1d5db; /* Light gray, same as other footer text */
  text-decoration: none;
}

.footer-contact a:hover {
  color: #f7931e; /* Match your accent color on hover */
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
}

.footer-bottom a {
  color: #f7931e;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-card {
    max-width: 100%;
    margin: 0;
    transform: scale(1.05);
    border-radius: 12px;
    overflow: hidden;
  }
  .thumbnail {
    margin-left: 30px;
  }
  .footer-logo {
    margin: 0 auto 1rem auto;
  }
  .hero-image img {
    width: 100%;
    border-radius: 12px;
    transform: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

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

  .nav-logo .logo-img {
    max-height: 40px;
  }

  .nav-logo h2 {
    font-size: 1.2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .specs-table {
    grid-column: 1;
  }
  .product-detail > .product-description {
    grid-column: 1;
  }

  /* Desktop: make left column consume available height and anchor thumbnails at bottom */
  @media (min-width: 769px) {
    .product-detail-images {
      display: grid;
      grid-template-rows: 1fr auto; /* main image fills, thumbnails at bottom */
      height: 100%;
    }
    .product-detail-images .main-image {
      height: 100%; /* override fixed height to fill column */
      min-height: 350px; /* keep a reasonable minimum like original */
    }
  }
  /* Fix: Mobile responsive image gallery */
  .main-image {
    height: 250px;
  }

  .image-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-logo .logo-img {
    max-height: 85px;
  }

  .nav-logo h2 {
    font-size: 1.1rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-card img {
    width: 250px;
    height: 250px;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .partner-avatar img {
    width: 60px;
    height: 60px;
  }

  .loading-container {
    padding: 2rem 1rem;
  }

  .error-container {
    padding: 2rem 1rem;
  }

  /* Fix: Mobile modal adjustments */
  .modal-content {
    width: 98%;
    margin: 1% auto;
  }

  .product-detail {
    padding: 1rem;
  }

  .main-image {
    height: 200px;
  }

  .specifications-content,
  .description-content {
    max-height: 150px;
    font-size: 0.9rem;
  }
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section.active {
  animation: fadeIn 0.6s ease-out;
}

/* ================================================
   Theme Overrides (2025-08-25)
   Palette:
   - Primary:   #6A1F1F (Dark Red / Maroon)
   - Secondary: #000000 (Black)
   - Background:#FFFFFF (White)
   - Accent:    #A94444 (Light Red)
   Only color-related overrides. No structural changes.
   ================================================ */
:root {
  --color-primary: #6a1f1f;
  --color-secondary: #000000;
  --color-bg: #ffffff;
  --color-accent: #a94444;
}

body {
  color: var(--color-secondary);
  background-color: var(--color-bg);
}

.nav-logo h2,
.section-header h1,
.hero-text h1,
.feature-card h3,
.product-info h3,
.specs-table h3,
.product-description h3,
.partners h2,
.contact-info h2,
.contact-card h3,
.office-info h3,
.footer-info h3,
.footer-links h4,
.footer-contact h4 {
  color: var(--color-primary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}
.nav-link.active::after {
  background: var(--color-primary);
}

.hero-text h2 {
  color: var(--color-secondary);
}
.hero-highlight {
  background: #fbe8e8;
  border-left-color: var(--color-primary);
}
.hero-highlight p {
  color: var(--color-accent);
}

.product-price {
  color: var(--color-secondary);
}

.loading-spinner,
.loading-spinner.small-spinner {
  border-top-color: var(--color-primary);
}

.thumbnail:hover {
  border-color: var(--color-primary);
}
.thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(106, 31, 31, 0.3);
}

.specifications-content th {
  background: var(--color-primary);
  color: #ffffff;
}
.specifications-content strong {
  color: var(--color-primary);
}
.description-content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}
.description-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.partner-card:hover {
  background: var(--color-primary);
}
.contact-card {
  border-left-color: var(--color-primary);
}
.office-info a {
  color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(106, 31, 31, 0.1);
}

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

.btn-secondary {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a {
  color: var(--color-primary);
}

/* Footer contrast fixes and logo styling */
.footer-logo {
  height: 56px; /* enlarge footer logo */
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
}

/* Improve readability on dark footer background */
.footer-info h3,
.footer-links h4,
.footer-contact h4 {
  color: #ffffff !important;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a {
  color: #ffffff !important;
}

/* Specific color for designer link */
.footer-bottom a.footer-designer {
  color: #f7931e !important; /* requested accent for Trakshym */
}

/* Ensure About/Contact section headings match theme (remove lingering orange) */
.strengths h2,
.strength-card h3,
.partners h2,
.contact-info h2,
.contact-card h3,
.office-info h3,
.contact-form h2,
.section-header h1,
.product-info h3,
.feature-card h3 {
  color: var(--color-primary) !important;
}

/* Replace lingering orange accents */
.thumbnail:hover {
  border-color: var(--color-primary);
}
.thumbnail.active {
  box-shadow: 0 0 0 2px rgba(106, 31, 31, 0.3);
  border-color: var(--color-primary);
}
.btn-primary {
  background: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-accent);
}
.btn-secondary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
}
.footer-info h3,
.footer-links h4,
.footer-contact h4 {
  color: #ffffff !important;
}
