@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --ink: #102238;
    --muted: #657386;
    --paper: #f7f9fc;
    --line: #dce4ed;
    --accent: #d4ad5b;
    --accent2: #f0d48b;
    --white: #fff;
    --dark: #081a2e;
    --cream: #eaf1f8
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Vazirmatn, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    direction: rtl
}

a {
    text-decoration: none;
    color: inherit
}

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

.container {
    width: min(1240px, 92%);
    margin: auto
}

.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 0;
    color: #fff;
    transition: .35s;
    background: linear-gradient(#0008, transparent)
}

.header.scrolled {
    background: #102238e8;
    backdrop-filter: blur(14px);
    padding: 12px 0
}

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

.brand {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -1px
}

.brand span {
    color: var(--accent)
}

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

.menu a {
    font-size: 14px;
    color: #fff;
    opacity: .9
}

.menu a:hover {
    color: var(--accent)
}

.nav-cta {
    background: var(--accent);
    color: #111 !important;
    padding: 11px 18px;
    border-radius: 2px;
    font-weight: 800
}

.hamb {
    display: none;
    border: 0;
    background: none;
    color: #fff;
    font-size: 25px
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #102238;
    color: #fff
}

.hero video,
.hero .hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0009, #0002 55%, #0007)
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 150px 0 80px;
    width: min(900px, 92%)
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 18px
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%
}

.hero h1 {
    font-size: clamp(44px, 7vw, 94px);
    line-height: 1.03;
    margin: 0 0 25px;
    font-weight: 900;
    letter-spacing: -3px
}

.hero p {
    font-size: 17px;
    line-height: 2;
    max-width: 650px;
    color: #eee;
    margin: 0 0 30px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid #fff5;
    font-weight: 700;
    font-size: 14px;
    transition: .25s
}

.btn.primary {
    background: var(--accent);
    color: #111;
    border-color: var(--accent)
}

.btn:hover {
    transform: translateY(-3px)
}

.marquee {
    background: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    color: #111
}

.marquee-track {
    display: inline-flex;
    gap: 55px;
    padding: 16px 0;
    font-weight: 800;
    font-size: 14px;
    animation: move 24s linear infinite
}

@keyframes move {
    to {
        transform: translateX(50%)
    }
}

.section {
    padding: 110px 0
}

.section.dark {
    background: var(--dark);
    color: #fff
}

.kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 15px
}

.dark .kicker {
    color: #aaa
}

.section-title {
    font-size: clamp(34px, 5vw, 65px);
    line-height: 1.12;
    margin: 0 0 22px;
    letter-spacing: -2px
}

.lead {
    font-size: 17px;
    line-height: 2;
    color: var(--muted);
    max-width: 720px
}

.dark .lead {
    color: #c4c5c2
}

.intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: end
}

.big-number {
    font-size: 120px;
    font-weight: 900;
    line-height: .8;
    color: #d8d7d1
}

.projects {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 45px
}

.project {
    position: relative;
    overflow: hidden;
    background: #102238;
    min-height: 390px
}

.project:nth-child(1) {
    grid-column: span 7
}

.project:nth-child(2) {
    grid-column: span 5
}

.project:nth-child(3) {
    grid-column: span 5
}

.project:nth-child(4) {
    grid-column: span 7
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .7s
}

.project:hover img {
    transform: scale(1.06)
}

.project:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, #000b)
}

.project-info {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    right: 25px;
    color: #fff
}

.project-info small {
    opacity: .7
}

.project-info h3 {
    margin: 5px 0;
    font-size: 24px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #333;
    margin-top: 65px
}

.stat {
    padding: 30px 20px;
    border-left: 1px solid #333
}

.stat:last-child {
    border-left: 0
}

.stat strong {
    display: block;
    font-size: 48px
}

.stat span {
    color: #aaa
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 50px
}

.service {
    background: var(--paper);
    padding: 35px;
    min-height: 240px
}

.service b {
    font-size: 13px;
    color: #777
}

.service h3 {
    font-size: 25px;
    margin: 45px 0 10px
}

.service p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 55px
}

.step {
    border-top: 1px solid #555;
    padding-top: 20px
}

.step .num {
    font-size: 13px;
    color: var(--accent)
}

.step h3 {
    font-size: 22px
}

.step p {
    color: #aaa;
    line-height: 1.9;
    font-size: 14px
}

.quote {
    font-size: clamp(30px, 5vw, 65px);
    line-height: 1.35;
    font-weight: 800;
    max-width: 1000px;
    margin: auto;
    text-align: center
}

.cta {
    background: var(--accent);
    padding: 80px 0
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    font-size: clamp(35px, 5vw, 65px);
    margin: 0;
    letter-spacing: -2px
}

.dark-btn {
    background: #102238;
    color: #fff;
    border: 0
}

.page-hero {
    padding: 170px 0 80px;
    background: #102238;
    color: #fff
}

.page-hero h1 {
    font-size: clamp(50px, 8vw, 100px);
    margin: 0;
    line-height: 1
}

.page-hero p {
    max-width: 700px;
    color: #bbb;
    line-height: 2;
    font-size: 17px
}

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

