/* ==========================================================================
   AnyCare — Tema Public Premium Maternity Editorial (Anti-AI-Slop)
   Klinik USG 4D dr. Ani Rohaeni — Cipadung, Bandung
   Isolated under .theme-islamic-emerald to strictly preserve classic theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* Warm editorial maternity palette */
  --editorial-cream-bg: #FAF7F2;
  --editorial-cream-card: #FFFFFF;
  --editorial-cream-tint: #F4EFE8;
  --editorial-forest: #163E2B;
  --editorial-forest-dark: #0F2D1F;
  --editorial-forest-light: #20573D;
  --editorial-sage: #537A65;
  --editorial-sage-light: #DCE7E0;
  --editorial-sage-tint: #EEF4F0;
  --editorial-ink: #11261B;
  --editorial-body: #3A4F43;
  --editorial-muted: #647B6F;
  --editorial-border: #E5EBE6;
  --editorial-gold: #B89358;
  --editorial-gold-tint: #F8F3EA;
  
  --font-editorial-serif: 'Playfair Display', Georgia, serif;
  --font-editorial-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-editorial-hand: 'Caveat', cursive, sans-serif;
}

/* ================= THEME TOKENS OVERRIDE ================= */
html.theme-islamic-emerald {
  --paper: var(--editorial-cream-bg) !important;
  --surface: #ffffff !important;
  --ink: var(--editorial-body) !important;
  --ink-soft: var(--editorial-ink) !important;
  --ink-faint: var(--editorial-muted) !important;
  --line: var(--editorial-border) !important;
  --clay: var(--editorial-forest) !important;
  --clay-deep: var(--editorial-forest-dark) !important;
  --clay-tint: var(--editorial-sage-tint) !important;
  --sage: var(--editorial-forest) !important;
  --sage-tint: var(--editorial-sage-tint) !important;
  
  background-color: var(--editorial-cream-bg) !important;
  color: var(--editorial-body) !important;
  font-family: var(--font-editorial-sans) !important;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.theme-islamic-emerald {
  background-color: var(--editorial-cream-bg) !important;
  font-family: var(--font-editorial-sans) !important;
  overflow: visible !important;
  min-height: 100vh;
}

#theme-islamic-root {
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Typography Helpers */
.theme-islamic-emerald .font-serif-editorial {
  font-family: var(--font-editorial-serif) !important;
  letter-spacing: -0.015em;
}

.theme-islamic-emerald .font-handwriting {
  font-family: var(--font-editorial-hand) !important;
}

/* ================= HEADER & NAV ================= */
.theme-islamic-emerald .editorial-nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: #384E41;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.theme-islamic-emerald .editorial-nav-link:hover {
  color: var(--editorial-forest);
}

.theme-islamic-emerald .editorial-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--editorial-forest);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 9999px;
}

.theme-islamic-emerald .editorial-nav-link:hover::after {
  width: 80%;
}

/* ================= BUTTONS ================= */
.theme-islamic-emerald .btn-editorial-primary,
body.theme-islamic-emerald .btn-primary {
  background-color: var(--editorial-forest) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.925rem !important;
  border: 1px solid transparent !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 4px 14px rgba(22, 62, 43, 0.18) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.theme-islamic-emerald .btn-editorial-primary:hover,
body.theme-islamic-emerald .btn-primary:hover:not(:disabled) {
  background-color: var(--editorial-forest-dark) !important;
  transform: translateY(-2px) scale(1.018) !important;
  box-shadow: 0 8px 24px rgba(22, 62, 43, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}

.theme-islamic-emerald .btn-editorial-primary:active,
body.theme-islamic-emerald .btn-primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.982) !important;
  box-shadow: 0 2px 6px rgba(22, 62, 43, 0.2) !important;
}

