/* ================= Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #fff;
  color: #0f172a
}

:root {
  --brand: #1E40AF;
  /* آبی برند */
  --brand-red: #EF4444;
  /* قرمز CTA */
  --accent: #4338CA;
  /* ایندیگو */
  --muted: #F3F4F6;
  --border: #E5E7EB;
  --ink: #0F172A;
  --ink-soft: #475569;
  --whatsapp: #25D366;
  --radius: 20px;
  --container: 1200px;

  --elev-soft: 0 8px 24px rgba(2, 6, 23, .06);
  --elev-med: 0 12px 32px rgba(2, 6, 23, .08);
  --elev-hard: 0 20px 48px rgba(2, 6, 23, .12);
}

/* Container */
.wp-site-blocks {
  max-width: 100%
}

.is-layout-constrained {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px)
}

.section {
  padding-block: clamp(40px, 6vw, 72px)
}

.section__title {
  text-align: center;
  margin: 0 0 18px
}

/* Links + buttons */
a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  opacity: .92
}

.wp-block-button__link {
  border-radius: 999px;
  padding: .72rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(30, 64, 175, .15);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.02) saturate(1.03)
}

.has-brand-background-color {
  background: var(--brand) !important
}

.has-brand-red-background-color {
  background: var(--brand-red) !important
}

.has-whatsapp-background-color {
  background: var(--whatsapp) !important
}

.has-white-color {
  color: #fff !important
}

.btn-elev .wp-block-button__link {
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18)
}

/* ================= Header ================= */
.yw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  border-radius: 0 0 18px 18px;
}

.brand-mark .wp-block-site-title {
  color: var(--brand-red)
}

.yw-header .wp-block-navigation .wp-block-navigation-item__content {
  padding: .7rem .8rem;
  border-radius: 12px;
  transition: background .12s ease
}

.yw-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  background: var(--muted)
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: end right;
  padding: 56px 16px 26px;
  overflow: clip;
  border-bottom: 1px solid var(--border);
}

.hero--card {
  border-radius: 22px;
  margin-top: 8px;
  box-shadow: var(--elev-med)
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateZ(0);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .45) 45%, rgba(15, 23, 42, .80) 100%),
    url("/wp-content/themes/yiwulian/assets/img/hero.jpg") center/cover no-repeat;
  filter: saturate(1.02) contrast(1.02);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%
}

.hero__title {
  color: #fff;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25)
}

.hero__subtitle {
  color: #E8ECF6;
  font-size: clamp(14px, 1.2vw, 18px);
  margin: 0 0 16px
}

.hero__btns {
  gap: 10px;
  margin-bottom: 16px;
  justify-content: flex-end
}

/* چیپ‌های سریع */
.quick-chips {
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  color: #0b1220;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  transition: transform .12s ease, box-shadow .12s ease
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12)
}

.chip--light {
  background: #ffffff;
  color: #0b1220
}

/* ================= Services (Cards) ================= */
.services {
  --gap: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 12px auto 0
}

@media (max-width:980px) {
  .services {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {
  .services {
    grid-template-columns: 1fr
  }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--elev-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elev-med);
  border-color: #dbe3ff;
  background: #fffffffa
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 6px;
  background: #FFECEC;
  color: var(--brand-red);
  font-size: 20px
}

.service-card h4 {
  text-align: center;
  margin: 6px 0 6px
}

.service-card p {
  text-align: center;
  margin: 0;
  color: var(--ink-soft)
}

/* ================= Stats + Feature ================= */
.stats-wrap {
  padding-top: 16px
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #111827;
  color: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--elev-med)
}

.stats-band div {
  text-align: center
}

.stats-band strong {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.1
}

.stats-band span {
  opacity: .85
}

.feature-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--elev-soft);
  overflow: hidden
}

.feature-card__media {
  min-height: 140px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .2), rgba(15, 23, 42, .5)),
    url("https://yiwulian.org/wp-content/uploads/2025/11/hero.png") center/cover no-repeat;
}

.feature-card__body {
  padding: 16px
}

.feature-card__body h4 {
  margin: 0 0 6px
}

.link-more {
  font-weight: 700
}

/* ================= Testimonials ================= */
.testimonials {
  padding-top: 24px
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media (max-width:800px) {
  .testi-grid {
    grid-template-columns: 1fr
  }
}

.testi-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--elev-soft)
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5ff;
  color: #1E40AF
}

/* ================= Logos ================= */
.logos-strip {
  padding: 24px 0
}

.logos {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  filter: grayscale(1) opacity(.7)
}

.logos span {
  font-weight: 800;
  font-size: 22px
}

/* ================= Bottom CTA ================= */
.cta-bottom {
  background: #ef4444;
  color: #fff;
  padding: 14px 0;
  margin-top: 24px
}

.cta-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px)
}

.cta-actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.chip--light {
  background: #fff;
  color: #111
}

/* ================= Footer ================= */
.yw-footer {
  background: #f7f7f7;
  border-top: 1px solid var(--border)
}

.yw-footer .cols {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center
}

@media (max-width:640px) {
  .yw-footer .cols {
    grid-template-columns: 1fr
  }
}