@font-face {
    font-family: IRANSans;
    src: local("IRANSans"), local("IRANSansWeb"), url("../fonts/IRANSansWeb.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink-950: #07182D;
    --ink-900: #0B1F3A;
    --ink-800: #163A63;
    --ink-600: #526B86;
    --ink-500: #72839A;
    --brand-700: #91451E;
    --brand-600: #B85C27;
    --brand-500: #D77A3A;
    --brand-100: #F7EAE1;
    --brand-50: #FBF6F1;
    --sand-100: #f4efe5;
    --sand-50: #faf8f3;
    --white: #fff;
    --line: #DCE3EB;
    --shadow-sm: 0 8px 28px rgba(11, 31, 58, .07);
    --shadow-lg: 0 28px 80px rgba(11, 31, 58, .14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink-950);
    font-family: IRANSans, Arial, Tahoma, sans-serif;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
a, button, input, textarea { font: inherit; }
a { transition: color .2s, background-color .2s, transform .2s; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 88px;
    border-bottom: 1px solid rgba(220, 227, 235, .75);
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(18px) saturate(150%);
}
.nav { position: relative; height: 100%; display: flex; align-items: center; gap: 30px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-950);
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.brand .brand-mark {
    position: relative;
    display: grid;
    width: 48px;
    height: 56px;
    flex: 0 0 48px;
    place-items: center;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.brand .brand-mark::after { display: none; }
.brand .brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline: auto;
    padding: 5px;
    border: 1px solid rgba(220,227,235,.8);
    border-radius: 14px;
    background: rgba(250,252,251,.75);
}
.nav nav a {
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--ink-600);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.nav nav a:hover { background: white; color: var(--brand-600); box-shadow: 0 3px 14px rgba(11,31,58,.06); }
.language-switcher { display: flex; align-items: center; gap: 3px; }
.language-switcher a {
    min-width: 29px;
    padding: 4px 6px;
    border-radius: 7px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.language-switcher a:hover, .language-switcher a.active { background: var(--brand-100); color: var(--brand-700); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink-950); font-size: 24px; cursor: pointer; }

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    box-shadow: 0 10px 25px rgba(215, 122, 58, .18);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(215, 122, 58, .25); }
.button-small { min-height: 42px; padding: 9px 17px; border-radius: 10px; font-size: 11px; }
.text-link { color: var(--ink-800); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--brand-600); }

