/* ═══════════════════════════════════════════════════════════
   SatyaKarm — service-detail.css
   Styles for: Details Modal (homepage) + Details Section (book.html)
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   HOMEPAGE — DETAILS DRAWER/MODAL
══════════════════════════════════════════════════════ */

/* Overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 0, 0.78);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.detail-overlay.on {
  opacity: 1;
  pointer-events: all;
}

/* Drawer Panel */
.detail-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  background: #FFF8F0;
  border-radius: 24px 24px 0 0;
  z-index: 9001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -20px 60px rgba(128, 0, 32, 0.25);
}
.detail-drawer.on {
  transform: translateX(-50%) translateY(0);
}

/* Drawer Handle */
.detail-drawer-handle {
  width: 44px;
  height: 5px;
  background: rgba(212, 160, 23, 0.35);
  border-radius: 3px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Drawer Header */
.detail-drawer-head {
  padding: 14px 20px 0;
  flex-shrink: 0;
}

/* Drawer Hero Image */
.detail-drawer-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 12px 16px 0;
  border-radius: 16px;
}
.detail-drawer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.detail-drawer-img .ddi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(9,3,0,.82));
  border-radius: 16px;
}
.detail-drawer-img .ddi-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FF6B00, #D4A017);
  color: white;
  font-size: .62rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.detail-drawer-img .ddi-bottom {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
}
.detail-drawer-img .ddi-name {
  font-family: 'Cinzel Decorative', cursive;
  color: #FFF8F0;
  font-size: .88rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.detail-drawer-img .ddi-meta {
  font-size: .7rem;
  color: rgba(255,248,240,.72);
}

/* Drawer Body (scrollable) */
.detail-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.detail-drawer-body::-webkit-scrollbar { width: 4px; }
.detail-drawer-body::-webkit-scrollbar-track { background: transparent; }
.detail-drawer-body::-webkit-scrollbar-thumb { background: rgba(212,160,23,.3); border-radius: 2px; }

/* Drawer Footer CTA */
.detail-drawer-footer {
  padding: 14px 16px;
  background: white;
  border-top: 1px solid rgba(212,160,23,.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(128,0,32,.08);
}
.detail-drawer-footer .ddf-price {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.35rem;
  color: #FF6B00;
  flex-shrink: 0;
  line-height: 1;
}
.detail-drawer-footer .ddf-price small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .55rem;
  color: #8B5E3C;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
}
.detail-book-btn {
  flex: 1;
  background: linear-gradient(135deg, #E8670A, #D4A017);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(232,103,10,.38);
  transition: all .22s;
}
.detail-book-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,103,10,.45); }
.detail-book-btn:active { transform: translateY(0); }

/* Close button */
.detail-close-btn {
  background: rgba(128,0,32,.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #800020;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .2s;
}
.detail-close-btn:hover { background: rgba(128,0,32,.15); }

/* Drawer title row */
.detail-drawer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════
   HOMEPAGE EVENT CARD — Details Button
══════════════════════════════════════════════════════ */
.ev-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.ev-details-btn {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(212,160,23,.35);
  background: white;
  color: #5C3317;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .22s;
}
.ev-details-btn:hover {
  border-color: #D4A017;
  background: #FFFAED;
}

/* Update existing ev-btn to match */
.ev-btn {
  flex: 1;
  background: linear-gradient(135deg, #E8670A, #D4A017);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(232,103,10,.32);
  transition: all .22s;
}
.ev-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,103,10,.42); }

/* ══════════════════════════════════════════════════════
   BOOK.HTML — DETAILS SECTION (Top of page)
══════════════════════════════════════════════════════ */
.ck-details-section {
  background: #FFF8F0;
  border-bottom: 1px solid rgba(212,160,23,.15);
  overflow: hidden;
}

/* Collapsible toggle */
.ck-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, rgba(212,160,23,.08), rgba(232,103,10,.05));
}
.ck-details-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-details-toggle-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FF6B00, #D4A017);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .75rem;
  flex-shrink: 0;
}
.ck-details-toggle-text {
  font-size: .82rem;
  font-weight: 700;
  color: #1A0A00;
}
.ck-details-toggle-sub {
  font-size: .68rem;
  color: #8B5E3C;
  margin-top: 1px;
}
.ck-details-toggle-arrow {
  color: #D4A017;
  font-size: .85rem;
  transition: transform .28s;
}
.ck-details-section.open .ck-details-toggle-arrow {
  transform: rotate(180deg);
}

