/* Apple-clean polish - Build: final6 */

html { color-scheme: light; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Header: clean white corporate bar ---- */
.header {
  height: 64px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(160%) blur(16px) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.logo-brand-header .logo-image-header,
.logo-image-header {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  border: none !important;
  background: transparent !important;
}

:root {
  --header-h: 64px !important;
}

.logo-brand:hover .logo-image,
.logo-brand-header:hover .logo-image-header {
  transform: none !important;
  filter: none !important;
}

.footer-brand .logo-image {
  height: 40px !important;
  width: auto !important;
  border-radius: 0 !important;
  filter: none !important;
}

.nav-links a {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #334155 !important;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #1d4ed8 !important;
  font-weight: 500 !important;
}

.nav-links a::after {
  display: none !important;
}

.header .btn-sm {
  border-radius: 10px !important;
  padding: 8px 16px !important;
  font-size: 0.8125rem !important;
}

/* ---- Hero: smooth fixed-frame crossfade ---- */
.hero-with-photos {
  min-height: 88vh;
  height: 88vh;
  max-height: 860px;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f172a !important;
}

.hero-bg-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0;
  transform: none !important;
  scale: 1 !important;
  transition: opacity 0.85s ease-in-out !important;
  will-change: opacity;
}

.hero-bg-photo.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-panel,
.hero-inner {
  max-width: 400px;
  padding: 18px 18px 16px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
}

.hero-media-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.12) 40%, rgba(15, 23, 42, 0.04) 72%, transparent 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, transparent 45%, rgba(15, 23, 42, 0.2) 100%) !important;
}

.hero-slides {
  display: grid !important;
  align-items: start !important;
  min-height: 0 !important;
}

.hero-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  max-width: none !important;
  text-align: left !important;
  margin-bottom: 4px !important;
  min-height: 0;
}

.hero-desc {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
  min-height: 0;
  text-align: left !important;
}

.hero-stats {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px !important;
  margin: 14px 0 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-stats .stat-num {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.hero-stats .stat-label {
  font-size: 0.7rem !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  font-weight: 600 !important;
  border-radius: 980px !important;
  letter-spacing: -0.01em !important;
}

.btn-primary {
  background: var(--gradient) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.22) !important;
}

.btn-outline,
.btn-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

/* ---- Cards: clear, separated, readable ---- */
.service-card,
.process-step,
.whatsapp-group-cta,
.product-card,
.stock-card,
.payment-card,
.export-card,
.trust-highlight,
.trust-stat,
.cta-banner {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
  isolation: isolate;
  overflow: hidden;
}

.service-card,
.process-step {
  padding: 28px 24px !important;
  min-height: 0 !important;
}

.service-card h3,
.process-step h3,
.product-card h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  margin-bottom: 10px !important;
}

.service-card p,
.process-step p,
.section-header p,
.page-hero p,
.product-card p {
  color: #475569 !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

.section-header h2,
.page-hero h1 {
  color: #0f172a !important;
  font-weight: 750 !important;
  letter-spacing: -0.035em !important;
}

.service-card.featured {
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.08), #ffffff 48%) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
}

.service-icon {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

.services-grid,
.process-steps-teaser {
  gap: 18px !important;
  align-items: stretch !important;
}

/* Galleries: always even 3-up on desktop */
.stock-gallery-teaser,
.packing-gallery-teaser {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.stock-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.stock-shot,
.packing-shot {
  margin: 0 !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #111827 !important;
  overflow: hidden !important;
}

.stock-shot img,
.packing-shot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.45s ease;
}

.stock-shot:hover img,
.packing-shot:hover img {
  transform: scale(1.03);
}

.products-grid,
#stockGrid .products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.product-card .product-image,
.product-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.proof-bar {
  background: rgba(17, 24, 39, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.proof-num {
  color: #f8fafc !important;
  font-size: 1.05rem !important;
}

.proof-label {
  color: #94a3b8 !important;
}

.stock-empty {
  color: #94a3b8;
  padding: 28px;
  text-align: center;
  background: #151d2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

@media (max-width: 900px) {
  .stock-gallery-teaser,
  .packing-gallery-teaser,
  .stock-gallery,
  .products-grid,
  #stockGrid .products-grid,
  .services-grid,
  .process-steps-teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .stock-gallery-teaser,
  .packing-gallery-teaser,
  .stock-gallery,
  .products-grid,
  #stockGrid .products-grid,
  .services-grid,
  .process-steps-teaser,
  .proof-bar-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .section-header {
    text-align: center !important;
  }

  .nav-actions .btn-sm {
    display: none;
  }
}
