@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --teal: #073746;
  --navy: #06232D;
  --dark: #041D26;
  --gold: #C5A36A;
  --gold-light: #D9BC83;
  --ink: #17343D;
  --muted: #718087;
  --line: #E4E6E2;
  --soft: #EEF1EE;
  --container: 1160px;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(4, 29, 38, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.9; letter-spacing: -.012em; -webkit-font-smoothing: antialiased; }
::selection { color: var(--dark); background: #e6d7b7; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 56px), var(--container)); margin-inline: auto; }

/* Header: transparent over the hero, restrained glass after scrolling */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 78px; color: #fff; background: transparent; border-bottom: 1px solid transparent; transition: background .24s ease, border-color .24s ease, box-shadow .24s ease; }
.site-header.is-scrolled { color: var(--ink); background: rgba(247,246,242,.88); border-bottom-color: rgba(228,230,226,.82); box-shadow: 0 8px 28px rgba(4,29,38,.045); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 154px; height: 64px; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.5vw, 34px); height: 100%; }
.main-nav > a { display: flex; align-items: center; height: 100%; position: relative; color: rgba(255,255,255,.86); font-size: 13px; transition: color .2s ease; }
.main-nav > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 20px; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav > a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled .main-nav > a { color: #42555c; }
.main-nav > a:hover { color: var(--gold-light); }
.site-header.is-scrolled .main-nav > a:hover { color: var(--teal); }
.header-call, .mobile-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.header-call { flex-shrink: 0; min-height: 39px; padding: 7px 15px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: #fff; font-size: 12px; transition: background .2s ease, border-color .2s ease; }
.header-call:hover { background: rgba(255,255,255,.12); border-color: var(--gold-light); }
.site-header.is-scrolled .header-call { color: var(--teal); border-color: #cdd8d5; }
.site-header.is-scrolled .header-call:hover { background: #eaf0ed; }
.menu-toggle, .mobile-call { display: none; }

/* Hero */
.hero { position: relative; min-height: clamp(570px, 66vw, 760px); overflow: hidden; isolation: isolate; background: var(--dark); }
.hero-image { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(270deg, rgba(4,29,38,.86) 0%, rgba(4,29,38,.63) 34%, rgba(4,29,38,.18) 73%, rgba(4,29,38,.08) 100%), url("../assets/hero-building.webp"); background-size: cover; background-position: center 52%; transform: scale(1.015); }
.hero-inner { min-height: inherit; display: flex; align-items: center; padding-top: 54px; }
.hero-copy { width: min(600px, 58%); padding: 74px 0 120px; text-align: right; margin-right: auto; color: #fff; }
.hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(46px, 5.8vw, 72px); line-height: 1.28; letter-spacing: -.045em; font-weight: 800; }
.hero h2 { margin: 0 0 12px; color: #f4eee2; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.75; font-weight: 600; letter-spacing: -.025em; }
.hero-copy > p { max-width: 520px; margin: 0; color: rgba(255,255,255,.77); font-size: 14px; line-height: 2.15; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 650; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--dark); background: var(--gold-light); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.button-primary:hover { background: #e5c991; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.button-glass { color: #fff; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.38); }
.button-glass:hover { background: rgba(255,255,255,.13); border-color: rgba(217,188,131,.8); }

/* Expertise strip: a single floating dark panel, with fine dividers */
.expertise { position: relative; z-index: 3; margin-top: -76px; background: transparent; }
.expertise-inner { width: min(calc(100% - 56px), 1060px); min-height: 108px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: stretch; overflow: hidden; border: 1px solid rgba(217,188,131,.34); border-radius: 22px; background: linear-gradient(135deg, rgba(4,29,38,.98), rgba(7,55,70,.96)); box-shadow: 0 14px 32px rgba(4,29,38,.15); }
.expertise-item { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px; color: rgba(255,255,255,.92); font-size: 12px; text-align: center; line-height: 1.6; }
.expertise-item + .expertise-item { border-right: 1px solid rgba(217,188,131,.24); }
.expertise-item svg { color: var(--gold-light); flex-shrink: 0; }

/* Sections and titles */
.section { padding: clamp(54px, 6.2vw, 82px) 0; }
.section-light { background: var(--paper); }
.section-title { margin: 0 auto 32px; text-align: center; }
.section-title > span { display: block; min-height: 0; margin-bottom: 7px; color: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: .03em; }
.section-title > span:empty { display: none; }
.section-title h2 { margin: 0; color: var(--teal); font-size: clamp(23px, 2.6vw, 32px); line-height: 1.65; font-weight: 750; letter-spacing: -.035em; }
.section-title p { max-width: 640px; margin: 8px auto 0; color: var(--muted); font-size: 13px; line-height: 2; }
.section-title.align-right { margin-inline: 0 auto; text-align: right; }
.section-title.align-right p { margin-inline: 0 auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-block: 1px solid var(--line); }
.service-card { min-height: 190px; padding: 27px 24px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: background .22s ease; }
.service-card + .service-card { border-right: 1px solid var(--line); }
.service-card:hover { transform: none; background: rgba(255,255,255,.68); box-shadow: none; }
.service-icon { display: block; margin-bottom: 17px; color: var(--gold); }
.service-card h3 { margin: 0 0 7px; color: var(--teal); font-size: 15px; font-weight: 700; line-height: 1.8; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2.05; }

/* About: copy layered over the existing architectural image */
.about { position: relative; display: flex; align-items: center; min-height: 390px; overflow: hidden; isolation: isolate; background: var(--dark); color: white; }
.about-copy { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; padding: 66px max(42px, calc((100vw - var(--container)) / 2)); }
.about-copy-inner { width: min(53%, 570px); margin-inline-start: auto; }
.about .section-title { margin: 0 0 16px; }
.about .section-title > span { color: var(--gold-light); }
.about .section-title h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.about-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 2.25; }
.about-photo { position: absolute; inset: 0; z-index: -1; min-height: 100%; background-image: linear-gradient(270deg, rgba(4,29,38,.97) 0%, rgba(4,29,38,.83) 38%, rgba(4,29,38,.25) 76%, rgba(4,29,38,.14) 100%), url("../assets/about-industrial.webp"); background-size: cover; background-position: center; }

/* Offices */
.offices-section { padding-block: clamp(54px, 6vw, 78px); }
.offices-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.office-card { display: grid; grid-template-columns: minmax(0,1fr) 144px; align-items: center; gap: 20px; min-height: 156px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.68); transition: border-color .2s ease, transform .2s ease; }
.office-card:hover { transform: translateY(-2px); border-color: #c6d1c9; box-shadow: none; }
.office-info { min-width: 0; }
.office-info h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--teal); font-size: 15px; line-height: 1.8; }
.office-info h3 svg { flex-shrink: 0; color: var(--gold); }
.office-info p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.office-photo { width: 144px; height: 126px; object-fit: cover; border-radius: 9px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 31px; padding: 4px 12px; border: 1px solid #d7dcd3; border-radius: 999px; color: var(--teal); font-size: 11px; font-weight: 650; transition: background .2s ease, border-color .2s ease; }
.text-link:hover { background: #eef1e9; border-color: var(--gold); }

/* Contact */
.contact-section { position: relative; overflow: hidden; isolation: isolate; padding: 28px 0; color: #fff; background: var(--paper); }
.contact-background { position: absolute; inset: 0; z-index: -1; background: transparent; }
.contact-inner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 27px 24px; border: 1px solid rgba(197,163,106,.48); border-radius: 22px; background-image: linear-gradient(100deg, rgba(4,29,38,.94), rgba(7,55,70,.88)), url("../assets/contact-industrial.webp"); background-size: cover; background-position: center 48%; box-shadow: 0 14px 32px rgba(4,29,38,.09); }
.contact-inner h2 { margin: 0; color: #fff; text-align: center; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.7; font-weight: 700; }
.contact-inner > p { margin: 0 0 8px; color: rgba(255,255,255,.72); text-align: center; font-size: 11px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; width: 100%; direction: rtl; }
.phone-card { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 190px; min-height: 43px; padding: 7px 13px; border: 1px solid rgba(217,188,131,.52); border-radius: 999px; color: #fff; background: rgba(255,255,255,.035); transition: background .2s ease, border-color .2s ease; }
.phone-card:hover { background: rgba(255,255,255,.095); border-color: rgba(217,188,131,.65); }
.phone-card-copy { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.phone-card small { color: rgba(255,255,255,.7); font-size: 10px; }
.phone-card strong { color: #fff; font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .02em; }
.phone-card svg { color: var(--gold-light); flex-shrink: 0; }

/* Instagram */
.instagram-section { padding: 38px 0; background: #f0f1ec; }
.instagram-inner { display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: center; gap: 28px; direction: rtl; }
.instagram-copy { text-align: right; min-width: 0; }
.instagram-copy h2 { margin: 0 0 3px; color: var(--teal); font-size: 19px; line-height: 1.7; }
.instagram-copy p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.instagram-copy > a { color: #5f7f7b; font-family: Arial, sans-serif; font-size: 12px; }
.instagram-tiles { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.instagram-tiles > a { display: block; width: clamp(64px, 7.5vw, 100px); aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--teal); }
.instagram-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.instagram-tiles > a:hover img { transform: scale(1.045); }
.button-outline { justify-self: end; border-color: #cbd6d0; color: var(--teal); background: transparent; min-height: 38px; padding: 8px 15px; font-size: 11px; }
.button-outline:hover { border-color: var(--gold); background: #fff; }

/* Footer */
.footer { color: rgba(255,255,255,.8); background: var(--dark); }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; direction: rtl; }
.copyright { color: rgba(255,255,255,.56); font-size: 10px; }
.made-by { color: rgba(255,255,255,.58); font-size: 10px; }
.made-by > span { display: inline-block; margin-inline: 3px; color: #c87979; }
.made-by a { display: inline-block; margin-inline-start: 3px; color: var(--gold-light); font-family: Arial, sans-serif; font-weight: 700; transition: color .2s ease; }
.made-by a:hover { color: #fff; }
.floating-instagram { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #81549b, #c35c80 58%, #d99b65); box-shadow: 0 6px 18px rgba(4,29,38,.17); transition: transform .2s ease, box-shadow .2s ease; }
.floating-instagram:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(4,29,38,.22); }

@media (min-width: 1400px) { .hero { min-height: 740px; } }
@media (max-width: 1000px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .hero-copy { width: 66%; }
  .offices-grid { gap: 14px; }
  .office-card { grid-template-columns: minmax(0,1fr) 112px; gap: 12px; }
  .office-photo { width: 112px; height: 106px; }
  .instagram-inner { grid-template-columns: 1fr 1.2fr; gap: 18px; }
  .button-outline { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header, .site-header.is-scrolled { height: 66px; }
  .brand img { width: 128px; height: 54px; }
  .header-inner { gap: 9px; direction: rtl; }
  .header-call { margin-inline-start: auto; min-height: 36px; padding: 6px 10px; font-size: 10px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: rgba(255,255,255,.07); }
  .site-header.is-scrolled .menu-toggle { color: var(--teal); border-color: var(--line); background: #fff; }
  .main-nav { display: none; position: absolute; top: 65px; right: 16px; left: 16px; height: auto; padding: 9px 17px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 0 0 14px 14px; background: rgba(4,29,38,.97); align-items: stretch; gap: 0; flex-direction: column; box-shadow: 0 16px 30px rgba(0,0,0,.13); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { min-height: 44px; height: auto; color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13px; }
  .main-nav > a::after { display: none; }
  .site-header.is-scrolled .main-nav { background: rgba(247,246,242,.98); border-color: var(--line); }
  .site-header.is-scrolled .main-nav > a { color: var(--ink); border-bottom-color: var(--line); }
  .hero { min-height: min(690px, 84svh); min-height: max(560px, 84svh); }
  .hero-inner { min-height: inherit; padding-top: 48px; }
  .hero-image { background-image: linear-gradient(270deg, rgba(4,29,38,.83), rgba(4,29,38,.56) 55%, rgba(4,29,38,.24)), url("../assets/hero-building.webp"); background-position: 57% center; }
  .hero-copy { width: 100%; padding: 48px 0 112px; }
  .hero h1 { font-size: clamp(42px, 10vw, 56px); margin-bottom: 12px; }
  .hero h2 { max-width: 420px; font-size: 20px; }
  .hero-copy > p { max-width: 440px; font-size: 12px; }
  .hero-actions { margin-top: 22px; gap: 8px; }
  .button { min-height: 42px; padding: 9px 15px; font-size: 11px; }
  .expertise { margin-top: -70px; }
  .expertise-inner { width: calc(100% - 24px); min-height: 92px; grid-template-columns: repeat(4, minmax(0,1fr)); border-radius: 18px; }
  .expertise-item { min-height: 88px; justify-content: center; padding: 9px 5px; font-size: 10px; gap: 7px; }
  .expertise-item + .expertise-item { border-right: 1px solid rgba(217,188,131,.24); }
  .expertise-item:nth-child(n+3) { border-top: 0; }
  .expertise-item svg { width: 22px; height: 22px; }
  .section { padding: 45px 0; }
  .section-title { margin-bottom: 23px; }
  .section-title h2 { font-size: 23px; }
  .section-title p { font-size: 12px; }
  .offices-section { padding-block: 44px; }
  .offices-grid { grid-template-columns: 1fr; gap: 11px; }
  .office-card { grid-template-columns: minmax(0,1fr) 98px; min-height: 120px; gap: 11px; padding: 10px; border-radius: 12px; }
  .office-photo { width: 98px; height: 98px; border-radius: 8px; }
  .office-info h3 { font-size: 13px; margin-bottom: 4px; }
  .office-info p { font-size: 10px; margin-bottom: 6px; }
  .text-link { min-height: 28px; font-size: 10px; }
  .contact-section { padding: 20px 0; }
  .contact-inner { padding: 23px 14px; border-radius: 17px; }
  .contact-inner h2 { font-size: 18px; }
  .contact-inner > p { font-size: 10px; }
  .contact-actions { gap: 7px; }
  .phone-card { flex: 0 1 auto; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 999px; gap: 8px; }
  .phone-card-copy { gap: 5px; }
  .phone-card small { font-size: 9px; }
  .phone-card strong { font-size: 10px; }
  .phone-card svg { width: 15px; height: 15px; }
  .instagram-section { padding: 28px 0; }
  .instagram-inner { grid-template-columns: 1fr; gap: 15px; }
  .instagram-copy { text-align: center; }
  .instagram-copy h2 { font-size: 18px; }
  .instagram-copy p { font-size: 11px; }
  .instagram-tiles { gap: 7px; }
  .instagram-tiles > a { width: calc((100% - 21px) / 4); max-width: 88px; }
  .button-outline { grid-column: auto; justify-self: center; }
  .footer-inner { min-height: 0; flex-direction: column; justify-content: center; gap: 7px; padding-block: 18px; text-align: center; }
  .copyright, .made-by { font-size: 9px; }
  .floating-instagram { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 26px); }
  .brand img { width: 112px; }
  .header-call span { display: none; }
  .header-call { width: 37px; height: 37px; padding: 0; }
  .hero h1 { font-size: 39px; }
  .hero h2 { font-size: 18px; }
  .expertise-item { padding-inline: 8px; font-size: 11px; }
  .service-card { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* وضعیت آیکون منوی موبایل */
.menu-toggle .close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
.menu-toggle[aria-expanded="true"] .close-icon { display: inline-flex; }


/* Desktop hero: compact height while keeping the mobile layout unchanged */
@media (min-width: 761px) {
  .hero {
    min-height: clamp(500px, 58vh, 620px);
  }
  .hero-inner {
    min-height: inherit;
  }
  .hero-copy {
    padding-top: 52px;
    padding-bottom: 82px;
  }
}


/* Header and hero alignment refinements for desktop */
@media (min-width: 761px) {
  .header-inner {
    direction: ltr;
  }
  .main-nav {
    direction: rtl;
  }
  .hero-copy {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
  }
}
/* Desktop header layout */
@media (min-width: 761px) {
  .header-inner {
    direction: ltr;
    padding-left: 300px;
    padding-right: 300px;
  }

  .brand {
    order: 3;
    margin-right: 0;
    margin-left: auto;
  }

  .header-call {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .main-nav {
    order: 2;
  }
}