
/* ==============================================
   TYPOGRAPHY — فونت برند
   ==============================================
   فونت اصلی: Peyda
   تیترهای بزرگ: Dana ExtraBold

   فایل‌های رسمی فونت هنوز در پروژه موجود نیستند.
   بلوک‌های @font-face زیر آماده‌اند: کافی است فایل‌های
   قانونی را در پوشه fonts/ قرار دهید تا خودکار فعال شوند.
   تا آن زمان از Vazirmatn به‌عنوان fallback استفاده می‌شود.
   ============================================== */

/* --- بلوک‌های @font-face غیرفعال هستند تا فایل فونت اضافه شود ---
   برای فعال‌سازی: فایل‌ها را در fonts/ بگذارید و این کامنت را بردارید.

@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('fonts/Dana-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
*/


:root {
    --font-body:    'Peyda', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Dana', 'Peyda', 'Vazirmatn', -apple-system, Tahoma, sans-serif;
}

/* ==============================================
   Architecture Website
   Modern, Professional, RTL Design
   ============================================== */

/* CSS Variables — green-tonal architectural palette on warm stone background, per reference brief */
:root {
    /* ===== هویت بصری برند — طبق سند رسمی ===== */
    --bg:            #F5F1E8;   /* Primary background */
    --primary:       #34412F;   /* Dark green */
    --olive:         #68745A;   /* Secondary olive */
    --text:          #22221F;   /* Dark text */
    --muted:         #77746C;   /* Muted text */
    --white:         #FFFFFF;
    --border:        #DDD7C9;

    /* نگاشت متغیرهای قدیمی به پالت جدید (سازگاری با کد موجود) */
    --primary-light: #3F5039;
    --secondary:     #68745A;
    --accent:        #68745A;
    --accent-light:  #8A9179;
    --dark:          #22221F;
    --light:         #FFFFFF;
    --gray-100:      #F5F1E8;
    --gray-200:      #DDD7C9;
    --gray-300:      #DDD7C9;
    --gray-400:      #B8B2A4;
    --gray-500:      #97938A;
    --gray-600:      #77746C;
    --gray-700:      #4A4842;
    --gray-800:      #22221F;
    --gray-900:      #22221F;

    /* بدون gradient — رنگ تخت معماری */
    --gradient-primary: #34412F;
    --gradient-accent:  #68745A;
    --gradient-dark:    #22221F;

    /* سایه‌های بسیار ملایم */
    --shadow-sm: 0 1px 2px rgba(34, 34, 31, 0.04);
    --shadow-md: 0 2px 6px rgba(34, 34, 31, 0.06);
    --shadow-lg: 0 6px 18px rgba(34, 34, 31, 0.08);
    --shadow-xl: 0 10px 28px rgba(34, 34, 31, 0.10);

    /* گوشه‌های ملایم و محدود */
    --border-radius-sm: 2px;
    --border-radius-md: 3px;
    --border-radius-lg: 4px;
    --border-radius-xl: 6px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-800);
    background-color: var(--bg);
    direction: rtl;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
.section-label,
.section-label-light {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-label::before,
.section-label-light::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: currentColor;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--light);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-white {
    background: var(--light);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--light);
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==============================================
   NAVIGATION
   ============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--light);
    font-weight: 800;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
}

.logo-full {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: var(--secondary);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.nav-cta-btn:hover {
    background: #d63a54;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--light);
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.page-header::before,
.course-hero::before,
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(52,65,47,0.05) 0 1px, transparent 1px 64px);
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: right;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-700);
    margin: 0 0 2.5rem;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-scroll {
    display: none;
}

/* ==============================================
   ABOUT INTRO SECTION
   ============================================== */
.about-intro {
    padding: 6rem 0;
    background: var(--gray-100);
}

.about-intro-text {
    text-align: right;
}