/* Luminous Highlight for Booking Action (Sentuhan Modern & Eye-catching) */
.theme-islamic-emerald .btn-editorial-highlight {
  background: linear-gradient(135deg, var(--editorial-forest) 0%, var(--editorial-forest-light) 100%) !important;
  box-shadow: 0 8px 24px -2px rgba(22, 62, 43, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}

.theme-islamic-emerald .btn-editorial-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.theme-islamic-emerald .btn-editorial-highlight:hover::before {
  transform: translateX(350%) skewX(-20deg);
}

.theme-islamic-emerald .btn-editorial-secondary {
  color: var(--editorial-forest);
  font-weight: 700;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  will-change: transform;
}

.theme-islamic-emerald .btn-editorial-secondary:hover {
  color: var(--editorial-forest-dark);
  background-color: rgba(22, 62, 43, 0.06);
  transform: translateY(-1.5px) scale(1.015);
}

.theme-islamic-emerald .btn-editorial-secondary:active {
  transform: translateY(0.5px) scale(0.985);
}

.theme-islamic-emerald .btn-editorial-white {
  background-color: #FFFFFF;
  color: var(--editorial-forest);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  will-change: transform, box-shadow;
}

.theme-islamic-emerald .btn-editorial-white:hover {
  background-color: #F8FAF7;
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.theme-islamic-emerald .btn-editorial-white:active {
  transform: translateY(1px) scale(0.982);
}

/* ================= HERO SEAMLESS & FULL BLEED PHOTO ================= */
.theme-islamic-emerald .hero-seamless-container {
  position: relative;
  width: 100%;
}

.theme-islamic-emerald .hero-seamless-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px -4px rgba(22, 62, 43, 0.12);
}

.theme-islamic-emerald .hero-desktop-bleed-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.theme-islamic-emerald .hero-fade-overlay {
  background: linear-gradient(to right, #FAF7F2 0%, rgba(250, 247, 242, 0.82) 12%, rgba(250, 247, 242, 0) 38%),
              linear-gradient(to bottom, transparent 82%, #FAF7F2 100%);
}

.theme-islamic-emerald .botanical-drift {
  animation: botanicalFloat 6s ease-in-out infinite alternate;
}

@keyframes botanicalFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(1deg); }
}

/* Floating Badges */
.theme-islamic-emerald .editorial-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background-color: rgba(83, 122, 101, 0.08);
  border: 1px solid rgba(83, 122, 101, 0.2);
  color: var(--editorial-forest);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-islamic-emerald .floating-photo-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--editorial-border);
  box-shadow: 0 10px 28px -4px rgba(22, 62, 43, 0.12);
  border-radius: 9999px;
  padding: 0.5rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================= EDITORIAL SECTIONS ================= */
.theme-islamic-emerald .editorial-card {
  background-color: #FFFFFF;
  border: 1px solid var(--editorial-border);
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px -2px rgba(22, 62, 43, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-islamic-emerald .editorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(22, 62, 43, 0.08);
  border-color: #D3E0D7;
}

/* ================= MINIMALIST FLOWING TIMELINE (PROSES PEMERIKSAAN) ================= */
.theme-islamic-emerald .flowing-timeline-container {
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .theme-islamic-emerald .flowing-timeline-track {
    position: absolute;
    top: 2rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, 
      rgba(22, 62, 43, 0.15) 0%, 
      rgba(32, 87, 61, 0.35) 50%, 
      rgba(22, 62, 43, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
}

.theme-islamic-emerald .flowing-step-node {
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-islamic-emerald .flowing-step-node:hover {
  transform: translateY(-3px);
}

.theme-islamic-emerald .flowing-step-num {
  font-family: var(--font-editorial-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--editorial-forest);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 0.5px solid rgba(22, 62, 43, 0.18);
  box-shadow: 0 4px 16px -2px rgba(22, 62, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-islamic-emerald .flowing-step-node:hover .flowing-step-num {
  background-color: var(--editorial-forest);
  color: #FFFFFF;
  border-color: var(--editorial-forest);
  box-shadow: 0 8px 24px -2px rgba(22, 62, 43, 0.22);
}

/* ================= 0.5px MINIMALIST HAIRLINES & AIRY LAYOUTS ================= */
.theme-islamic-emerald .hairline-b {
  border-bottom: 0.5px solid rgba(22, 62, 43, 0.1);
}

.theme-islamic-emerald .hairline-t {
  border-top: 0.5px solid rgba(22, 62, 43, 0.1);
}

.theme-islamic-emerald .hairline-y {
  border-top: 0.5px solid rgba(22, 62, 43, 0.1);
  border-bottom: 0.5px solid rgba(22, 62, 43, 0.1);
}

.theme-islamic-emerald .hairline-all {
  border: 0.5px solid rgba(22, 62, 43, 0.12);
}

.theme-islamic-emerald .editorial-panel-clean {
  background-color: #FFFFFF;
  border: 0.5px solid rgba(22, 62, 43, 0.1);
  border-radius: 1.75rem;
  box-shadow: 0 4px 20px -4px rgba(22, 62, 43, 0.04);
}

/* Schedule Clean Minimalist List */
.theme-islamic-emerald #editorial-schedule-rows li {
  border-bottom: 0.5px solid rgba(22, 62, 43, 0.07);
  transition: background-color 0.2s ease;
}

.theme-islamic-emerald #editorial-schedule-rows li:last-child {
  border-bottom: none;
}

/* FAQ Details Accordion */
.theme-islamic-emerald .editorial-faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--editorial-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
}

.theme-islamic-emerald .editorial-faq-item[open] {
  border-color: #C2D5C8;
  box-shadow: 0 6px 18px -3px rgba(22, 62, 43, 0.05);
}

.theme-islamic-emerald .editorial-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.theme-islamic-emerald .editorial-faq-item summary::-webkit-details-marker {
  display: none;
}

.theme-islamic-emerald .editorial-faq-item summary .faq-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--editorial-sage);
}

.theme-islamic-emerald .editorial-faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--editorial-forest);
}

