/* =========================================================
   IRAN TARIFF — Main Stylesheet
   Version: 3.0 (Full Clean Rewrite)
   ========================================================= */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark: #1a4d2e;
  --green-main: #2d6a4f;
  --green-light: #40916c;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --bg-light: #f8f7f4;
  --bg-white: #ffffff;
  --border: #e5e2db;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.btn-primary:hover {
  background: var(--green-main);
  border-color: var(--green-main);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: white;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--green-dark);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========== DESKTOP NAV ========== */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-dark);
}

.nav-mobile-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========== HAMBURGER (پیش‌فرض مخفی در دسکتاپ) ========== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 10001;
  position: relative;
}

.menu-toggle .menu-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f8f7f4 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--green-main);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-caption {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 4px;
}

/* ========== FEATURES ========== */
.features {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 10px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== QUALITY PROMISE ========== */
.quality-promise {
  padding: 100px 0;
  background: linear-gradient(180deg, #fafaf7 0%, #f4f3ed 100%);
}

.quality-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.quality-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-top: 20px;
}

.quality-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.quality-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 77, 46, 0.06);
  border-top: 4px solid #2d6a4f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26, 77, 46, 0.12);
}

.quality-card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.quality-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #1a4d2e;
  margin-bottom: 15px;
  font-weight: 600;
}

.quality-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
}

.quality-card p strong {
  color: #2d6a4f;
  font-weight: 600;
}

.quality-details {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 77, 46, 0.06);
  margin-bottom: 50px;
}

.quality-details-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #1a4d2e;
  text-align: center;
  margin-bottom: 35px;
  font-weight: 600;
}

.quality-checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.quality-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.quality-checklist .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2d6a4f;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sgs-sampling {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: #ffffff;
  border-left: 5px solid #2d6a4f;
  padding: 35px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 77, 46, 0.06);
  margin-bottom: 50px;
}

.sgs-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #f4f3ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sgs-icon {
  font-size: 1.8rem;
}

.sgs-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #1a4d2e;
  margin-bottom: 12px;
  font-weight: 600;
}

.sgs-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.sgs-note {
  font-style: italic;
  color: #777;
  font-size: 0.92rem;
}

.sgs-content .btn {
  margin-top: 10px;
}

.quality-cta {
  text-align: center;
  padding-top: 20px;
}

.quality-cta p {
  font-size: 1.1rem;
  color: #1a4d2e;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ========== ORIGIN ========== */
.origin {
  padding: 100px 0;
}

.origin-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--green-main);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.link-arrow {
  font-weight: 500;
  color: var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  display: inline-block;
}

.link-arrow:hover {
  opacity: 0.7;
}

.origin-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* ========== PACKAGING ========== */
.packaging {
  padding: 80px 0;
  background: var(--bg-light);
}

.packaging-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.packaging-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.check-list {
  list-style: none;
  margin: 24px 0 32px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-weight: 700;
}

/* ========== QUALITY STRIP ========== */
.quality-strip {
  padding: 40px 0;
  background: var(--green-dark);
  color: white;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.quality-icon {
  font-size: 1.6rem;
}

/* ========== TEXTURE ========== */
.texture-section {
  padding: 80px 0;
}

.texture-header {
  text-align: center;
  margin-bottom: 40px;
}

.texture-header p {
  color: var(--text-muted);
  margin-top: 10px;
}

.texture-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  max-height: 500px;
  object-fit: cover;
}

/* ========== GLOBAL REACH ========== */
.global-reach {
  padding: 100px 0;
  background: var(--bg-light);
}

.reach-header {
  text-align: center;
  margin-bottom: 50px;
}

.reach-header .section-desc {
  margin: 0 auto;
  max-width: 560px;
}

.reach-map {
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 50px;
  text-align: center;
}

.world-map-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.map-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.reach-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.reach-contact h3,
.reach-network h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact-details a {
  color: var(--green-dark);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-details a:hover {
  border-bottom-color: var(--green-dark);
}

.network-links {
  list-style: none;
}

.network-links li {
  margin-bottom: 12px;
}

.network-links a {
  font-size: 1.1rem;
  color: var(--green-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.network-links a:hover {
  color: var(--green-main);
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 0;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.8;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ========== موبایل / تبلت (<= 900px) ========== */
@media (max-width: 900px) {

  /* دکمه همبرگری نمایش داده شود */
  .menu-toggle {
    display: flex;
  }

  /* CTA دسکتاپ مخفی شود */
  .header-actions {
    display: none;
  }

  /* ============ MOBILE NAV ============ */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 30px 30px;
    gap: 0;
    box-shadow: none;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;

    /* *** مهم: مخفی کردن کامل منو *** */
    transform: translateX(105%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s ease,
      opacity 0.3s ease,
      visibility 0.35s;
  }

  /* وقتی منو باز است */
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  }

  .nav .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
    color: #1a4d2e;
    display: block;
  }

  .nav .nav-link:last-of-type {
    border-bottom: none;
  }

  /* دکمه CTA داخل منوی موبایل */
  .nav-mobile-cta {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  /* لایه تاریک پشت منو */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* هدر بالاتر از لایه تاریک */
  body.menu-open .header {
    z-index: 10001;
  }

  /* ============ LAYOUT ============ */
  .global-badge {
    display: none;
  }

  .hero-inner,
  .origin-inner,
  .packaging-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quality-checklist {
    grid-template-columns: 1fr;
  }

  .quality-details {
    padding: 35px 25px;
  }

  .sgs-sampling {
    flex-direction: column;
    padding: 28px 22px;
    gap: 15px;
  }

  .sgs-badge {
    width: 50px;
    height: 50px;
  }

  .sgs-icon {
    font-size: 1.5rem;
  }

  .hero,
  .origin,
  .quality-promise,
  .global-reach {
    padding: 60px 0;
  }
}

/* ========== موبایل کوچک (<= 700px) ========== */
@media (max-width: 700px) {
  .reach-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reach-map {
    padding: 30px 20px;
  }
}

/* ========== موبایل (<= 600px) ========== */
@media (max-width: 600px) {

  .logo-sub {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-card {
    padding: 30px 22px;
  }

  .quality-card h3 {
    font-size: 1.2rem;
  }

  .quality-details-title {
    font-size: 1.3rem;
  }

  .quality-checklist li {
    font-size: 0.92rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}