.about-intro-text-centered {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.about-intro-text .stats-grid {
    margin-top: 2rem;
}

.about-intro-image {
    position: relative;
}

.about-intro-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-intro-image-border {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-intro-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-intro-content > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* ==============================================
   PATH SELECTION SECTION
   ============================================== */
.path-selection {
    padding: 6rem 0;
    background: var(--light);
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.path-card {
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: var(--transition-normal);
}

.path-card:hover {
    transform: translateY(-10px);
}

.path-client {
    background: var(--primary);
    border: 2px solid var(--gray-300);
}

.path-student {
    background: var(--primary);
    color: var(--light);
}

.path-card-icon {
    margin-bottom: 1.5rem;
}

.path-client .path-card-icon {
    color: var(--primary);
}

.path-student .path-card-icon {
    color: var(--secondary);
}

.path-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.path-client h3 {
    color: var(--primary);
}

.path-student h3 {
    color: var(--light);
}

.path-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.path-client p {
    color: var(--gray-600);
}

.path-student p {
    color: var(--gray-300);
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services {
    padding: 6rem 0;
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--light);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card > p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    position: relative;
    padding-right: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.service-link {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

.service-link::after {
    content: '←';
    margin-right: 0.5rem;
    transition: var(--transition-normal);
}

.service-link:hover {
    color: var(--primary);
}

/* ==============================================
   PROJECTS SECTION
   ============================================== */
.projects {
    padding: 6rem 0;
    background: var(--light);
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-role {
    background: var(--secondary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-info {
    padding: 1.5rem;
}

.project-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-info > p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==============================================
   ACADEMY SECTION
   ============================================== */
.academy {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--light);
}

.academy .section-title {
    color: var(--light);
}

.academy .section-subtitle {
    color: var(--gray-400);
}

.academy-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--light);
    color: var(--gray-800);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-featured {
    background: var(--gradient-accent);
    color: var(--light);
}

.course-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: var(--light);
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.course-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--light);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.course-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.course-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.course-featured .course-description {
    color: var(--gray-200);
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.course-features span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.course-featured .course-features span {
    background: rgba(255,255,255,0.2);
    color: var(--light);
}

.course-categories {
    margin-top: 4rem;
    text-align: center;
}

.course-categories h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag {
    background: rgba(255,255,255,0.1);
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-normal);
}

.tag:hover {
    background: var(--secondary);
    color: var(--light);
    border-color: var(--secondary);
}

/* ==============================================
   WHY SECTION
   ============================================== */
.why-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.why-grid {
    display: block;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .why-features {
        grid-template-columns: 1fr;
    }
}

.why-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-intro {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
}

.why-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
}

.why-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.why-feature-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.why-image {
    position: relative;
}

.why-image img {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.why-image-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: var(--border-radius-xl);
}

/* ==============================================
   TESTIMONIALS SECTION
   ============================================== */
.testimonials {
    padding: 6rem 0;
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--gray-700);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ==============================================
   ARTICLES SECTION
   ============================================== */
.articles {
    padding: 6rem 0;
    background: var(--gray-100);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.article-card {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-featured .article-image {
    height: 100%;
    min-height: 300px;
}

.article-image img {
    width: 100%;
    height: 100%;
    /* کاورهای عمودی اینستاگرام برش نمی‌خورند؛ کل آموزش دیده می‌شود. */
    object-fit: contain;
    background: var(--gray-100);
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.02);
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.article-featured .article-content {
    padding: 2rem;
    justify-content: center;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.article-featured h3 {
    font-size: 1.5rem;
}

.article-content > p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-link {
    font-weight: 600;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.article-link::after {
    content: '←';
    margin-right: 0.5rem;
    transition: var(--transition-normal);
}

.article-link:hover {
    color: var(--primary);
}

.articles-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
    padding: 6rem 0;
    background: var(--light);
}

.about-content-centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content-centered .about-skills {
    justify-content: center;
}

.about-content-centered .about-cta {
    justify-content: center;
}

/* چیدمان صفحه درباره من — هم‌اندازه با بخش اصلی صفحه اول */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-images {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.about-image-main {
    position: relative;
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 50%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--light);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.skill-item {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==============================================
   FINAL CTA SECTION
   ============================================== */
.final-cta {
    padding: 6rem 0;
    background: var(--gradient-primary);
    text-align: center;
}

.final-cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--light);
    margin-bottom: 1rem;
}

.final-cta-content p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ==============================================
   CONSULTATION SECTION
   ============================================== */
.consultation {
    padding: 6rem 0;
    background: var(--gray-100);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.consultation-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.consultation-info > p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.consultation-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.contact-item svg {
    color: var(--secondary);
}

.consultation-form {
    background: var(--light);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact {
    padding: 6rem 0;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: var(--light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--light);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.contact-hours {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin: 1rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-text {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.footer-logo span:last-child {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--light);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--light);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* ==============================================
   FLOATING WHATSAPP BUTTON
   ============================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-normal);
}

.floating-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* ==============================================
   MODAL
   ============================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--light);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .academy-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-featured {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 3rem;
    }

    /* روی موبایل عکس زیر متن می‌آید، پس محدودیت ارتفاع لازم نیست */
    .hero-image img {
        max-height: none;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.125rem;
    }
    
    .nav-cta-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-intro-grid,
    .why-grid,
    .about-grid,
    .consultation-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .path-cards {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-cta {
        flex-direction: column;
    }
    
    .final-cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .floating-whatsapp {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .consultation-form {
        padding: 1.5rem;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide sections on mobile nav */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================================
   NEW MULTI-PAGE ADDITIONS
   ============================================== */

/* Active nav link */
.nav-links a.active-link {
    color: var(--secondary);
    font-weight: 600;
}
.nav-cta-btn.active-link {
    opacity: 0.85;
}

/* Generic page header (used by services/projects/academy/articles/contact) */
.page-header {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    color: var(--primary);
    padding: 9rem 0 4rem;
    text-align: center;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.75rem 0;
}
.page-header p {
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Services detail page */
.services-detail {
    padding: 5rem 0;
}
.service-detail-block {
    border-bottom: 1px solid var(--gray-200);
    padding: 3rem 0;
}
.service-detail-block:last-child {
    border-bottom: none;
}
.service-detail-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--light);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.25rem;
}
.service-detail-block h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.service-detail-grid h4 {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.service-detail-grid p {
    font-size: 0.92rem;
    color: var(--gray-700);
}
.service-detail-link {
    display: inline-block;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Case study page */
.case-study-hero {
    position: relative;
    height: 55vh;
    min-height: 350px;
    overflow: hidden;
}
.case-study-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-study-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary);
}
.case-study-hero-content {
    position: absolute;
    bottom: 2rem;
    right: 0;
    left: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    color: var(--light);
}
.case-study-hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-top: 0.5rem;
}
.case-study {
    padding: 4rem 0;
}
.case-study-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    margin-bottom: 3rem;
}
.case-study-meta-bar span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}
.case-study-body {
    max-width: 800px;
    margin: 0 auto;
}
.case-study-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}
.case-study-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.case-study-gallery img {
    border-radius: var(--border-radius-md);
}
.case-study-cta {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
}
.case-study-cta h3 {
    margin-bottom: 1rem;
}

/* Course detail page */
.course-hero {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    color: var(--primary);
    padding: 9rem 0 4rem;
    text-align: center;
}
.course-hero .container {
    position: relative;
    z-index: 2;
}
.course-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--light);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.course-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}
.course-hero p {
    color: var(--gray-700);
    max-width: 650px;
    margin: 0 auto 1.5rem;
}
.course-detail {
    padding: 4rem 0;
}
.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.course-detail-main h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}
.course-syllabus {
    list-style: decimal;
    padding-right: 1.25rem;
}
.course-syllabus li {
    margin-bottom: 0.5rem;
    display: list-item;
}
.faq-item {
    margin-bottom: 1.25rem;
}
.faq-item h4 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}
.course-sidebar-card {
    position: sticky;
    top: 100px;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}
.course-sidebar-meta {
    margin: 1.25rem 0;
}
.course-sidebar-meta li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.course-sidebar-note {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

/* Article detail page */
.article-hero {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    color: var(--primary);
    padding: 9rem 0 3rem;
    text-align: center;
}
.article-hero .container {
    position: relative;
    z-index: 2;
}
.article-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-top: 0.75rem;
}
.article-body-section {
    padding: 3rem 0 5rem;
}
.article-body {
    max-width: 750px;
    margin: 0 auto;
}
.article-main-image {
    width: 100%;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
}
.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}
.article-cta-box {
    text-align: center;
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
}
.article-cta-box h3 {
    margin-bottom: 1.25rem;
}

/* Contact page extra form */
.contact-form-block {
    max-width: 600px;
    margin: 4rem auto 0;
}
.contact-form-block h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .course-detail-grid {
        grid-template-columns: 1fr;
    }
    .case-study-gallery {
        grid-template-columns: 1fr;
    }
}

/* Photo-free card headers (homepage keeps a single hero photo; cards use icon blocks) */
.project-image.icon-fill,
.article-image.icon-fill {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
}

.project-image.icon-fill svg,
.article-image.icon-fill svg {
    opacity: 0.85;
}

.project-card:hover .project-image.icon-fill,
.article-card:hover .article-image.icon-fill {
    background: var(--gradient-accent);
}

/* Services page intro image */
.services-intro-image {
    padding: 3rem 0 0;
    text-align: center;
}

.services-intro-image img {
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius-lg);
}

/* ==============================================
   صفحه «درباره من» — جا شدن کامل در یک صفحه
   بدون نیاز به اسکرول (نمایشگرهای دسکتاپ)
   ============================================== */
