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

body {
  font-family: "Roboto", system-ui, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols styling */
.material-symbols-rounded {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga";
}

/* Specific font sizes for Material Symbols */
.material-symbols-rounded.text-sm {
  font-size: 14px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.material-symbols-rounded.text-lg {
  font-size: 20px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.material-symbols-rounded.text-xl {
  font-size: 24px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.material-symbols-rounded.text-2xl {
  font-size: 28px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 28;
}

.material-symbols-rounded.text-3xl {
  font-size: 32px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 32;
}

/* FORM STYLES */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #12a650;
  box-shadow: 0 0 0 3px rgba(18, 166, 80, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #9ca3af;
}

/* Form spacing improvements */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.flex.gap-6 > * + * {
  margin-left: 1.5rem;
}

/* Checkbox styling improvements */
input[type="checkbox"] {
  accent-color: #12a650;
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* NEW HEADER STYLES */
.secondary-nav {
  background: #f8f9fa;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.header-primary {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FIXED Mega Menu Styles */
.mega-menu-container {
  position: static;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #12a650;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow: hidden;
  max-height: 0;
  pointer-events: none;
  width: 100%;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 80vh;
  pointer-events: auto;
  overflow-y: auto;
}

/* Scrollbar styling for mega menu */
.mega-menu::-webkit-scrollbar {
  width: 8px;
}

.mega-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: #12a650;
  border-radius: 10px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
  background: #0d8c40;
}

/* Mega Menu Content Container */
.mega-menu-content {
  padding: 2.5rem;
  max-width: 100%;
  overflow-x: hidden;
}

/* Fixed Grid Layout - 6 columns on desktop (handled by Tailwind lg:grid-cols-6) */
.mega-menu-grid {
  display: grid;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Force 6 columns on large screens (Tailwind lg:grid-cols-6 not compiling) */
@media (min-width: 1400px) {
  .mega-menu-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 2rem;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .mega-menu-content {
    padding: 1.75rem;
  }
}

@media (max-width: 767px) {
  .mega-menu-content {
    padding: 1.5rem;
  }

  .mega-menu {
    border-radius: 0 0 12px 12px;
  }
}

@media (max-width: 575px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mega-menu-content {
    padding: 1.25rem;
  }
}

/* Ensure mega menu doesn't get too tall on large screens */
@media (min-height: 900px) {
  .mega-menu.active {
    max-height: 85vh;
  }
}

/* Category header styling */
.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.category-header .material-symbols-rounded {
  color: #12276e;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0d1440;
  line-height: 1.3;
  white-space: nowrap;
}

/* Enhanced product category items */
.product-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #424242;
  margin-bottom: 0.25rem;
  min-width: 0;
}

.product-category:hover {
  background: linear-gradient(135deg, #12276e 0%, #1a237e 100%);
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(18, 39, 110, 0.15);
}

.product-category:hover .material-symbols-rounded {
  color: white;
}

.product-category .material-symbols-rounded {
  color: #616161;
  font-size: 1.125rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.product-category span:not(.material-symbols-rounded) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Ensure mega menu doesn't cause body scroll */
body.mega-menu-open {
  overflow: hidden;
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .product-category {
    padding: 1rem;
    min-height: 52px;
  }

  .mega-menu {
    -webkit-overflow-scrolling: touch;
  }
}

/* High contrast text colors */
.text-high-contrast {
  color: #1a1a1a;
}

.text-medium-contrast {
  color: #424242;
}

.text-light-contrast {
  color: #616161;
}

/* Background with high contrast */
.bg-high-contrast {
  background-color: #12276e;
  color: #ffffff;
}

.bg-secondary-contrast {
  background-color: #12a650;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Roboto", system-ui, sans-serif;
  font-weight: 600;
  color: #0d1440;
  line-height: 1.3;
}

/* Material Design inspired cards with high contrast */
.m3-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m3-card:hover {
  box-shadow: 0 8px 24px rgba(18, 39, 110, 0.12);
  transform: translateY(-4px);
  border-color: #12276e;
}

/* Button styles with high contrast */
.btn-primary {
  background-color: #12276e;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #0d1440;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 39, 110, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #12a650;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #0d8c40;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 166, 80, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #12276e;
  border: 2px solid #12276e;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: #12276e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Typography scale with proper contrast */
.display-large {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-medium {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-large {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.headline-medium {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.title-large {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
}

.title-medium {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.body-large {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-medium {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Focus styles for accessibility */
*:focus {
  outline: 3px solid #12a650;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid #12a650;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #12276e;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 0;
}

/* High contrast links */
main a:not(.btn-primary):not(.btn-secondary):not(.btn-outline) {
  color: #12276e;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

main a:not(.btn-primary):not(.btn-secondary):not(.btn-outline):hover {
  border-bottom-color: #12276e;
}

/* Improve readability for long text */
.readable-text {
  max-width: 65ch;
  letter-spacing: 0.01em;
}

/* Hamburger menu animations */
.hamburger-menu {
  position: relative;
  width: 24px;
  height: 20px;
  transition: all 0.3s ease;
}

.hamburger-menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #12276e;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
  bottom: 0;
}

/* Animate hamburger to X */
.hamburger-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Responsive typography */
@media (max-width: 768px) {
  .display-large {
    font-size: 2.5rem;
  }

  .display-medium {
    font-size: 2rem;
  }

  .headline-large {
    font-size: 1.75rem;
  }

  .headline-medium {
    font-size: 1.5rem;
  }

  .title-large {
    font-size: 1.25rem;
  }

  .title-medium {
    font-size: 1.125rem;
  }
}

/* Print styles */
@media print {
  body {
    color: #000000;
    background: #ffffff;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .no-print {
    display: none;
  }
}

/* Mega Menu Subsection Styling */
.subsection {
  margin-bottom: 1rem;
}

.subsection-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--secondary-700, #12a650);
  margin-top: 1rem;
}

.subsection-header:first-child {
  margin-top: 0;
}

.mega-menu-grid .subsection .product-category {
  padding-left: 1.5rem;
  font-size: 0.9375rem;
}

/* ========================================
   Trusted Partner Brands Section
   ======================================== */

/* Desktop Auto-Fit Partner Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

/* Responsive adjustments for ultra-wide screens */
@media (min-width: 1920px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

/* Responsive adjustments for smaller desktops */
@media (min-width: 1024px) and (max-width: 1279px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
  }
}

/* Partner card styling */
.partner-card {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle background gradient on hover */
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(18, 167, 80, 0.04) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.partner-card:hover::before {
  opacity: 1;
}

/* Logo hover effects */
.partner-card .partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Print styles */
@media print {
  .partner-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }

  .partner-card .partner-logo {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
  }
}

/* ========================================
   Mobile Carousel
   ======================================== */

.partner-carousel-track::-webkit-scrollbar {
  display: none;
}

.partner-carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.partner-slide.snap-center {
  background: radial-gradient(
    circle at center,
    rgba(18, 167, 80, 0.03) 0%,
    transparent 70%
  );
}

.partner-dot {
  transition: all 0.3s ease;
}

.partner-dot.active,
.partner-dot[aria-selected="true"] {
  background-color: #12a650;
  width: 24px;
  border-radius: 4px;
}

/* ========================================
   Accessibility
   ======================================== */

.partner-logo:focus-visible {
  outline: 2px solid #12a650;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .partner-logo,
  .partner-dot,
  .partner-card,
  .partner-card .partner-logo,
  .partner-card::before {
    transition: none;
  }

  .partner-card:hover .partner-logo {
    transform: none;
  }
}

/* ========================================
   FAQ Section
   ======================================== */

/* Desktop auto-fit grid */
.faq-card {
  height: 100%;
}

/* Hover effects */
.faq-card .m3-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card:hover .m3-card {
  transform: translateY(-2px);
}

/* Icon circles */
.faq-card .w-12.h-12.rounded-full {
  transition: transform 0.3s ease;
}

.faq-card:hover .w-12.h-12.rounded-full {
  transform: scale(1.1);
}

/* Mobile accordion */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Animation for accordion content */
details > div[itemscope] {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left border accent on open/hover */
details[open] > summary {
  border-left: 4px solid #12a650;
  background: linear-gradient(to right, rgba(18, 167, 80, 0.05), transparent);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .faq-card .m3-card,
  .faq-card .w-12.h-12.rounded-full,
  details > div[itemscope] {
    transition: none;
    animation: none;
  }

  .faq-card:hover .m3-card {
    transform: none;
  }
}
