/* =============================================================================
   AMYNO Front Page CSS — Cream × Forest Green redesign
   ============================================================================= */

/* =============================================================================
   Hero Section — CSS wave background + floating vial
   ============================================================================= */

.hero {
  position: relative;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 100svh;
}

/* SVG wave lines — full hero coverage */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-waves svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Wave animations — stroke-dasharray creates the flowing dash effect */
.wave-a path {
  stroke-dasharray: 120 40;
  animation: wave-flow 12s linear infinite;
}

.wave-a path:nth-child(2) { animation-delay: -2s; }
.wave-a path:nth-child(3) { animation-delay: -4s; }
.wave-a path:nth-child(4) { animation-delay: -6s; }
.wave-a path:nth-child(5) { animation-delay: -8s; }
.wave-a path:nth-child(6) { animation-delay: -10s; }

.wave-b path {
  stroke-dasharray: 100 50;
  animation: wave-flow-rev 16s linear infinite;
}

.wave-b path:nth-child(2) { animation-delay: -4s; }
.wave-b path:nth-child(3) { animation-delay: -8s; }
.wave-b path:nth-child(4) { animation-delay: -12s; }

.wave-c path {
  stroke-dasharray: 200 80;
  animation: wave-flow-slow 22s linear infinite;
}

.wave-c path:nth-child(2) { animation-delay: -5s; }
.wave-c path:nth-child(3) { animation-delay: -11s; }
.wave-c path:nth-child(4) { animation-delay: -16s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wave-a path, .wave-b path, .wave-c path { animation: none; }
}

/* Content grid */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

/* ── Left column: text ── */

.hero-col-text {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1rem + 3.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
  max-width: 400px;
  line-height: 1.65;
}

/* Social proof row */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.hero-avatars .hero-avatar:first-child { margin-left: 0; }

.hero-social-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stars {
  display: flex;
  gap: 1px;
  line-height: 1;
}

.hero-social-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.875rem 2.2rem;
}

/* ── Right column: vial image ── */

.hero-col-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* mix-blend-mode: multiply removes the cream bg of the photo
   so the vial + orbital lines float naturally on the hero */
.hero-product-img {
  display: block;
  /* 130% was original, -25% = ~98% → round to 95% for slight breathing room */
  width: 95%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: hero-float 7s ease-in-out infinite;
  margin: 0 auto;
}

/* Placeholder when no image is set */
.hero-img-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.4);
  border: 2px dashed var(--color-border-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-8);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-faint);
  opacity: 0.45;
}

/* =============================================================================
   Front page section backgrounds
   ============================================================================= */

.research-categories { background: var(--color-bg); }
.why-us              { background: var(--color-surface); }
.latest-products     { background: var(--color-bg); }

/* =============================================================================
   Latest Products — section header row
   ============================================================================= */

.latest-products .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* =============================================================================
   About Grid (inside why-us)
   ============================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-16);
}

@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.about-p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.about-p--disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding: var(--space-4);
  background: rgba(28, 58, 40, 0.05);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-2);
}

/* Credential cards — right column of about grid */
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding-top: var(--space-8);
}

@media (max-width: 1023px) {
  .about-credentials { grid-template-columns: repeat(4, 1fr); padding-top: 0; }
}

@media (max-width: 639px) {
  .about-credentials { grid-template-columns: 1fr 1fr; }
}

.credential-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.credential-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(28, 58, 40, 0.08);
}

.credential-value {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}

.credential-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.credential-sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.4;
}

/* =============================================================================
   Research Categories — hexagon icon cards
   ============================================================================= */

.research-cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.research-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1023px) {
  .research-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .research-cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

.research-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: inherit;
  cursor: pointer;
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
  text-decoration: none;
}

.research-cat-card:hover {
  border-color: rgba(28, 58, 40, 0.3);
  box-shadow: 0 12px 40px rgba(28, 58, 40, 0.10);
  transform: translateY(-3px);
}

/* Hexagon icon container — CSS clip-path */
.research-cat-hexicon {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: background var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.research-cat-card:hover .research-cat-hexicon {
  background: var(--color-primary-hover);
  transform: scale(1.08);
}

.research-cat-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.research-cat-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  /* show only 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-cat-buy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  width: 100%;
  justify-content: center;
  transition: gap var(--duration-fast) ease;
}

.research-cat-card:hover .research-cat-buy {
  gap: var(--space-2);
}

/* =============================================================================
   Animations
   ============================================================================= */

@keyframes hero-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes wave-flow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}

@keyframes wave-flow-slow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

@keyframes wave-flow-rev {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 600; }
}

/* =============================================================================
   Responsive
   ============================================================================= */

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-product-img {
    width: 90%;
    max-width: 420px;
  }
}

/* Mobile: image small + text immediately visible */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: var(--space-10);
    padding-bottom: var(--space-8);
    gap: var(--space-4);
  }

  .hero-col-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  /* Small enough that headline is visible without scrolling */
  .hero-product-img {
    width: 52%;
    max-width: 220px;
    margin: 0 auto;
  }

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

@media (max-width: 479px) {
  .hero-product-img {
    width: 48%;
    max-width: 190px;
  }
}