@media (min-width: 993px) {
    /* ارتفاع فوتر (حدود ۱۵۴ پیکسل) از ارتفاع بخش کم می‌شود
       تا مجموع محتوا + فوتر دقیقاً در یک صفحه جا شود */
    .about {
        min-height: calc(100svh - 158px);
        display: flex;
        align-items: center;
        padding: 6.5rem 0 1.5rem;
    }

    .about > .container { width: 100%; }

    .about .about-grid {
        gap: 2.5rem;
        align-items: center;
    }

    /* فشرده‌سازی فاصله‌های عمودی متن */
    .about .about-content h1 {
        font-size: clamp(1.7rem, 2.6vw, 2.2rem);
        margin-bottom: .35rem;
        line-height: 1.25;
    }

    .about .about-content h3 {
        font-size: 1.12rem;
        margin-bottom: .7rem;
    }

    .about .about-content h3:not(:first-of-type) {
        margin-top: 1rem;
    }

    .about .about-content p {
        font-size: .97rem;
        line-height: 1.85;
        margin-bottom: .65rem;
    }

    .about .about-skills {
        margin: 1rem 0;
        gap: .5rem;
    }

    .about .about-skills .skill-item span {
        font-size: .85rem;
        padding: .35rem .8rem;
    }

    .about .about-cta {
        margin-top: 1.1rem;
        gap: .7rem;
    }

    .about .about-cta .btn {
        padding: .7rem 1.35rem;
        font-size: .93rem;
    }

    .about .section-label {
        margin-bottom: .25rem;
    }

    /* تصویر هم‌ارتفاع با ستون متن */
    .about .about-images {
        max-height: calc(100svh - 200px);
    }

    .about .about-image-main img {
        max-height: calc(100svh - 200px);
        object-fit: contain;
    }
}

/* نمایشگرهای کم‌ارتفاع (لپ‌تاپ ۱۵ اینچ و کوچک‌تر) */
@media (min-width: 993px) and (max-height: 950px) {
    .about {
        min-height: calc(100svh - 158px);
        padding: 5.2rem 0 1rem;
    }

    .about .about-grid { gap: 2rem; }

    .about .about-content p {
        font-size: .89rem;
        line-height: 1.7;
        margin-bottom: .45rem;
    }

    .about .about-content h1 { font-size: 1.55rem; margin-bottom: .25rem; }
    .about .about-content h3 { font-size: 1rem; margin-bottom: .45rem; }
    .about .about-content h3:not(:first-of-type) { margin-top: .6rem; }
    .about .about-skills { margin: .65rem 0; gap: .4rem; }
    .about .about-skills .skill-item span { font-size: .8rem; padding: .28rem .7rem; }
    .about .about-cta { margin-top: .75rem; }
    .about .about-cta .btn { padding: .6rem 1.15rem; font-size: .88rem; }
    .about .section-label { font-size: .78rem; margin-bottom: .15rem; }
}

/* نمایشگرهای بسیار کم‌ارتفاع (۷۶۸ پیکسل و کمتر) */
@media (min-width: 993px) and (max-height: 800px) {
    .about { padding: 4.5rem 0 .5rem; }

    /* فوتر ساده صفحه درباره روی نمایشگر کوتاه کمی فشرده می‌شود */
    .about ~ .footer { padding: 2rem 0 1.2rem; }
    .about ~ .footer .footer-bottom { padding-top: 1.2rem; }
    .about .about-grid { gap: 1.6rem; }
    .about .about-content p { font-size: .8rem; line-height: 1.55; margin-bottom: .3rem; }
    .about .about-content h1 { font-size: 1.32rem; margin-bottom: .18rem; }
    .about .about-content h3 { font-size: .89rem; margin-bottom: .28rem; }
    .about .about-content h3:not(:first-of-type) { margin-top: .42rem; }
    .about .about-skills { margin: .42rem 0; gap: .35rem; }
    .about .about-skills .skill-item span { font-size: .73rem; padding: .2rem .55rem; }
    .about .about-cta { margin-top: .5rem; gap: .5rem; }
    .about .about-cta .btn { padding: .5rem .95rem; font-size: .8rem; }
    .about .section-label { font-size: .72rem; margin-bottom: .1rem; }
}

/* ==============================================
   سربرگ صفحات داخلی + تصویر معرفی
   جا شدن کامل در یک صفحه بدون بریدگی
   ============================================== */
@media (min-width: 993px) {
    /* سربرگ فشرده‌تر تا تصویر زیرش جا شود */
    .page-header {
        padding: 7.5rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        margin-bottom: .6rem;
    }

    .page-header p {
        margin-bottom: 0;
    }

    /* تصویر معرفی: هرگز از صفحه بیرون نزند */
    .services-intro-image {
        padding: 2rem 0 0;
    }

    .services-intro-image img {
        max-height: calc(100svh - 360px);
        width: auto;
        max-width: 980px;
        object-fit: contain;
    }
}

/* نمایشگرهای کم‌ارتفاع */
@media (min-width: 993px) and (max-height: 900px) {
    .page-header {
        padding: 6.8rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.85rem;
        margin-bottom: .45rem;
    }

    .page-header p {
        font-size: .95rem;
    }

    .services-intro-image {
        padding: 1.5rem 0 0;
    }

    .services-intro-image img {
        max-height: calc(100svh - 318px);
    }
}

@media (min-width: 993px) and (max-height: 800px) {
    .page-header {
        padding: 6.2rem 0 1.6rem;
    }

    .page-header h1 { font-size: 1.65rem; }
    .page-header p  { font-size: .9rem; }

    .services-intro-image { padding: 1.2rem 0 0; }

    .services-intro-image img {
        max-height: calc(100svh - 285px);
    }
}

/* ==============================================
   صفحه اول: دقیقاً یک صفحه کامل
   نه فضای سفید اضافه، نه سرک کشیدن بخش بعدی
   ============================================== */
