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

:root {
  /* Cores principais */
  --primary-dark: rgb(10, 40, 100);
  --primary-blue: rgb(37, 99, 235);
  --blue-50: rgb(239, 246, 255);
  --blue-100: rgb(219, 234, 254);
  --blue-200: rgb(191, 219, 254);
  --blue-600: rgb(37, 99, 235);
  --blue-700: rgb(29, 78, 216);
  
  /* Cinzas */
  --slate-50: rgb(248, 250, 252);
  --slate-100: rgb(241, 245, 249);
  --slate-200: rgb(226, 232, 240);
  --slate-300: rgb(203, 213, 225);
  --slate-400: rgb(148, 163, 184);
  --slate-600: rgb(71, 85, 105);
  --slate-700: rgb(51, 65, 85);
  --slate-800: rgb(30, 41, 59);
  --slate-900: rgb(15, 23, 42);
  
  /* Outras cores */
  --green-500: rgb(34, 197, 94);
  --green-600: rgb(22, 163, 74);
  --green-700: rgb(21, 128, 61);
  --white: rgb(255, 255, 255);
  
  /* Espaçamentos */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border radius */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--slate-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Richem Custom Classes */
.richem-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.richem-card-shadow {
  box-shadow: 0 10px 25px -5px rgba(10, 40, 100, 0.1);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  transition: color 0.2s;
}

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

.lang-button {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color 0.2s;
}

.lang-button:hover {
  color: var(--blue-600);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-button:hover {
  color: var(--blue-600);
  background-color: var(--slate-100);
}

.mobile-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background-color: var(--slate-50);
  color: var(--slate-900);
}

.mobile-nav-link.active {
  background-color: var(--blue-50);
  color: var(--blue-700);
}

.mobile-menu-divider {
  border-top: 1px solid var(--slate-200);
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  margin-top: 0.25rem;
}

/* Hero Section */
.hero {
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-size: 1.125rem;
  color: var(--blue-100);
  max-width: 56rem;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 3rem 1rem;
}

.section-bg-gray {
  background-color: var(--slate-50);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.3s;
}

.card-link:hover {
  transform: translateY(-4px);
}

.card-icon-container {
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-icon-container svg {
  width: 4rem;
  height: 4rem;
  color: var(--white);
}

.card-body {
  padding: 1.25rem 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--slate-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  color: var(--blue-600);
  font-weight: 600;
  transition: color 0.2s;
}

.card-link:hover .card-link-text {
  color: var(--blue-700);
}

.card-link-arrow {
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.card-link:hover .card-link-arrow {
  transform: translateX(0.25rem);
}

/* Gradients */
.gradient-blue-600 {
  background: linear-gradient(to right, rgb(37, 99, 235), rgb(96, 165, 250));
}

.gradient-blue-500 {
  background: linear-gradient(to right, rgb(59, 130, 246), rgb(147, 197, 253));
}

.gradient-blue-700 {
  background: linear-gradient(to right, rgb(29, 78, 216), rgb(59, 130, 246));
}

/* Stats Cards */
.stats-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow 0.3s;
}

.stats-card:hover {
  box-shadow: var(--shadow-md);
}

.stats-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--slate-800);
}

/* Values/Benefits Section */
.value-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
  text-align: center;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-icon svg {
  width: 3rem;
  height: 3rem;
  color: var(--blue-600);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.value-description {
  color: var(--slate-600);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
}

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

.btn-filter {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  background-color: var(--slate-200);
  color: var(--slate-800);
}

.btn-filter:hover {
  background-color: var(--slate-300);
}

.btn-filter.active {
  background-color: var(--blue-600);
  color: var(--white);
}

/* Product Cards */
.product-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-800);
}

.product-code {
  font-size: 0.875rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--slate-600);
  font-size: 0.875rem;
}

/* Info Boxes */
.info-box {
  background-color: var(--slate-50);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.info-box-blue {
  background-color: var(--blue-50);
  border: 1px solid var(--blue-200);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.info-box-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 2.5rem 1rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blue-300);
}

.footer-text {
  color: rgb(203, 213, 225);
  font-size: 0.875rem;
}

.footer-link {
  color: rgb(203, 213, 225);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--blue-300);
}

.footer-divider {
  border-top: 1px solid var(--slate-700);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-text {
  color: var(--slate-400);
  font-size: 0.875rem;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* Contact Button (Floating) */
.contact-button-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.2s ease-in-out;
  pointer-events: none;
}

.contact-options.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contact-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s;
  border: 2px solid var(--white);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.contact-option-whatsapp {
  background-color: var(--green-500);
  color: var(--white);
}

.contact-option-whatsapp:hover {
  background-color: var(--green-600);
}

.contact-option-email {
  background-color: var(--blue-600);
  color: var(--white);
}

.contact-option-email:hover {
  background-color: var(--blue-700);
}

.contact-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.contact-main-btn:hover {
  background-color: var(--green-700);
}

.contact-main-btn.active {
  transform: rotate(45deg);
}

.contact-main-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Responsive - Tablets and up */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .grid-sm-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-sm-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .stats-value {
    font-size: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom-text {
    text-align: left;
  }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
  .header-content {
    height: 5rem;
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-button {
    display: none;
  }
  
  .hero {
    padding: 5rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 3.75rem;
  }
  
  section {
    padding: 4rem 1.5rem;
  }
  
  .grid-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .grid-md-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .grid-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.break-all {
  word-break: break-all;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
