/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

:root {
  --green-900: #0c3e32;
  --green-700: #0b5846;
  --green-600: #0e7a61;
  --green-600a: rgba(14, 122, 97, 0.75);
  --green-200a: rgba(14, 122, 97, 0.15);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --card-border: 1px solid rgba(0, 0, 0, 0.06);
}

@font-face {
  font-family: "yekan";
  src: url(yekan.woff2);
}

body {
  font-family: "yekan", Tahoma, Arial, sans-serif;
  color: var(--green-900);
  background: #f7faf9;
  line-height: 1.9;
  direction: rtl;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4vw;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  flex: 0 0 auto;
  width: clamp(120px, 14vw, 180px);
  order: 1;
}

.logo img {
  width: 100%;
}

#nav-toggle {
  display: none;
}

.burger {
  display: none;
  order: 0;
  width: 42px;
  height: 36px;
  border: 1px solid var(--green-600);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-600);
  position: relative;
}

.burger span::before {
  position: absolute;
  top: -6px;
}

.burger span::after {
  position: absolute;
  top: 6px;
}

.headbar {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 2.5vw, 22px);
  transition: opacity 0.2s, transform 0.2s;
}

.headbar a {
  padding: 10px 10px;
  font-size: clamp(14px, 1.7vw, 20px);
  border-bottom: 3px solid transparent;
  color: var(--green-900);
  transition: color 0.2s, border-color 0.2s;
}

.headbar a:hover,
.headbar a.active {
  border-bottom-color: var(--green-600);
  color: var(--green-600);
}

.socialmedia {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.socialmedia a {
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
}

.socialmedia img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(250px, 42vw, 380px);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.page-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.8vw, 52px);
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.page-title p {
  margin: 0;
  font-size: clamp(14px, 2vw, 22px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

/* ---------- Main ---------- */
main {
  width: min(1200px, 92%);
  margin: 28px auto 40px;
}

.intro-card,
.trust-section,
.contact-cta {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: var(--card-border);
  margin-bottom: 24px;
  padding: 28px 24px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 30px);
  color: var(--green-700);
}

.line {
  flex: 1;
  max-width: 140px;
  height: 2px;
  background: var(--green-200a);
}

.intro-card p,
.contact-cta p,
.trust-item p,
.product-content p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 2;
  color: var(--green-700);
  text-align: justify;
  margin: 0 0 16px;
}

.intro-actions,
.cta-buttons,
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--green-600);
  background: var(--green-200a);
  color: var(--green-600);
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
}

/* ---------- Product Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: clamp(18px, 2vw, 26px);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.product-tags span {
  background: var(--green-200a);
  color: var(--green-700);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.trust-item {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: var(--card-border);
}

.trust-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--green-700);
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  text-align: center;
}

.contact-cta h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: clamp(20px, 2.5vw, 30px);
}

.contact-cta p {
  text-align: center;
  margin-bottom: 18px;
}

.contact-cta .cta-buttons {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  background: #0b4f41;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 16px;
  padding: 24px 4vw;
  font-size: 0.94rem;
}

.about-us,
.contact,
.products {
  width: clamp(260px, 30%, 420px);
}

.about-us h2,
.contact h2,
.products h2 {
  text-decoration: underline;
  margin-top: 0;
  font-weight: 600;
}

.contact {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  padding-left: 20px;
  padding-right: 20px;
}

.products h4 {
  border-right: 10px solid #fff;
  padding-right: 8px;
  font-weight: 500;
  margin: 12px 0;
}

footer p,
footer h3,
footer h4 {
  margin-top: 0;
}

.rights {
  width: 100%;
  border-top: 1px solid #fff;
  margin-top: 10px;
  text-align: center;
  padding-top: 10px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }

  .headbar {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(56px + 8px);
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 10px;
    margin: 0 4vw;
    padding: 8px 6px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-8px);
  }

  #nav-toggle:checked + .burger + .headbar {
    display: flex;
    opacity: 1;
    transform: none;
  }

  .headbar a {
    padding: 12px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }

  .headbar a:last-child {
    border-bottom: none;
  }

  .socialmedia {
    display: none;
  }

  .intro-card,
  .trust-section,
  .contact-cta {
    padding: 22px 16px;
  }

  .section-title {
    gap: 10px;
  }

  .line {
    max-width: 70px;
  }

  .contact {
    border: none;
    padding-left: 0;
    padding-right: 0;
  }

  footer {
    gap: 22px;
  }

  .about-us,
  .contact,
  .products {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 44vw;
    max-width: 180px;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .page-title p {
    font-size: 14px;
  }

  .intro-card p,
  .contact-cta p,
  .trust-item p,
  .product-content p {
    font-size: 14px;
    line-height: 1.9;
  }

  .intro-actions,
  .cta-buttons,
  .product-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}