@media (min-width: 993px) {
    .hero {
        /* دقیقاً به اندازه ارتفاع پنجره، در هر زوم و هر اندازه */
        min-height: 100svh;
        height: 100svh;
        max-height: 100svh;
        padding-top: 5.5rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
        align-items: center;
        overflow: hidden;
    }

    .hero > .container {
        width: 100%;
        max-height: 100%;
    }

    .hero-split {
        align-items: center;
        max-height: 100%;
    }

    /* تصویر با ارتفاع پنجره تطبیق پیدا می‌کند */
    .hero-image img {
        max-height: calc(100svh - 11rem);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        object-fit: contain;
    }

    /* متن هم در صفحه‌های کوتاه فشرده می‌شود */
    .hero-title {
        font-size: clamp(1.5rem, 2.9vw, 3.1rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(.9rem, 1.15vw, 1.15rem);
        margin-bottom: 1.6rem;
    }

    .hero-eyebrow {
        margin-bottom: .9rem;
    }
}

/* پنجره‌های کوتاه: زوم بالا یا لپ‌تاپ کم‌ارتفاع */
@media (min-width: 993px) and (max-height: 700px) {
    .hero {
        padding-top: 4.8rem;
        padding-bottom: 1.2rem;
    }

    .hero-title    { font-size: clamp(1.35rem, 2.5vw, 2rem); margin-bottom: .6rem; }
    .hero-subtitle { font-size: .88rem; margin-bottom: 1rem; line-height: 1.75; }
    .hero-eyebrow  { margin-bottom: .5rem; font-size: .8rem; }
    .hero-buttons  { gap: .6rem; }
    .hero-buttons .btn { padding: .6rem 1.1rem; font-size: .85rem; }
    .hero-image img { max-height: calc(100svh - 8.5rem); }
}

@media (min-width: 993px) and (max-height: 560px) {
    .hero { padding-top: 4.3rem; padding-bottom: .8rem; }
    .hero-title    { font-size: 1.2rem; margin-bottom: .45rem; }
    .hero-subtitle { font-size: .8rem; margin-bottom: .7rem; line-height: 1.6; }
    .hero-eyebrow  { margin-bottom: .35rem; font-size: .72rem; }
    .hero-buttons .btn { padding: .5rem .9rem; font-size: .78rem; }
    .hero-image img { max-height: calc(100svh - 7rem); }
}

/* ==============================================
   بخش «درباره من» — ردیف‌های تحصیلات و تجربه
   ============================================== */
.about-facts {
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.fact-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .97rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.fact-row strong {
    color: var(--primary);
    font-weight: 700;
}

.fact-ico {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fact-ico svg {
    width: 19px;
    height: 19px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* پرتره: نسبت ثابت و برش هوشمند */
.about-image-main img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
}

/* صفحه درباره من — قاب آرام‌تر برای پرتره و فوتر جمع‌وجور */
.about-page .about-images { padding-top: 1.25rem; }
.about-page .footer { padding: 1rem 0 .8rem; }
.about-page .footer-bottom { padding-top: .65rem; }
.about-page .footer-bottom p { font-size: .8rem; }

@media (min-width: 993px) {
    .about .about-facts { margin: 1rem 0; gap: .65rem; }
    .about .fact-row    { font-size: .92rem; line-height: 1.7; }
    .about .fact-ico    { width: 34px; height: 34px; }
    .about .fact-ico svg{ width: 17px; height: 17px; }
}

@media (min-width: 993px) and (max-height: 950px) {
    .about .about-facts { margin: .8rem 0; gap: .5rem; }
    .about .fact-row    { font-size: .85rem; line-height: 1.6; }
    .about .fact-ico    { width: 30px; height: 30px; }
    .about .fact-ico svg{ width: 15px; height: 15px; }
}

@media (min-width: 993px) and (max-height: 800px) {
    .about .about-facts { margin: .6rem 0; gap: .4rem; }
    .about .fact-row    { font-size: .79rem; line-height: 1.5; gap: .55rem; }
    .about .fact-ico    { width: 26px; height: 26px; }
    .about .fact-ico svg{ width: 13px; height: 13px; }
}

@media (max-width: 480px) {
    .fact-row { font-size: .9rem; }
    .fact-ico { width: 34px; height: 34px; }
}

/* ==============================================
   درباره من — تضمین جا شدن در یک صفحه
   (تنظیم نهایی بر پایه اندازه‌گیری واقعی)
   ============================================== */
@media (min-width: 993px) {
    /* پرتره هرگز از فضای موجود بیرون نزند */
    .about .about-image-main img {
        max-height: calc(100svh - 258px);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* پنجره‌های بلندتر مثل فول‌اسکرین: فشرده‌سازی ملایم */
@media (min-width: 993px) and (min-height: 851px) and (max-height: 1000px) {
    .about .about-content p  { font-size: .93rem; line-height: 1.75; margin-bottom: .5rem; }
    .about .about-facts      { margin: .85rem 0; gap: .55rem; }
    .about .fact-row         { font-size: .88rem; line-height: 1.65; }
    .about .fact-ico         { width: 32px; height: 32px; }
    .about .fact-ico svg     { width: 16px; height: 16px; }
    .about .about-skills     { margin: .8rem 0; }
    .about .about-cta        { margin-top: .9rem; }
}

/* پنجره‌های خیلی کوتاه: زوم ۱۵۰٪ و بالاتر */
@media (min-width: 993px) and (max-height: 620px) {
    .about { padding: 4.2rem 0 .4rem; }

    /* فوتر روی زوم بالا فشرده می‌شود */
    .about ~ .footer { padding: 1.4rem 0 .9rem; }
    .about ~ .footer .footer-bottom { padding-top: .9rem; }
    .about ~ .footer .footer-bottom p { font-size: .74rem; }
    .about .about-grid { gap: 1.3rem; }
    .about .about-content h1 { font-size: 1.18rem; margin-bottom: .12rem; }
    .about .about-content h3 { font-size: .8rem;  margin-bottom: .25rem; }
    .about .about-content p  { font-size: .74rem; line-height: 1.45; margin-bottom: .25rem; }
    .about .about-facts      { margin: .45rem 0; gap: .3rem; }
    .about .fact-row         { font-size: .72rem; line-height: 1.4; gap: .45rem; }
    .about .fact-ico         { width: 22px; height: 22px; }
    .about .fact-ico svg     { width: 11px; height: 11px; }
    .about .about-skills     { margin: .35rem 0; gap: .28rem; }
    .about .about-skills .skill-item span { font-size: .68rem; padding: .16rem .48rem; }
    .about .about-cta        { margin-top: .4rem; gap: .4rem; }
    .about .about-cta .btn   { padding: .42rem .8rem; font-size: .74rem; }
    .about .section-label    { font-size: .66rem; margin-bottom: .08rem; }
    .about .about-image-main img { max-height: calc(100svh - 195px); }
}

/* ==============================================
   TYPOGRAPHY HIERARCHY — سلسله‌مراتب تیترها
   ============================================== */
h1, .hero-title, .page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary);
}

h2, .section-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
}

h3, h4 { font-family: var(--font-body); font-weight: 600; }

body {
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p { color: var(--muted); }

.caption, .contact-hours, .project-meta, .article-meta {
    font-size: .85rem;
    color: var(--muted);
}

/* ==============================================
   FOCUS STATES — دسترس‌پذیری صفحه‌کلید
   ============================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* پرش نکردن چیدمان هنگام بارگذاری تصویر */
img { max-width: 100%; height: auto; }

/* جلوگیری قطعی از سرریز افقی */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }

/* ==============================================
   HERO — micro proof
   ============================================== */
.hero-microproof {
    margin-top: 1.75rem;
    font-size: .88rem;
    color: var(--muted);
    letter-spacing: .02em;
}
.hero-microproof span { color: var(--border); margin: 0 .5rem; }

/* ==============================================
   TRUST STRIP
   ============================================== */
.trust-strip {
    background: var(--white);
    border-block: 1px solid var(--border);
    padding: 1.5rem 0;
}
.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust-list li {
    font-size: .93rem;
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-right: 1.1rem;
}
.trust-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: .62em;
    width: 5px; height: 5px;
    background: var(--olive);
    border-radius: 50%;
}

/* ==============================================
   THREE PATHS
   ============================================== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.path-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color var(--transition-normal);
}
.path-card:hover { border-color: var(--olive); }
.path-tag {
    font-size: .78rem;
    color: var(--olive);
    letter-spacing: .06em;
    margin-bottom: .9rem;
    display: inline-block;
}
.path-card h3 {
    font-size: 1.18rem;
    color: var(--primary);
    margin-bottom: .7rem;
    line-height: 1.5;
}
.path-card p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.95;
    margin-bottom: 1.6rem;
    flex: 1;
}

@media (max-width: 900px) {
    .path-grid { grid-template-columns: 1fr; }
    .trust-list { justify-content: flex-start; }
}

/* ==============================================
   CONSULTATION — سه نوع مشاوره
   ============================================== */
.consult-tiers { padding: 1rem 0 2rem; background: var(--bg); }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.tier-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-normal);
}
.tier-card:hover,
.tier-card.is-selected { border-color: var(--primary); }
.tier-featured { border-color: var(--olive); }

