/* Updated product CSS with dark mode compatibility */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
  color: var(--text-primary);
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--hrv-orange);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.btn-primary {
  background: var(--theme-gradient);
  border: none;
  color: white;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 114, 31, 0.2);
}

.btn-primary:hover {
  background: var(--theme-gradient-reversed);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 114, 31, 0.25);
}

.btn-outline-secondary {
  color: var(--hrv-green);
  border: 2px solid var(--hrv-green);
  background-color: transparent;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--hrv-green);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--hrv-blue-dark);
  border-color: var(--hrv-blue-dark);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--hrv-blue);
  border-color: var(--hrv-blue);
}

/* Hero Section with improved branding-aligned gradients */
.hero-section {
  padding: 100px 0 120px;
  background: var(--background-primary);
  position: relative;
  overflow: hidden;
}

/* Improved Light Theme - Warm gradient with brand color influence */
[data-theme="light"] .hero-section {
  background: linear-gradient(135deg, 
                rgba(255, 253, 250, 0.8) 0%, 
                rgba(255, 226, 190, 0.4) 50%,
                rgba(255, 200, 150, 0.2) 100%);
}

/* Improved Dark Theme - Professional dark with brand color hints */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, 
                rgba(18, 18, 24, 0.95) 0%, 
                rgba(38, 45, 58, 0.9) 60%,
                rgba(53, 37, 26, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-text .tagline {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--hrv-orange);
  font-weight: 600;
}

.hero-text .brand-name {
  font-weight: 700;
  color: var(--hrv-orange-dark);
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
}

.logo-container {
  background-color: var(--background-primary);
  border-radius: 15px;
  padding: 15px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.primary-logo {
  z-index: 2;
  max-width: 90%;
}

.secondary-logo {
  position: absolute;
  top: 60%;
  right: -40px;
  z-index: 1;
  max-width: 70%;
  transform: rotate(5deg);
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.hero-shapes .shape-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(239, 114, 31, 0.1);
  top: -100px;
  right: -100px;
}

.hero-shapes .shape-2 {
  width: 200px;
  height: 200px;
  background-color: rgba(0, 114, 188, 0.1);
  bottom: -50px;
  left: 10%;
}

.hero-shapes .shape-3 {
  width: 150px;
  height: 150px;
  background-color: rgba(57, 181, 74, 0.1);
  top: 30%;
  left: 5%;
}

/* Products Main Section */
.products-main {
  padding: 80px 0;
  background-color: var(--background-tertiary);
}

/* Categories Sidebar */
.categories-sidebar {
  background-color: var(--background-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.categories-sidebar h3 {
  padding: 20px;
  background: var(--theme-gradient);
  color: white;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.category-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-menu li {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.category-menu li:last-child {
  border-bottom: none;
}

.category-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-menu li a i {
  margin-right: 10px;
  font-size: 1.1rem;
  width: 25px;
  text-align: center;
  color: var(--hrv-orange);
}

.category-menu li a .count {
  margin-left: auto;
  background-color: var(--background-tertiary);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.category-menu li:hover {
  background-color: var(--background-accent);
}

.category-menu li.active {
  background-color: var(--background-accent);
}

.category-menu li.active a {
  color: var(--hrv-orange);
  font-weight: 600;
}

.category-menu li.active a .count {
  background-color: var(--hrv-orange);
  color: white;
}

.contact-icon {
  margin-left: auto;
  color: var(--hrv-blue-dark);
}

.category-info {
  padding: 20px;
}

.category-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.benefits-list li i {
  color: var(--hrv-green);
  margin-right: 10px;
}

.sidebar-cta {
  background-color: rgba(0, 114, 188, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.sidebar-cta h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--hrv-blue-dark);
}

/* Product Content */
.product-content {
  background-color: var(--background-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 30px;
}

.product-category {
  display: none;
}

.product-category.active {
  display: block;
}

.category-header {
  margin-bottom: 25px;
}

.category-header h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.category-header p {
  color: var(--text-muted);
}

/* Product Table */
.product-table {
  margin-bottom: 0;
  color: var(--text-primary);
}

.product-table thead {
  background: var(--theme-gradient);
  color: white;
}

.product-table th {
  font-weight: 600;
  padding: 15px;
  border-bottom: none;
  white-space: nowrap;
}

.product-table td {
  padding: 15px;
  vertical-align: middle;
}

.product-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.product-table tbody tr:hover {
  background-color: var(--background-accent);
}

.product-table tbody tr:last-child {
  border-bottom: none;
}

.dmf-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.dmf-status.usdmf {
  background-color: rgba(57, 181, 74, 0.15);
  color: var(--hrv-green);
}

.dmf-status.cep {
  background-color: rgba(0, 160, 227, 0.15);
  color: var(--hrv-blue-light);
}

.dmf-status.asmf {
  background-color: rgba(155, 89, 182, 0.15);
  color: #8e44ad;
}

.dmf-status.dmfready {
  background-color: rgba(255, 174, 47, 0.15);
  color: var(--hrv-orange-light);
}

.dmf-status.dmfavailable {
  background-color: rgba(0, 58, 112, 0.15);
  color: var(--hrv-blue-light);
}

.btn-details {
  background-color: var(--hrv-blue-dark);
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background-color: var(--hrv-blue);
  transform: translateY(-2px);
}

/* Contact Card for Generic APIs */
.contact-card {
  background-color: var(--background-tertiary);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  border: 1px dashed var(--border-color);
}

.card-icon {
  background: var(--theme-gradient);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.card-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.card-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Product Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--background-primary);
  color: var(--text-primary);
}

.modal-header {
  background: var(--theme-gradient);
  color: white;
  border-bottom: none;
  padding: 20px 25px;
}

.modal-title {
  font-weight: 600;
}

.btn-close {
  color: white;
  opacity: 1;
}

.modal-body {
  padding: 25px;
}

.product-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.product-detail-header h4 {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-primary);
}

.product-detail-category {
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.product-features h5,
.product-specs h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--hrv-orange);
}

.product-features ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.product-specs .table {
  margin-bottom: 0;
  color: var(--text-primary);
}

.product-specs .table td:first-child {
  font-weight: 500;
  width: 40%;
}

.modal-footer {
  border-top: none;
  padding: 15px 25px 25px;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--background-primary);
}

.contact-info .contact-card {
  display: block;
  background-color: var(--background-tertiary);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  border: none;
}

.company-info {
  margin-bottom: 30px;
}

.company-info h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--hrv-orange);
}

.company-info .tagline {
  color: var(--hrv-orange-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.company-info p,
.international-operations p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.company-info i,
.international-operations i {
  color: var(--hrv-orange);
  font-size: 1.1rem;
  width: 20px;
}

.international-operations h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--hrv-blue-dark);
}

.mini-logo {
  height: 30px;
  width: auto;
}

.contact-form {
  background-color: var(--background-tertiary);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-bottom: 15px;
  background-color: var(--background-primary);
  color: var(--text-primary);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--hrv-orange);
  box-shadow: 0 0 0 0.2rem rgba(239, 114, 31, 0.15);
}

