/*
Theme Name: MS Facade Studio
Theme URI: https://example.com/
Author: MS
Description: قالب فارسی راست‌چین برای معرفی خدمات طراحی و اجرای نمای ساختمان.
Version: 1.0.0
Text Domain: ms-facade-studio
*/

/* ==============================================
   Architecture Website
   Modern, Professional, RTL Design
   ============================================== */

/* CSS Variables — green-tonal architectural palette on warm stone background, per reference brief */
:root {
    --primary: #24402f;
    --primary-light: #2f5039;
    --secondary: #c2703f;
    --accent: #5c7a5f;
    --accent-light: #8aa688;
    --dark: #16241c;
    --light: #ffffff;
    --gray-100: #f2f5f2;
    --gray-200: #e3e9e3;
    --gray-300: #cddbd0;
    --gray-400: #a9bcae;
    --gray-500: #7f9385;
    --gray-600: #5f7264;
    --gray-700: #454f47;
    --gray-800: #2c332d;
    --gray-900: #1b201c;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent-light) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(22, 36, 28, 0.95) 0%, rgba(16, 26, 20, 0.98) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --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: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-800);
    background-color: var(--light);
    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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    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: 88vh;
    display: flex;
    align-items: center;
    background: var(--light);
    overflow: hidden;
    padding: 7rem 0 3rem;
}

.page-header::before,
.course-hero::before,
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(36,64,47,0.06) 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;
    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: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--gray-300);
}

.path-student {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    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: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    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: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.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-images {
    position: relative;
}

.about-image-main {
    position: relative;
}

.about-image-main img {
    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: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    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-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: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.8) 100%);
}
.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 {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}