.tier-head h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: .3rem;
}
.tier-for {
    font-size: .84rem;
    color: var(--olive);
    margin: 0;
}

.tier-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
    padding: .9rem 0;
    border-block: 1px solid var(--border);
}
.tier-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.tier-dur { font-size: .86rem; color: var(--muted); }

.tier-desc {
    font-size: .93rem;
    line-height: 1.95;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.tier-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex: 1;
}
.tier-list li {
    position: relative;
    padding-right: 1.35rem;
    margin-bottom: .55rem;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.8;
}
.tier-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: .68em;
    width: 6px; height: 6px;
    border: 1px solid var(--olive);
    transform: rotate(45deg);
}

/* ==============================================
   FORM — مراحل و اعتبارسنجی
   ============================================== */
.consult-form-section { padding: 3rem 0 5rem; background: var(--bg); }

.form-shell {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
}
.form-shell .section-title { margin-bottom: .5rem; }
.form-shell .section-subtitle { margin: 0 0 2rem; }

.form-steps {
    display: flex;
    gap: .5rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.form-steps li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    color: var(--muted);
    flex: 1;
    min-width: 130px;
}
.form-steps li span {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    background: var(--white);
}
.form-steps li.is-active { color: var(--primary); font-weight: 700; }
.form-steps li.is-active span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.form-steps li.is-done span {
    background: var(--olive);
    border-color: var(--olive);
    color: var(--white);
}

.form-step { display: none; border: 0; padding: 0; margin: 0; }
.form-step.is-active { display: block; }

.form-shell label,
.form-shell .label-like {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .45rem;
}
.req { color: #A6412F; }

.form-shell input[type="text"],
.form-shell input[type="tel"],
.form-shell input[type="email"],
.form-shell input[type="file"],
.form-shell select,
.form-shell textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color var(--transition-fast);
}
.form-shell input:focus,
.form-shell select:focus,
.form-shell textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-shell .has-error { border-color: #A6412F; }

.field-error {
    display: none;
    margin: .4rem 0 0;
    font-size: .82rem;
    color: #A6412F;
}
.field-error.is-visible { display: block; }

.form-summary-error {
    color: #A6412F;
    font-size: .9rem;
    margin: 0 0 1rem;
    min-height: 1.2em;
}

.form-nav {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.form-nav .btn { min-width: 145px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hp-field {
    /* display:none تنها روشی است که مرورگر و پسورد-منیجر
       را از پر کردن خودکار فیلد تله بازمی‌دارد.
       نسخه قبلی فقط جابه‌جا می‌کرد و مرورگر آن را پر می‌کرد. */
    display: none !important;
}

@media (max-width: 900px) {
    .tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .form-shell { padding: 1.5rem 1.1rem; }
    .form-nav { flex-direction: column-reverse; }
    .form-nav .btn { width: 100%; }
    .form-steps li { min-width: 0; font-size: .78rem; }
    .form-steps li span { width: 22px; height: 22px; font-size: .72rem; }
}

/* ==============================================
   PORTFOLIO — حالت خالی صادقانه
   ============================================== */
.portfolio-empty {
    max-width: 720px;
    margin: 2.5rem auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}
.portfolio-empty h2,
.portfolio-empty h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: .9rem;
}
.portfolio-empty p {
    color: var(--muted);
    line-height: 2;
    max-width: 520px;
    margin: 0 auto 1.75rem;
}
.portfolio-empty-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--border-radius-md);
}

/* ==============================================
   METHOD — روش کار
   ============================================== */
.method-section { padding: 5rem 0; background: var(--white); }

.method-steps {
    list-style: none;
    counter-reset: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.method-steps li {
    border-top: 2px solid var(--border);
    padding-top: 1.1rem;
}
.method-num {
    display: block;
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--olive);
    margin-bottom: .6rem;
    letter-spacing: .05em;
}
.method-steps h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: .5rem;
}
.method-steps p {
    font-size: .88rem;
    line-height: 1.85;
    color: var(--muted);
    margin: 0;
}

/* ==============================================
   FINAL CTA
   ============================================== */
.final-cta {
    background: var(--primary);
    padding: 5rem 0;
    text-align: center;
}
.final-cta h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}
.final-cta p {
    color: rgba(255,255,255,.82);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 2;
}
.final-cta-buttons {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
}
.btn-white:hover { background: var(--bg); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: var(--white); }

/* ==============================================
   WAITLIST
   ============================================== */
.waitlist-section { padding: 4rem 0 5rem; background: var(--bg); }

@media (max-width: 992px) {
    .method-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .method-steps { grid-template-columns: 1fr; gap: 1rem; }
    .portfolio-empty { padding: 2rem 1.25rem; }
    .portfolio-empty-cta .btn { width: 100%; }
}

/* ==============================================
   WHATSAPP FAB — هماهنگ با پالت برند
   (سبز روشن واتساپ با هویت گرم سایت هم‌خوان نیست)
   ============================================== */
.floating-whatsapp {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary);
    transition: background var(--transition-normal);
}
.floating-whatsapp:hover { background: var(--olive) !important; }

.btn-whatsapp {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}
.btn-whatsapp:hover { background: var(--olive); border-color: var(--olive); }

