/* =========================================================
   Pregnancy Dental Care — bespoke styles & animations
   Author: Noble Dental Care web team
   Purpose: immersive storytelling page with motion cues
========================================================= */

:root {
  --pregnancy-rose: #ff6fa7;
  --pregnancy-sky: #7ddff8;
  --pregnancy-lavender: #a88bff;
  --pregnancy-emerald: #0fc9a0;
  --pregnancy-navy: #0b1a2f;
  --pregnancy-cream: #fff9f6;
}

body {
  background: var(--pregnancy-cream);
}

.hero.hero--pregnancy {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 9rem) 0;
  color: #fff;
  background: radial-gradient(circle at 10% 20%, rgba(255, 111, 167, 0.85), rgba(168, 139, 255, 0.7)),
    linear-gradient(135deg, #090f1d 0%, #182842 45%, #1f3d54 100%);
}

.hero--pregnancy .hero__grid {
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero--pregnancy .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero--pregnancy .hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  line-height: 1.08;
  margin: 1.2rem 0 1.6rem;
  font-weight: 800;
}

.hero--pregnancy .hero__content p {
  font-size: clamp(1.04rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 40ch;
}

.hero--pregnancy .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero--pregnancy .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.2rem 1.4rem;
  border-radius: 22px;
  background: rgba(10, 19, 35, 0.38);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero--pregnancy .hero__stats div {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero--pregnancy .hero__stats dt {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.hero--pregnancy .hero__stats dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero--pregnancy .hero__cta a {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero--pregnancy .hero__cta a:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(14, 22, 41, 0.35);
}

.hero--pregnancy .hero__cta .primary {
  background: linear-gradient(135deg, var(--pregnancy-rose), var(--pregnancy-emerald));
  color: #0b0d16;
}

.hero--pregnancy .hero__cta .outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero--pregnancy .hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero--pregnancy .hero__visual img {
  width: min(420px, 85vw);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(8, 17, 31, 0.55);
  transform: perspective(900px) rotateY(-9deg) rotateX(4deg);
  animation: floatY 8s ease-in-out infinite;
}

.hero--pregnancy .hero__visual::after,
.hero--pregnancy .hero__visual::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.6;
  animation: pulseGlow 9s ease-in-out infinite;
}

.hero--pregnancy .hero__visual::before {
  width: clamp(180px, 28vw, 260px);
  height: clamp(180px, 28vw, 260px);
  background: radial-gradient(circle, rgba(125, 223, 248, 0.7), transparent 65%);
  top: -20%;
  right: 5%;
  animation-delay: -2s;
}

.hero--pregnancy .hero__visual::after {
  width: clamp(220px, 32vw, 300px);
  height: clamp(220px, 32vw, 300px);
  background: radial-gradient(circle, rgba(255, 111, 167, 0.6), transparent 60%);
  bottom: -18%;
  left: 4%;
}

/* Floating sparkles */
.hero__motion-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__motion-sparkles span {
  position: absolute;
  width: clamp(6px, 1vw, 10px);
  height: clamp(6px, 1vw, 10px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
  animation: sparkleFloat 12s linear infinite;
}

.hero__motion-sparkles span:nth-child(odd) {
  background: rgba(125, 223, 248, 0.9);
  box-shadow: 0 0 16px rgba(125, 223, 248, 0.9);
}

.hero__motion-sparkles span:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; }
.hero__motion-sparkles span:nth-child(2) { top: 28%; left: 68%; animation-delay: -3s; }
.hero__motion-sparkles span:nth-child(3) { top: 62%; left: 22%; animation-delay: -6s; }
.hero__motion-sparkles span:nth-child(4) { top: 74%; left: 82%; animation-delay: -9s; }
.hero__motion-sparkles span:nth-child(5) { top: 46%; left: 5%; animation-delay: -11s; }

/* Shared section utilities */
.section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  position: relative;
}

.section .container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

.section__header {
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

.section__header h2 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  color: var(--pregnancy-navy);
  margin-bottom: 1rem;
}

.section__header p {
  max-width: 720px;
  margin-inline: auto;
  color: #384c66;
  font-size: 1.05rem;
}

.badge-soft {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 201, 160, 0.12);
  color: var(--pregnancy-emerald);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

/* Issue matrix */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.issue-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 22px;
  box-shadow: 0 24px 45px rgba(11, 26, 47, 0.08);
  border: 1px solid rgba(12, 42, 66, 0.08);
  position: relative;
  overflow: hidden;
}

.issue-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 111, 167, 0.12), rgba(125, 223, 248, 0.1));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.issue-card:hover::after {
  opacity: 1;
}

.issue-card h3 {
  font-size: 1.2rem;
  color: var(--pregnancy-navy);
  margin-bottom: 0.9rem;
}

.issue-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #42546b;
  line-height: 1.6;
}

.issue-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(168, 139, 255, 0.15);
  color: var(--pregnancy-lavender);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.issue-card:nth-child(3n+2) .card-icon {
  background: rgba(255, 111, 167, 0.16);
  color: var(--pregnancy-rose);
}

