@font-face {
  font-family: "IRANYekanX";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yekan/woff2/IRANYekanX-Regular.woff2") format("woff2"),
       url("../fonts/yekan/woff/IRANYekanX-Regular.woff") format("woff");
}

@font-face {
  font-family: "IRANYekanX";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/yekan/woff2/IRANYekanX-Bold.woff2") format("woff2"),
       url("../fonts/yekan/woff/IRANYekanX-Bold.woff") format("woff");
}

:root {
  --font-primary: "IRANYekanX", Tahoma, "Segoe UI", Arial, sans-serif;
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-primary);
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: var(--font-primary);
}

a { color: inherit; text-decoration: none; }
p { margin-top: 0; color: var(--muted); }
img, svg { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .75);
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 0;
  padding-block: 2px;
}

.brand-logo {
  display: block;
  width: 136px;
  height: 74px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar {
  min-height: 76px;
}

.nav-link {
  color: #334155;
  font-weight: 600;
  padding-inline: 14px !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 118, 110, .22);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 118, 110, .28);
}

.btn-outline {
  color: var(--brand);
  border-color: rgba(15, 118, 110, .25);
  background: #fff;
}

.btn-outline:hover {
  background: #ecfdf5;
  color: var(--brand);
}

.section-pad {
  padding: 92px 0;
}

.section-pad.compact {
  padding-top: 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 184, 166, .18), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(15, 118, 110, .12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 72%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 420px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .12), transparent);
  transform: rotate(-3deg);
  pointer-events: none;
}

.eyebrow,
.section-title span {
  display: inline-flex;
  color: var(--brand);
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 16px;
}

h1, h2, h3 {
  letter-spacing: -.02em;
  line-height: 1.45;
  margin-top: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 4vw, 4.35rem);
  max-width: 790px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.7rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  max-width: 690px;
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-row > div {
  min-width: 128px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.trust-row span {
  font-size: .86rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(135deg, rgba(15,118,110,.2), rgba(20,184,166,.06));
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.call-panel {
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dbeafe;
  border-radius: 26px;
  padding: 22px;
  backdrop-filter: blur(12px);
}

.call-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 20px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34,197,94,.12);
}

.customer-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
}

.customer-box small {
  display: block;
  color: var(--muted);
  font-size: .83rem;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}

.flow div {
  flex: 1;
  text-align: center;
  border: 1px solid #99f6e4;
  background: #ecfdf5;
  border-radius: 16px;
  padding: 10px 8px;
  font-weight: 800;
  color: #115e59;
  font-size: .88rem;
}

.flow span {
  color: var(--brand);
  font-weight: 900;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-right: 26px;
  margin-top: 10px;
  color: #475569;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

.section-title {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 42px;
}

.service-card,
.solution-item,
.timeline-item,
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(15, 23, 42, .05);
}

.service-card {
  height: 100%;
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, .22);
  box-shadow: var(--shadow);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ccfbf1;
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 18px;
}

.muted {
  background: var(--soft);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solution-item {
  padding: 22px;
}

.solution-item strong,
.solution-item span {
  display: block;
}

.solution-item strong {
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.solution-item span {
  color: var(--muted);
  font-size: .94rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.timeline-item {
  padding: 24px;
  position: relative;
}

.timeline-item b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #0f766e;
  color: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 0 22px;
  margin-bottom: 12px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 18px 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  content: "+";
  float: left;
  color: var(--brand);
  font-weight: 900;
}

.faq-list details[open] summary:after {
  content: "−";
}

.faq-list p {
  padding-bottom: 18px;
  margin-bottom: 0;
}

.contact-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(20,184,166,.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 28px;
  align-items: start;
  background: #0f172a;
  color: #fff;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.contact-box h2,
.contact-box p {
  color: #fff;
}

.contact-box p {
  opacity: .78;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
}

.contact-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .14);
  background: #fff;
}

.contact-form small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.contact-form-cf7 .wpcf7 {
  margin: 0;
}

.contact-form-cf7 .wpcf7-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-form-cf7 .wpcf7 p {
  margin: 0;
  color: var(--ink);
}

.contact-form-cf7 .wpcf7 label {
  display: block;
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-form-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 7px;
}

.contact-form-cf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(15, 118, 110, .22);
}

.contact-form-cf7 .wpcf7-submit:hover,
.contact-form-cf7 .wpcf7-submit:focus {
  box-shadow: 0 18px 42px rgba(15, 118, 110, .28);
}

.contact-form-cf7 .wpcf7-spinner {
  margin: 0 10px;
}

.contact-form-cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #dc2626;
  font-size: .84rem;
}

.contact-form-cf7 .wpcf7-response-output {
  margin: 4px 0 0;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: .92rem;
}

.contact-form-notice {
  border: 1px dashed rgba(15, 118, 110, .35);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.contact-form-notice strong {
  display: block;
  margin-bottom: 6px;
}

.contact-form-notice p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form-notice code {
  color: var(--brand);
}

.site-footer {
  padding: 38px 0;
  background: #020617;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: .94rem;
}

.site-footer span {
  display: block;
  font-weight: 800;
}

.content-page {
  max-width: 860px;
  margin: 0 auto;
}

.content-page h1 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
}

.content-page .entry-content {
  color: var(--muted);
  font-size: 1.05rem;
}

.content-page .entry-content > *:last-child {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 22px;
}

.recent-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.recent-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recent-post-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}

.recent-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.recent-post-body h3 {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  font-weight: 900;
}

.recent-post-body .entry-summary {
  flex: 1 1 auto;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-weight: 900;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-card-no-media {
  grid-template-columns: 1fr;
}

.post-card-media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .86rem;
}

.content-page > .entry-meta {
  margin: -10px 0 22px;
}

.entry-summary p {
  margin-bottom: 12px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.search-panel {
  max-width: 720px;
  margin: 0 auto 28px;
}

.search-panel .search-form {
  display: flex;
  gap: 10px;
}

.search-panel label {
  flex: 1 1 auto;
  margin: 0;
}

.search-panel .search-field {
  margin-top: 0;
}

.search-panel .search-submit {
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.pagination {
  margin-top: 34px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.page-numbers.current {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
    width: 100%;
    padding: 16px 0 20px;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    padding: 12px 0;
  }

  .nav-link {
    padding: 10px 0 !important;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .recent-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .section-pad {
    padding: 64px 0;
  }

  .brand-logo {
    width: 116px;
    height: 63px;
  }

  .solution-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
  }

  .flow div {
    width: 100%;
  }

  .flow span {
    transform: rotate(90deg);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row > div {
    flex: 1 1 100%;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .search-panel .search-form {
    flex-direction: column;
  }

  .search-panel .search-submit {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}
