/* =========================================================
   GarbhSanskarYatra — Custom Styles
   Complements Tailwind CDN with animations, components & touches
   ========================================================= */

/* Smooth scrolling and base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-feature-settings: "ss01", "cv01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Navbar
   ========================================================= */
#navbar.scrolled {
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 30px -20px rgba(36, 26, 43, 0.25);
}

.nav-link {
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #CE5871; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #E6788C, #8767B5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #241A2B; }

/* =========================================================
   Section primitives
   ========================================================= */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #CE5871;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #241A2B;
}

/* =========================================================
   Feature cards
   ========================================================= */
.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 213, 220, 0.5);
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 80% at 0% 0%, rgba(247, 188, 199, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(206, 88, 113, 0.25);
  border-color: rgba(247, 188, 199, 0.8);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #241A2B;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: #5A4A68;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* =========================================================
   Why-us cards
   ========================================================= */
.why-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 205, 238, 0.5);
  border-radius: 22px;
  padding: 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(135, 103, 181, 0.4);
}
.why-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.why-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #241A2B;
  margin-bottom: 6px;
}
.why-card p {
  color: #5A4A68;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   Journey timeline
   ========================================================= */
.timeline-item {
  position: relative;
  display: grid;
  align-items: center;
  gap: 16px;
}
@media (max-width: 767px) {
  .timeline-item {
    grid-template-columns: 48px 1fr;
    padding-left: 0;
  }
  .timeline-left { grid-column: 2; }
  .timeline-right { grid-column: 2; margin-top: 10px; }
}
@media (min-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr 60px 1fr;
  }
  .timeline-left {
    grid-column: 1;
    text-align: right;
    padding-right: 30px;
  }
  .timeline-right {
    grid-column: 3;
    padding-left: 30px;
  }
  .timeline-item.reverse .timeline-left {
    grid-column: 3;
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
    order: 2;
  }
  .timeline-item.reverse .timeline-right {
    grid-column: 1;
    padding-left: 0;
    padding-right: 30px;
    order: 1;
  }
}

.timeline-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9), 0 0 0 8px rgba(247, 188, 199, 0.4);
  z-index: 2;
}
@media (max-width: 767px) {
  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-left: 12px;
    margin-top: 8px;
  }
}
@media (min-width: 768px) {
  .timeline-dot {
    grid-column: 2;
    justify-self: center;
  }
}

.journey-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 28px;
  border-radius: 22px;
  box-shadow: 0 12px 35px -20px rgba(36, 26, 43, 0.25);
  transition: transform 0.35s ease;
}
.journey-card:hover { transform: translateY(-4px) rotate(-1deg); }

/* =========================================================
   Testimonial cards
   ========================================================= */
.testimonial-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(251, 213, 220, 0.6);
  box-shadow: 0 12px 40px -25px rgba(36, 26, 43, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  color: rgba(247, 188, 199, 0.55);
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(206, 88, 113, 0.35);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 213, 220, 0.6);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(197, 174, 226, 0.8);
  box-shadow: 0 18px 45px -25px rgba(135, 103, 181, 0.35);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #241A2B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #CE5871; }

.faq-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #CE5871;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 24px 22px;
  color: #5A4A68;
  line-height: 1.7;
  animation: faqOpen 0.35s ease both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Phone mockup
   ========================================================= */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(160deg, #241A2B, #3A2E45);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 30px 80px -30px rgba(36, 26, 43, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: floatPhone 6s ease-in-out infinite;
}
@media (min-width: 640px) {
  .phone-mockup { width: 300px; height: 600px; }
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #241A2B;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FFF7F8, #FDECEF);
  border-radius: 32px;
  padding: 56px 18px 18px;
  overflow: hidden;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.phone-card {
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px -10px rgba(36, 26, 43, 0.2);
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   Store buttons
   ========================================================= */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #241A2B;
  color: #ffffff;
  border-radius: 16px;
  transition: transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 10px 30px -15px rgba(36, 26, 43, 0.5);
}
.store-btn:hover {
  background: #3A2E45;
  transform: translateY(-2px);
}

/* =========================================================
   Social buttons
   ========================================================= */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  color: #5A4A68;
  border: 1px solid rgba(251, 213, 220, 0.6);
  transition: all 0.25s ease;
}
.social-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #E6788C, #8767B5);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(206, 88, 113, 0.5);
}

/* =========================================================
   Hero floating cards
   ========================================================= */
.float-card { animation: floatA 5s ease-in-out infinite; }
.float-card-2 { animation: floatB 6s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* =========================================================
   Reveal animations (intersection observer)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Tiny utility — sanskrit pill
   ========================================================= */
.sanskrit-pill .font-sanskrit { line-height: 1; }

/* =========================================================
   Custom scrollbar
   ========================================================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #FBF5EA; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F7BCC7, #C5AEE2);
  border-radius: 10px;
  border: 2px solid #FBF5EA;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E6788C, #8767B5);
}

/* =========================================================
   Focus styles for accessibility
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(230, 120, 140, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}
