/* صفحات داخلی — درباره ما، خدمات، ارتباط با ما */

body.inner-page-body {
  font-family: 'IRANSansWeb', sans-serif;
  background-color: #f2f0ec;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(180,160,130,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(160,140,110,0.06) 0%, transparent 50%);
  height: auto;
  min-height: 100vh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: #1a1a1a;
  padding: 1.5rem;
  margin: 0;
}

body.inner-page-body .site-frame,
body.inner-page-body .site-frame * {
  font-family: 'IRANSansWeb', sans-serif;
}

body.inner-page-body .site-frame {
  width: 100%;
  max-width: 1300px;
  height: auto;
  min-height: 92vh;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  flex-shrink: 0;
}
body.inner-page-body .main.inner-main {
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.page-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: 'IRANSansWeb', sans-serif;  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin-top: 0.3rem;
}

.page-body {
  font-size: 0.95rem;
  line-height: 2.1;
  color: #5c5c5c;
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body strong {
  color: #2b241c;
  font-weight: 700;
}

/* بلوک‌های محتوای پیش‌فرض */
.aco-page-intro {
  background: #fafaf8;
  border: 1px solid #e8e0d4;
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}

.aco-page-intro p {
  margin: 0;
  text-align: justify;
}

.aco-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.aco-info-card {
  background: #fff;
  border: 1px solid rgba(200, 185, 160, 0.35);
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.aco-info-card h3 {
  font-family: 'IRANSansWeb', sans-serif;  font-size: 1rem;
  font-weight: 700;
  color: #3a2e20;
  margin-bottom: 0.6rem;
}

.aco-info-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 2;
  text-align: justify;
}

.aco-highlight-block {
  background: linear-gradient(135deg, #f7f5f1 0%, #faf8f4 100%);
  border-right: 4px solid #c4af96;
  border-radius: 0 1.2rem 1.2rem 0;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
}

.aco-highlight-block h3 {
  font-family: 'IRANSansWeb', sans-serif;  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

.aco-highlight-block p {
  margin: 0;
  text-align: justify;
}

/* شبکه خدمات */
.aco-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.aco-service-item {
  background: #fff;
  border: 1px solid rgba(200, 185, 160, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.aco-service-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.aco-service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}

.aco-service-item h3 {
  font-family: 'IRANSansWeb', sans-serif;  font-size: 1rem;
  font-weight: 700;
  color: #3a2e20;
  margin-bottom: 0.5rem;
}

.aco-service-item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 2;
  text-align: justify;
}

/* کارت‌های تماس */
.aco-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.aco-contact-card {
  background: #fafaf8;
  border: 1px solid #e8e0d4;
  border-radius: 1.2rem;
  padding: 1.2rem;
  text-align: center;
}

.aco-contact-card-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.5rem;
}

.aco-contact-card h3 {
  font-family: 'IRANSansWeb', sans-serif;  font-size: 0.9rem;
  font-weight: 700;
  color: #3a2e20;
  margin-bottom: 0.4rem;
}

.aco-contact-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #5c5c5c;
  line-height: 1.8;
}

.contact-ltr {
  direction: ltr;
}

.aco-map-note {
  background: rgba(200, 180, 150, 0.12);
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
}

.aco-map-note p {
  margin: 0;
  font-size: 0.82rem;
  color: #6b5e4e;
  text-align: center;
}

.aco-contact-note {
  font-size: 0.82rem;
  color: #888;
  background: #f9f7f4;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  margin-top: 1rem;
}

/* لوگوی وردپرس */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo-link img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ویرایشگر بلوک */
.entry-content .wp-block-group,
.entry-content .wp-block-columns {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  body.inner-page-body {
    padding: 0;
    justify-content: center;
  }

  body.inner-page-body .site-frame {
    min-height: 100vh;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  body.inner-page-body .header .logo-group {
    display: flex;
  }

  .page-content {
    padding: 0 0.2rem;
  }

  .page-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-header {
    text-align: center;
  }

  .page-header .divider {
    margin: 0.5rem auto 0;
  }

  .aco-info-grid,
  .aco-services-grid,
  .aco-contact-cards {
    grid-template-columns: 1fr;
  }
}
