/*
Theme Name: Qanonnet
Theme URI: https://qanonnet.ir
Author: Qanonnet Team
Author URI: https://qanonnet.ir
Description: قالب رسمی اپلیکیشن قانونی قانونِت - طراحی حرفه‌ای با رنگ‌های آبی، سرمه‌ای و طلایی
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qanonnet
Tags: rtl-language, persian, legal, app, landing-page, dark
*/

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
  --navy:       #0B1F3A;
  --navy-light: #132A4E;
  --navy-mid:   #1A3A6B;
  --blue:       #1565C0;
  --blue-bright:#1E88E5;
  --blue-light: #42A5F5;
  --gold:       #C9A227;
  --gold-light: #E8C84A;
  --gold-pale:  #FDF6DC;
  --white:      #FFFFFF;
  --off-white:  #F4F6FA;
  --text-dark:  #0B1F3A;
  --text-mid:   #3B4A63;
  --text-muted: #6B7EA4;
  --border:     rgba(11,31,58,0.12);
  --shadow-sm:  0 2px 12px rgba(11,31,58,0.08);
  --shadow-md:  0 8px 32px rgba(11,31,58,0.14);
  --shadow-lg:  0 20px 60px rgba(11,31,58,0.2);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,0.55);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ==========================================
   SECTION LABELS & TITLES
   ========================================== */
.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(30,136,229,0.08);
  border-radius: 20px;
  border: 1px solid rgba(30,136,229,0.2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 48px;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  padding: 18px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}

.logo-text { color: var(--white); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201,162,39,0.5) !important;
  background: rgba(255,255,255,0.08) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0D2850 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(30,136,229,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,162,39,0.08) 0%, transparent 50%);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(11,31,58,0.3));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 6px 18px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 24px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 60%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-light);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Phone Mockup */
.hero-phone {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.phone-mockup {
  width: 240px;
  height: 480px;
  background: var(--navy-light);
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  padding: 24px 16px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  display: block;
  margin: 0 auto 20px;
}

.phone-screen { display: flex; flex-direction: column; gap: 10px; }

.app-header-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.app-logo-small {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
}

.app-search-mock {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.app-card-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  border-right: 3px solid var(--blue-bright);
}

.app-card-mock--2 { border-right-color: var(--gold); }
.app-card-mock--3 { border-right-color: #4CAF50; }

.app-card-tag {
  font-size: 0.62rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.app-card-mock--2 .app-card-tag { color: var(--gold-light); }
.app-card-mock--3 .app-card-tag { color: #81C784; }

.app-card-title {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
  padding: 100px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-card:hover::before { transform: scaleX(1); }

.about-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
  padding: 100px 0;
  background: var(--white);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--off-white);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(21, 101, 192, 0.25);
  background: rgba(30,136,229,0.03);
  transform: translateX(-4px);
}

.feature-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(21,101,192,0.15);
  min-width: 54px;
  line-height: 1;
}

.feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.feature-icon-wrap {
  font-size: 1.6rem;
  margin-right: auto;
  margin-left: 0;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ==========================================
   DOWNLOAD SECTION
   ========================================== */
.download-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0D2850 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(30,136,229,0.15) 0%, transparent 60%);
}

.download-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.download-text { flex: 1; }

.download-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: var(--transition);
  font-size: 0.9rem;
  min-width: 150px;
}

.dl-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.dl-btn--cafe { border-color: rgba(201,162,39,0.4); }
.dl-btn--cafe:hover { border-color: var(--gold); }

.dl-icon {
  font-size: 1.3rem;
  opacity: 0.9;
}

.dl-btn small { font-size: 0.7rem; opacity: 0.7; display: block; }
.dl-btn strong { font-size: 0.95rem; }

.download-visual { flex-shrink: 0; }

.qr-box { text-align: center; color: rgba(255,255,255,0.7); font-size: 0.85rem; }

.qr-inner {
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.qr-placeholder {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.3;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  padding: 100px 0;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card--featured {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,162,39,0.15);
  position: relative;
}

.testimonial-card--featured::before {
  content: 'برگزیده';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.t-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }

.t-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 24px;
  position: relative;
}

.t-text::before {
  content: '"';
  font-size: 3rem;
  color: rgba(21,101,192,0.1);
  position: absolute;
  top: -12px;
  right: -8px;
  line-height: 1;
  font-family: Georgia, serif;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-mid) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.t-author strong { font-size: 0.92rem; color: var(--navy); display: block; }
.t-author small { color: var(--text-muted); font-size: 0.78rem; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.85;
  margin-top: 16px;
  max-width: 280px;
}

.footer-brand .site-logo { margin-bottom: 0; }
.footer-brand .logo-text { color: var(--white); }

.footer-links h4, .footer-social h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after, .footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); padding-right: 6px; }

.social-links { display: flex; flex-direction: column; gap: 10px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(201,162,39,0.1);
  border-color: rgba(201,162,39,0.4);
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-phone { display: none; }
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-inner { flex-direction: column; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { 
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(11,31,58,0.97);
    align-items: center;
    justify-content: center;
  }
  .main-nav.open ul { flex-direction: column; align-items: center; gap: 16px; }
  .main-nav.open a { font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links h4::after, .footer-social h4::after { right: auto; left: 0; }
}

@media (max-width: 480px) {
  .about-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; }
}