.post {
    background: #fff
}

.post-img {
    height: 260px;
    background: #ddd;
    overflow: hidden
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post-body {
    padding: 25px
}

.post-body small {
    color: #888
}

.post-body h3 {
    font-size: 22px;
    line-height: 1.5
}

.post-body p {
    color: #777;
    line-height: 1.9;
    font-size: 14px
}

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

.about-grid p {
    font-size: 17px;
    line-height: 2.2;
    color: #666
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px
}

.contact-info {
    display: grid;
    gap: 20px
}

.contact-card {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line)
}

.contact-card small {
    color: #888
}

.contact-card strong {
    display: block;
    margin-top: 8px;
    font-size: 18px
}

.form {
    display: grid;
    gap: 15px
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 16px;
    font-family: inherit;
    font-size: 14px
}

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

.footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 25px
}

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

.footer h3 {
    color: #fff
}

.footer p {
    line-height: 2;
    font-size: 14px
}

.footer a {
    display: block;
    margin: 9px 0;
    font-size: 14px
}

.copyright {
    border-top: 1px solid #333;
    margin-top: 45px;
    padding-top: 20px;
    font-size: 12px
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s
}

.reveal.show {
    opacity: 1;
    transform: none
}

@media(max-width:800px) {
    .menu {
        display: none
    }

    .hamb {
        display: block
    }

    .intro,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .projects {
        display: block
    }

    .project {
        margin-bottom: 15px;
        min-height: 330px
    }

    .services,
    .process,
    .blog-grid {
        grid-template-columns: 1fr
    }

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

    .stat:nth-child(2) {
        border-left: 0
    }

    .cta-row {
        display: block
    }

    .cta .btn {
        margin-top: 25px
    }

    .hero h1 {
        letter-spacing: -2px
    }

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

    .header {
        padding: 14px 0
    }
}

/* Enhanced interaction layer */
body {
    overflow-x: hidden
}

.hero {
    isolation: isolate
}

.hero video {
    filter: saturate(.82) contrast(1.05)
}

.hero:before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, #d4ad5b22, transparent 35%);
    pointer-events: none
}

.hero-content {
    animation: heroIn 1.1s cubic-bezier(.2, .75, .2, 1) both
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(45px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.scroll-line {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    left: 50%;
    width: 1px;
    height: 55px;
    background: #ffffff66;
    overflow: hidden
}

.scroll-line:after {
    content: "";
    display: block;
    width: 100%;
    height: 45%;
    background: #d4ad5b;
    animation: scrollLine 1.8s ease-in-out infinite
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%)
    }

    100% {
        transform: translateY(230%)
    }
}

.project {
    cursor: pointer
}

.project:before {
    content: "مشاهده پروژه  ↗";
    position: absolute;
    z-index: 4;
    top: 22px;
    left: 22px;
    color: #fff;
    background: #102238cc;
    padding: 9px 13px;
    font-size: 11px;
    opacity: 0;
    transform: translateY(-8px);
    transition: .35s
}

.project:hover:before {
    opacity: 1;
    transform: none
}

.service {
    transition: .35s;
    position: relative
}

.service:after {
    content: "↗";
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 24px;
    color: #d4ad5b;
    opacity: .45;
    transition: .35s
}

.service:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px #081a2e18
}

.service:hover:after {
    opacity: 1;
    transform: translate(4px, -4px)
}

.stat strong {
    transition: .35s
}

.stat:hover strong {
    color: #d4ad5b;
    transform: translateY(-4px)
}

.btn {
    position: relative;
    overflow: hidden
}

.btn:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff3;
    transform: translateX(-110%);
    transition: .45s
}

.btn:hover:after {
    transform: translateX(110%)
}

.section-title {
    position: relative
}

.section-title:after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #d4ad5b;
    margin-top: 18px;
    transform-origin: right;
    transition: .7s
}

.reveal.show .section-title:after {
    width: 100px
}

.marquee {
    background: #d4ad5b
}

.dark .service {
    background: #102238;
    color: #fff
}

.dark .service p {
    color: #bdb5ac
}

.page-hero {
    position: relative;
    overflow: hidden
}

.page-hero:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid #d4ad5b44;
    border-radius: 50%;
    left: -180px;
    top: 50%;
    transform: translateY(-50%);
    animation: spinSlow 18s linear infinite
}

@keyframes spinSlow {
    to {
        transform: translateY(-50%) rotate(360deg)
    }
}

/* Premium construction-site motion */
html {
    scroll-behavior: smooth
}

::selection {
    background: #d4ad5b;
    color: #081a2e
}

.hero {
    min-height: 100svh
}

.hero-content h1 {
    max-width: 900px
}

.hero-content p {
    animation: fadeUp 1s .25s both
}

