/* ========================================
   Verna Pardis Saman - Company Website
   Design: Modern Corporate Construction
   Palette: Verna Azure + Sky Teal (matches brand logo)
   ======================================== */

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

:root {
    /* Brand color palette — aligned with new VPS logo (#0F5B8A deep navy blue)
       Logo features building/skyline silhouette + Persian/Latin text in deep blue */
    --brand-900: #062a44;   /* deepest — for dark sections (topbar, hero overlay) */
    --brand-800: #0a3a5c;   /* dark brand — primary dark surfaces */
    --brand-700: #0f4a73;   /* navy-brand — footer, CTA banner */
    --brand-600: #0f5b8a;   /* PRIMARY brand blue — matches logo exactly */
    --brand-500: #1565c0;   /* mid brand — for emphasis */
    --brand-400: #1e7bb5;   /* lighter brand */
    --brand-300: #4a9ccb;   /* light brand */
    --brand-200: #8fc1de;   /* very light brand */
    --brand-100: #c5e0ee;   /* pale brand */
    --brand-50: #e8f3f9;    /* mist brand */

    /* Accent — warm gold (returns brand to a classic construction feel,
       pairs beautifully with the new deep navy logo) */
    --accent-600: #b8860b;   /* dark gold */
    --accent-500: #d4a017;   /* PRIMARY gold accent */
    --accent-400: #e6b422;   /* light gold */
    --accent-300: #f0c855;   /* lighter gold */

    /* Neutral grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;

    /* Backward-compat aliases (so existing rules using old names still work) */
    --navy-900: var(--brand-900);
    --navy-800: var(--brand-800);
    --navy-700: var(--brand-700);
    --navy-600: var(--brand-600);
    --navy-500: var(--brand-500);
    --navy-400: var(--brand-400);
    --gold-600: var(--accent-600);
    --gold-500: var(--accent-500);
    --gold-400: var(--accent-400);
    --gold-300: var(--accent-300);

    /* Typography */
    --font-fa: 'Vazirmatn', 'Tahoma', sans-serif;

    /* Spacing */
    --section-pad: 100px;
    --container-max: 1280px;
    --container-pad: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-fa);
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ===== Top Bar ===== */
.topbar {
    background: var(--navy-900);
    color: var(--gray-300);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-contact {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-300);
}

.topbar-item:hover {
    color: var(--gold-400);
}

.topbar-item svg {
    color: var(--gold-500);
}

.topbar-tag {
    color: var(--gold-400);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
    transform: translateY(-2px);
}

/* Social links on light backgrounds (footer) */
.social-links-light .social-link {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--gray-300);
}

.social-links-light .social-link:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(13, 34, 64, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(13, 34, 64, 0.12);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* New logo is portrait/square (icon + stacked text below).
   Use a height that keeps the text legible while fitting the header. */
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Hide the brand text on small screens since logo already includes the name */
.logo-text-wrap {
    display: none;
}

/* Fallback brand text (hidden by default, shown if logo fails to load) */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-fa {
    color: var(--brand-800);
    font-weight: 700;
    font-size: 16px;
}

.logo-en {
    color: var(--gray-400);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-link {
    padding: 10px 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-800);
    background: var(--gray-100);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 25, 41, 0.92) 0%,
        rgba(13, 34, 64, 0.85) 50%,
        rgba(20, 54, 92, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px 200px;
    width: 100%;
}

.hero-text {
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 50px;
    color: var(--gold-300);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .accent {
    color: var(--gold-400);
    display: inline-block;
    position: relative;
}

.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background: rgba(201, 169, 97, 0.25);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

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

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    padding: 16px 40px;
    font-size: 16px;
}

.btn-gold:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.btn-full {
    width: 100%;
}

/* Hero stats */
.hero-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(10, 25, 41, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(201, 169, 97, 0.25);
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 24px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Sections ===== */
.section {
    padding: var(--section-pad) 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--gold-600);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    position: relative;
    padding: 0 30px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--gold-500);
}