/* دکمه‌ها — مسطح، معماری، بدون سایه سنگین */
.btn {
    border-radius: var(--border-radius-md);
    transition: background var(--transition-normal), color var(--transition-normal),
                border-color var(--transition-normal);
    box-shadow: none;
}
.btn:hover { transform: none; box-shadow: none; }

.btn-primary  { background: var(--primary); color: var(--white); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--olive); border-color: var(--olive); }

.btn-secondary,
.btn-outline  { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover,
.btn-outline:hover { background: var(--primary); color: var(--white); }

.nav-cta-btn {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-md);
}
.nav-cta-btn:hover { background: var(--olive); transform: none; }

/* هدر — گرم و بدون شیشه */
.navbar { background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: none; }
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { background: var(--olive); }

/* ==============================================
   LOGO — فایل رسمی برند (بازطراحی نشده)
   نسبت اصلی: 397 × 789
   ============================================== */
img.brand-mark {
    width: auto;
    height: 40px;
    flex-shrink: 0;
    display: block;
}
.footer-logo img.brand-mark { height: 38px; }

@media (max-width: 992px) {
    img.brand-mark { height: 36px; }
}
@media (max-width: 480px) {
    img.brand-mark { height: 32px; }
    .logo-full { font-size: .92rem; }
}

/* ==============================================
   NAV — رفع باگ منوی موبایل
   منو تا ۷۶۸px افقی می‌ماند ولی از ~۸۶۰px
   می‌شکند و لینک «درباره من» زیر ردیف دوم
   غیرقابل کلیک می‌شود. آستانه به ۹۹۲px منتقل شد.
   ============================================== */
.nav-links { flex-wrap: nowrap; }

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: right .3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        font-size: 1.125rem;
        display: block;
        padding: .35rem 0;
    }

    .nav-cta-btn { display: none; }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* دکمه همبرگری — سطح لمس استاندارد ۴۴px */
.mobile-menu-btn {
    background: none;
    border: 0;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn span { pointer-events: none; }

/* دکمه مشاوره داخل منوی بازشده */
.nav-drawer-cta {
    display: none;
    background: var(--primary);
    color: var(--white);
    padding: .8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    margin-top: .5rem;
}
@media (max-width: 992px) {
    .nav-drawer-cta { display: block; }
}

/* رفع لایه‌بندی: .navbar یک stacking context با z-index:1000 می‌سازد،
   پس overlay باید زیر آن بنشیند وگرنه روی لینک‌های منو می‌افتد */
.mobile-nav-overlay { z-index: 999; }

/* آیتم CTA فقط داخل کشو — در دسکتاپ ردیف خالی نسازد */
.nav-drawer-item { display: none; }
@media (max-width: 992px) {
    .nav-drawer-item { display: block; width: 100%; }
    .nav-drawer-cta { width: 100%; }
}

/* قانون عمومی .nav-links a رنگ تیره را روی دکمه سبز می‌نشاند
   و کنتراست را از بین می‌برد — اینجا بازنویسی می‌شود */
.nav-links a.nav-drawer-cta,
.nav-links a.nav-drawer-cta:hover {
    color: var(--white);
}
.nav-links a.nav-drawer-cta::after { display: none; }

/* ==============================================
   فاصله سربرگ تا کارت‌های مشاوره
   فاصله دیده‌شده = padding پایین سربرگ + padding بالای بخش
   هر دو با هم کم می‌شوند وگرنه نتیجه محسوس نیست
   ============================================== */
.page-header + .consult-tiers { padding-top: 0; }

.consult-page .page-header { padding-bottom: 1.5rem; }

@media (max-width: 992px) {
    .consult-page .page-header { padding-bottom: 2rem; }
}

/* ==============================================
   HERO موبایل — جابه‌جایی عکس و شعار
   در موبایل عکس بالا می‌آید و شعار زیر آن قرار می‌گیرد.
   ترتیب HTML دست‌نخورده می‌ماند تا در دسکتاپ و
   برای صفحه‌خوان‌ها متن همچنان اول باشد.
   ============================================== */
@media (max-width: 768px) {
    .hero-split { display: flex; flex-direction: column; }

    .hero-image   { order: 1; }
    .hero-content { order: 2; }

    /* عکس نباید کل صفحه را بگیرد و شعار را پایین بیندازد */
    .hero-image img {
        max-height: 38svh;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        object-fit: contain;
    }

    .hero { padding-top: 7rem; }
    .hero-image { margin-bottom: 1.5rem; }
}

/* عنوان چهاربخشی صفحه درباره در تبلت دو خط می‌شود
   و ۶ پیکسل از ارتفاع پنجره بیرون می‌زند */
@media (min-width: 769px) and (max-width: 1000px) {
    .about-content h3,
    .about-intro h3,
    .about-text h3 {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* راهنمای زیر فیلد فایل */
.field-hint {
    display: block;
    margin-top: .35rem;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ==========================================================================
   v24 — سیستم تصاویر هویت بصری (افزودنی؛ بدون تغییر قوانین قبلی)
   ========================================================================== */

/* کارت‌های خدمات — تصویر ۴:۳ در بالای کارت */
.service-media {
    margin: -2rem -2rem 1.5rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* بخش درباره من صفحه اصلی — چیدمان تصویر + متن */
.about-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: center;
}
.about-split-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}
@media (max-width: 992px) {
    .about-split { grid-template-columns: 1fr; }
    .about-split-media { max-width: 400px; margin: 0 auto; }
}

/* تصویر شاخص بخش پروژه‌های منتخب */
.portfolio-feature-image {
    max-width: 880px;
    margin: 2.5rem auto 0;
    aspect-ratio: 3 / 2;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.portfolio-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* صفحه پروژه‌ها — آرشیو حرفه‌ای در حال آماده‌سازی */
.projects-page .projects-archive {
    padding: 3rem 0;
    background: var(--light);
}
.projects-archive .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 3rem;
    align-items: center;
}
.projects-archive-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.projects-archive-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projects-page .page-header { padding: 7.5rem 0 2.25rem; }
.projects-archive-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.5; margin: .65rem 0 .85rem; }
.projects-archive-content > p { color: var(--gray-700); line-height: 1.9; margin: 0; }
.projects-archive-checklist { display: grid; gap: .5rem; margin: 1rem 0; }
.projects-archive-checklist span { position: relative; padding-right: 1.45rem; color: var(--primary); font-weight: 600; }
.projects-archive-checklist span::before { content: ''; position: absolute; right: 0; top: .7em; width: .55rem; height: .55rem; background: var(--accent); border-radius: 50%; }
.projects-archive-note { font-size: .85rem; color: var(--muted) !important; border-top: 1px solid var(--border); padding-top: .75rem; }
.projects-archive .portfolio-empty-cta { margin-top: 1rem; }
@media (max-width: 820px) {
    .projects-page .projects-archive { padding: 3rem 0; }
    .projects-archive .container { grid-template-columns: 1fr; gap: 2rem; }
}

/* تصویر کارت دوره شاخص آکادمی */
.course-media {
    margin: -2rem -2rem 1.5rem;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* چهار تصویر مفهومی «چرا با من؟» */
.why-media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.why-media-grid figure {
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.why-media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .why-media-grid { grid-template-columns: repeat(2, 1fr); }
}

/* تصویر واید فرآیند «از ایده تا نمای ساخته‌شده» */
.method-media {
    max-width: 1000px;
    margin: 0 auto 3rem;
    aspect-ratio: 2 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.method-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 640px) {
    .method-media { aspect-ratio: 3 / 2; }
}

/* CTA پایانی با تصویر پس‌زمینه */
.final-cta.final-cta-photo {
    position: relative;
    overflow: hidden;
}
.final-cta-photo .final-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.final-cta-photo .final-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    display: block;
}
.final-cta-photo .final-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(31, 54, 40, 0.78) 20%, rgba(31, 54, 40, 0.62) 55%, rgba(31, 54, 40, 0.5) 100%);
}
.final-cta-photo .container {
    position: relative;
    z-index: 1;
}

