/*
 * footer-cafedentist.css
 * مسیر: wp-content/themes/woodmart-child/assets/css/footer-cafedentist.css
 * ─────────────────────────────────────────────────────────
 * توجه: متغیرهای رنگ را در :root قالب child خود تعریف کنید
 * یا همین بلوک :root را در ابتدای style.css چایلد اضافه کنید.
 * ─────────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════
   ریست تداخل با grid سیستم وودمارت
   مشکل: --wd-col-lg:12 روی wrapper فوتر
   باعث می‌شد فوتر فقط 1/12 عرض بگیرد.
══════════════════════════════════════════ */

/* ریست متغیر grid وودمارت روی فوتر */
.cd-footer,
.cd-footer * {
    --wd-col-lg: unset;
    --wd-col-md: unset;
    --wd-col-sm: unset;
}

/* عرض کامل برای خود فوتر */
.cd-footer {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

:root {
  --cd-primary:        #4fc3e8;
  --cd-primary-dark:   #1a7f84;
  --cd-secondary:      #7b68aa;
  --cd-tertiary:       #7aaa5a;
  --cd-accent:         #29adb2;
  --cd-dark:           #1a2b35;
  --cd-gray-light:     #dce8ec;
  --cd-white:          #ffffff;
}

/* ══════════════════════════════════════════
   پایه فوتر
══════════════════════════════════════════ */
.cd-footer {
  background: var(--cd-dark);
  color: var(--cd-gray-light);
  position: relative;
  overflow: hidden;
}

/* خط رنگی تزئینی بالا و پایین */
.cd-footer__accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--cd-secondary), var(--cd-accent), var(--cd-tertiary));
}

/* موج SVG */
.cd-footer__wave {
  width: 100%;
  line-height: 0;
  display: block;
}
.cd-footer__wave svg {
  display: block;
  width: 100%;
}

/* کانتینر */
.cd-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════
   بخش بالایی – برند + ستون‌های لینک
══════════════════════════════════════════ */
.cd-footer__top {
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cd-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

/* لوگو */
.cd-footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cd-footer__brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-footer__brand-logo .logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.cd-footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--cd-white);
  letter-spacing: -0.3px;
}

.cd-footer__brand-name span {
  color: var(--cd-primary);
}

/* توضیح برند */
.cd-footer__brand-desc {
  font-size: 13.5px;
  line-height: 2;
  color: #8aaab5;
  max-width: 300px;
}

/* نشان‌های اعتماد */
.cd-footer__trust {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cd-footer__trust-badge {
  background: rgba(79,195,232,0.1);
  border: 1px solid rgba(79,195,232,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--cd-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cd-footer__trust-badge svg {
  width: 13px;
  height: 13px;
  fill: var(--cd-primary);
}

/* عنوان ستون‌ها */
.cd-footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cd-accent);
  display: inline-block;
}

/* لیست لینک‌ها */
.cd-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.cd-footer__links a {
  text-decoration: none;
  font-size: 13px;
  color: #8aaab5;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s, gap 0.2s;
}

.cd-footer__links a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--cd-accent);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.cd-footer__links a:hover {
  color: var(--cd-primary);
  gap: 10px;
}

.cd-footer__links a:hover::before {
  background: var(--cd-primary);
  transform: scale(1.4);
}

/* ══════════════════════════════════════════
   بخش میانی – تماس + خبرنامه
══════════════════════════════════════════ */
.cd-footer__mid {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── بنر پیگیری سفارش ── */
.cd-footer__order-banner {
  background: linear-gradient(135deg, rgba(41,173,178,0.12), rgba(123,104,170,0.1));
  border: 1px solid rgba(41,173,178,0.22);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cd-footer__order-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(41,173,178,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-footer__order-banner-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--cd-accent);
}

.cd-footer__order-banner-text {
  flex: 1;
  min-width: 180px;
}

.cd-footer__order-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cd-white);
  margin-bottom: 3px;
}

.cd-footer__order-banner-text span {
  font-size: 12px;
  color: #7a9caa;
}

/* کارت‌های کانال تماس */
.cd-footer__order-channels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cd-footer__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 148px;
}

.cd-footer__channel:hover {
  transform: translateY(-2px);
}

/* تلفن */
.cd-footer__channel--phone { border-color: rgba(79,195,232,0.3); }
.cd-footer__channel--phone:hover { background: rgba(79,195,232,0.12); border-color: var(--cd-primary); }