/* Details body (collapsible) */
.ck-details-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.ck-details-section.open .ck-details-body {
  max-height: 2000px;
}
.ck-details-inner {
  padding: 0 16px 20px;
}

/* ══════════════════════════════════════════════════════
   SHARED — SERVICE DETAIL CONTENT
══════════════════════════════════════════════════════ */

/* Highlight badge */
.sd-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B00, #D4A017);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 14px 0 16px;
  letter-spacing: .3px;
}

/* Section blocks */
.sd-section {
  margin-bottom: 20px;
}
.sd-section-title {
  font-size: .72rem;
  font-weight: 800;
  color: #800020;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid rgba(212,160,23,.18);
}
.sd-section-title i { color: #D4A017; font-size: .75rem; }

/* Description */
.sd-description {
  font-size: .8rem;
  color: #3D1F00;
  line-height: 1.85;
  font-style: italic;
}

/* Benefits */
.sd-benefits-grid {
  display: grid;
  gap: 8px;
}
.sd-benefit-item {
  background: linear-gradient(135deg, #FFFAED, #FFF3D4);
  border: 1px solid rgba(212,160,23,.22);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .8rem;
  color: #3D1F00;
  font-weight: 500;
  line-height: 1.4;
}

/* Process */
.sd-process-list { display: grid; gap: 10px; }
.sd-process-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(212,160,23,.15);
}
.sd-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #800020, #B8001C);
  color: white;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sd-step-text { font-size: .78rem; color: #5C3317; line-height: 1.5; padding-top: 3px; }

/* Reviews */
.sd-reviews-grid { display: grid; gap: 11px; }
.sd-review-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(212,160,23,.18);
  box-shadow: 0 2px 10px rgba(128,0,32,.06);
}
.sd-review-stars { color: #D4A017; font-size: .82rem; margin-bottom: 7px; }
.sd-review-text {
  font-size: .77rem;
  color: #5C3317;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 10px;
}
.sd-review-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sd-review-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #D4A017);
  color: white;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sd-review-author strong { font-size: .75rem; color: #1A0A00; display: block; }
.sd-review-author span  { font-size: .68rem; color: #8B5E3C; }

/* FAQ */
.sd-faq-list { display: grid; gap: 8px; }
.sd-faq-item {
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(212,160,23,.18);
  overflow: hidden;
}
.sd-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: #1A0A00;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.4;
}
.sd-faq-icon {
  color: #D4A017;
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
}
.sd-faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: .76rem;
  color: #5C3317;
  line-height: 1.7;
  padding: 0 14px;
  transition: max-height .3s ease, padding .3s ease;
}
.sd-faq-a.open {
  max-height: 200px;
  padding: 0 14px 12px;
}

/* Trust bar */
.sd-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(212,160,23,.08), rgba(232,103,10,.05));
  border-radius: 12px;
  margin-top: 6px;
}
.sd-trust-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: #800020;
}
.sd-trust-bar i { color: #D4A017; font-size: .7rem; }

/* ══════════════════════════════════════════════════════
   BOOK.HTML — Image fix (ensure always shows)
══════════════════════════════════════════════════════ */
.sb-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.sb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sb-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(9,3,0,.75));
}

/* Fallback gradient when image fails */
.sb-img-fallback {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #800020, #3D0010, #1A0005);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-img-fallback .sif-om {
  font-size: 4rem;
  opacity: .35;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .sd-benefits-grid    { grid-template-columns: 1fr 1fr; }
  .sd-reviews-grid     { grid-template-columns: 1fr 1fr; }
  .detail-drawer-img   { height: 240px; }
}
@media (max-width: 400px) {
  .detail-drawer-img   { height: 170px; }
  .ck-details-toggle   { padding: 12px 14px; }
  .ddf-price           { font-size: 1.15rem; }
}