/* ---------- 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, .75);
  --green-200a: rgba(14, 122, 97, .15);
  --shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --card-border: 1px solid rgba(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, .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 .2s, transform .2s;
}

.headbar a {
  padding: 10px 10px;
  font-size: clamp(14px, 1.7vw, 20px);
  border-bottom: 3px solid transparent;
  color: var(--green-900);
  transition: color .2s, border-color .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(220px, 38vw, 360px);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .08));
}

.about-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.about-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.8vw, 52px);
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

/* ---------- Main ---------- */
main {
  width: min(1200px, 92%);
  margin: 28px auto 40px;
}

.intro-card,
.partner-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: var(--card-border);
  margin-bottom: 24px;
}

.intro-card {
  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,
.partner-content p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 2;
  color: var(--green-700);
  text-align: justify;
  margin: 0 0 16px;
}

.intro-card p:last-child,
.partner-content p:last-child {
  margin-bottom: 0;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.partner-card.reverse {
  flex-direction: row-reverse;
}

.partner-image {
  width: min(38%, 420px);
  flex-shrink: 0;
}

.partner-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.partner-content {
  flex: 1;
}

.partner-content h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--green-700);
}
.certificate-card {
  max-width: 1150px;
  margin: 60px auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.certificate-card h2{
  text-align: center;
}
.certificate-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 35px;
  align-items: center;
  margin-top: 25px;
}

.certificate-text h3 {
  font-size: 1.6rem;
  color: var(--green-700);
  margin-bottom: 18px;
  text-align: center;
}
.certificate-text{
  text-align: center;
}
.certificate-text p {
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--green-700);
  text-align: justify;
  margin-bottom: 14px;
}

.certificate-image {
  text-align: center;
}

.certificate-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: 0.3s ease;
}

.certificate-image img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .certificate-content {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    padding: 24px;
    margin: 40px 16px;
  }

  .certificate-image img {
    max-width: 100%;
  }
}
/* ---------- Footer ---------- */
footer {
  background: #0b4f41;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 16px;
  padding: 24px 4vw;
  font-size: .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: .9rem;
}
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .partner-card,
  .partner-card.reverse {
    flex-direction: column;
  }

  .partner-image,
  .partner-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }

  header {
    position: sticky;
  }

  .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 {
    padding: 22px 16px;
  }

  .partner-card {
    padding: 18px;
  }

  .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;
  }

  .about-title h1 {
    font-size: 30px;
  }

  .intro-card p,
  .partner-content p {
    font-size: 14px;
    line-height: 1.9;
  }
}