* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

@font-face {
    font-family: vazirmatn;
    src: url('../fonts/Vazirmatn-Regular.woff2');
    font-weight: 400;
}

@font-face {
    font-family: vazirmatn;
    src: url('../fonts/Vazirmatn-Medium.woff2');
    font-weight: 500;
}

@font-face {
    font-family: vazirmatn;
    src: url('../fonts/Vazirmatn-Bold.woff2');
    font-weight: 700;
}

body{
    font-family: vazirmatn, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}
html[dir="rtl"] .hero-grid {
    direction: rtl;
    grid-template-columns: 1fr 1fr;
}

html[dir="rtl"] .hero-text {
    text-align: right;
}

html[dir="rtl"] .section-title {
    text-align: right;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
    text-align: right;
}

@media (max-width: 900px) {
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        background: #fff;
        width: 100%;
        padding: 20px;
        display: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: right;
    }

    .menu-toggle {
        margin-left: 15px;
    }
}

h1, h2, h3, p, a {
    letter-spacing: normal;
    word-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image { order: -1; }
}

body {
    background: #f8f9fb;
    color: #222;
    line-height: 1.8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
/* ================= HEADER ================= */

.main-header{
    width:100%;
    background:#fff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:999;
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* لوگو */

/* منوی دسکتاپ */

.nav-desktop ul{
    display:flex;
    gap:28px;
    list-style:none;
}

.nav-desktop a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:.3s;
}

.nav-desktop a:hover{
    color:#0d47a1;
}

/* دکمه تماس */

/* آیکن موبایل */

.mobile-menu-icon{
    width:30px;
    height:22px;
    display:none;
    flex-direction:column;
    justify-content:space-between;
    cursor:pointer;
}

.mobile-menu-icon span{
    width:100%;
    height:3px;
    background:#0d47a1;
    border-radius:3px;
}

/* منوی موبایل */

.nav-mobile{
    position:fixed;
    top:0;
    right:-100%;
    width:75%;
    max-width:300px;
    height:100vh;
    background:#fff;
    padding:40px 25px;
    transition:.4s;
    box-shadow:-4px 0 20px rgba(0,0,0,0.15);
}

.nav-mobile ul{
    list-style:none;
}

.nav-mobile li{
    margin:20px 0;
}

.nav-mobile a{
    text-decoration:none;
    color:#333;
    font-size:18px;
    font-weight:600;
}

.nav-mobile.active{
    right:0;
}

/* ================= MOBILE ================= */

@media (max-width:900px){

    .nav-desktop{
        display:none;
    }

    .mobile-menu-icon{
        display:flex;
    }

    .btn-consult{
        display:none;
    }

}

/* ساختار کلی هدر */


.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #0d47a1;
    text-decoration: none;
}

/* منوی دسکتاپ */

.header-btn {
    background: #0d47a1;
    padding: 8px 16px;
    color: #fff !important;
    border-radius: 6px;
}



/* موبایل */
@media screen and (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
    }
}

.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

/* Hero */

.hero {
    padding: 80px 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
}

/* Sections */

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Footer */

.footer {
    background: #111827;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-grid,
    .cards-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav ul {
        display: none;
    }
}

/* Mobile Menu */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff;
        width: 100%;
        padding: 20px;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Sticky Header */

.header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* Scroll Animation */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    padding: 60px 0 40px;
    text-align: right;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header .subtitle {
    color: #666;
    margin-top: 5px;
}

.blog-hero img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}

.blog-content {
    max-width: 900px;
}

.blog-article h2 {
    font-size: 26px;
    margin-top: 30px;
    color: #0d47a1;
}

.blog-article h3 {
    font-size: 20px;
    margin-top: 20px;
}

.blog-article p {
    font-size: 17px;
    margin-top: 10px;
    line-height: 1.9;
}

.blog-article ul {
    margin: 15px 30px 20px 0;
    line-height: 2;
}
.products img {
    max-width: 90%;
    height: auto;
}
.about img {
    max-width: 90%;
    height: auto;
}

.btn-consult {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.25);
    cursor: pointer;
}

.btn-consult:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 71, 161, 0.35);
    background: linear-gradient(135deg, #1565c0, #1e88e5);
}

/* ساختار کلی هدر */
.main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #0d47a1;
    text-decoration: none;
}

/* منوی دسکتاپ */
.nav-desktop ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-desktop a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.nav-desktop a:hover {
    color: #0d47a1;
}

.header-btn {
    background: #0d47a1;
    padding: 8px 16px;
    color: #fff !important;
    border-radius: 6px;
}

/* آیکن منوی موبایل */
.mobile-menu-icon {
    width: 32px;
    height: 26px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-icon span {
    width: 100%;
    height: 4px;
    background: #0d47a1;
    border-radius: 4px;
    transition: 0.3s;
}

/* منوی موبایل حرفه‌ای */
.nav-mobile {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background: white;
    padding: 40px 20px;
    transition: 0.4s ease;
    box-shadow: -3px 0 20px rgba(0,0,0,0.15);
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
}

.nav-mobile li {
    margin: 20px 0;
}

.nav-mobile a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.header-btn-mobile {
    background: #0d47a1;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
}

/* حالت فعال منوی موبایل */
.nav-mobile.active {
    right: 0;
}

/* موبایل */
@media screen and (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
    }
}
/* =========================
   CONTACT PAGE
========================= */