.hero {
    position: relative;
    min-height: 790px;
    overflow: hidden;
    padding: 175px 0 90px;
    background:
        radial-gradient(circle at 82% 22%, rgba(215, 122, 58, .18), transparent 28%),
        radial-gradient(circle at 8% 70%, rgba(230, 202, 142, .14), transparent 22%),
        linear-gradient(145deg, #f4faf7 0%, #fff 50%, #f8f4ea 100%);
}
.hero::before {
    position: absolute;
    inset: 88px 0 0;
    opacity: .42;
    background-image: linear-gradient(rgba(22,58,99,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22,58,99,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    content: "";
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}
.eyebrow::before { width: 28px; height: 2px; border-radius: 3px; background: var(--brand-500); content: ""; }
.hero h1 {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(40px, 4.2vw, 64px);
    font-weight: 800;
    line-height: 1.36;
    letter-spacing: -2.4px;
}
.hero h1::after { display: inline-block; width: 10px; height: 10px; margin-inline-start: 9px; border-radius: 3px; background: var(--brand-500); content: ""; }
.hero p { max-width: 610px; margin: 0; color: var(--ink-600); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.stats {
    display: flex;
    max-width: 580px;
    gap: 0;
    margin-top: 54px;
    padding: 17px 5px;
    border: 1px solid rgba(220,227,235,.8);
    border-radius: 17px;
    background: rgba(255,255,255,.66);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}
.stats div { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding: 0 18px; }
.stats div:not(:last-child)::after { position: absolute; inset-inline-end: 0; width: 1px; height: 30px; background: var(--line); content: ""; }
.stats b { color: var(--brand-700); font-size: 21px; font-weight: 800; }
.stats span { color: var(--ink-500); font-size: 10px; line-height: 1.5; }

.hero-art { position: relative; min-height: 500px; perspective: 900px; }
.orb {
    position: absolute;
    inset: 30px 20px 20px 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 44% 56% 55% 45% / 46% 42% 58% 54%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.24), transparent 25%),
        linear-gradient(145deg, #D77A3A, #91451E);
    box-shadow: 0 40px 90px rgba(11, 31, 58, .24);
    animation: morph 9s ease-in-out infinite;
}
.orb::before {
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: inherit;
    content: "";
}
.orb::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.13);
    content: "ر";
    font-size: 185px;
    font-weight: 800;
}
@keyframes morph { 50% { border-radius: 55% 45% 43% 57% / 55% 58% 42% 45%; transform: translateY(-7px); } }
.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}
.floating-card::before { width: 31px; height: 4px; margin-bottom: 12px; border-radius: 5px; background: var(--brand-500); content: ""; }
.floating-card b { font-size: 15px; }
.floating-card span { margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.card-one { inset: 45px auto auto -12px; animation: float 5s ease-in-out infinite; }
.card-two { inset: auto -5px 34px auto; animation: float 5s 1.4s ease-in-out infinite; }
.card-two b { color: var(--brand-600); font-size: 27px; }
@keyframes float { 50% { transform: translateY(-9px); } }

.section { position: relative; padding: 112px 0; }
.section-muted { background: var(--sand-50); }
.section-muted::before { position: absolute; inset: 0; background: radial-gradient(circle at 100% 0, rgba(215,122,58,.07), transparent 30%); content: ""; pointer-events: none; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 105px; align-items: start; }
.section h2 { max-width: 600px; margin: 0; font-size: clamp(30px, 3vw, 43px); font-weight: 800; line-height: 1.55; letter-spacing: -.8px; }
.lead { margin: 3px 0 0; color: var(--ink-600); font-size: 17px; line-height: 2.1; }
.values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.values span { padding: 7px 15px; border: 1px solid var(--line); border-radius: 30px; background: white; color: var(--ink-600); font-size: 11px; font-weight: 600; }
.values span::before { display: inline-block; width: 5px; height: 5px; margin-inline-end: 7px; border-radius: 50%; background: var(--brand-500); content: ""; vertical-align: middle; }
.section-head { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 48px; }
.section-head > p { max-width: 420px; margin: 0; color: var(--ink-500); font-size: 13px; }

.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(220,227,235,.9);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.86);
    box-shadow: 0 6px 24px rgba(11,31,58,.035);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::after { position: absolute; inset: auto -35px -55px auto; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-50); content: ""; transition: transform .3s; }
