/* حذف هایلایت آبی هنگام لمس در موبایل */
* {
    -webkit-tap-highlight-color: transparent;
}

/* حذف کادر فوکوس پیش‌فرض مرورگر برای دکمه‌ها و لینک‌ها */
button:focus, 
a:focus, 
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: none; /* برای اطمینان بیشتر */
}

@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('assets/fonts/IRANYekanXFaNum-Regular.woff2') format('woff2');
  font-style: normal;
}

@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('assets/fonts/IRANYekanXFaNum-DemiBold.woff2') format('woff2');
  font-weight: 600;
}

@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('assets/fonts/IRANYekanXFaNum-Bold.woff2') format('woff2');
  font-weight: 800;
}

* {
    font-family: iranyekanxfanum;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Variables --- */
:root {
	--primary-color: #10b981; /* Green Brand */
	--primary-dark: #059669;
	--primary-light: #34d399;
	--text-color: #1f2937;
	--text-light: #6b7280;
	--bg-body: #ffffff;
	--bg-alt: #f9fafb;
	--bg-card: #ffffff;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--trust-bg: #ecfdf5;
	--trust-border: #a7f3d0;
	--trust-text: #065f46;
	--trust-icon-bg: #d1fae5;
	--trust-icon: #059669;
}

body.dark-mode {
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-body: #111827;
    --bg-alt: #1f2937;
    --bg-card: #1f2937;
    --border-color: #374151;
	--trust-bg: rgba(16, 185, 129, 0.12);
	--trust-border: rgba(16, 185, 129, 0.25);
	--trust-text: #d1fae5;
	--trust-icon-bg: rgba(16, 185, 129, 0.25);
	--trust-icon: #34d399;
}

/* --- Global Styles --- */
body {
    background-color: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-alt { background-color: var(--bg-alt); }

.text-highlight { color: var(--primary-color); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color); /* تیتر سبز */
    margin-bottom: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
	border-radius: 8px;
	padding: 10px 10px 10px 10px;
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
body.dark-mode .navbar { background-color: rgba(17, 24, 39, 0.95); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0px; font-weight: 800; font-size: 1.5rem; color: var(--primary-color); }
.nav-links { display: none; gap: 30px; }
.nav-links a { font-weight: 600; }
.nav-links a:hover { color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.btn-icon {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.3; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

.lead-box {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto 20px;
    border: 1px solid var(--border-color);
}
.lead-box form { display: flex; gap: 10px; }
.lead-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
}
.small-note { font-size: 0.9rem; color: var(--text-light); }

/* Blobs */
.hero-bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}
.blob-1 { background: var(--primary-color); top: -100px; right: -100px; }
.blob-2 { background: blue; bottom: -100px; left: -100px; }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }

.qr-image { max-width: 300px; margin: 0 auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }
.feature-list li { margin-bottom: 15px; font-size: 1.1rem; }
.feature-list i { margin-left: 10px; }

/* --- Cards (Advantages) --- */
.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.card:hover { border-color: var(--primary-color); transform: translateY(-5px); }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.icon-box.blue { background: #dbeafe; color: #2563eb; }
.icon-box.green { background: #d1fae5; color: #059669; }
.icon-box.purple { background: #f3e8ff; color: #9333ea; }
.icon-box.orange { background: #ffedd5; color: #ea580c; }
.icon-box.pink { background: #fce7f3; color: #db2777; }
body.dark-mode .icon-box.blue { background: rgba(37, 99, 235, 0.2); }
body.dark-mode .icon-box.green { background: rgba(5, 150, 105, 0.2); }
body.dark-mode .icon-box.purple { background: rgba(147, 51, 234, 0.2); }
body.dark-mode .icon-box.orange { background: rgba(234, 88, 12, 0.2); }
body.dark-mode .icon-box.pink { background: rgba(219, 39, 119, 0.2); }

.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 1rem; }
.card-row { display: flex; gap: 20px; align-items: flex-start; }

/* --- Gallery (Stacked) --- */
.gallery-stack { display: flex; flex-direction: row; width:100%; gap: 0px; justify-content: center; align-items: center;}
.gallery-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 970px;
}
.gallery-item img { width: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
    text-align: right;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}
.gallery-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; }
.gallery-overlay p { opacity: 0.9; }

/* --- Discount Box --- */
.discount-wrapper { transform: translateY(40px); position: relative; z-index: 10; }
.discount-box {
    background: linear-gradient(135deg, var(--primary-color), #0f766e);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}
.badge-wrapper { margin-bottom: 20px; }
.badge { background: #dc2626; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.discount-box h2 { font-size: 1.8rem; margin-bottom: 20px; line-height: 1.5; }
.strike-price { text-decoration: line-through; color: #fca5a5; }
.final-price { 
    background: rgba(0,0,0,0.2); 
    padding: 5px 15px; 
    border-radius: 10px; 
    font-size: 2rem; 
    font-weight: 900;
    display: inline-block;
    margin-top: 10px;
}
.offer-text { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.95; }
.offer-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.offer-features span { background: rgba(255,255,255,0.2); padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; }

/* --- Contact Form --- */
.contact-section { padding-top: 120px; padding-bottom: 80px; }
.narrow-container { max-width: 700px; }
.form-card { background: var(--bg-card); padding: 40px; border-radius: 25px; border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--text-color);
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

/* --- Footer --- */
.footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary-color); }
.footer-links li { margin-bottom: 10px; }
.footer-links i { margin-left: 10px; color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; color: var(--text-light); }

/* --- FAB (Floating Action Button) --- */
.fab-container {
    position: fixed;
    bottom: 20px; /* فاصله دقیق از پایین */
    right: 20px;  /* فاصله از راست */
    z-index: 9999;
    display: flex;
    flex-direction: column; /* چیدمان از بالا به پایین (لینک‌ها بالا، دکمه پایین) */
    align-items: center;
    gap: 15px; /* فاصله بین دکمه‌ها */
}

/* دکمه اصلی که همیشه پایین است */
.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    transition: 0.3s;
    order: 2; /* اولویت نمایش: این دکمه همیشه آخرین آیتم (پایین‌ترین) باشد */
}

.fab-btn:hover { transform: scale(1.1); }

/* آیتم‌های مخفی که بالای دکمه باز می‌شوند */
.fab-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden; /* کاملاً مخفی شود که کلیک نشود */
    transform: translateY(20px); /* کمی پایین‌تر باشند */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    order: 1; /* لینک‌ها بالای دکمه باشند */
}

/* وقتی کلاس active اضافه شد */
.fab-container.active .fab-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* بیایند سر جای خودشان */
}

.fab-container.active .main-fab { 
    transform: rotate(45deg); 
    background: #ef4444; 
}

/* رنگ‌بندی دکمه‌های داخلی */
.fab-eitaa { background: #e67e22; }
.fab-telegram { background: #3b82f6; }
.fab-sms { background: #10b981; }
.fab-call { background: #1d4ed8; }


/* --- Responsive --- */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .hero h1 { font-size: 3.5rem; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .span-2 { grid-column: span 2; }
    .form-group-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item { height: 970px; }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .span-2 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .form-group-row { grid-template-columns: 1fr; }
    .lead-box form { flex-direction: column; }
    .lead-box input { text-align: center; }
    .discount-box h2 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
	.gallery-stack { 
		display:flex;
		flex-direction: column !important; 
		width:100%; 
		gap: 20px; 
		justify-content: center; 
		align-items: center;
	}
	.gallery-item {
		position: relative;
		border-radius: 25px;
		overflow: hidden;
		box-shadow: var(--shadow-lg);
		width : 100%;
	}
}
