/* ── Pill design system + Ethiopia + Infinity motif ── */

:root {
  --ethiopia-green: #078930;
  --ethiopia-yellow: #fcdd09;
  --ethiopia-red: #da121a;
  --ethiopia-blue: #076ab3;
  --pill-radius: 9999px;
  --caplet-ratio-h: 2.75; /* width ÷ height — classic oblong caplet */
  --caplet-ratio-v: 0.42;
}

/* ── Caplet / oblong shape primitives ── */
.caplet-h,
.caplet-wide {
  border-radius: var(--pill-radius);
  overflow: hidden;
}

.caplet-v {
  border-radius: var(--pill-radius);
  overflow: hidden;
}

.caplet-h {
  aspect-ratio: var(--caplet-ratio-h) / 1;
}

.caplet-v {
  aspect-ratio: 1 / calc(1 / var(--caplet-ratio-v));
  aspect-ratio: 1 / 2.4;
}

.caplet-wide {
  aspect-ratio: 4 / 1;
  width: 100%;
}

/* Global pill buttons */
.btn,
button.btn,
input[type="submit"].btn {
  border-radius: var(--pill-radius) !important;
  padding: 0.9rem 2rem !important;
}

.nav-links a {
  border-radius: var(--pill-radius);
}

.nav-cta {
  border-radius: var(--pill-radius) !important;
}

.footer-ethiopia {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.eth-flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: -2px;
}

.eth-flag--xs {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  vertical-align: -1px;
}

.eth-flag--md {
  width: 28px;
  height: 18px;
  border-radius: 3px;
}

.footer-ethiopia .eth-flag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ethiopia-stripe {
  height: 4px;
  background: linear-gradient(
    to bottom,
    var(--ethiopia-green) 0%,
    var(--ethiopia-green) 33.33%,
    var(--ethiopia-yellow) 33.33%,
    var(--ethiopia-yellow) 66.66%,
    var(--ethiopia-red) 66.66%,
    var(--ethiopia-red) 100%
  );
  position: sticky;
  top: 76px;
  z-index: 99;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--pill-radius);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--gray);
  color: var(--red);
  box-shadow: var(--shadow);
}

.pill-chip--dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--yellow);
}

.pill-chip .eth-flag--xs {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Light clinical hero (Autopharma / Nutrition-inspired) */
.hero--light {
  background: var(--gray-light);
  color: var(--text);
  min-height: auto;
  padding: 4.5rem 0 5rem;
}

.hero--light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(7, 137, 48, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero--light .hero-desc {
  color: var(--text-muted);
}

.hero--light .hero-line--accent {
  background: linear-gradient(90deg, var(--red), var(--orange), var(--ethiopia-green));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-line--accent {
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--yellow));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 4s linear infinite;
}

.hero--light .hero-title {
  color: var(--text);
}

.ethiopia-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23078930' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='20' cy='20' r='3' stroke='%23b21f24' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.infinity-watermark {
  position: absolute;
  width: 320px;
  height: auto;
  opacity: 0.07;
  right: -60px;
  top: 8%;
  animation: infinitySpin 40s linear infinite;
  pointer-events: none;
}

@keyframes infinitySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pill-shaped image collage */
.hero-pill-collage {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 380px;
  margin: 0 auto;
}

.pill-frame {
  position: absolute;
  overflow: hidden;
  border-radius: var(--pill-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--white);
}

.pill-frame img,
.hero-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wide horizontal caplet — hero focal image */
.pill-frame--main {
  width: min(440px, 92vw);
  height: auto;
  aspect-ratio: 2.75 / 1;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 3;
}

.pill-frame--main .hero-image-main {
  border-radius: var(--pill-radius);
}

/* Vertical caplet / capsule */
.pill-frame--tall {
  width: 100px;
  aspect-ratio: 1 / 2.35;
  height: auto;
  top: 6%;
  right: 2%;
  transform: rotate(14deg);
  z-index: 2;
}

.pill-frame--small {
  width: 82px;
  aspect-ratio: 1 / 2.35;
  height: auto;
  bottom: 8%;
  left: 2%;
  transform: rotate(-16deg);
  z-index: 2;
}

/* Small horizontal caplet accent (replaces circle) */
.pill-frame--accent {
  width: 168px;
  aspect-ratio: 2.75 / 1;
  height: auto;
  bottom: 20%;
  right: 8%;
  transform: rotate(8deg);
  z-index: 4;
}

.pill-frame--round {
  display: none;
}