.section-eyebrow::before { right: 0; }
.section-eyebrow::after { left: 0; }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--navy-800);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
}

/* ===== About ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
    margin: 32px 0 14px;
    position: relative;
    padding-right: 18px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--gold-500);
    border-radius: 3px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.95;
    margin-bottom: 20px;
}

.about-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    transform: translateY(-4px);
}

.info-card:hover .info-label,
.info-card:hover .info-value {
    color: var(--white);
}

.info-card:hover .info-value {
    color: var(--gold-400);
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
    transition: var(--transition);
}

.info-value {
    display: block;
    font-weight: 700;
    color: var(--navy-800);
    font-size: 15px;
    transition: var(--transition);
}

.about-visual {
    position: relative;
    padding: 20px;
}

.about-image-main,
.about-image-secondary {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 34, 64, 0.15);
}

.about-image-main {
    width: 100%;
    height: 380px;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 60%;
    height: 200px;
    border: 6px solid var(--white);
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background: var(--gold-500);
    color: var(--navy-900);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.4);
    text-align: center;
    z-index: 2;
}

.badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    max-width: 110px;
}

/* ===== History Timeline ===== */
.history {
    background: var(--gray-50);
    position: relative;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold-500) 10%, var(--gold-500) 90%, transparent);
    transform: translateX(50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px;
    text-align: left;
}

.timeline-item:nth-child(even) {
    margin-right: 50%;
    text-align: right;
    padding: 0 40px 50px 0;
}

.timeline-item:nth-child(odd) {
    margin-right: 0;
    padding: 0 0 50px 40px;
}

.timeline-dot {
    position: absolute;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--gold-500);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13, 34, 64, 0.08);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 34, 64, 0.12);
    border-color: var(--gold-400);
}

.timeline-year {
    display: inline-block;
    color: var(--gold-600);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 50px;
}

.timeline-content h4 {
    color: var(--navy-800);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== Organizational Structure ===== */
.org-structure {
    background: var(--white);
}

.org-chart {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
}

.org-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.org-connector {
    width: 2px;
    height: 30px;
    background: var(--gray-300);
    margin: 0 auto;
}

.org-node {
    background: var(--white);
    color: var(--navy-800);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(13, 34, 64, 0.05);
}

.org-node:hover {
    transform: translateY(-3px);
    border-color: var(--gold-400);
    box-shadow: 0 8px 20px rgba(13, 34, 64, 0.1);
}

.org-node-board {
    background: var(--navy-900);
    color: var(--gold-400);
    border-color: var(--navy-900);
    font-size: 16px;
    padding: 16px 32px;
}

.org-node-ceo {
    background: var(--navy-700);
    color: var(--white);
    border-color: var(--navy-700);
    font-size: 16px;
    padding: 16px 32px;
}

.org-node-deputy {
    background: var(--navy-600);
    color: var(--white);
    border-color: var(--navy-600);
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.org-grid .org-node {
    font-size: 13px;
    padding: 12px 14px;
    min-width: auto;
}

/* ===== Vision & Mission ===== */
.vision-mission {
    background: var(--gray-50);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: var(--white);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(13, 34, 64, 0.06);
    border-top: 4px solid var(--gold-500);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 34, 64, 0.12);
}

.vm-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold-400);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(13, 34, 64, 0.2);
}

.vm-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-800);
    margin-bottom: 20px;
}

.vm-card p {
    color: var(--gray-600);
    line-height: 1.95;
    margin-bottom: 16px;
}

.vm-list {
    margin: 20px 0;
    padding: 0;
}

.vm-list li {
    position: relative;
    padding: 8px 28px 8px 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.vm-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 18px;
    width: 14px;
    height: 14px;
    background: var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}

/* ===== Services ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, var(--gold-500), var(--navy-700));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 34, 64, 0.12);
    border-color: transparent;
}

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

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-700);
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--navy-800);
    border-color: var(--gold-500);
    color: var(--gold-400);
    transform: rotate(-5deg) scale(1.05);
}

.service-code {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--gold-500);
    color: var(--navy-900);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(201, 169, 97, 0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 14px;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 15px;
}

/* ===== Projects ===== */
.projects {
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 34, 64, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 34, 64, 0.18);
}

