/* ==========================================================================
   Undes Pharm — Premium corporate layer
   Inspired by Bayer / Novartis / Roche visual systems
   ========================================================================== */

:root {
  --header-height: 86px;
  --container-width: 1320px;
  --shadow-soft: 0 4px 24px rgba(11, 61, 145, 0.04);
  --shadow-card: 0 20px 50px rgba(11, 61, 145, 0.08);
  --shadow-card-hover: 0 28px 64px rgba(11, 61, 145, 0.14);
  --shadow-header: 0 10px 40px rgba(11, 61, 145, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 36px;
}

/* Typography scale moved to typography.css
   ========================================================================== */

body {
  /* base size/weight set in typography.css */
}

.section-title {
  /* overridden in typography.css */
}

.section-subtitle {
  /* overridden in typography.css */
}

.section-divider {
  max-width: 240px;
  margin: 18px auto 24px;
}

.section-divider__diamond {
  width: 11px;
  height: 11px;
}

/* Spacing
   ========================================================================== */

.container {
  width: min(100% - 64px, var(--container-width));
}

.section {
  padding-block: 96px;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 112px;
  }
}

/* Header — larger logo & nav
   ========================================================================== */

.site-header {
  height: var(--header-height);
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  height: var(--header-height);
}

.logo__img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 190px;
  object-fit: contain;
  filter: none;
  transition: none;
}

.logo:hover .logo__img {
  transform: none;
}

.logo--footer .logo__img {
  width: auto;
  height: 72px;
  max-width: 180px;
}

.nav__list {
  gap: 40px;
}

.nav__link {
  /* type in typography.css */
}

.language-switch__btn {
  min-width: 48px;
  min-height: 40px;
}

/* Hero — cinematic split composition
   ========================================================================== */

.hero {
  min-height: 680px;
  isolation: isolate;
}

.hero__bg {
  background:
    linear-gradient(105deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.82) 26%,
      rgba(255, 255, 255, 0.35) 44%,
      rgba(255, 255, 255, 0.08) 58%,
      transparent 72%),
    url("../images/hero/hero-laboratory.webp") center center / cover no-repeat,
    linear-gradient(135deg, #e8f0f7 0%, #d5e4ef 100%);
  transform: scale(1.02);
  transition: transform 8s var(--ease-out);
}

.hero:hover .hero__bg {
  transform: scale(1.05);
}

.hero__inner {
  padding-block: 72px 88px;
  min-height: 680px;
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.hero__title {
  margin-bottom: 28px;
}

.hero__title-line {
  /* size/weight in typography.css */
}

.hero__desc {
  max-width: 560px;
  margin-bottom: 36px;
  color: #2a3f5f;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Buttons — CTA hierarchy
   ========================================================================== */

.button {
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11, 61, 145, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, #0B3D91 0%, #1356B1 100%);
  border: none;
}

.button-primary:hover {
  background: linear-gradient(135deg, #1356B1 0%, #1E88E5 100%);
  box-shadow: 0 16px 36px rgba(11, 61, 145, 0.22);
  transform: translateY(-2px);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(11, 61, 145, 0.28);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--color-background-blue);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.button-outline {
  box-shadow: none;
}

.button-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.2);
}

.button-outline-white {
  border: 1.5px solid #F1C75B;
  box-shadow: none;
}

.button-outline-white:hover {
  transform: translateY(-2px);
}

/* Product cards — larger, premium
   ========================================================================== */

.product-grid {
  gap: 32px;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.product-card {
  min-height: 480px;
  border-radius: 22px;
  border: 1px solid rgba(11, 61, 145, 0.06);
  box-shadow: var(--shadow-card);
  background: #fff;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

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

.product-card__image {
  height: 280px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FB 100%);
}

@media (min-width: 1024px) {
  .product-card__image {
    height: 300px;
  }
}

.product-card__image img {
  width: auto;
  max-width: 82%;
  height: 80%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 28px 26px 30px;
  gap: 12px;
}

.product-card__name {
  /* typography.css */
}

.product-card__desc {
  min-height: 50px;
}

.text-link {
  margin-top: 4px;
}

.products-cta {
  margin-top: 56px;
}

/* Value cards
   ========================================================================== */

.value-card {
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11, 61, 145, 0.06);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

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

.value-card__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
}

.value-card__title {
  margin-bottom: 10px;
}

.value-card__desc {
  /* typography.css */
}

/* About
   ========================================================================== */

.about-image {
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(11, 61, 145, 0.14);
  overflow: hidden;
}

.about-image img {
  transition: transform 1s var(--ease-out);
}

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

.about-content__title {
  /* typography.css */
}

.about-content__desc {
  max-width: 560px;
}

.stat-card {
  border-radius: 18px;
  min-height: 132px;
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out);
}

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

.stat-card__number {
  /* typography.css */
}

.stat-card__label {
  /* typography.css */
}

/* Contact strip
   ========================================================================== */

.contact-strip {
  padding-block: 80px;
  background:
    linear-gradient(110deg, #0A4728 0%, #176B3A 55%, #0E5B30 100%);
}

.contact-strip__title {
  /* typography.css */
}

.contact-strip__intro {
  max-width: 360px;
}

.contact-item {
  /* typography.css */
}

/* Footer
   ========================================================================== */

.site-footer {
  padding-top: 80px;
  padding-bottom: 32px;
}

.footer-grid {
  gap: 56px;
}

.footer-title {
  margin-bottom: 20px;
}

.footer-links a {
  line-height: 2.15;
}

.footer-tagline {
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
}

/* SVG wave dividers
   ========================================================================== */

.wave {
  display: block;
  width: 100%;
  height: 24px;
  color: var(--color-white);
  line-height: 0;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

/* Soft landing from hero photography into content */
.hero + .wave {
  margin-top: -12px;
}

/* Transition into tinted sections */
.section + .wave--blue,
.section--blue + .wave--white,
.section--about + .wave--green,
.contact-strip + .wave--footer {
  margin-top: -1px;
}

.wave--flip {
  transform: scaleY(-1);
}

.wave--blue {
  color: var(--color-background-blue);
}

.wave--white {
  color: var(--color-white);
}

.wave--green {
  color: #0A4728;
}

.wave--footer {
  color: var(--color-footer);
}

.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { --reveal-delay: 70ms; }
.reveal-delay-2 { --reveal-delay: 140ms; }
.reveal-delay-3 { --reveal-delay: 210ms; }
.reveal-delay-4 { --reveal-delay: 280ms; }
.reveal-delay-5 { --reveal-delay: 350ms; }
.reveal-delay-6 { --reveal-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__bg,
  .hero:hover .hero__bg,
  .product-card:hover,
  .product-card:hover .product-card__image img,
  .about-image:hover img,
  .value-card:hover,
  .button-primary:hover,
  .button-secondary:hover {
    transform: none;
  }
}

/* Image zoom utility for media frames
   ========================================================================== */

.media-zoom {
  overflow: hidden;
}

.media-zoom img {
  transition: transform 0.9s var(--ease-out);
}

.media-zoom:hover img {
  transform: scale(1.05);
}
