/*
 * privacy-style.css — صفحه حریم خصوصی کافه دنتیست
 * @package cafedentist-child
 * وابسته به: style.css (child), woodmart-style
 */

/* ════════════════════════════════
   WoodMart Grid Fix
   حل مشکل --wd-col-lg inline style
   (همان fix تأییدشده در صفحه قوانین)
════════════════════════════════ */
#main-content.wd-content-layout,
#main-content.wd-content-layout.wd-grid-g,
#main-content.wd-content-layout.wd-sidebar-hidden-md-sm {
    display: block !important;
    --wd-gap-lg: 0px !important;
    --wd-gap-sm: 0px !important;
}

#main-content.wd-content-layout > .cd-privacy-page {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: unset !important;
}

/* ── متغیرهای محلی ── */
:root {
  --cd-prv-max:       900px;
  --cd-prv-gap:       2rem;
  --cd-prv-radius:    16px;
  --cd-prv-shadow:    0 2px 16px rgba(79,195,232,.10);
  --cd-prv-icon-size: 2.6rem;
}

/* ════════════════════════════════
   Hero
════════════════════════════════ */
.cd-prv-hero {
  position: relative;
  background: linear-gradient(135deg, #29adb2 0%, #4fc3e8 60%, #5ecfd3 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
  direction: rtl;
}

.cd-prv-hero__shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: #f5fbfc;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.cd-prv-hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15);
  padding: .3rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.cd-prv-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.cd-prv-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ════════════════════════════════
   Quick Nav
════════════════════════════════ */
.cd-prv-nav {
  background: #fff;
  border-bottom: 1px solid #dce8ec;
  position: sticky;
  top: 0;
  z-index: 100;
  direction: rtl;
}

.cd-prv-nav__inner {
  max-width: var(--cd-prv-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cd-prv-nav__inner::-webkit-scrollbar { display: none; }

.cd-prv-nav__item {
  font-size: .82rem;
  font-weight: 600;
  color: #5a7280;
  text-decoration: none;
  padding: .85rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.cd-prv-nav__item:hover {
  color: #29adb2;
  border-bottom-color: #29adb2;
}

/* ════════════════════════════════
   Content Wrap
════════════════════════════════ */
.cd-prv-wrap {
  max-width: var(--cd-prv-max);
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--cd-prv-gap);
  direction: rtl;
}

/* ════════════════════════════════
   Cards
════════════════════════════════ */
.cd-prv-card {
  background: #fff;
  border-radius: var(--cd-prv-radius);
  box-shadow: var(--cd-prv-shadow);
  border: 1px solid #e8f8fb;
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  scroll-margin-top: 4rem;
  transition: box-shadow .25s;
}
.cd-prv-card:hover {
  box-shadow: 0 6px 28px rgba(79,195,232,.16);
}

/* آیکون */
.cd-prv-card__icon {
  flex-shrink: 0;
  width: var(--cd-prv-icon-size);
  height: var(--cd-prv-icon-size);
  background: linear-gradient(135deg, #e8f8fb 0%, #d0f0f4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #29adb2;
}
.cd-prv-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #29adb2;
}

/* Body */
.cd-prv-card__body {
  flex: 1;
}

.cd-prv-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2b35;
  margin: 0 0 .75rem;
}

.cd-prv-card__text {
  font-size: .95rem;
  color: #5a7280;
  line-height: 1.9;
  margin: 0 0 .5rem;
}

/* لیست */
.cd-prv-list {
  margin: .5rem 0 0 0;
  padding-right: 1.4rem;
  list-style: none;
}
.cd-prv-list li {
  position: relative;
  font-size: .92rem;
  color: #5a7280;
  line-height: 1.85;
  padding-right: 1.1rem;
}
.cd-prv-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  background: #4fc3e8;
  border-radius: 50%;
}

/* ── کارت تماس ── */
.cd-prv-card--contact {
  background: linear-gradient(135deg, #f5fbfc 0%, #e8f8fb 100%);
  border-color: #b8e8f0;
}

.cd-prv-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 1rem 0;
  justify-content: flex-end;
}

.cd-prv-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 600;
  color: #1a7f84;
  text-decoration: none;
  transition: color .2s;
}
.cd-prv-contact-item:hover { color: #29adb2; }
.cd-prv-contact-item__icon { font-size: 1.1rem; }
.cd-prv-phone {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.cd-prv-cta-btn {
  display: inline-block;
  margin-top: .5rem;
  background: linear-gradient(135deg, #29adb2, #4fc3e8);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: .65rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.cd-prv-cta-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  color: #fff;
}

/* ════════════════════════════════
   Responsive — Mobile
════════════════════════════════ */
@media (max-width: 600px) {
  .cd-prv-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .cd-prv-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .cd-prv-contact-row {
    flex-direction: column;
  }
}

/* ════════════════════════════════
   Reduced Motion
════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .cd-prv-card,
  .cd-prv-cta-btn { transition: none; }
}