.project-image {
    position: relative;
    height: 220px;
    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.08);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 41, 0.7) 0%, transparent 50%);
}

.project-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--navy-800);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-date {
    display: inline-block;
    color: var(--gold-600);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.project-body h3 {
    color: var(--navy-800);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.meta-value {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 600;
}

/* ===== Values ===== */
.values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 24px;
    transition: var(--transition);
    text-align: center;
}

.value-item:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13, 34, 64, 0.2);
}

.value-item:hover .value-icon {
    background: var(--gold-500);
    color: var(--navy-900);
}

.value-item:hover h4,
.value-item:hover p {
    color: var(--white);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 1.5px solid var(--gold-500);
    color: var(--gold-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: var(--transition);
}

.value-item h4 {
    color: var(--navy-800);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.value-item p {
    color: var(--gray-600);
    font-size: 13.5px;
    line-height: 1.8;
    transition: var(--transition);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-40%, 40%);
}

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

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ===== Contact ===== */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--gold-400);
    box-shadow: 0 10px 30px rgba(13, 34, 64, 0.08);
    transform: translateX(-6px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--navy-800);
    color: var(--gold-400);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    color: var(--navy-800);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(13, 34, 64, 0.06);
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    color: var(--navy-800);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-desc {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: var(--transition);
    margin-bottom: 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-400);
}

.form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    color: var(--gold-600);
    font-weight: 500;
}

.form-note.success {
    color: #16a34a;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-900);
    color: var(--gray-300);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
    line-height: 0;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    /* Logo is dark blue on transparent — on the dark footer, invert to white
       so the building icon + brand text stay legible. */
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

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

.footer-logo .logo-en {
    color: var(--gray-400);
}

.footer-about {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.9;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-500);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-400);
    transform: translateX(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

.footer-credit {
    color: var(--accent-400);
}

/* "Designed by Verna Soft" credit */
.design-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    font-size: 13px;
    transition: var(--transition);
}

.design-credit:hover {
    color: var(--accent-400);
}

.design-credit .heart {
    color: #e25555;
    display: inline-block;
    animation: heartbeat 1.6s ease-in-out infinite;
    font-size: 14px;
    line-height: 1;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.2); }
    20% { transform: scale(1); }
    30% { transform: scale(1.15); }
    40% { transform: scale(1); }
}

.design-credit .verna-soft-link {
    color: var(--accent-400);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    padding-bottom: 1px;
}

.design-credit .verna-soft-link:hover {
    border-bottom-color: var(--accent-400);
}

/* ===== Scroll to top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--navy-800);
    color: var(--gold-400);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 34, 64, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-4px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeInUp 0.7s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 70px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
        --container-pad: 18px;
    }

    .topbar {
        display: none;
    }

    .nav-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(13, 34, 64, 0.1);
        transform: translateY(-200%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 14px 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-en {
        display: none;
    }

    .logo-img {
        height: 56px;
    }

    .logo-fa {
        font-size: 14px;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 40px 18px 180px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 18px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .about-info-cards {
        grid-template-columns: 1fr;
    }

    .about-image-main {
        height: 280px;
    }

    .about-image-secondary {
        position: relative;
        width: 100%;
        left: 0;
        height: 180px;
        margin-top: 12px;
    }

    .about-badge {
        top: -10px;
        right: 10px;
        padding: 12px 16px;
    }

    .badge-num {
        font-size: 1.5rem;
    }

    .timeline::before {
        right: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100%;
        margin-right: 0;
        padding: 0 0 40px 50px;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        right: 11px;
        left: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .org-grid {
        grid-template-columns: 1fr;
    }

    .org-row {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 12px;
    }

    .design-credit {
        justify-content: center;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .vm-card {
        padding: 28px 24px;
    }

    .contact-form-wrap {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 48px;
    }

    .footer-logo-img {
        height: 60px;
    }
}
