/* ============================================================
   KLARRIS PHARMA — Homepage Section Styles
   All custom component classes extracted from the Next.js build.
   ============================================================ */

/* ---- Global page wrapper ---- */
body {
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1f2937;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.kp-hero {
  position: relative;
  min-height: calc(100vh - 108px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(195,31,126,0.22), transparent 34%),
    linear-gradient(105deg, rgba(255,245,251,0.98) 0%, rgba(255,245,251,0.94) 42%, rgba(255,245,251,0.55) 64%, rgba(255,245,251,0.1) 100%);
}

.kp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,245,251,0.98) 0%, rgba(255,245,251,0.92) 42%, rgba(255,245,251,0.34) 64%, rgba(255,245,251,0.02) 100%);
  pointer-events: none;
}

.kp-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58vw, 980px);
  height: 100%;
  z-index: 0;
}

.kp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.kp-hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 108px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 24px clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.kp-hero-copy {
  max-width: 680px;
}

.kp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(195,31,126,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: #c31f7e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(195,31,126,0.08);
}

.kp-hero h1 {
  margin: 22px 0 18px;
  color: #12162b;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

.kp-hero h1 span {
  color: #c31f7e;
}

.kp-hero-copy p {
  max-width: 610px;
  margin: 0;
  color: #4b5872;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.5;
}

.kp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.kp-hero-primary,
.kp-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kp-hero-primary {
  background: #c31f7e;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(195,31,126,0.28);
}

.kp-hero-secondary {
  background: rgba(255,255,255,0.84);
  color: #c31f7e !important;
  border: 1px solid rgba(195,31,126,0.22);
}

.kp-hero-primary:hover,
.kp-hero-secondary:hover {
  transform: translateY(-2px);
}

.kp-hero-primary:hover {
  background: #a81768;
  box-shadow: 0 20px 44px rgba(195,31,126,0.35);
}

.kp-hero-panel {
  align-self: end;
  justify-self: end;
  width: min(100%, 420px);
  margin-bottom: clamp(0px, 3vw, 48px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(79,10,55,0.16);
}

.kp-hero-panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kp-hero-product {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff5fb;
}

.kp-hero-panel h2 {
  margin: 0;
  color: #12162b;
  font-size: 24px;
  font-weight: 900;
}

.kp-hero-panel p {
  margin: 4px 0 0;
  color: #5e6980;
  font-size: 14px;
  line-height: 1.45;
}

.kp-hero-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.kp-hero-price {
  color: #12162b;
  font-size: 32px;
  font-weight: 900;
  white-space: nowrap;
}

.kp-hero-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #c31f7e;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.kp-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.kp-hero-metric strong {
  display: block;
  color: #12162b;
  font-size: 24px;
  line-height: 1;
}

.kp-hero-metric span {
  display: block;
  margin-top: 5px;
  color: #68748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .kp-hero,
  .kp-hero-inner {
    min-height: auto;
  }

  .kp-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
  }

  .kp-hero::after {
    background: linear-gradient(180deg, rgba(255,245,251,0.96) 0%, rgba(255,245,251,0.88) 100%);
  }

  .kp-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 48px;
  }

  .kp-hero-panel {
    justify-self: auto;
    align-self: auto;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 560px) {
  .kp-hero-inner {
    padding: 34px 18px 42px;
    gap: 22px;
  }

  .kp-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .kp-hero-actions,
  .kp-hero-panel-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .kp-hero-primary,
  .kp-hero-secondary,
  .kp-hero-buy {
    width: 100%;
  }

  .kp-hero-media {
    height: 100%;
  }
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #fff5fb 0%, #fce7f3 40%, #f3e8ff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-blob-1 {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(195,31,126,0.18) 0%, rgba(195,31,126,0.04) 70%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(147,51,234,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

.hero-glass-badge {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195,31,126,0.2);
  box-shadow: 0 4px 20px rgba(195,31,126,0.1);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #c31f7e 0%, #db2777 50%, #9d174d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-btn {
  background: linear-gradient(135deg, #c31f7e 0%, #9d174d 100%);
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(195,31,126,0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(195,31,126,0.45);
  color: #fff !important;
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.8);
  color: #c31f7e !important;
  border: 1.5px solid rgba(195,31,126,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-decoration: none;
}
.hero-btn-secondary:hover {
  background: #fff;
  border-color: #c31f7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(195,31,126,0.15);
  color: #9d174d !important;
}

/* ============================================================
   CORE CAPABILITIES SECTION
   ============================================================ */
.core-capabilities {
  position: relative;
  padding: 96px 24px;
  background: linear-gradient(135deg, #1e1133 0%, #2d1b4e 40%, #1a0d3a 100%);
  overflow: hidden;
}

.core-bg-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(195,31,126,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.core-bg-2 {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147,51,234,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.core-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.core-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(195,31,126,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.core-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ============================================================
   THERAPEUTIC SECTION
   ============================================================ */
.therapeutic-card {
  background: #fff;
  border: 1px solid #f3e8f6;
  transition: all 0.35s ease;
  cursor: default;
  box-shadow: 0 2px 12px rgba(106,13,82,0.05);
}
.therapeutic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(195,31,126,0.3);
  box-shadow: 0 16px 40px rgba(195,31,126,0.12);
}

.therapeutic-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a0d52;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.therapeutic-card:hover .therapeutic-icon {
  background: linear-gradient(135deg, #c31f7e 0%, #9d174d 100%);
  color: #fff;
  transform: scale(1.08);
}

/* ============================================================
   FACILITY SECTION
   ============================================================ */
.facility-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #f9f5ff 100%);
}

.facility-feature {
  padding: 24px;
  border-left: 3px solid #c31f7e;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.8);
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}
.facility-feature:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(195,31,126,0.1);
  transform: translateX(4px);
}
.facility-feature:last-child { margin-bottom: 0; }

/* ============================================================
   ECO / SUSTAINABILITY SECTION
   ============================================================ */
.eco-section {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
  overflow: hidden;
}

.eco-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52,211,153,0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* ============================================================
   TESTIMONIAL SECTION
   ============================================================ */
.testimonial-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #f9f5ff 100%);
  padding: 96px 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(195,31,126,0.1);
  box-shadow: 0 4px 24px rgba(106,13,82,0.06);
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(195,31,126,0.12);
  border-color: rgba(195,31,126,0.2);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 80px;
  color: rgba(195,31,126,0.1);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #c31f7e 0%, #7e1354 50%, #4a0d5c 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0 40px;
  }
  .hero-blob-1 {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -60px;
  }
  .core-capabilities { padding: 64px 20px; }
  .testimonial-section { padding: 64px 20px; }
  .core-card { padding: 24px; }
  .therapeutic-icon { width: 56px; height: 56px; border-radius: 14px; }
  .facility-feature { padding: 16px; }
}