/* بله */
.cd-footer__channel--bale { border-color: rgba(122,170,90,0.3); }
.cd-footer__channel--bale:hover { background: rgba(122,170,90,0.1); border-color: var(--cd-tertiary); }

/* روبیکا */
.cd-footer__channel--rubika { border-color: rgba(123,104,170,0.3); }
.cd-footer__channel--rubika:hover { background: rgba(123,104,170,0.1); border-color: var(--cd-secondary); }

.cd-footer__channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-footer__channel-icon svg { width: 18px; height: 18px; }

.cd-footer__channel--phone  .cd-footer__channel-icon { background: rgba(79,195,232,0.15); }
.cd-footer__channel--phone  .cd-footer__channel-icon svg { fill: var(--cd-primary); }

.cd-footer__channel--bale   .cd-footer__channel-icon { background: rgba(122,170,90,0.15); }
.cd-footer__channel--bale   .cd-footer__channel-icon svg { fill: var(--cd-tertiary); }

.cd-footer__channel--rubika .cd-footer__channel-icon { background: rgba(123,104,170,0.15); }
.cd-footer__channel--rubika .cd-footer__channel-icon svg { fill: var(--cd-secondary); }

.cd-footer__channel-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cd-footer__channel-label {
  font-size: 10.5px;
  color: #6a8e9a;
}

.cd-footer__channel-number {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cd-white);
  direction: ltr;
  text-align: right;
  letter-spacing: 0.3px;
}

/* ── ردیف تماس ── */
.cd-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cd-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-footer__contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(41,173,178,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-footer__contact-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--cd-accent);
}

.cd-footer__contact-label {
  font-size: 11px;
  color: #6a8e9a;
  margin-bottom: 2px;
}

.cd-footer__contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-white);
  direction: ltr;
  text-align: right;
}

/* ── شبکه‌های اجتماعی ── */
.cd-footer__social {
  display: flex;
  gap: 10px;
}

.cd-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cd-footer__social-link:hover {
  background: var(--cd-accent);
  border-color: var(--cd-accent);
  transform: translateY(-3px);
}

.cd-footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: #8aaab5;
  transition: fill 0.2s;
}

.cd-footer__social-link:hover svg {
  fill: #fff;
}

/* ── خبرنامه ── */
.cd-footer__newsletter {
  background: rgba(79,195,232,0.07);
  border: 1px solid rgba(79,195,232,0.15);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cd-footer__newsletter-text {
  flex: 1;
  min-width: 200px;
}

.cd-footer__newsletter-text strong {
  display: block;
  font-size: 14px;
  color: var(--cd-white);
  margin-bottom: 4px;
}

.cd-footer__newsletter-text span {
  font-size: 12.5px;
  color: #7a9caa;
}

.cd-footer__newsletter-form {
  display: flex;
  gap: 8px;
}

.cd-footer__newsletter-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--cd-white);
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}

.cd-footer__newsletter-input::placeholder { color: #5a7a88; }
.cd-footer__newsletter-input:focus { border-color: var(--cd-accent); }

.cd-footer__newsletter-btn {
  background: linear-gradient(135deg, var(--cd-accent), var(--cd-primary-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.cd-footer__newsletter-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   نوار پایین
══════════════════════════════════════════ */
.cd-footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-footer__copyright {
  font-size: 12.5px;
  color: #5a7a88;
}

.cd-footer__copyright a {
  color: var(--cd-accent);
  text-decoration: none;
}

.cd-footer__bottom-links {
  display: flex;
  gap: 20px;
}

.cd-footer__bottom-links a {
  font-size: 12px;
  color: #5a7a88;
  text-decoration: none;
  transition: color 0.2s;
}

.cd-footer__bottom-links a:hover { color: var(--cd-primary); }

/* ══════════════════════════════════════════
   Responsive
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .cd-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .cd-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cd-footer__order-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cd-footer__order-channels {
    width: 100%;
  }

  .cd-footer__channel {
    flex: 1;
    min-width: 130px;
  }

  .cd-footer__contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cd-footer__newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .cd-footer__newsletter-form {
    width: 100%;
    flex-direction: column;
  }

  .cd-footer__newsletter-input {
    width: 100%;
  }

  .cd-footer__bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cd-footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}