.hero-content .actions {
    animation: fadeUp 1s .42s both
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.hero .eyebrow {
    animation: fadeUp .8s both
}

.hero .dot {
    box-shadow: 0 0 0 0 #d4ad5b;
    animation: pulseGold 2s infinite
}

@keyframes pulseGold {
    70% {
        box-shadow: 0 0 0 12px #d4ad5b00
    }
}

.project {
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px #0004
}

.project img {
    transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .7s
}

.project:hover img {
    transform: scale(1.09);
    filter: saturate(1.12)
}

.project-info {
    transition: transform .45s
}

.project:hover .project-info {
    transform: translateY(-7px)
}

.service {
    transition: transform .45s, box-shadow .45s
}

.service:hover {
    transform: translateY(-10px) scale(1.01)
}

.service h3 {
    transition: color .3s
}

.service:hover h3 {
    color: #d4ad5b
}

.process .step {
    transition: transform .4s, border-color .4s
}

.process .step:hover {
    transform: translateY(-8px);
    border-color: #d4ad5b
}

.process .step .num {
    transition: letter-spacing .3s
}

.process .step:hover .num {
    letter-spacing: 4px
}

.stats .stat {
    transition: background .4s, transform .4s
}

.stats .stat:hover {
    background: #ffffff08;
    transform: translateY(-4px)
}

.stats strong {
    transition: transform .35s, color .35s
}

.stats .stat:hover strong {
    color: #d4ad5b;
    transform: scale(1.05)
}

.video-wrap {
    box-shadow: 0 30px 80px #081a2e22
}

.video-wrap:after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff22;
    pointer-events: none
}

.video-wrap video {
    transition: transform 1.2s
}

.video-wrap:hover video {
    transform: scale(1.025)
}

.page-hero h1 {
    animation: fadeUp .9s both
}

.page-hero p {
    animation: fadeUp .9s .2s both
}

.post {
    transition: transform .45s, box-shadow .45s
}

.post:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 50px #10223818
}

.post-img img {
    transition: transform .8s
}

.post:hover .post-img img {
    transform: scale(1.07)
}

.contact-card {
    transition: transform .35s, border-color .35s, box-shadow .35s
}

.contact-card:hover {
    transform: translateX(-7px);
    border-color: #d4ad5b;
    box-shadow: 0 12px 30px #10223812
}

.reveal {
    transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1)
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Local trust refinement */
.local-note {
    max-width: 900px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: .98rem;
    line-height: 2
}

.video-copy {
    max-width: 620px;
    margin-top: 34px
}

.video-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px
}

.video-copy h3 {
    font-size: 30px;
    margin: 0 0 8px
}

.video-copy p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
    margin: 0
}

.video-overlay {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 28px;
    max-width: 420px;
    color: #fff;
    pointer-events: none
}

.video-overlay .video-label {
    color: var(--accent2)
}

.video-overlay h3 {
    font-size: 30px;
    margin: 0 0 8px
}

.video-overlay p {
    margin: 0;
    color: #ddd;
    line-height: 1.9;
    font-size: 14px
}

.brand {
    display: inline-flex;
    align-items: center
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px #0004
}

.nav-external {
    color: var(--accent2) !important;
    border: 1px solid #d4ad5b88;
    padding: 9px 12px;
    font-size: 12px !important;
    font-weight: 800;
    white-space: nowrap
}

.nav-external:hover {
    background: var(--accent);
    color: #111 !important;
    border-color: var(--accent)
}

@media(max-width:520px) {
    .container {
        width: min(100% - 30px, 1240px)
    }

    .header {
        padding: 12px 0
    }

    .header.scrolled {
        padding: 9px 0
    }

    .menu .nav-external {
        display: block;
        text-align: center;
        margin-top: 6px
    }

    .hero-content {
        padding: 125px 0 62px
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 58px);
        line-height: 1.08;
        margin-bottom: 18px
    }

    .hero p {
        font-size: 14px;
        line-height: 1.9
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px
    }

    .actions .btn {
        width: 100%
    }

    .section {
        padding: 72px 0
    }

    .section-title {
        font-size: clamp(31px, 9vw, 44px);
        letter-spacing: -1px
    }

    .lead {
        font-size: 15px
    }

    .big-number {
        font-size: 88px
    }

    .project {
        min-height: 270px
    }

    .project-info {
        right: 18px;
        bottom: 16px
    }

    .project-info h3 {
        font-size: 21px
    }

    .stats {
        margin-top: 42px
    }

    .stat {
        padding: 22px 14px
    }

    .stat strong {
        font-size: 35px
    }

    .video-wrap {
        min-height: 380px !important;
        margin-top: 28px !important
    }

    .video-overlay {
        right: 18px;
        bottom: 18px;
        left: 18px;
        max-width: none
    }

    .video-overlay h3 {
        font-size: 24px
    }

    .video-overlay p {
        font-size: 13px;
        line-height: 1.75
    }

    .process .step {
        padding-top: 16px
    }

    .quote {
        font-size: 29px
    }

    .cta {
        padding: 58px 0
    }

    .cta h2 {
        font-size: 38px;
        letter-spacing: -1px
    }

    .page-hero {
        padding: 135px 0 65px
    }

    .page-hero h1 {
        font-size: clamp(44px, 13vw, 70px)
    }

    .page-hero p {
        font-size: 15px
    }

    .footer {
        padding-top: 48px
    }

    .copyright {
        margin-top: 30px
    }
}