:root {
    --bg-cream: #f7f3ea;
    --bg-warm: #efe8d8;
    --text-dark: #232220;
    --text-muted: #656057;
    --olive-gold: #8e7e49;
    --olive-gold-dark: #6f6134;
    --olive-badge: #4b5737;
    --gold-accent: #c5a862;
    --shadow-soft: 0 16px 40px rgba(62, 54, 36, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--bg-cream); color: var(--text-dark); line-height: 1.7; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar { position: sticky; top: 0; z-index: 900; background: rgba(247, 243, 234, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(142, 126, 73, 0.12); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dark); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #efe5cc, #d5be87); border: 1px solid rgba(142, 126, 73, 0.3); display: flex; align-items: center; justify-content: center; color: var(--olive-gold-dark); }
.brand-text strong { display: block; font-size: 0.94rem; font-weight: 800; }
.brand-text span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.88rem; font-weight: 500; transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--olive-gold-dark); font-weight: 700; }

/* ── Buttons ── */
.btn { padding: 11px 24px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.28s ease; }
.btn-gold { background: linear-gradient(135deg, #98874e, #7c6d3c); color: #fff; box-shadow: 0 8px 20px rgba(124, 109, 60, 0.25); }
.btn-gold:hover { background: linear-gradient(135deg, #7c6d3c, #63562d); transform: translateY(-2px); }
.btn-white { background: rgba(255, 255, 255, 0.92); color: var(--text-dark); border: 1px solid rgba(142, 126, 73, 0.2); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); }
.btn-white:hover { background: #fff; transform: translateY(-2px); }
.play-circle { width: 24px; height: 24px; border-radius: 50%; background: var(--text-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; }

/* ── Hero Section (دقیقاً شبیه عکس) ── */
.hero-section {
    position: relative;
    /* پس‌زمینه‌ای با هاله نوری مرکزی و گرم */
    background: radial-gradient(circle at 30% 40%, #fffdf8 0%, #f5efe2 40%, #e8dcc2 100%);
    padding: 80px 0 110px;
    overflow: hidden;
    isolation: isolate;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* کانواس برای برگ‌ها و هاله‌های متحرک */
.hero-canvas-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ستون راست (متن) */
.hero-left-content {
    padding-right: 40px;
}

/* ستون چپ (عکس زن) */
.hero-right-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* عکس به سمت چپ متمایل باشد */
}

/* استایل عکس برای محو شدن در پس‌زمینه */
.hero-blended-img {
    width: 120%; /* عکس کمی بزرگتر از کانتینر */
    max-width: 650px;
    height: auto;
    object-fit: contain;
    /* محو کردن لبه‌های عکس برای ترکیب با پس‌زمینه */
    -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 50%, #000 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 65% 70% at 50% 50%, #000 50%, transparent 100%);
    margin-left: -100px; /* کشیدن عکس به سمت چپ */
}

.hero-subtitle-top { font-size: 1.05rem; font-weight: 800; color: var(--olive-gold-dark); margin-bottom: 12px; }
.hero-main-title { font-size: 3.5rem; font-weight: 900; line-height: 1.2; color: var(--text-dark); margin-bottom: 18px; }
.hero-lead { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; margin-bottom: 30px; line-height: 1.8; }
.hero-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 70px; }

.side-dots { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 800; display: flex; flex-direction: column; gap: 7px; background: rgba(255, 255, 255, 0.78); padding: 10px 5px; border-radius: 20px; border: 1px solid rgba(142, 126, 73, 0.15); }
.side-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d2cbbd; }
.side-dots span.active { background: var(--olive-gold); height: 16px; border-radius: 6px; }

/* ── بقیه استایل‌ها (خدمات، درباره، گواهینامه‌ها، فوتر و...) ── */
.services-strip-wrap { position: relative; z-index: 10; margin-top: -58px; margin-bottom: 50px; }
.services-row { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 16px; box-shadow: 0 16px 38px rgba(60, 50, 30, 0.08); display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: stretch; }
.service-item-box { background: #faf7f0; border: 1px solid rgba(142, 126, 73, 0.16); border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer; transition: all 0.25s ease; }
.service-item-box:hover { background: #fff; border-color: var(--olive-gold); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(142, 126, 73, 0.14); }
.service-item-head { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.service-item-icon { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid rgba(142, 126, 73, 0.22); display: flex; align-items: center; justify-content: center; color: var(--olive-gold-dark); flex-shrink: 0; }
.service-item-icon svg { width: 20px; height: 20px; }
.service-item-label { font-size: 0.84rem; font-weight: 800; color: var(--text-dark); line-height: 1.35; }
.service-item-desc { font-size: 0.73rem; font-weight: 500; color: var(--text-muted); line-height: 1.55; margin-top: auto; }
.about-section { padding: 50px 0 65px; background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr 0.9fr; gap: 24px; align-items: center; }
.about-visual-side { display: flex; align-items: center; gap: 14px; }
.about-avatar { width: 210px; height: 270px; object-fit: cover; object-position: center top; border-radius: 22px; border: 3px solid #fff; box-shadow: var(--shadow-soft); flex-shrink: 0; }
.about-badges-col { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cert-pill { background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(75, 87, 55, 0.2); border-radius: 14px; padding: 10px 12px; font-size: 0.78rem; font-weight: 700; color: var(--text-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03); }
.cert-pill strong { display: block; color: var(--olive-badge); font-size: 0.86rem; }
.about-text-side .eyebrow { font-size: 0.85rem; font-weight: 700; color: var(--olive-gold-dark); margin-bottom: 6px; }
.about-text-side h2 { font-size: 1.75rem; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.about-text-side p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.75; }
.result-mini-box { background: #fff; border-radius: 20px; padding: 9px; border: 1px solid rgba(142, 126, 73, 0.22); box-shadow: var(--shadow-soft); }
.result-mini-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 7px; font-size: 0.8rem; font-weight: 800; color: var(--text-dark); }
.result-mini-top span { font-size: 0.72rem; color: var(--olive-gold-dark); background: var(--bg-cream); padding: 2px 8px; border-radius: 999px; }
.result-mini-stage { position: relative; width: 100%; height: 200px; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--bg-cream); }
.result-mini-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.35s ease; }
.mini-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: none; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); }
.mini-prev { right: 6px; } .mini-next { left: 6px; }
.result-mini-bottom { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 2px; font-size: 0.76rem; }
.mini-dots { display: flex; gap: 5px; }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: #d8d0c0; cursor: pointer; }
.mini-dot.active { width: 16px; border-radius: 999px; background: var(--olive-gold); }
.certs-section { padding: 55px 0; background: var(--bg-cream); text-align: center; }
.certs-section h2 { font-size: 1.75rem; font-weight: 900; margin-bottom: 24px; }
.certs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cert-thumb { height: 120px; border-radius: 14px; overflow: hidden; background: #fff; padding: 4px; border: 1px solid rgba(142, 126, 73, 0.18); cursor: pointer; transition: transform 0.25s ease; }
.cert-thumb:hover { transform: translateY(-4px); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.footer { background: #252320; color: #e6e0d2; padding: 48px 0 22px; border-top: 3px solid var(--olive-gold); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.footer-box h3 { color: var(--gold-accent); font-size: 1.05rem; margin-bottom: 12px; }
.footer-box p, .footer-box a { color: #c4bdb0; text-decoration: none; display: block; margin-bottom: 7px; font-size: 0.88rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; text-align: center; font-size: 0.82rem; color: #9c9586; }
.whatsapp-pill { position: fixed; bottom: 20px; left: 20px; z-index: 950; background: #287a4e; color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px rgba(40, 122, 78, 0.35); }
.whatsapp-pill svg { width: 20px; height: 20px; fill: currentColor; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 15, 0.88); z-index: 1500; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 14px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 36px; cursor: pointer; }
.analysis-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.analysis-modal.active { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(35, 34, 32, 0.65); backdrop-filter: blur(8px); }
.analysis-box { background: #fcfaf4; padding: 28px; border-radius: 24px; width: 92%; max-width: 500px; position: relative; z-index: 2; border: 1px solid rgba(142, 126, 73, 0.25); }
.close-modal { position: absolute; top: 14px; left: 16px; font-size: 26px; cursor: pointer; color: var(--text-muted); }
.brand-header { text-align: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(142, 126, 73, 0.15); }
.brand-header h3 { color: var(--olive-gold-dark); font-size: 1.2rem; font-weight: 900; }
.brand-header p { font-size: 0.82rem; color: var(--text-muted); }
.progress-bar { height: 5px; background: #e6dfd0; border-radius: 6px; margin-bottom: 22px; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--olive-gold), var(--gold-accent)); width: 16.6%; border-radius: 6px; transition: width 0.35s ease; }
#stepText { position: absolute; top: -20px; right: 0; font-size: 0.78rem; color: var(--olive-gold-dark); font-weight: 800; }
.step { display: none; } .step.active { display: block; }
.step h2 { font-size: 1.05rem; margin-bottom: 14px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-btn { padding: 12px 10px; border: 1px solid rgba(142, 126, 73, 0.28); background: #fff; border-radius: 12px; cursor: pointer; font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.opt-btn:hover { background: var(--olive-gold); color: #fff; }

@media (max-width: 1150px) {
    .services-row { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-blended-img { margin-left: -50px; }
}

@media (max-width: 768px) {
    .nav-links, .side-dots { display: none; }
    .hero-section { padding: 40px 0 80px; min-height: auto; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-right-visual { order: -1; justify-content: center; margin-bottom: 20px; }
    .hero-blended-img { width: 100%; margin-left: 0; max-width: 400px; }
    .hero-left-content { padding-right: 0; }
    .hero-main-title { font-size: 2.2rem; }
    .hero-lead { margin: 0 auto 20px; }
    .hero-btn-row { justify-content: center; }
    .services-row { grid-template-columns: repeat(2, 1fr); }
    .about-visual-side { flex-direction: column; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .options-grid { grid-template-columns: 1fr; }
}