.infinity-icon {
  position: absolute;
  width: 88px;
  height: auto;
  top: 0;
  left: 6%;
  z-index: 5;
  filter: drop-shadow(0 8px 24px rgba(245, 166, 35, 0.45));
  animation: iconBob 4s ease-in-out infinite;
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

.pill-deco {
  position: absolute;
  border-radius: var(--pill-radius);
  background: linear-gradient(135deg, var(--orange), var(--red));
  opacity: 0.9;
  z-index: 1;
}

.pill-deco--1 { width: 48px; height: 96px; top: 35%; left: 18%; transform: rotate(25deg); opacity: 0.25; }
.pill-deco--2 { width: 36px; height: 72px; bottom: 30%; right: 28%; transform: rotate(-30deg); opacity: 0.2; }

/* Scroll-down hint (ethra icon) */
.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint-icon {
  width: 40px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-hint-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Ethiopia origin + human impact split sections */
.ethiopia-section {
  overflow: hidden;
}

.ethiopia-showcase,
.human-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ethiopia-showcase-content,
.human-split-content {
  max-width: 520px;
}

.ethiopia-showcase-content .section-title,
.ethiopia-showcase-content .section-desc,
.human-split-content .section-title,
.human-split-content .section-desc {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.ethiopia-showcase-content .section-desc,
.human-split-content .section-desc {
  margin-bottom: 0;
}

.human-split-cta {
  margin-top: 1.75rem;
}

.ethiopia-showcase-visual,
.human-split-visual {
  position: relative;
  min-height: clamp(380px, 42vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ethiopia-hero-frame {
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  background: var(--gray-light);
  position: relative;
  z-index: 2;
}

.ethiopia-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ethiopia-accent-frame {
  position: absolute;
  bottom: 6%;
  right: 0;
  width: min(58%, 260px);
  box-shadow: 0 14px 40px rgba(178, 31, 36, 0.22);
  border: 3px solid var(--white);
  z-index: 3;
  background: var(--gray-light);
}

.ethiopia-accent-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ethiopia-infinity-mark--content {
  position: static;
  display: block;
  width: clamp(64px, 10vw, 88px);
  margin-top: 1.75rem;
  opacity: 0.9;
  filter: drop-shadow(0 6px 16px rgba(245, 166, 35, 0.25));
}

.human-impact-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.ethiopia-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pill-radius);
  background: var(--white);
  border: 1px solid var(--gray);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.ethiopia-flag-badge .eth-flag {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.partner-card.card--pill {
  background: var(--white);
  border-radius: 2rem;
}

.ethiopia-showcase-content .contact-info-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.ethiopia-showcase-content .contact-info-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Pill-shaped cards */
.card--pill {
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.card--pill::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 160px;
  border-radius: var(--pill-radius);
  background: linear-gradient(180deg, var(--orange-light), transparent);
  opacity: 0.15;
  transform: rotate(25deg);
}

.lab-card {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  max-height: 260px;
}

.lab-card--pill {
  border-radius: var(--radius-lg);
}

/* Product images — clean rectangular boxes */
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: 0;
}

.product-card-image,
.product-card .product-card-image {
  height: 180px;
  width: 100%;
  margin: 0;
  aspect-ratio: unset;
  border-radius: 0;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Healthcare gallery — uniform card grid */
.healthcare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.healthcare-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.healthcare-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.healthcare-card-image {
  height: 180px;
  overflow: hidden;
  background: var(--gray-light);
}

.healthcare-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.healthcare-card:hover .healthcare-card-image img {
  transform: scale(1.04);
}

.healthcare-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.healthcare-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.healthcare-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Values with icons */
.values-grid--icons {
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--pill-radius);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.value-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--red);
}

/* Wide caplet banner strip */
.caplet-banner {
  width: 100%;
  margin: 3rem 0 0;
  border-radius: var(--pill-radius);
  overflow: hidden;
  aspect-ratio: 4 / 1;
  max-height: 200px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
}

.caplet-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Patient care pill grid */
.pill-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pill-gallery-item {
  position: relative;
  border-radius: var(--pill-radius);
  overflow: hidden;
  aspect-ratio: 1 / 2.2;
  background: var(--red-dark);
}

.pill-gallery-item .gallery-card-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(122, 18, 24, 0.9) 0%, transparent 55%);
}

.pill-gallery-item .gallery-card-caption h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pill-gallery-item .gallery-card-caption p {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.pill-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 3.2 / 1;
}

.pill-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pill-gallery-item:hover img {
  transform: scale(1.04);
}

/* Infinity section */
.infinity-section {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--bg-warm);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--orange), var(--yellow)) 1;
}

.infinity-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.infinity-section-logo {
  width: min(300px, 72vw);
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
  position: relative;
  z-index: 1;
}

.infinity-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  color: var(--red);
}

.infinity-section p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.btn-pill {
  border-radius: var(--pill-radius);
}

.form-group textarea {
  border-radius: 1.5rem !important;
}

.form-group input,
.form-group select {
  border-radius: var(--pill-radius) !important;
}

@media (max-width: 1024px) {
  .values-grid--icons {
    grid-template-columns: repeat(3, 1fr);
  }

  .ethiopia-showcase,
  .human-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ethiopia-showcase-visual,
  .human-split-visual {
    order: -1;
    min-height: 340px;
  }

  .human-split-visual {
    order: -1;
  }

  .ethiopia-hero-frame {
    width: min(100%, 360px);
  }

  .ethiopia-accent-frame {
    width: min(62%, 240px);
  }

  .healthcare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pill-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .pill-gallery-item--wide {
    grid-column: span 2;
  }

  .hero-pill-collage {
    min-height: 360px;
    margin-top: 2rem;
  }

  .pill-frame--main {
    width: min(340px, 88vw);
    aspect-ratio: 2.75 / 1;
    height: auto;
  }
}

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

  .healthcare-grid {
    grid-template-columns: 1fr;
  }

  .pill-gallery {
    grid-template-columns: 1fr;
  }

  .pill-gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 3/4;
  }

  .ethiopia-hero-frame {
    width: min(88vw, 320px);
  }

  .ethiopia-accent-frame {
    width: min(68%, 220px);
    right: 2%;
  }

  .pill-frame--tall,
  .pill-frame--small {
    display: none;
  }

  .ethiopia-stripe {
    top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .scroll-hint-icon,
  .infinity-watermark,
  .infinity-icon {
    animation: none;
  }
}