.service-card:hover { transform: translateY(-7px); border-color: #EFCDB7; box-shadow: 0 24px 55px rgba(11,31,58,.11); }
.service-card:hover::after { transform: scale(1.3); }
.service-card small { position: absolute; inset: 28px auto auto 27px; color: #AAB8C8; font-size: 11px; font-weight: 700; }
.service-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #F4DED0; border-radius: 15px; background: var(--brand-50); color: var(--brand-600); font-size: 24px; }
.service-card h3 { margin: 28px 0 9px; font-size: 18px; }
.service-card p, .project-card p { color: var(--ink-500); font-size: 12px; line-height: 1.95; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 7px 28px rgba(11,31,58,.045); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 22px 55px rgba(11,31,58,.12); }
.project-visual {
    position: relative;
    height: 225px;
    overflow: hidden;
    padding: 20px;
    background: linear-gradient(145deg, #163A63, #B85C27);
    background-position: center;
    background-size: cover;
}
.project-visual::before, .project-visual::after { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ""; }
.project-visual::before { width: 180px; height: 180px; inset: 50px auto auto -40px; }
.project-visual::after { width: 100px; height: 100px; inset: -25px -20px auto auto; }
.project-visual span { position: relative; z-index: 2; padding: 6px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; background: rgba(255,255,255,.9); color: var(--ink-800); font-size: 10px; font-weight: 700; }
.project-card > div:last-child { padding: 23px 24px 25px; }
.project-card h3 { margin: 0 0 8px; font-size: 17px; }

.contact-section { overflow: hidden; background: var(--ink-900); color: white; }
.contact-section::before { position: absolute; width: 620px; height: 620px; inset: -350px -180px auto auto; border: 1px solid rgba(215,122,58,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(215,122,58,.035), 0 0 0 140px rgba(215,122,58,.025); content: ""; }
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 85px; }
.eyebrow.light { color: #E9A56F; }
.eyebrow.light::before { background: #E9A56F; }
.contact-grid h2 { color: white; font-size: clamp(33px, 3.2vw, 48px); }
.contact-grid > div > p { max-width: 470px; color: #B8C4D1; font-size: 14px; }
.contact-info { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; margin-top: 30px; font-size: 13px; direction: ltr; text-align: end; }
.contact-info a { color: #E2E8F0; font-family: IRANSans, Arial, sans-serif; font-weight: 600; text-decoration: none; unicode-bidi: isolate; }
[lang="en"] .contact-info a,
[lang="en"] .hero-phone strong,
[lang="en"] .faq-contact-links a:first-child { font-family: Manrope, Arial, sans-serif; font-variant-numeric: lining-nums tabular-nums; }
.contact-form { padding: 32px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 34px 80px rgba(0,0,0,.22); color: var(--ink-950); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: block; margin-bottom: 15px; color: var(--ink-600); font-size: 10px; font-weight: 700; }
input, textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #E2E8F0; border-radius: 10px; outline: none; background: #fbfcfc; color: var(--ink-950); font-size: 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, textarea:focus { border-color: var(--brand-500); background: white; box-shadow: 0 0 0 3px rgba(215,122,58,.1); }
textarea { resize: vertical; }
.button-dark { width: 100%; background: var(--ink-900); box-shadow: none; }
.alert { margin-bottom: 16px; padding: 11px 13px; border-radius: 9px; font-size: 11px; }
.alert.success { background: #F7EAE1; color: #91451E; }
.alert.error { background: #ffe9e9; color: #a02626; }

footer { padding: 60px 0 22px; background: #07182D; color: #F1F4F8; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.brand-light { color: white; }
.footer-grid strong { color: #F7F8FA; font-size: 12px; }
.footer-grid p { max-width: 330px; color: #93A3B5; font-size: 11px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #273D57; color: #66788D; font-size: 10px; }
.block { display: block; }

[dir="ltr"] .service-card small { right: 27px; left: auto; }
[dir="ltr"] .contact-info { align-items: flex-start; text-align: start; }
[dir="ltr"] .hero h1 { letter-spacing: -1.5px; }

@media (max-width: 1020px) {
    .nav { gap: 15px; }
    .nav nav { gap: 0; }
    .nav nav a { padding-inline: 9px; }
    .hero-grid { gap: 35px; }
    .hero-art { min-height: 440px; }
}
@media (max-width: 850px) {
    .container { width: min(100% - 32px, 1180px); }
    .site-header { height: 76px; }
    .nav .brand { order: 1; }
    .nav .language-switcher { order: 2; margin-inline: auto 42px; }
    .nav-toggle { position: absolute; z-index: 3; inset-block-start: 50%; inset-inline-end: 0; display: grid; width: 34px; height: 44px; place-items: center; order: 3; margin: 0; padding: 0; transform: translateY(-50%); }
    .nav nav {
        position: absolute;
        inset: 66px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow-lg);
    }
    .nav nav.open { display: flex; }
    .nav nav a { padding: 10px 12px; }
    .nav .button-small { display: none; }
    .hero { min-height: auto; padding: 135px 0 75px; }
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
    .hero h1 { font-size: clamp(37px, 8vw, 50px); }
    .hero-art { min-height: 390px; }
    .orb { inset: 10px 10% 0; }
    .values span:last-child { display: none; }
    .cards, .projects { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .section { padding: 80px 0; }
    .section-head { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .brand { font-size: 16px; }
    .brand .brand-mark { width: 42px; height: 50px; flex-basis: 42px; overflow: visible; border-radius: 0; }
    .language-switcher a { min-width: 25px; padding-inline: 4px; }
    .hero p { font-size: 14px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
    .hero-actions .button { width: 100%; }
    .stats { padding: 13px 0; }
    .stats div { flex-direction: column; gap: 0; padding: 0 8px; text-align: center; }
    .stats b { font-size: 18px; }
    .hero-art { display: none; }
    .about-grid { gap: 30px; }
    .section h2 { font-size: 29px; }
    .field-row, .footer-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
}
