:root {
  --forest: #13241c;
  --forest-mid: #1d3a2d;
  --leaf: #3f7052;
  --moss: #6d8f6a;
  --gold: #c4a35a;
  --gold-soft: #e8d5a3;
  --cream: #f4efe4;
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --ink: #1b1714;
  --muted: #6a6359;
  --line: #e3d9c6;
  --terracotta: #a24d36;
  --shadow: 0 18px 50px rgba(19, 36, 28, 0.08);
  --radius: 18px;
  --max: 1200px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Iran Sans", Tahoma, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  background: var(--gold);
  color: var(--forest);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 217, 198, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 1.15rem;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  position: relative;
}

.nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after,
.footer-links a:hover::after {
  width: 100%;
}

.nav a[aria-current="page"] {
  color: var(--leaf);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 22px;
  border-radius: 999px;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.btn-gold:hover,
.btn-dark:hover,
.btn-line:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--forest);
  color: var(--ivory);
}

.btn-line {
  border-color: var(--gold);
  color: var(--forest);
  background: transparent;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: var(--ivory);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 36, 28, 0.15), rgba(19, 36, 28, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 70px;
  max-width: 760px;
}

.eyebrow {
  color: var(--gold-soft);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero p,
.lead {
  font-size: 1.08rem;
  max-width: 640px;
  color: rgba(251, 247, 239, 0.88);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--forest);
  color: var(--ivory);
}

.trust-item {
  padding: 28px 20px;
  border-left: 1px solid rgba(232, 213, 163, 0.12);
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--gold-soft);
  font-size: 1.4rem;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2,
.block-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 8px;
  line-height: 1.3;
}

.muted {
  color: var(--muted);
}

.grid-3,
.grid-4,
.product-grid,
.blog-grid,
.related-grid {
  display: grid;
  gap: 22px;
}

.grid-3,
.product-grid,
.blog-grid,
.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.product-card,
.blog-card,
.feature-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img,
.blog-card img,
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img,
.blog-card:hover img {
  transform: scale(1.04);
}

.card-body,
.product-card .meta,
.blog-card .meta {
  padding: 20px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--leaf);
  background: rgba(63, 112, 82, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.price {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-card h3,
.blog-card h3,
.feature-card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}

.feature-card,
.info-card {
  padding: 26px;
}

.quote {
  background: var(--forest);
  color: var(--ivory);
  padding: 56px 0;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.7;
  max-width: 860px;
}

.page-hero {
  background: var(--forest);
  color: var(--ivory);
  padding: 72px 0 56px;
}

.page-hero p {
  color: rgba(251, 247, 239, 0.82);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: var(--gold-soft);
}

.breadcrumb a {
  color: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn,
.search-box input {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.search-box {
  margin-right: auto;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
}

.gallery-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.is-active {
  border-color: var(--gold);
}

.specs,
.faq-item,
.form-card,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.specs li,
.prose li {
  margin-bottom: 8px;
}

.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  line-height: 1.45;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item button {
  width: 100%;
  text-align: right;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
}

.faq-item.open p {
  display: block;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 12px 14px;
  border-radius: 12px;
}

.form-success {
  display: none;
  background: rgba(63, 112, 82, 0.12);
  color: var(--leaf);
  padding: 12px 14px;
  border-radius: 12px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 20px;
}

.site-footer {
  background: var(--forest);
  color: rgba(251, 247, 239, 0.86);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  position: relative;
  width: fit-content;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 213, 163, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 70;
  box-shadow: var(--shadow);
}

.related {
  margin-top: 70px;
}

::selection {
  background: var(--gold-soft);
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.logo-mark {
  font-family: "Vazirmatn", sans-serif;
  background: var(--forest);
  color: var(--gold-soft);
}

.product-card,
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(19, 36, 28, 0.12);
}

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 32px 36px;
}

.prose a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero .breadcrumb a:hover,
.hero-actions .btn-line:hover {
  color: var(--gold-soft);
}

.contact-card p,
.specs {
  margin: 0;
}

.specs {
  list-style: none;
  padding: 18px 20px;
  margin: 20px 0;
}

.header-cta .btn {
  white-space: nowrap;
}

time {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .nav,
  .header-cta .btn {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--ivory);
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .trust-bar,
  .grid-3,
  .grid-4,
  .product-grid,
  .blog-grid,
  .related-grid,
  .split,
  .product-detail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split img,
  .gallery-main {
    height: 320px;
  }

  .section-head,
  .footer-bottom,
  .header-inner {
    flex-direction: column;
    align-items: start;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .product-grid,
  .blog-grid,
  .related-grid,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