/* تصویر هر بلوک خدمت در صفحه خدمات (v24) */
.service-detail-media {
    max-width: 420px;
    aspect-ratio: 4 / 3;
    margin: 0 0 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.service-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* صفحه خدمات — چیدمان یک‌دست با هویت تصویری سایت */
.services-page .page-header { padding-top: 9rem; padding-bottom: 3rem; }
.services-overview {
    padding: 0 0 4rem;
    background: var(--gray-100);
}
.services-overview .container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 3.5rem;
    align-items: center;
}
.services-overview-media {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5 / 4;
}
.services-overview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services-overview-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: .75rem 0 1rem; }
.services-overview-content > p { color: var(--gray-700); line-height: 2; margin: 0; }
.services-overview-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.services-overview-links a {
    color: var(--primary); border: 1px solid var(--border); border-radius: 999px;
    padding: .45rem .8rem; font-size: .88rem; font-weight: 600;
}
.services-overview-links a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.services-page .services-detail { padding: 1rem 0 5rem; background: var(--light); }
.services-page .service-detail-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    grid-template-areas:
        "icon media"
        "title media"
        "details media"
        "link media"
        "button media";
    column-gap: 4rem;
    align-items: start;
    padding: 4rem 0;
}
.services-page .service-detail-block:nth-child(even) { background: var(--gray-100); }
.services-page .service-detail-icon { grid-area: icon; width: 52px; height: 52px; margin: 0 0 1rem; }
.services-page .service-detail-block h2 { grid-area: title; margin: 0 0 1.4rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.services-page .service-detail-media { grid-area: media; max-width: none; width: 100%; height: 100%; min-height: 330px; margin: 0; }
.services-page .service-detail-media img { object-position: center; }
.services-page .service-detail-grid { grid-area: details; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1.75rem; }
.services-page .service-detail-grid > div {
    background: rgba(255,255,255,.52);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.05rem;
}
.services-page .service-detail-grid h4 { color: var(--primary); font-size: .95rem; margin-bottom: .45rem; }
.services-page .service-detail-grid p { font-size: .92rem; line-height: 1.95; }
.services-page .service-detail-link { grid-area: link; margin: 0 0 1rem; }
.services-page .service-detail-block .btn { grid-area: button; justify-self: start; padding-inline: 1.4rem; }
@media (max-width: 820px) {
    .services-overview .container,
    .services-page .service-detail-block {
        grid-template-columns: 1fr;
    }
    .services-overview { padding-bottom: 2.5rem; }
    .services-overview .container { gap: 1.75rem; }
    .services-page .service-detail-block {
        grid-template-areas: "icon" "title" "media" "details" "link" "button";
        padding: 2.75rem 0;
    }
    .services-page .service-detail-media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
    .services-page .service-detail-grid { grid-template-columns: 1fr; }
    .services-overview-links { justify-content: center; }
}
@media (max-width: 640px) {
    .service-detail-media { max-width: 100%; }
}

/* ==============================================
   HERO BANNER — تصویر تمام‌عرض با متن روی آن
   فقط روی .hero-banner در صفحه اصلی اعمال می‌شود.
   سربرگ سایر صفحات دست‌نخورده می‌ماند.
   ============================================== */
.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    overflow: hidden;
    background: var(--primary);

    width: 100%;

    /* ارتفاع بر اساس نسبت تصویر (2048/1154 = 1.775) محاسبه
       می‌شود، ولی از عرضِ پنجره نه از aspect-ratio — چون
       aspect-ratio عرض بلوک را هم محدود می‌کرد و کنار صفحه
       نوار خالی می‌افتاد.
       نتیجه: قاب هم‌نسبت تصویر است، پس cover چیزی نمی‌برد. */
    height: 56.35vw;              /* 1 / 1.775 */
    max-height: calc(100svh - 86px);
    min-height: 480px;
}

.hero-banner .hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.hero-banner .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* قاب هم‌نسبت تصویر است، پس عملاً برشی رخ نمی‌دهد.
       اگر در نمایشگری اختلاف جزئی بماند، از پایین گرفته
       می‌شود نه از بالای سر. */
    object-position: center 20%;
    display: block;
}

/* لایه خوانایی — از راست تیره‌تر تا متن روی آن خوانده شود */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(18, 22, 16, .90) 0%,
        rgba(18, 22, 16, .80) 30%,
        rgba(18, 22, 16, .42) 52%,
        rgba(18, 22, 16, .06) 72%,
        rgba(18, 22, 16, 0) 100%
    );
    pointer-events: none;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner .hero-content {
    max-width: 560px;
    /* متن در نیمه چپ قاب می‌نشیند تا روی چهره نیفتد.
       در RTL برای راندن بلوک به چپ باید margin سمت راست auto شود. */
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

/* رنگ متن روی تصویر تیره */
.hero-banner .hero-title    { color: var(--white); }
.hero-banner .hero-subtitle { color: rgba(255, 255, 255, .92); }

.hero-banner .hero-microproof {
    color: rgba(255, 255, 255, .82);
}
.hero-banner .hero-microproof span {
    color: rgba(255, 255, 255, .45);
}

/* دکمه دوم روی تصویر تیره باید سفید باشد */
.hero-banner .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .75);
}
.hero-banner .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* لوگوی برند — گوشه چپ پایین قاب */
.hero-banner .hero-logo {
    position: absolute;
    left: 3.5rem;
    bottom: 2.75rem;
    z-index: 3;
    width: auto;
    height: 54px;
    opacity: .95;
    pointer-events: none;
}