.issue-card:nth-child(3n) .card-icon {
  background: rgba(15, 201, 160, 0.16);
  color: var(--pregnancy-emerald);
}

/* Timeline */
.timeline {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(10px, 4vw, 48px);
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(168, 139, 255, 0.2), rgba(15, 201, 160, 0.4));
}

.timeline-step {
  position: relative;
  margin-left: clamp(2.8rem, 8vw, 5rem);
  background: #fff;
  padding: 1.6rem 1.6rem 1.6rem clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(11, 26, 47, 0.08);
  border: 1px solid rgba(12, 42, 66, 0.08);
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: calc(clamp(2.8rem, 8vw, 5rem) * -1 + clamp(10px, 4vw, 48px));
  width: clamp(1.2rem, 2.8vw, 1.9rem);
  height: clamp(1.2rem, 2.8vw, 1.9rem);
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--pregnancy-lavender);
  box-shadow: 0 0 0 6px rgba(168, 139, 255, 0.18);
}

.timeline-step:nth-child(even)::before {
  border-color: var(--pregnancy-rose);
  box-shadow: 0 0 0 6px rgba(255, 111, 167, 0.18);
}

.timeline-step header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.timeline-step h3 {
  font-size: 1.35rem;
  color: var(--pregnancy-navy);
}

.timeline-step p,
.timeline-step ul {
  color: #3d5067;
  line-height: 1.65;
}

.timeline-step ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}

.timeline-step .care-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.timeline-step .care-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(15, 201, 160, 0.12);
  color: var(--pregnancy-emerald);
  font-weight: 600;
}

/* Evidence section */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.evidence-card {
  background: #0f1a2c;
  color: rgba(255, 255, 255, 0.88);
  padding: 1.7rem;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.evidence-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(125, 223, 248, 0.22), transparent 65%);
  opacity: 0.8;
}

.evidence-card strong {
  font-size: 1.05rem;
  color: #fff;
}

.evidence-card cite {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Medication matrix */
.medication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.medication-card {
  padding: 1.6rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(12, 42, 66, 0.08);
  box-shadow: 0 18px 40px rgba(11, 26, 47, 0.08);
}

.medication-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--pregnancy-navy);
}

.medication-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3d5067;
  line-height: 1.6;
}

.medication-card footer {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #586b84;
}

/* Remedies */
.remedy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.remedy-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(125, 223, 248, 0.25));
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(12, 42, 66, 0.08);
}

.remedy-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.75rem;
  color: var(--pregnancy-navy);
}

.remedy-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3d5067;
  line-height: 1.65;
}

/* Chair ergonomics */
.chair-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.chair-grid figure {
  position: relative;
  margin: 0;
  padding: 2rem;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 111, 167, 0.24), transparent 65%),
    #0f1f38;
  color: #fff;
  min-height: 260px;
  overflow: hidden;
}

.chair-grid figure img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(8, 17, 31, 0.65));
  animation: floatY 9s ease-in-out infinite;
}

.chair-grid .chair-points {
  background: #fff;
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 20px 48px rgba(11, 26, 47, 0.08);
  border: 1px solid rgba(12, 42, 66, 0.08);
}

.chair-grid .chair-points h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  color: var(--pregnancy-navy);
}

.chair-grid .chair-points ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3d5067;
  line-height: 1.65;
}

/* CTA */
.cta-band {
  margin: clamp(4rem, 7vw, 6.2rem) auto;
  background: linear-gradient(135deg, rgba(15, 201, 160, 0.92), rgba(125, 223, 248, 0.85));
  color: #0b1a2f;
  border-radius: 28px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(0);
  animation: pulseGlow 8s ease-in-out infinite;
}

.cta-band::before {
  width: clamp(220px, 40vw, 360px);
  height: clamp(220px, 40vw, 360px);
  top: -40%;
  right: -10%;
  animation-delay: -3s;
}

.cta-band::after {
  width: clamp(180px, 30vw, 280px);
  height: clamp(180px, 30vw, 280px);
  bottom: -35%;
  left: -12%;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0;
}

.cta-band p {
  max-width: 600px;
  font-size: 1.05rem;
}

.cta-band .cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-band .cta-actions a {
  background: #0b1a2f;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-band .cta-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(11, 26, 47, 0.35);
}

/* Animation primitives */
[data-animate] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) perspective(900px) rotateY(-9deg) rotateX(4deg); }
  50% { transform: translateY(-14px) perspective(900px) rotateY(-6deg) rotateX(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-40px) scale(1.15); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.8; }
}

@media (max-width: 768px) {
  .hero--pregnancy .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero--pregnancy .hero__content p {
    margin-inline: auto;
  }
  .timeline::before {
    left: 22px;
  }
  .timeline-step {
    margin-left: 2.8rem;
  }
  .timeline-step::before {
    left: calc(-2.8rem + 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
