/* ============================================================
   naxve.com — Design System v2
   International B2B Sourcing Platform
   Clean, professional, edaochi.com-inspired
   ============================================================ */

/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section--white { background: #fff; }
.section--gray { background: #f8fafc; }
.section--dark { background: #0f172a; color: #fff; }

.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.section--dark .section__title { color: #fff; }

.section__subtitle {
  font-size: 1.05rem;
  text-align: center;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- Navigation --- */
.nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 75px;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}
.nav__logo-icon { height: 46px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  color: #475569;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav__links a:hover { color: #1a56db; text-decoration: none; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  color: #0f172a;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  }
  .nav__links.open { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: #1a56db;
  color: #fff;
}
.btn--primary:hover { background: #1648c0; }
.btn--outline {
  border: 2px solid #1a56db;
  color: #1a56db;
  background: transparent;
}
.btn--outline:hover { background: #1a56db; color: #fff; }
.btn--outline-light {
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  background: transparent;
}
.btn--outline-light:hover { background: #fff; color: #0f172a; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1ea952; }
.btn--lg { padding: 14px 36px; font-size: 1rem; }
.btn--sm { padding: 8px 20px; font-size: 0.82rem; }

/* --- Page Hero (About, Products) --- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero--sm { padding: 56px 0 48px; }
.page-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Hero (Homepage) --- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,86,219,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 720px; }
.hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(26,86,219,0.15);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero { padding: 72px 0 56px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }
}

/* --- Trust Bar --- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 40px 0;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-bar__value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.2;
}
.trust-bar__value span { color: #1a56db; }
.trust-bar__label {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* --- Industry Cards --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.25s;
  display: block;
  color: inherit;
}
.industry-card:hover {
  border-color: #1a56db;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  text-decoration: none;
}
.industry-card__icon {
  margin-bottom: 16px;
  display: block;
}
.industry-card__icon svg { display: block; }
.industry-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.industry-card__origin {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 500;
}
.industry-card__desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}
.industry-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a56db;
}
.industry-card__link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* --- Why Grid (4 columns like edaochi) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}
.why-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-color: #d1d5db;
}
.why-card__icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.why-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.why-card__desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.testimonial-card__stars {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card__text {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}
.testimonial-card__title {
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* --- Feature Cards (from CMS) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s;
}
.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- CTA Block --- */
.cta {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
}
.cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cta__text {
  color: #94a3b8;
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact Block --- */
.contact-block {
  text-align: center;
  padding: 48px 0;
}
.contact-block h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.contact-block p {
  color: #64748b;
  margin-bottom: 24px;
}
.contact-block .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Prose (About page text) --- */
.prose {
  font-size: 1rem;
  line-height: 1.9;
  color: #475569;
}
.prose p { margin-bottom: 20px; }
.prose strong { color: #0f172a; }

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  text-decoration: none;
}
.product-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f1f5f9;
}
.product-card__placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.product-card__body { padding: 20px; }
.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}
.badge--ce { background: #dbeafe; color: #1d4ed8; }
.badge--fda { background: #dcfce7; color: #15803d; }
.badge--iso { background: #fef3c7; color: #92400e; }
.badge--cert { background: #f3e8ff; color: #7c3aed; }

/* --- Category Filters --- */
.cat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-filter {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  transition: 0.2s;
  color: #475569;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.cat-filter:hover, .cat-filter.active {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
  text-decoration: none;
}

/* --- Back Link --- */
.back-link {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.back-link:hover { color: #1a56db; }

/* --- Product Detail --- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .product-hero { grid-template-columns: 1fr; } }
.product-gallery {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.product-gallery img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  padding: 20px;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
}
.product-gallery__thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.product-gallery__thumbs img.active { border-color: #1a56db; }
.product-info h1 { font-size: 1.75rem; margin-bottom: 12px; }
.product-info .badges { margin-bottom: 14px; }
.product-info .summary { font-size: 1rem; color: #475569; margin-bottom: 20px; }
.product-desc { line-height: 1.8; white-space: pre-line; }
.product-desc ul { list-style: disc; padding-left: 20px; margin: 12px 0; }
.product-desc li { margin-bottom: 4px; }

/* --- CMS Block Styles --- */
.block-banner {
  padding: 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}
.block-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.block-banner > * { position: relative; z-index: 1; }
.block-banner h1 { font-size: 2.5rem; margin-bottom: 12px; }
.block-banner p { font-size: 1.2rem; margin-bottom: 24px; opacity: 0.9; }

.block-image_text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.block-image_text.reverse { direction: rtl; }
.block-image_text.reverse > * { direction: ltr; }
.block-image_text img { border-radius: 12px; }
@media (max-width: 768px) { .block-image_text { grid-template-columns: 1fr; } }

.block-divider { height: 1px; background: #e2e8f0; margin: 40px 0; }

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
}
.footer a { color: #cbd5e1; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand h3 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer__brand p { font-size: 0.87rem; line-height: 1.65; }
.footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 0.87rem; }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.footer__bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 99;
  transition: 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); text-decoration: none; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
