/*
Theme Name: کاورک
Theme URI: https://kaverk.ir
Author: تیم کاورک
Author URI: https://kaverk.ir
Description: قالب اختصاصی فروشگاه کاورک - کیسه‌های هوشمند پخت و نگهداری غذا
Version: 1.0
License: GPL v2 or later
Text Domain: kaverk
*/

:root {
  --bg: #F7F5F2;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #5C5C5C;
  --ink-mute: #A0A0A0;
  --accent: #2E7D5E;
  --accent-light: #E8F5EF;
  --accent-warm: #F0A500;
  --border: #E2DDD8;
  --section-gap: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
}

/* ── WIREFRAME LABEL ── */
.wf-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 999;
  opacity: .7;
}

/* ── SECTION LABELS ── */
.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  background: var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeDown .5s ease both;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}

.nav-logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
  transition: color .2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover { background: #256A4F !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 88vh;
  align-items: center;
  padding: 0 60px;
  background: var(--white);
  animation: fadeUp .7s .1s ease both;
}

.hero-text { padding-left: 40px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-eyebrow span { font-size: 16px; }

h1 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-warm);
  border-radius: 2px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(46,125,94,.25);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #256A4F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,94,.35);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--accent); background: var(--accent-light); color: var(--ink); }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 60px 0;
}

.product-mockup {
  position: relative;
  width: 320px;
  height: 360px;
}

.mockup-bag {
  width: 260px;
  height: 300px;
  background: linear-gradient(145deg, #E8F5EF, #C8E6D5);
  border-radius: 30px 30px 60px 60px;
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid rgba(46,125,94,.15);
  box-shadow: 0 20px 60px rgba(46,125,94,.15), 0 4px 12px rgba(0,0,0,.05);
}

.mockup-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.mockup-icon { font-size: 52px; }
.mockup-label {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
  padding: 0 20px;
}

.badge-float {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.badge-1 { top: 0; right: 0; animation-delay: 0s; }
.badge-2 { bottom: 20px; left: -10px; animation-delay: 1.5s; }
.badge-1::before { content: '✅ '; }
.badge-2::before { content: '⏱️ '; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--ink);
  padding: 18px 60px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 400;
}

.trust-item strong { color: #fff; font-weight: 600; }

/* ── FEATURES ── */
.section {
  padding: var(--section-gap) 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.how-section {
  background: var(--white);
  padding: var(--section-gap) 60px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 16px;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: linear-gradient(to left, var(--accent), var(--accent-warm));
  opacity: .3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 0 0 6px var(--accent-light);
}

.step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── PRODUCTS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.09);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--accent-light), #F7F5F2);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding: 20px; }

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--white);
  padding: var(--section-gap) 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform .2s;
}

.testimonial-card:hover { transform: translateY(-3px); }

.quote-mark {
  font-size: 48px;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
  margin-bottom: 8px;
  font-family: serif;
}

.testimonial-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.author-info span {
  font-size: 12px;
  color: var(--ink-mute);
}

.stars { color: var(--accent-warm); font-size: 13px; }

/* ── CTA SECTION ── */
.cta-section {
  padding: var(--section-gap) 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #256A4F 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 15px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  text-decoration: none;
  display: inline-block;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 48px 60px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { 
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  text-decoration: none;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ── ANNOTATIONS ── */
.annotation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  background: #FFF9E6;
  border: 1px dashed #E5C84A;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-style: italic;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav, .hero, .section, .how-section, .testimonials-section, .cta-section { 
    padding-left: 24px; 
    padding-right: 24px; 
  }
  
  nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
  }
  
  .hero { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .hero-text { padding-left: 0; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { padding: 40px 0 20px; }
  
  .features-grid, .products-grid, .testimonials-grid { 
    grid-template-columns: 1fr; 
  }
  
  .steps-row { 
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
  }
  
  .steps-row::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 24px; padding: 16px 24px; flex-wrap: wrap; justify-content: center; }
  
  .product-mockup {
    width: 240px;
    height: 280px;
  }
  
  .mockup-bag {
    width: 200px;
    height: 240px;
    top: 20px;
    left: 20px;
  }
  
  .badge-1, .badge-2 {
    font-size: 10px;
    padding: 6px 12px;
  }
}

@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .nav-logo { font-size: 18px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 6px 14px; font-size: 12px !important; }
  
  .section, .how-section, .testimonials-section, .cta-section {
    padding: 60px 20px;
  }
  
  .hero { padding: 0 20px; min-height: auto; }
  .trust-bar { padding: 12px 16px; gap: 12px; }
  .trust-item { font-size: 12px; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  footer { padding: 30px 20px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .steps-row { grid-template-columns: 1fr; gap: 24px; }
  .cta-section h2 { font-size: 22px; }
  .btn-white { padding: 12px 24px; font-size: 14px; }
  
  .product-mockup {
    width: 180px;
    height: 220px;
  }
  
  .mockup-bag {
    width: 150px;
    height: 180px;
    top: 20px;
    left: 15px;
  }
  
  .mockup-icon { font-size: 36px; }
  .mockup-logo { font-size: 18px; }
  .mockup-label { font-size: 10px; padding: 0 10px; }
  
  .badge-1, .badge-2 {
    font-size: 9px;
    padding: 4px 10px;
    white-space: normal;
  }
  
  .badge-2 { left: -5px; bottom: 10px; }
  .badge-1 { top: -5px; right: -5px; }
}