.contact-hero{
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color:#fff;
    padding:80px 0;
    text-align:center;
}

.contact-hero h1{
    font-size:36px;
    margin-bottom:15px;
}

.contact-hero p{
    max-width:700px;
    margin:auto;
    line-height:1.9;
    opacity:.9;
}

/* layout */

.contact-section{
    padding:70px 0;
    background:#f9fafc;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

/* form */

.contact-form-wrapper{
    background:#fff;
    padding:35px;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2{
    margin-bottom:10px;
}

.contact-intro{
    color:#666;
    margin-bottom:25px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:500;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-family:inherit;
    transition:.2s;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:#2c7be5;
    outline:none;
}

/* contact info */

.contact-info{
    background:#fff;
    padding:35px;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.contact-info h2{
    margin-bottom:25px;
}

.info-block{
    margin-bottom:25px;
}

.info-block h3{
    font-size:18px;
    margin-bottom:10px;
}

.info-item{
    color:#555;
    line-height:1.9;
}

/* social */

.social-links{
    display:flex;
    gap:10px;
}

.social-links a{
    padding:8px 14px;
    background:#eef2f7;
    border-radius:6px;
    font-size:14px;
    text-decoration:none;
    color:#333;
    transition:.2s;
}

.social-links a:hover{
    background:#2c7be5;
    color:#fff;
}

/* map */

.contact-map-section{
    padding:60px 0;
}

.contact-map-section h2{
    text-align:center;
    margin-bottom:30px;
}

.map-placeholder{
    height:320px;
    background:#e9eef5;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
}

/* responsive */

@media (max-width:900px){

    .contact-grid{
        grid-template-columns:1fr;
    }

    .form-row{
        grid-template-columns:1fr;
    }

}

body{line-height:1.8}
.hero-image img,.logo img{max-width:100%;height:auto}
.cards-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.blog-card h2{font-size:1.1rem;line-height:1.9}
.blog-meta{display:block;margin-bottom:10px;color:#6b7280;font-size:.9rem}
.blog-cta{margin-top:40px;padding:32px 24px;background:#f5f7fb;border-radius:16px;text-align:center}
.contact-form-wrapper form{display:grid;gap:16px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 14px;border:1px solid #d9dee8;border-radius:12px;font-family:inherit}
.form-group label{display:block;margin-bottom:8px}
button[type="submit"],.btn-consult,.btn-outline{min-height:44px}
.consult-sticky{position:fixed;left:16px;bottom:16px;z-index:999;padding:12px 18px;border-radius:999px;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.nav-mobile.active{display:block}
@media (max-width:900px){
  .nav-desktop{display:none}
  .mobile-menu-icon{display:flex}
  .btn-consult{display:inline-flex}
  .hero-grid{grid-template-columns:1fr;text-align:center}
}
@media (max-width:768px){
  .container{width:min(100% - 32px,1200px)}
  .hero-buttons{display:grid;gap:12px}
  .cta-content h2,.page-header h1,.hero-text h1{font-size:1.8rem}
}

.blog-cards {
    align-items: stretch;
}

.blog-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card-category,
.blog-article-category {
    display: inline-block;
    font-size: 13px;
    line-height: 1.6;
    color: #0f766e;
    background: #ecfeff;
    padding: 4px 10px;
    border-radius: 6px;
}

.blog-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.8;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-meta,
.blog-article-date {
    font-size: 13px;
    color: #6b7280;
}

.blog-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
    flex: 1;
}

.blog-card-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    text-decoration: none;
}

.blog-empty {
    text-align: center;
    padding: 40px 20px;
}

.blog-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.blog-article h2 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-article h3 {
    margin-top: 24px;
    margin-bottom: 10px;
}

.blog-article p,
.blog-article li {
    line-height: 2;
    color: #374151;
}

.blog-related {
    padding: 20px 0 60px;
}

.blog-related h2 {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .blog-card h3 {
        font-size: 18px;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-article-meta {
        gap: 8px;
    }
}

.blog-cards {
    align-items: stretch;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-body h3 {
    margin: 0;
}

.blog-card-body p {
    margin: 0;
    line-height: 1.9;
    color: #555;
    flex: 1;
}

.blog-card-link {
    text-decoration: none;
    font-weight: bold;
}

.blog-hero img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.feature-cards,
.service-cards,
.blog-cards {
    align-items: stretch;
}

.feature-card,
.service-card,
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-thumb,
.service-thumb,
.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.feature-thumb img,
.service-thumb img,
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.feature-card:hover img,
.service-card:hover img,
.blog-card:hover img {
    transform: scale(1.05);
}

.feature-card h3,
.service-card h3,
.blog-card h3 {
    margin: 0 0 12px;
    padding: 20px 20px 0;
}

.feature-card p,
.service-card p {
    margin: 0;
    padding: 0 20px 20px;
    line-height: 1.9;
    color: #555;
    flex: 1;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-body p {
    margin: 0;
    line-height: 1.9;
    color: #555;
    flex: 1;
}

.blog-card-link {
    text-decoration: none;
    font-weight: 700;
}

.home-blog-preview {
    padding: 70px 0;
    background: #f8fafc;
}

.feature-card,
.service-card,
.blog-card {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover,
.service-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    transition: 0.3s ease;
}

@media (max-width: 768px) {
    .feature-thumb,
    .service-thumb,
    .blog-card-image {
        height: 190px;
    }
}
