@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --paper: #ffffff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --line: #e6e9ee;
  --brand: #c8102e;
  --brand-dark: #9e0c24;
  --brand-fg: #ffffff;
  --sand: #f0f2f5;
  --topbar: #1a1d23;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26,29,35,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, .btn { cursor: pointer; font-family: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.35; margin: 0 0 .6rem; }

.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Top bar — مثل سولارنیرو */
.topbar {
  background: var(--topbar);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
}
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; min-height: 40px; padding: .4rem 0;
}
.topbar a { color: inherit; }
.topbar-right, .topbar-left { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.topbar strong { color: #fff; font-weight: 500; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.05rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.cart-count {
  position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.primary-nav .menu {
  display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.primary-nav .menu a {
  display: block; padding: .45rem .8rem; border-radius: 8px; font-size: .9rem; color: var(--muted); font-weight: 500;
}
.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item a { background: var(--sand); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.2rem; border-radius: 8px; border: 0;
  background: var(--brand); color: var(--brand-fg); font-weight: 600; font-size: .9rem;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.btn-outline {
  background: transparent; color: var(--brand); border: 1px solid var(--brand);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 1rem; font-size: .85rem; }

/* Hero */
.hero {
  position: relative; min-height: 58vh; display: flex; align-items: center;
  color: #fff; background: #1a1d23 center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,29,35,.88) 0%, rgba(26,29,35,.45) 55%, rgba(200,16,46,.25) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 4.5rem 0; max-width: 640px; }
.hero .eyebrow { font-size: .9rem; opacity: .85; margin-bottom: .75rem; }
.hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.hero p { font-size: 1.02rem; opacity: .9; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.section-head p { color: var(--muted); margin: .4rem 0 0; max-width: 40rem; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.kicker { color: var(--brand); font-weight: 600; font-size: .85rem; margin: 0 0 .35rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .section-head p { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.card .pad { padding: 1.25rem 1.2rem 1.4rem; }
.card h3 { font-size: 1.05rem; }
.card-link { display: block; height: 100%; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,29,35,.12); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #fde8ec;
  color: var(--brand); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .9rem;
}
.card img.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; color: var(--brand);
  background: #fde8ec; padding: .2rem .55rem; border-radius: 6px; margin-bottom: .5rem;
}

.why-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.why-item .num {
  flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

.domain-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 160px;
  display: flex; align-items: end; color: #fff; background: #333 center/cover no-repeat;
}
.domain-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,29,35,.85), rgba(26,29,35,.2));
}
.domain-card span { position: relative; z-index: 1; padding: 1.1rem; font-weight: 600; font-size: .95rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.stats strong { display: block; font-size: 1.9rem; color: var(--brand); font-weight: 700; }
.stats p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.section-dark .stats p { color: rgba(255,255,255,.65); }
.section-dark .stats strong { color: #fff; }

.cta-box {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 2.5rem 1.75rem; text-align: center;
}
.cta-box .btn { background: #fff; color: var(--brand); margin-top: 1rem; }

/* Footer */
.site-footer { background: #12151a; color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding: 3rem 0 2rem;
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .9rem; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; text-align: center; font-size: .8rem; opacity: .55;
}

.entry { max-width: 720px; }
.form-card { padding: 1.4rem; }
.form-card label { display: block; font-size: .9rem; margin-bottom: .9rem; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; margin-top: .35rem; min-height: 46px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); padding: 0 .85rem; font-family: inherit; font-size: 1rem;
}
.form-card textarea { min-height: 110px; padding: .75rem .85rem; }
.notice { padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.list { margin: .8rem 0 0; padding: 0 1.1rem 0 0; color: var(--muted); }
.list li { margin-bottom: .35rem; }

/* WooCommerce light polish */
.woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  list-style: none; padding: 0; margin: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 0 0 1rem !important; box-shadow: var(--shadow);
}
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0 0 .75rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem; padding: 0 1rem; }
.woocommerce ul.products li.product .price { display: block; padding: 0 1rem .5rem; font-weight: 700; color: var(--brand); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--brand) !important; color: #fff !important; border-radius: 8px !important; border: 0 !important;
}

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block; position: absolute; top: 72px; right: 0; left: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 1rem 1rem;
  }
  .primary-nav.is-open .menu { flex-direction: column; }
  .primary-nav.is-open .menu a { padding: .7rem .85rem; color: var(--ink); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .btn-consult { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .footer-grid, .stats, .grid-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .footer-grid, .stats, .grid-6, .woocommerce ul.products { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
  .hero { min-height: 70vh; }
}