/* SEO Content Section */
.seo-content-section {
  padding: 60px 0;
  background-color: var(--background-tertiary);
  border-top: 1px solid var(--border-color);
}

.seo-content {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.seo-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--hrv-orange);
}

.seo-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .dmf-status.usdmf {
  background-color: rgba(57, 181, 74, 0.25);
}

[data-theme="dark"] .dmf-status.cep {
  background-color: rgba(0, 160, 227, 0.25);
}

[data-theme="dark"] .dmf-status.asmf {
  background-color: rgba(155, 89, 182, 0.25);
}

[data-theme="dark"] .dmf-status.dmfready {
  background-color: rgba(255, 174, 47, 0.25);
}

[data-theme="dark"] .dmf-status.dmfavailable {
  background-color: rgba(0, 58, 112, 0.25);
}

[data-theme="dark"] .hero-shapes .shape-1 {
  background-color: rgba(239, 114, 31, 0.2);
}

[data-theme="dark"] .hero-shapes .shape-2 {
  background-color: rgba(0, 114, 188, 0.2);
}

[data-theme="dark"] .hero-shapes .shape-3 {
  background-color: rgba(57, 181, 74, 0.2);
}

[data-theme="dark"] .sidebar-cta {
  background-color: rgba(0, 114, 188, 0.2);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-text h1 {
      font-size: 2.8rem;
      margin-top: 80px;
  }
  
  .secondary-logo {
      right: -20px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
      padding: 60px 0 80px;
  }
  
  .hero-text {
      text-align: center;
      margin-bottom: 50px;
  }
  
  .hero-btns {
      justify-content: center;
  }
  
  .hero-logos {
      max-width: 350px;
      margin: 0 auto;
  }
  
  .secondary-logo {
      right: -30px;
      top: 55%;
  }
  
  .categories-sidebar {
      margin-bottom: 30px;
  }
  
  .contact-card {
      flex-direction: column;
      text-align: center;
      align-items: center;
  }
}

@media (max-width: 767.98px) {
  .hero-text h1 {
      font-size: 2.4rem;
      margin-top: 80px;
  }
  
  .hero-text p {
      font-size: 1.1rem;
  }
  
  .hero-text .tagline {
      font-size: 1.2rem;
  }
  
  .hero-btns {
      flex-direction: column;
      width: 100%;
      max-width: 300px;
      margin: 2rem auto 0;
  }
  
  .category-header h3 {
      font-size: 1.4rem;
  }
  
  .product-content {
      padding: 20px;
  }
  
  .contact-info, 
  .contact-form {
      margin-bottom: 30px;
  }
}

@media (max-width: 575.98px) {
  .section-header h2 {
      font-size: 1.8rem;
  }
  
  .hero-text h1 {
      font-size: 2rem;
      margin-top: 80px;
  }
  
  .secondary-logo {
      right: -20px;
      top: 50%;
  }
  
  .product-table {
      font-size: 0.85rem;
  }
  
  .product-table th,
  .product-table td {
      padding: 10px 8px;
  }
  
  .dmf-status {
      padding: 3px 6px;
      font-size: 0.75rem;
  }
  
  .category-header h3 {
      font-size: 1.3rem;
  }
  
  .card-icon {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
  }
  
  .card-content h4 {
      font-size: 1.2rem;
  }
  
  .seo-content h2 {
      font-size: 1.6rem;
  }
  
  .seo-content h3 {
      font-size: 1.3rem;
  }
}