/* ---------- تبلت ---------- */
@media (max-width: 992px) {
    /* در عرض کم، متن کنار چهره جا نمی‌شود.
       پس مثل موبایل به پایین قاب منتقل می‌شود. */
    .hero-banner {
        min-height: calc(100svh - 86px);
        max-height: none;
        padding: 2.5rem 0 3rem;
        align-items: flex-end;
    }

    .hero-banner .hero-logo {
        left: 1.75rem;
        bottom: 1.5rem;
        height: 44px;
    }

    .hero-banner .hero-bg img { object-position: 60% top; }

    .hero-banner::after {
        background: linear-gradient(
            0deg,
            rgba(18, 22, 16, .93) 0%,
            rgba(18, 22, 16, .85) 34%,
            rgba(18, 22, 16, .50) 58%,
            rgba(18, 22, 16, .08) 100%
        );
    }

    .hero-banner .hero-content {
        max-width: 100%;
        margin-right: 0;
    }
}

/* ---------- موبایل ----------
   تصویر عمودی می‌آید؛ متن پایین می‌نشیند تا
   روی صورت نیفتد. */
@media (max-width: 768px) {
    .hero-banner {
        min-height: calc(100svh - 76px);
        max-height: none;
        align-items: flex-end;
        padding: 2rem 0 2.5rem;
        text-align: right;
    }

    /* در موبایل لوگو بالای قاب می‌نشیند تا با متن پایین تداخل نکند */
    .hero-banner .hero-logo {
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 1.25rem;
        height: 38px;
        opacity: .92;
    }

    .hero-banner .hero-bg img { object-position: 50% top; }

    .hero-banner::after {
        background: linear-gradient(
            0deg,
            rgba(20, 24, 18, .94) 0%,
            rgba(20, 24, 18, .88) 38%,
            rgba(20, 24, 18, .55) 62%,
            rgba(20, 24, 18, .10) 100%
        );
    }

    .hero-banner .hero-content { text-align: right; }
    .hero-banner .hero-buttons { justify-content: flex-start; }
    .hero-banner .hero-buttons .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
    .hero-banner { min-height: calc(100svh - 76px); padding: 1.5rem 0 2rem; }
    .hero-banner .hero-logo { height: 34px; top: 1rem; }
}

/* صفحه‌های کوتاه‌قد (iPhone SE و مشابه) — فشرده‌سازی جزئی
   تا کل هیرو در یک نما جا شود */
@media (max-width: 480px) and (max-height: 620px) {
    .hero-banner { padding: 1rem 0 1.5rem; }
    .hero-banner .hero-title    { font-size: 1.45rem; margin-bottom: .7rem; }
    .hero-banner .hero-subtitle { font-size: .85rem; margin-bottom: 1.1rem; }
    .hero-banner .hero-logo     { height: 28px; top: .6rem; }
    .hero-banner .hero-buttons .btn { padding: .7rem 1.2rem; font-size: .9rem; }
}

/* صفحه‌های کوتاه (موبایل افقی) */
@media (max-width: 992px) and (max-height: 480px) {
    .hero-banner {
        /* در افقی ارتفاع آزاد است تا محتوا بریده نشود */
        min-height: auto;
        max-height: none;
        padding: 5rem 0 1.5rem;
        align-items: center;
    }
    .hero-banner .hero-title    { font-size: 1.3rem; margin-bottom: .5rem; }
    .hero-banner .hero-subtitle { font-size: .8rem; margin-bottom: .85rem; }
    .hero-banner .hero-microproof { font-size: .72rem; }
    .hero-banner .hero-buttons .btn { padding: .6rem 1.1rem; font-size: .85rem; }
    /* در افقی قاب بسیار پهن است؛ تمرکز روی بالای کادر
       تا سر بریده نشود */
    .hero-banner .hero-bg img { object-position: 72% 8%; }
    .hero-banner .hero-logo { display: none; }
}

/* ---------- یکدست‌سازی نهایی موبایل همه صفحات ---------- */
@media (max-width: 640px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .container { width: calc(100% - 2rem); max-width: 1180px; }

    .page-header { padding: 6.5rem 0 2rem; }
    .page-header h1 { font-size: clamp(1.65rem, 8vw, 2.25rem); line-height: 1.5; }
    .page-header p { font-size: .9rem; line-height: 2; }

    .section-title { font-size: clamp(1.45rem, 7vw, 2rem); line-height: 1.55; }
    .section-lead { font-size: .9rem; line-height: 2; }
    .btn { min-height: 44px; }

    .articles, .projects, .services, .about, .contact, .consultation { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .article-featured, .article-card, .service-block, .project-card { min-width: 0; }
    .article-featured .article-image, .article-card .article-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
    .article-featured .article-content, .article-card .article-content { padding: 1.25rem; }

    .projects-archive { padding: 2.25rem 0 !important; }
    .projects-archive-content h2 { font-size: clamp(1.5rem, 7vw, 2.1rem); line-height: 1.55; }
    .projects-archive-content p { font-size: .9rem; line-height: 2; }
    .projects-archive-image img { aspect-ratio: 4 / 3; object-fit: cover; }

    .course-wide .course-body { padding: 1.35rem 1.15rem !important; }
    .course-wide .course-body h2 { font-size: 1.45rem; line-height: 1.55; }
    .course-wide .course-features { gap: .45rem; flex-wrap: wrap; }
    .course-wide .course-feature { font-size: .78rem; padding: .45rem .6rem; }

    .about-page .about-content h1 { font-size: 1.7rem; line-height: 1.6; }
    .about-page .about-content p { font-size: .9rem; line-height: 2; }
    .about-page .about-images img { max-height: 70svh; object-fit: cover; }

    .form-row { grid-template-columns: 1fr !important; }
    input, textarea, select { max-width: 100%; font-size: 16px; }
    .footer { padding-top: 2rem; }
    .footer-bottom { text-align: center; }
}


/* ==============================================
   دو دکمه نوار بالا: «درخواست طراحی نما» + «درخواست مشاوره»
   ============================================== */
.nav-ctas { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-cta-btn.nav-cta-alt {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.nav-cta-btn.nav-cta-alt:hover,
.nav-cta-btn.nav-cta-alt.active-link { background: var(--primary); color: var(--white); }
/* صفحه‌های متوسط: جا برای دو دکمه کم است؛ فاصله‌ها کمی جمع‌تر */
@media (max-width: 1280px) {
    .nav-ctas .nav-cta-btn { padding: .7rem 1rem; font-size: .92rem; }
}
/* زیر ۱۲۰۰px جای دو دکمه نیست (منو به هم می‌ریزد)؛ فقط «درخواست مشاوره» می‌ماند */
@media (max-width: 1199px) {
    .nav-ctas .nav-cta-alt { display: none; }
}
@media (max-width: 992px) {
    .nav-ctas { display: none; }
}
.nav-drawer-cta.nav-drawer-alt {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}
