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

:root {
    --primary: #0a3d4a;
    --primary-dark: #062a33;
    --primary-light: #0d4f5f;
    --gold: #c9a227;
    --gold-light: #e0b83a;
    --gold-dark: #a8841f;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --text: #2c3e50;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 24px;
}

.contact-info a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--gold);
}

.contact-info i {
    color: var(--gold);
    font-size: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
}

.lang-switch a {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 13px;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--gold);
}

/* Navbar */
.navbar {
    padding: 12px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-en {
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.logo-fa {
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 61, 74, 0.92) 0%,
        rgba(10, 61, 74, 0.75) 40%,
        rgba(10, 61, 74, 0.4) 70%,
        rgba(10, 61, 74, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.title-en {
    display: block;
    color: var(--white);
}

.title-gold {
    display: block;
    color: var(--gold);
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Quick Services ===== */
.quick-services {
    background: var(--primary);
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.quick-service-item {
    text-align: center;
    padding: 40px 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.quick-service-item:last-child {
    border-left: none;
}

.quick-service-item:hover {
    background: var(--primary-light);
}

.qs-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
}

.quick-service-item h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.quick-service-item p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

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

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

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-logo-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 61, 74, 0.9);
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.overlay-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 32px;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.section-title.center {
    text-align: center;
    margin-bottom: 50px;
}

.section-title.center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== Stats ===== */
.stats {
    background: var(--primary);
    padding: 60px 0;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 8px;
}

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

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--gray-100);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 162, 39, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(10,61,74,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

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

.services-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== Categories ===== */
.categories {
    padding: 100px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
}

.cat-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    background: var(--gray-200);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .cat-img img {
    transform: scale(1.08);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Inquiry ===== */
.inquiry {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.inquiry-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.inquiry .section-title {
    color: var(--white);
    margin-bottom: 12px;
}

.inquiry .section-title::after {
    background: var(--gold);
}

.inquiry-content > p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
}

.inquiry-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: right;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.inquiry-form .btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    font-size: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-en {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.footer-logo .logo-fa {
    display: block;
    color: var(--gold);
    font-size: 13px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.6);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
}

.footer-contact i {
    color: var(--gold);
    width: 16px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-service-item {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }

    .hero {
        min-height: 85vh;
        padding-top: 80px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 61, 74, 0.85) 0%,
            rgba(10, 61, 74, 0.7) 100%
        );
    }

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

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

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

    .inquiry-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .quick-services-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}