/* ================= CLOSING CTA WAVE BANNER ================= */
.theme-islamic-emerald .editorial-closing-banner {
  background-color: var(--editorial-forest);
  background-image: radial-gradient(circle at 10% 20%, rgba(32, 87, 61, 0.6) 0%, transparent 50%),
                    radial-gradient(circle at 90% 80%, rgba(15, 45, 31, 0.8) 0%, transparent 50%);
  border-radius: 2.25rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .theme-islamic-emerald .editorial-closing-banner {
    border-radius: 1.5rem;
  }
}

/* ================= REVEAL & MOTION ================= */
.theme-islamic-emerald .reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-islamic-emerald .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Quote Fade Transition */
.theme-islamic-emerald .quote-fade {
  transition: opacity 0.4s ease;
}

.theme-islamic-emerald .quote-fade.is-out {
  opacity: 0;
}

/* ================= REVIEWS CAROUSEL ================= */
.theme-islamic-emerald .reviews-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.theme-islamic-emerald .reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.theme-islamic-emerald .review-slide {
  flex: 0 0 calc(100% - 1rem);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .theme-islamic-emerald .review-slide {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .theme-islamic-emerald .review-slide {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

/* Carousel Control Buttons */
.theme-islamic-emerald .carousel-arrow-btn {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid var(--editorial-border);
  color: var(--editorial-forest);
  display: none;
  align-items: center;
  justify-content: center;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(22, 62, 43, 0.1);
  cursor: pointer;
  z-index: 20;
}

@media (min-width: 640px) {
  .theme-islamic-emerald .carousel-arrow-btn {
    display: flex;
  }
}

.theme-islamic-emerald .carousel-arrow-btn:hover:not(:disabled) {
  background-color: var(--editorial-forest);
  color: #FFFFFF;
  border-color: var(--editorial-forest);
  transform: translateY(-50%) scale(1.06) !important;
  box-shadow: 0 8px 20px rgba(22, 62, 43, 0.22);
}

.theme-islamic-emerald .carousel-arrow-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96) !important;
}

.theme-islamic-emerald .carousel-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Reviews Carousel Drag & Smooth Cursor */
.theme-islamic-emerald .reviews-carousel-track {
  cursor: grab;
  user-select: none;
}

.theme-islamic-emerald .reviews-carousel-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

/* Dot Indicator */
.theme-islamic-emerald .carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #C8D8CE;
  transition: all 0.25s ease;
}

.theme-islamic-emerald .carousel-dot.is-active {
  width: 1.5rem;
  background-color: var(--editorial-forest);
}

/* ================= INTERACTIVE SCHEDULE CALENDAR ================= */
.theme-islamic-emerald .booking-routine-day-btn {
  border: 1px solid var(--editorial-border);
  background-color: #FFFFFF;
  border-radius: 0.875rem;
  padding: 0.65rem 0.25rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 4.25rem;
}

.theme-islamic-emerald .booking-routine-day-btn:hover {
  border-color: var(--editorial-forest);
  background-color: var(--editorial-sage-tint);
  transform: translateY(-1px);
}

.theme-islamic-emerald .booking-routine-day-btn.is-selected {
  background-color: var(--editorial-forest) !important;
  color: #FFFFFF !important;
  border-color: var(--editorial-forest) !important;
  box-shadow: 0 4px 14px rgba(22, 62, 43, 0.25);
  transform: translateY(-1px);
}

.theme-islamic-emerald .booking-routine-day-btn.is-selected .routine-badge-open {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

.theme-islamic-emerald .booking-routine-day-btn.is-selected .routine-badge-closed {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #F1F5F2 !important;
}

.theme-islamic-emerald .booking-routine-day-btn.is-selected .routine-day-today {
  color: #D3EADB !important;
}

.theme-islamic-emerald .booking-date-btn {
  border: 1px solid var(--editorial-border);
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-islamic-emerald .booking-date-btn:hover:not(:disabled) {
  border-color: var(--editorial-forest);
  background-color: var(--editorial-sage-tint);
}

.theme-islamic-emerald .booking-date-btn.is-selected {
  background-color: var(--editorial-forest) !important;
  color: #FFFFFF !important;
  border-color: var(--editorial-forest) !important;
}

.theme-islamic-emerald .booking-slot-pill {
  border: 1px solid var(--editorial-border);
  background-color: #FFFFFF;
  border-radius: 0.65rem;
  padding: 0.5rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2D4336;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-islamic-emerald .booking-slot-pill:hover:not(:disabled) {
  border-color: var(--editorial-forest);
  background-color: var(--editorial-sage-tint);
  color: var(--editorial-forest);
}

.theme-islamic-emerald .booking-slot-pill.is-selected {
  background-color: var(--editorial-forest) !important;
  color: #FFFFFF !important;
  border-color: var(--editorial-forest) !important;
}

/* ================= MOBILE NAV SLIDEOUT ================= */
.theme-islamic-emerald #mobile-nav-panel {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(15, 39, 26, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.theme-islamic-emerald #mobile-nav-panel.is-open {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.theme-islamic-emerald #mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background-color: var(--editorial-cream-bg);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.theme-islamic-emerald #mobile-nav-panel.is-open #mobile-nav-content {
  transform: translateX(0);
}
