/* ============================================================
   STHD — سیال طرح هورشید | Static clone stylesheet
   Visual system: white / waves background / yellow #FFC400 accent
   ============================================================ */

/* ---------- 0. Fonts (OFL-licensed Vazirmatn, ships locally) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Variables & reset ---------- */
:root {
  --yellow: #ffc400;
  --ink: #1f1f1f;
  --ink-soft: #3a3a3a;
  --gray: #545954;
  --gray-light: #8a8a8a;
  --line: #3a3a3a;
  --line-soft: #d9d9d9;
  --card-bg: #f4f4f4;
  --bg: #ffffff;
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --tr: cubic-bezier(0.25, 0.8, 0.3, 1);
  --tr-fast: 0.35s var(--tr);
  --tr-mid: 0.6s var(--tr);
  --tr-slow: 0.9s var(--tr);
  --header-h: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-fa);
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.9;
}

html[dir="ltr"] body {
  letter-spacing: 0.01em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 196, 0, 0.35);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- 2. Global waves background (identity layer) ---------- */
.waves-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #fff url("../img/07/aa.jpg") center/cover no-repeat;
}

.site-main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- 3. Header ---------- */
.site-header {
  width: 100%;
  padding: 26px 44px 6px;
  z-index: 20;
}

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

/* logo */
.site-logo {
  flex: 0 0 auto;
  display: block;
  animation: fadeInLeft 0.8s var(--tr) 0.25s both;
}
.site-logo svg {
  width: 118px;
  height: auto;
  display: block;
}

/* center divider line + SEO tagline */
.header-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.9s var(--tr) 0.15s both;
}
.header-line {
  height: 1px;
  background: var(--line);
  width: 100%;
  order: 2;
}
.header-tagline {
  order: 1;
  font-size: 10.5px;
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.02em;
}

/* controls cluster: language + hamburger */
.header-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
  animation: fadeInRight 0.8s var(--tr) 0.25s both;
}

/* language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.lang-btn {
  color: var(--gray-light);
  font-weight: 400;
  padding: 2px 1px;
  transition: color var(--tr-fast);
  border-bottom: 1px solid transparent;
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--yellow);
}
.lang-sep {
  color: var(--line-soft);
}

/* hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 18px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition:
    transform var(--tr-mid),
    opacity var(--tr-mid),
    background var(--tr-fast);
}
.hamburger:hover span {
  background: var(--yellow);
}

/* ---------- 4. Fullscreen menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  transform: translateY(-102%);
  visibility: hidden;
  transition:
    transform 0.65s var(--tr),
    visibility 0s linear 0.65s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.menu-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.65s var(--tr);
}

.menu-close {
  position: absolute;
  top: 38px;
  inset-inline-end: 44px;
  width: 34px;
  height: 34px;
  opacity: 0;
  transition:
    opacity 0.5s var(--tr) 0.35s,
    transform 0.5s var(--tr) 0.35s;
  transform: rotate(-45deg);
}
.menu-overlay.is-open .menu-close {
  opacity: 1;
  transform: rotate(0deg);
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background: #000;
}
.menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.menu-close:hover span {
  background: var(--yellow);
}

.menu-nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.menu-nav a {
  font-size: 28px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.7;
  transition: color var(--tr-fast);
  opacity: 0;
  transform: translateY(26px);
}
.menu-overlay.is-open .menu-nav a {
  opacity: 1;
  transform: translateY(0);
  transition:
    color var(--tr-fast),
    opacity 0.7s var(--tr) 0.72s,
    transform 0.7s var(--tr) 0.72s;
}
.menu-overlay.is-open .menu-nav li:nth-child(2) a {
  transition-delay: 0.78s;
}
.menu-overlay.is-open .menu-nav li:nth-child(3) a {
  transition-delay: 0.84s;
}
.menu-overlay.is-open .menu-nav li:nth-child(4) a {
  transition-delay: 0.9s;
}
.menu-overlay.is-open .menu-nav li:nth-child(5) a {
  transition-delay: 0.96s;
}
.menu-overlay.is-open .menu-nav li:nth-child(6) a {
  transition-delay: 1.02s;
}
.menu-nav a:hover,
.menu-nav a.is-active {
  color: var(--yellow);
}

.menu-lang {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
}
.menu-overlay.is-open .menu-lang {
  opacity: 1;
  transition: opacity 0.7s var(--tr) 1.1s;
}
.menu-lang .lang-btn {
  font-size: 15px;
}

/* ---------- 5. Layout shell ---------- */
.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 44px 30px;
}

.page-wrap {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* page title with yellow bar */
.page-title {
  display: flex;
  align-items: stretch;
  gap: 14px;
  justify-content: flex-start;
  margin: 42px 0 26px;
}
.page-title h1,
.page-title h2 {
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.title-bar {
  width: 4px;
  background: var(--yellow);
}

/* generic section subtitle (H2 under content) */
.section-title {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 46px 0 20px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 600;
}
.section-title .title-bar {
  width: 3px;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  width: 100%;
  padding: 0 44px 34px;
  z-index: 1;
}
.footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12.5px;
  color: var(--gray);
  font-weight: 300;
}
.footer-note {
  font-size: 11.5px;
  color: var(--gray-light);
  font-weight: 300;
}

/* ---------- 7. Carousel (home + blog) ---------- */
.carousel {
  position: relative;
  padding: 0 52px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 45px;
  transition: transform 0.6s var(--tr);
}
.carousel-slide {
  flex: 0 0 calc((100% - 90px) / 3);
  min-width: 0;
}
.carousel-slide .card-link {
  display: block;
}

/* image treatment: grayscale -> color */
.img-hover {
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 16 / 9;
}
.img-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.001);
  transition:
    filter 0.65s var(--tr),
    transform 0.9s var(--tr);
}
.card-link:hover .img-hover img,
a:hover > .img-hover img,
.img-hover:hover img {
  filter: grayscale(0);
  transform: scale(1.035);
}

/* stat slides rendered as type */
.carousel-slide .stat-box {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.stat-number {
  font-size: clamp(90px, 10vw, 150px);
  font-weight: 700;
  line-height: 1;
  color: #c9c9c9;
  transition: color 0.6s var(--tr);
  font-variant-numeric: tabular-nums;
}
.carousel-slide:hover .stat-number {
  color: var(--yellow);
}

/* caption */
.card-caption {
  margin-top: 20px;
  text-align: center;
}
.card-caption h2,
.card-caption h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  transition: color var(--tr-fast);
}
.card-link:hover .card-caption h2,
.card-link:hover .card-caption h3 {
  color: var(--yellow);
}

/* arrows */
.carousel-arrow {
  position: absolute;
  top: 27%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition:
    color var(--tr-fast),
    opacity var(--tr-fast);
  z-index: 5;
}
.carousel-arrow svg {
  width: 15px;
  height: 26px;
}
.carousel-arrow:hover {
  color: var(--yellow);
}
.carousel-arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}
.carousel-arrow[disabled]:hover {
  color: #111;
}
.carousel-arrow.prev {
  left: -43px;
}
.carousel-arrow.next {
  right: -43px;
}

/* dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-soft);
  transition:
    background var(--tr-fast),
    transform var(--tr-fast);
}
.carousel-dots button.is-active {
  background: var(--yellow);
  transform: scale(1.25);
}

/* ---------- 8. Home: SEO intro block ---------- */
.home-intro {
  max-width: 860px;
  margin: 58px auto 26px;
  text-align: center;
}
.home-intro h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.home-intro p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray);
  line-height: 2.1;
}

/* ---------- 9. Projects page ---------- */
.filter-bar {
  position: relative;
  padding: 0 46px;
  margin-bottom: 34px;
}
.filter-viewport {
  overflow: hidden;
}
.filter-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s var(--tr);
}
.filter-chip {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--gray-light);
  padding: 4px 2px;
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  transition:
    color var(--tr-fast),
    border-color var(--tr-fast);
  white-space: nowrap;
}
.filter-chip:hover {
  color: var(--ink);
}
.filter-chip.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--yellow);
}
/* grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}
.project-card {
  transition:
    opacity 0.45s var(--tr),
    transform 0.45s var(--tr);
}
.project-card.is-hidden {
  display: none;
}
.project-card.is-fading {
  opacity: 0;
  transform: scale(0.96);
}
.project-card .img-hover {
  aspect-ratio: 16 / 10.5;
}
.project-card figcaption {
  font-size: 13.5px;
  color: var(--gray);
  margin-top: 10px;
  text-align: center;
  line-height: 1.7;
}
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-light);
  font-weight: 300;
  padding: 46px 0;
  display: none;
}
.grid-empty.is-visible {
  display: block;
}

/* ---------- 10. Project detail ---------- */
.project-hero {
  margin: 30px 0 18px;
}
.project-hero .img-frame {
  overflow: hidden;
  background: var(--card-bg);
}
.project-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.img-reveal {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 1s var(--tr) 0.15s,
    transform 1.15s var(--tr) 0.15s;
}
.img-reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* REPAIR GUARD: project media must never be hidden by reveal animation */
.project-media-layout .project-main-image,
.project-media-layout .project-gallery .g-item {
  opacity: 1 !important;
  transform: none !important;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 34px;
}
.project-gallery .g-item {
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
}
.project-gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--tr);
}
.project-gallery .g-item:hover img {
  transform: scale(1.04);
}

.project-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--gray);
}
.project-cats a {
  transition: color var(--tr-fast);
}
.project-cats a:hover {
  color: var(--yellow);
}

.project-title {
  margin: 2px 0 26px;
}
.project-title h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 8px 0 40px;
  text-align: center;
}
.project-meta .m-label {
  font-size: 13px;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 4px;
}
.project-meta .m-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.project-desc {
  max-width: 900px;
  margin: 0 auto 30px;
}
.project-desc p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 2.2;
  margin-bottom: 14px;
  text-align: justify;
}
html[dir="rtl"] .project-desc p {
  text-align: justify;
}

.seo-note {
  max-width: 900px;
  margin: 26px auto 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.seo-note h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.seo-note p {
  font-size: 12.5px;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 2;
}

/* ---------- 11. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--tr),
    visibility 0s linear 0.4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--tr);
}
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  inset-inline-start: 40px;
  font-size: 34px;
  line-height: 1;
  color: #111;
}
.lightbox-close:hover {
  color: var(--yellow);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #333;
  padding: 18px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--yellow);
}
.lightbox-prev {
  inset-inline-start: 18px;
}
.lightbox-next {
  inset-inline-end: 18px;
}

/* ---------- 12. Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
}
.article-card .img-hover {
  aspect-ratio: 16 / 9;
}
.article-card .card-meta {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 16px;
  text-align: center;
}
.article-card .card-caption {
  margin-top: 4px;
}
.article-card .card-caption h2 {
  font-size: 20px;
}
.article-card .card-excerpt {
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
  text-align: center;
  margin-top: 6px;
  line-height: 1.9;
}

/* ---------- 13. Article detail ---------- */
.article-head {
  max-width: 900px;
  margin: 26px auto 8px;
  text-align: center;
}
.article-head .card-meta {
  font-size: 12.5px;
  color: var(--gray-light);
  margin-bottom: 6px;
}
.article-head h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.7;
}
.article-hero {
  max-width: 1100px;
  margin: 22px auto;
}
.article-hero .img-frame {
  overflow: hidden;
  background: var(--card-bg);
}
.article-hero img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.article-body {
  max-width: 820px;
  margin: 0 auto 26px;
}
.article-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 2.2;
  margin-bottom: 16px;
  text-align: justify;
}
.article-body h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 12px;
}
.article-body h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 20px 0 10px;
}
.article-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 10px auto 30px;
}
.article-images .g-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--card-bg);
  cursor: zoom-in;
}
.article-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--tr);
}
.article-images .g-item:hover img {
  transform: scale(1.045);
}

/* related articles */
.related {
  margin-top: 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ---------- 14. About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 60px;
  align-items: start;
  margin: 20px 0 40px;
}
.about-media {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-media .img-hover {
  aspect-ratio: auto;
}
.about-media img {
  width: 100%;
  object-fit: cover;
}
.about-content {
  padding-top: 12px;
}
.about-content .section-title {
  margin-top: 0;
}
.about-content h2 {
  font-size: 20px;
}
.about-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 2.25;
  margin-bottom: 18px;
  text-align: justify;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 10px;
}
.about-facts .fact {
  text-align: center;
  padding: 14px 8px;
  border-top: 2px solid var(--yellow);
  background: rgba(255, 255, 255, 0.6);
}
.about-facts .fact-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.about-facts .fact-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 300;
}

/* ---------- 15. Contact ---------- */
.contact-layout {
  max-width: 1000px;
  margin: 6px auto 30px;
}
.contact-rows {
  display: grid;
  gap: 34px;
  margin-bottom: 20px;
}
.contact-row {
  text-align: center;
}
.contact-row .c-label {
  font-size: 14px;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 6px;
}
.contact-row .c-value {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.9;
}
.contact-row .c-value a {
  transition: color var(--tr-fast);
}
.contact-row .c-value a:hover {
  color: var(--yellow);
}

.map-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 10px 22px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.8);
  transition:
    border-color var(--tr-fast),
    color var(--tr-fast),
    background var(--tr-fast);
}
.map-btn svg {
  width: 15px;
  height: 15px;
}
.map-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: #fff;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.social-row .c-label {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 14px;
}
.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--tr-fast),
    transform var(--tr-fast);
}
.social-icons a:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}
.social-icons svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

/* ---------- 16. Services ---------- */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 70px;
  align-items: start;
  margin: 10px 0 40px;
}
.services-intro {
  padding-top: 6px;
}
.services-intro h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
}
.services-intro p {
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  line-height: 2.25;
  margin-bottom: 16px;
  text-align: justify;
}
.services-points {
  margin-top: 8px;
}
.services-points li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 2;
}
.services-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.95em;
  width: 8px;
  height: 2px;
  background: var(--yellow);
}

.services-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 12.5px;
  color: var(--gray);
  font-weight: 300;
}
.form-field input,
.form-field textarea {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.85);
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 300;
  transition: border-color var(--tr-fast);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-submit {
  background: var(--yellow);
  color: #1f1f1f;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 30px;
  transition:
    filter var(--tr-fast),
    transform var(--tr-fast);
}
.form-submit:hover {
  filter: brightness(1.05);
}
.form-submit:active {
  transform: scale(0.985);
}
.form-status {
  font-size: 13px;
  min-height: 22px;
}
.form-status.ok {
  color: #2e7d32;
}
.form-status.err {
  color: #c62828;
}

/* ---------- 17. Page transition overlay ---------- */
.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
body.is-leaving .transition-veil {
  transform: scaleY(1);
  transition: transform 0.45s var(--tr);
  pointer-events: all;
}
body.is-entering .transition-veil {
  transform: scaleY(1);
  transform-origin: bottom;
}
body.is-entering .transition-veil.is-lifting {
  transform: scaleY(0);
  transition: transform 0.55s var(--tr) 0.12s;
}

/* page content entrance */
.page-enter {
  animation: pageEnter 0.7s var(--tr) 0.1s both;
}

/* ---------- 18. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--tr),
    transform 0.8s var(--tr);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. Animations ---------- */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 20. Skip link, sr-only & helpers ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  background: var(--yellow);
  color: #111;
  padding: 8px 18px;
  font-size: 13px;
  z-index: 400;
}
.skip-link:focus {
  inset-inline-start: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-lead {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray);
  max-width: 760px;
  margin: 0 0 30px;
  line-height: 2.1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray-light);
  margin: 18px 0 4px;
  transition: color var(--tr-fast);
}
.back-link::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.back-link:hover {
  color: var(--yellow);
}

.crumbs {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 10px 0;
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .menu-overlay {
    transition: none;
  }
}
/* ---------- 22. Home: carousel تمام‌عرض با نسبت 4:3 (مثل عکس مرجع) ---------- */
body[data-menu="home"] .site-main {
  padding: 0 45px 30px;
}
body[data-menu="home"] .page-wrap {
  max-width: none;
  justify-content: center;
}
body[data-menu="home"] .carousel {
  padding: 0;
}
body[data-menu="home"] .carousel-track {
  gap: 24px;
}
body[data-menu="home"] .carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
}
body[data-menu="home"] .carousel-slide .img-hover,
body[data-menu="home"] .carousel-slide .stat-box {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
}
body[data-menu="home"] .carousel-arrow {
  top: 44%;
}
body[data-menu="home"] .carousel-dots {
  display: none;
}
body[data-menu="home"] .home-intro {
  display: none;
}
body[data-menu="home"] .card-caption {
  margin-top: 14px;
}
body[data-menu="home"] .card-caption h2,
body[data-menu="home"] .card-caption h3 {
  font-size: 15px;
  font-weight: 500;
}
/* اگر خواستی نوشته‌ها برن بالای عکس‌ها، این سه خط را از کامنت خارج کن:
body[data-menu="home"] .card-link,
body[data-menu="home"] .carousel-slide { display: flex; flex-direction: column; }
body[data-menu="home"] .card-caption { order: -1; margin: 0 0 12px; } */
@media (max-width: 1200px) {
  body[data-menu="home"] .carousel-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 768px) {
  body[data-menu="home"] .site-main {
    padding: 0 20px 22px;
  }
  body[data-menu="home"] .carousel-track {
    gap: 14px;
  }
  body[data-menu="home"] .carousel-slide {
    flex: 0 0 100%;
  }
}
/* ---------- projects head: title + filter chips in one row ---------- */
.projects-head {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 42px 0 26px;
}
.projects-head .page-title {
  margin: 0;
  flex: 0 0 auto;
}
.projects-head .filter-bar {
  flex: 1 1 auto;
  margin-bottom: 0;
  padding: 0 46px;
}
.projects-head .carousel-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.projects-head .carousel-arrow.prev {
  left: -6px;
}
.projects-head .carousel-arrow.next {
  right: -6px;
}
@media (max-width: 1600px) {
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 992px) {
  .projects-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 26px 0 18px;
  }
}
/* grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}
/* projects slider — 2-row column carousel */
:root {
  --pgap: 26px;
}
.projects-slider {
  position: relative;
  padding: 0 46px;
}
.projects-viewport {
  overflow: hidden;
}
.projects-track {
  display: grid;
  grid-template-rows: repeat(2, max-content);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * var(--pgap)) / 6);
  gap: var(--pgap);
  transition: transform 0.6s var(--tr);
}
.projects-slider .carousel-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.projects-slider .carousel-arrow.prev {
  left: -10px;
}
.projects-slider .carousel-arrow.next {
  right: -10px;
}
@media (max-width: 1200px) {
  .projects-track {
    grid-auto-columns: calc((100% - 3 * var(--pgap)) / 4);
  }
}
@media (max-width: 992px) {
  .projects-track {
    grid-auto-columns: calc((100% - 2 * var(--pgap)) / 3);
  }
}
@media (max-width: 768px) {
  .projects-slider {
    padding: 0 30px;
  }
  .projects-track {
    grid-auto-columns: calc((100% - var(--pgap)) / 2);
  }
}
@media (max-width: 560px) {
  .projects-track {
    grid-auto-columns: 100%;
  }
}
/* ---------- blog carousel — full width, big images ---------- */
.blog-carousel {
  margin: 4px 0 34px;
}
body[data-page="blog"] .page-wrap {
  max-width: none;
}
body[data-page="blog"] .blog-carousel {
  padding: 0;
}
.blog-carousel .carousel-track {
  gap: 24px;
}
.blog-carousel .carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
}
@media (max-width: 1200px) {
  .blog-carousel .carousel-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 768px) {
  body[data-page="blog"] .site-main {
    padding: 0 20px 22px;
  }
  .blog-carousel .carousel-track {
    gap: 14px;
  }
  .blog-carousel .carousel-slide {
    flex: 0 0 100%;
  }
  .blog-carousel .carousel-arrow.prev {
    left: -14px;
  }
  .blog-carousel .carousel-arrow.next {
    right: -14px;
  }
}
/* ---------- services: tel link + phone field ---------- */
.tel-link {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--yellow);
  transition: color var(--tr-fast);
}
.tel-link:hover {
  color: var(--yellow);
}

/* placeholder همه فیلدها: هم‌راستا و هم‌رنگ */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-light);
  font-weight: 300;
  opacity: 1;
}

/* فیلد موبایل: رقم‌ها چپ‌به‌راست تایپ می‌شوند، ولی جای فیلد مثل بقیه راست‌چین می‌ماند */
.form-field input[type="tel"] {
  direction: ltr;
}
html[dir="rtl"] .form-field input[type="tel"] {
  text-align: right;
}
html[dir="ltr"] .form-field input[type="tel"] {
  text-align: left;
}
/* ============================================================
   ABOUT — redesign: 2 stacked images + bolder text
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 64px;
  align-items: start;
  margin: 24px 0 46px;
}

/* --- images column --- */
.about-media {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.about-media .img-hover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-bg);
}
.about-media .img-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- text column (bolder) --- */
.about-content {
  padding-top: 4px;
}
.about-content .section-title {
  margin: 0 0 14px;
}
.about-content .section-title + .section-title {
  margin-top: 28px;
}
.about-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.about-content p {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 2.2;
  margin-bottom: 18px;
  text-align: justify;
}

/* --- facts --- */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 16px;
}
.about-facts .fact {
  text-align: center;
  padding: 16px 10px 14px;
  border-top: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.8);
}
.about-facts .fact-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.about-facts .fact-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* --- responsive --- */
@media (max-width: 992px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-media {
    order: -1;
  }
}
@media (max-width: 560px) {
  .about-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ============================================================
   ABOUT slider + dark advanced lightbox
   ============================================================ */
body.scroll-locked {
  overflow: hidden;
}

/* --- slider --- */
.about-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-bg);
  cursor: zoom-in;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
}
.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  transition: opacity 0.9s var(--tr);
  cursor: zoom-in;
}
.about-slide.is-active {
  opacity: 1;
}
.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.about-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  transition:
    background var(--tr-fast),
    transform var(--tr-fast);
}
.about-slider-dots button.is-active {
  background: var(--yellow);
  transform: scale(1.2);
}

/* --- lightbox (dark) --- */
.alb {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(17, 17, 17, 0.94);
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--tr),
    visibility 0s linear 0.35s;
}
.alb.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--tr);
}
.alb-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  z-index: 20;
}
.alb-btn {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition:
    background 0.2s,
    color 0.2s;
}
.alb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}
.alb-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alb-counter {
  margin-left: auto;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  padding-left: 6px;
}
html[lang="fa"] .alb-counter {
  direction: rtl;
}

/* share dropdown */
.alb-share-wrap {
  position: relative;
}
.alb-share-menu {
  position: absolute;
  top: 50px;
  left: 0;
  min-width: 215px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  padding: 8px;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s var(--tr),
    transform 0.22s var(--tr),
    visibility 0s linear 0.22s;
  z-index: 30;
}
.alb-share-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.22s var(--tr),
    transform 0.22s var(--tr);
}
.alb-share-menu a,
.alb-share-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #1f1f1f;
  text-align: right;
  transition: background 0.15s;
}
.alb-share-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}
.alb-share-menu svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* stage + zoom */
.alb-stage {
  position: relative;
  z-index: 5;
}
.alb-stage img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  transform: scale(var(--z, 1)) translate(var(--px, 0px), var(--py, 0px));
  transition:
    transform 0.3s var(--tr),
    opacity 0.3s;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}
.alb.is-zoomed .alb-stage img {
  cursor: grab;
}
.alb.is-zoomed.dragging .alb-stage img {
  cursor: grabbing;
  transition: none;
}

/* arrows */
.alb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.alb-nav:hover {
  color: var(--yellow);
  opacity: 1;
}
.alb-nav svg {
  width: 26px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alb-prev {
  left: 16px;
}
.alb-next {
  right: 16px;
}

@media (max-width: 768px) {
  .alb-stage img {
    max-width: 94vw;
    max-height: 70vh;
  }
  .alb-nav {
    width: 42px;
    height: 42px;
  }
  .alb-prev {
    left: 4px;
  }
  .alb-next {
    right: 4px;
  }
  .alb-toolbar {
    padding: 0 8px;
  }
}
/* آیکون‌های منوی اشتراک: استروک‌دارها بدون fill درست رندر شوند */
.alb-share-menu svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.alb-share-menu svg:not([fill]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alb-share-menu a:hover,
.alb-share-menu button:hover {
  background: rgba(0, 0, 0, 0.06);
}
/* ---------- blog carousel ---------- */
/* ---------- blog carousel — full width, big images ---------- */
.blog-carousel {
  margin: 4px 0 34px;
}
body[data-page="blog"] .page-wrap {
  max-width: none;
}
body[data-page="blog"] .blog-carousel {
  padding: 0;
}
.blog-carousel .carousel-track {
  gap: 24px;
}
.blog-carousel .carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
}
@media (max-width: 1200px) {
  .blog-carousel .carousel-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 768px) {
  body[data-page="blog"] .site-main {
    padding: 0 20px 22px;
  }
  .blog-carousel .carousel-track {
    gap: 14px;
  }
  .blog-carousel .carousel-slide {
    flex: 0 0 100%;
  }
  .blog-carousel .carousel-arrow.prev {
    left: -14px;
  }
  .blog-carousel .carousel-arrow.next {
    right: -14px;
  }
}
/* ===== Project detail: large image right, gallery left ===== */

.project-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  direction: rtl;
  margin: 30px 0 34px;
  align-items: stretch;
}

.project-media-layout .project-hero {
  min-width: 0;
  margin: 0;
}

.project-media-layout .project-main-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 410px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: zoom-in;
}

.project-media-layout .project-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-media-layout .project-main-image:hover img {
  transform: scale(1.025);
}

.project-media-layout .project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.project-media-layout .project-gallery .g-item {
  height: 100%;
  min-height: 410px;
  aspect-ratio: auto;
}

.project-media-layout .project-gallery .g-item img {
  display: block;
}

/* خود لایت‌باکس جهت چپ‌به‌راست دارد؛ شمارنده و کنترل‌هایش
   با استایل موجود .alb در همین فایل کار می‌کنند. */
.project-media-layout a:focus-visible {
  outline: 3px solid var(--yellow, #f5c400);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .project-media-layout {
    grid-template-columns: 1fr;
  }

  .project-media-layout .project-main-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-media-layout .project-gallery .g-item {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 480px) {
  .project-media-layout {
    gap: 8px;
  }

  .project-media-layout .project-gallery {
    gap: 8px;
  }

  .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   Contact Page - Two Column Layout
   اطلاعات تماس در راست، نقشه در چپ
   ========================================================= */

.contact-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 48px;

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-areas: "map info";
  gap: 48px;

  direction: ltr;
  align-items: start;
}

html[dir="ltr"] .contact-layout {
  grid-template-areas: "info map";
}
/* ستون اطلاعات سمت راست */
.contact-rows {
  grid-area: info;

  direction: rtl;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 28px;

  text-align: right;
}

html[dir="ltr"] .contact-rows {
  text-align: left;
}

/* ستون نقشه سمت چپ */
.contact-map-panel {
  grid-area: map;

  direction: rtl;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* اصلاح چیدمان ردیف‌های اطلاعات */
.contact-rows .contact-row {
  width: 100%;
  text-align: right;
}

.contact-address-row {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.contact-rows .c-label {
  margin: 0 0 9px;
  color: #777;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-rows .c-value {
  margin: 0;
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  line-height: 2;
}

.contact-rows .c-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-rows .c-value a:hover {
  color: #ffc400;
}

/* اطلاعات تلفن، ایمیل و کدپستی */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;

  width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* ایمیل تمام عرض باشد */
.contact-grid .contact-row:last-child {
  grid-column: 1 / -1;
}

/* شبکه‌های اجتماعی */
.contact-rows .social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.contact-rows .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.contact-rows .social-icons a:hover {
  color: #111;
  background-color: #ffc400;
  border-color: #ffc400;
  transform: translateY(-2px);
}

.contact-rows .social-icons svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* قاب نقشه */
.contact-map {
  position: relative;
  width: 100%;
  min-height: 480px;

  overflow: hidden;
  background: #eeeeee;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

/* دکمه مشاهده در Google Maps */
.contact-map-panel .map-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

html[dir="ltr"] .contact-map-panel .map-actions {
  justify-content: flex-start;
}

.contact-map-panel .map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 10px 18px;

  color: #222;
  background: transparent;
  border: 1px solid #222;
  border-radius: 2px;

  font-size: 0.9rem;
  text-decoration: none;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.contact-map-panel .map-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.contact-map-panel .map-btn:hover {
  color: #111;
  background-color: #ffc400;
  border-color: #ffc400;
  transform: translateY(-2px);
}

/* تبلت */
@media (max-width: 900px) {
  .contact-layout {
    width: min(100% - 32px, 720px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "map";
    gap: 38px;
  }

  .contact-map {
    min-height: 400px;
  }

  .contact-map iframe {
    height: 400px;
  }
}

/* موبایل */
@media (max-width: 560px) {
  .contact-layout {
    width: calc(100% - 28px);
    margin-top: 22px;
    margin-bottom: 34px;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-grid .contact-row:last-child {
    grid-column: auto;
  }

  .contact-map {
    min-height: 320px;
  }

  .contact-map iframe {
    height: 320px;
  }

  .contact-map-panel .map-btn {
    width: 100%;
  }
}
/* Contact page: larger social icons */
.social-icons a {
  width: 50px;
  height: 50px;
}

.social-icons svg {
  width: 23px;
  height: 23px;
}

.social-icons a:focus-visible {
  outline: 2px solid var(--yellow, #ffc400);
  outline-offset: 3px;
}

/* Brand-colored scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #ffc400 #eeeeee;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #eeeeee;
}

::-webkit-scrollbar-thumb {
  background: #ffc400;
  border: 3px solid #eeeeee;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dda900;
}

@media (max-width: 600px) {
  .social-icons a {
    width: 46px;
    height: 46px;
  }

  .social-icons svg {
    width: 21px;
    height: 21px;
  }
}

/* Blog carousel arrows: vertically center over the 16:9 image on mobile. */
@media (max-width: 768px) {
  body[data-page="blog"]
    .carousel[data-carousel].blog-carousel
    .carousel-arrow {
    position: absolute !important;
    top: calc((100vw - 40px) * 0.28125) !important;
    transform: translateY(-50%) !important;
    grid-row: auto !important;
    grid-column: auto !important;
  }

  body[data-page="blog"]
    .carousel[data-carousel].blog-carousel
    .carousel-arrow.prev {
    left: -14px !important;
    right: auto !important;
  }

  body[data-page="blog"]
    .carousel[data-carousel].blog-carousel
    .carousel-arrow.next {
    right: -14px !important;
    left: auto !important;
  }
}
/* =========================================================
   Responsive image logo
   جایگزین اندازه‌گذاری قبلی SVG و مناسب برای IMG
   ========================================================= */

.site-logo {
  width: 100px;
  height: 110px;
  flex: 0 0 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 0;
  overflow: hidden;
}

.site-logo > img,
.site-logo > svg {
  display: block;

  width: 100px !important;
  height: auto !important;

  max-width: 100%;
  max-height: 110px;

  object-fit: contain;
  object-position: center;
}

.header-inner {
  display: flex;
  align-items: center;
}

@media (max-width: 1200px) {
  .site-logo {
    width: 92px;
    height: 100px;
    flex-basis: 92px;
  }

  .site-logo > img,
  .site-logo > svg {
    width: 92px !important;
    max-height: 100px;
  }
}

@media (max-width: 992px) {
  .site-logo {
    width: 82px;
    height: 92px;
    flex-basis: 82px;
  }

  .site-logo > img,
  .site-logo > svg {
    width: 82px !important;
    max-height: 92px;
  }
}

@media (max-width: 768px) {
  .site-logo {
    width: 74px;
    height: 82px;
    flex-basis: 74px;
  }

  .site-logo > img,
  .site-logo > svg {
    width: 74px !important;
    max-height: 82px;
  }
}

/* موبایل کوچک */
@media (max-width: 560px) {
  .site-logo {
    width: 64px;
    height: 72px;
    flex-basis: 64px;
  }

  .site-logo > img,
  .site-logo > svg {
    width: 64px !important;
    max-height: 72px;
  }
}
/* Logo image — shared by all pages */
.site-logo img {
  display: block;
  width: 118px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 992px) {
  .site-logo img {
    width: 92px;
  }
}

@media (max-width: 768px) {
  .site-logo img {
    width: 74px;
  }
}

@media (max-width: 560px) {
  .site-logo img {
    width: 64px;
  }
}

.page-wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 48px);
}
.project-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
  direction: rtl;
  align-items: start;
  width: 100%;
  margin: 32px 0 48px;
}

.project-media-layout .project-hero,
.project-media-layout .project-gallery-mobile-row {
  min-width: 0;
  min-height: 0;
}

.project-gallery-mobile-row {
  width: 100%;
}

.project-mobile-gallery-nav {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.project-mobile-gallery-nav svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.project-media-layout .project-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none !important;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #eeeeee;
  cursor: zoom-in;
  appearance: none;
}

.project-media-layout .project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.7vw, 12px);
  width: 100%;
  aspect-ratio: 1.43 / 1;
  align-content: stretch;
  direction: rtl;
}

.project-media-layout .project-gallery .g-item {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto !important;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #eeeeee;
  cursor: zoom-in;
  appearance: none;
}

.project-media-layout .project-main-image img,
.project-media-layout .project-gallery .g-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  transform: none;
  transition:
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.45s ease;
}

.project-media-layout .project-main-image:hover img,
.project-media-layout .project-gallery .g-item:hover img {
  transform: scale(1.045);
}

.project-media-layout button {
  font: inherit;
}

.project-media-layout button:focus-visible {
  outline: 2px solid #f5c400;
  outline-offset: 3px;
}

.project-meta {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 24px;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .page-wrap {
    max-width: 100%;
  }

  .project-media-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .project-media-layout .project-hero {
    grid-column: 1;
    grid-row: 1;
  }

  .project-media-layout .project-gallery-mobile-row {
    grid-column: 1;
    grid-row: 2;
  }

  .project-media-layout .project-gallery {
    aspect-ratio: 1.43 / 1;
  }

  .project-media-layout .project-main-image {
    aspect-ratio: 16 / 9;
  }

  .project-meta {
    flex-wrap: wrap;
  }

  .project-meta .m-item {
    flex: 1 1 calc(50% - 24px);
  }
}

@media (max-width: 640px) {
  .project-gallery-mobile-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .project-mobile-gallery-nav {
    display: flex;
    flex-shrink: 0;
  }

  .project-media-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 36px;
  }

  .project-media-layout .project-main-image {
    aspect-ratio: 16 / 9;
  }

  .project-media-layout .project-gallery {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    grid-auto-rows: auto;
    gap: 8px;
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
  }

  .project-media-layout .project-gallery .g-item {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1 !important;
  }

  .project-media-layout .project-gallery .g-item:nth-child(n + 4) {
    display: none;
  }

  .project-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .project-meta .m-item {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .page-wrap {
    padding-inline: 16px;
  }

  .project-media-layout {
    gap: 10px;
  }

  .project-media-layout .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .project-media-layout .project-gallery .g-item {
    aspect-ratio: 1 / 1 !important;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
}
/* گالری با تعداد نامحدود عکس؛ سه عکس در هر ردیف */
@media (min-width: 641px) {
  body[data-page="project"] .project-media-layout {
    align-items: start;
  }

  body[data-page="project"] .project-media-layout .project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-auto-flow: row;

    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    align-content: start;
  }

  body[data-page="project"] .project-media-layout .project-gallery .g-item {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 3 / 2 !important;
    padding: 0;
    overflow: hidden;
  }

  body[data-page="project"] .project-media-layout .project-gallery .g-item img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* Projects heading: prevent English text from collapsing */
body[data-page="projects"] .projects-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 28px;
  width: 100%;
  min-width: 0;
}

body[data-page="projects"] .projects-head > .page-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

body[data-page="projects"] .projects-head > .page-lead {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: start;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.9;
}

/* Give the category filters their own full-width row */
body[data-page="projects"] .projects-head > .filter-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 24px;
}

body[data-page="projects"] .filter-viewport {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body[data-page="projects"] .filter-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Stack the heading and description on mobile */
@media (max-width: 768px) {
  body[data-page="projects"] .projects-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body[data-page="projects"] .projects-head > .page-title {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-page="projects"] .projects-head > .page-lead {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
  }

  body[data-page="projects"] .projects-head > .filter-bar {
    grid-column: 1;
    grid-row: 3;
  }
}
/* Compact projects filters */
body[data-page="projects"] .projects-head {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 32px;
  align-items: center;
}

body[data-page="projects"] .projects-head > .page-title {
  grid-column: 1;
  grid-row: 1;
}

body[data-page="projects"] .projects-head > .page-lead {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

body[data-page="projects"] .projects-head > .filter-bar {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  min-width: 0;
  justify-self: end;
  margin: 0;
  padding: 0 32px;
}

body[data-page="projects"] .filter-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

body[data-page="projects"] .filter-track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
}

body[data-page="projects"] .filter-chip {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 120px;
  padding: 8px 12px;
  white-space: nowrap;
  text-align: center;
}

body[data-page="projects"] .filter-bar .carousel-arrow {
  position: absolute;
  top: 50%;
  bottom: auto;
  width: 26px;
  height: 36px;
  margin: 0;
  transform: translateY(-50%);
  z-index: 2;
}

body[data-page="projects"] .filter-bar .carousel-arrow.prev {
  left: 0;
  right: auto;
}

body[data-page="projects"] .filter-bar .carousel-arrow.next {
  right: 0;
  left: auto;
}

@media (max-width: 768px) {
  body[data-page="projects"] .projects-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body[data-page="projects"] .projects-head > .filter-bar {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
  }

  body[data-page="projects"] .filter-chip {
    min-width: 100px;
    font-size: 12px;
  }
}

/* ===== About: readable text ===== */

body[data-page="about"] .about-content p {
  font-size: 16px;
  font-weight: 600;
  line-height: 2.2;
  color: #171717;
  text-align: start;

  background: rgba(255, 255, 255, 0.94);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ===== About: grayscale → color on hover ===== */

body[data-page="about"] .about-slide img {
  filter: grayscale(100%);
  transition: filter 0.65s ease;
}

body[data-page="about"] .about-slide:hover img,
body[data-page="about"] .about-slide:focus-visible img {
  filter: grayscale(0%);
}

/* جلوگیری از قرار گرفتن اسلاید مخفی روی عکس فعال */
body[data-page="about"] .about-slide {
  pointer-events: none;
  z-index: 0;
}

body[data-page="about"] .about-slide.is-active {
  pointer-events: auto;
  z-index: 1;
}

/* نمایش واضح فوکوس هنگام استفاده از کیبورد */
body[data-page="about"] .about-slide:focus-visible {
  outline: 3px solid #ffc400;
  outline-offset: -3px;
}

/* Mobile */
@media (max-width: 560px) {
  body[data-page="about"] .about-content p {
    font-size: 15px;
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="about"] .about-slide img {
    transition: none;
  }
}
/* فقط عکس اصلی سمت راست */
body[data-page="project"] .project-media-layout .project-main-image {
  height: auto;
  min-height: 0;
  aspect-ratio: auto !important;
  padding: 0;
  background: transparent;
}

body[data-page="project"] .project-media-layout .project-main-image img {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 650px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
  transform: none !important;
}
/* فاصله کم بین عکس اصلی و گالری در دسکتاپ */
@media (min-width: 1025px) {
  body[data-page="project"] .project-media-layout {
    column-gap: 12px;
  }

  body[data-page="project"] .project-media-layout .project-main-image img {
    margin: 0 auto 0 0;
  }
}
/* Readability v2 — append AFTER all existing CSS, including the previous fix. */
:root {
  --bg: #ededed;
  --ink: #111111;
  --ink-soft: #202020;
  --gray: #303030;
  --gray-light: #3b3b3b;
}

body {
  background-color: var(--bg);
}

/* Transparency affects ONLY the decorative waves, not text or photographs.
   Keep the existing image URL, sizing and position. */
.waves-bg {
  background-color: #ededed;
  background-blend-mode: multiply;
  filter: none;
  opacity: 0.42;
}

/* Darker text where the wave pattern previously interfered. */
.page-lead,
.project-card figcaption,
.grid-empty,
.seo-note,
.seo-note p,
.project-desc p,
.services-intro p,
.services-points li,
.article-body p,
.article-card .card-excerpt,
.article-card .card-meta,
.article-head .card-meta,
.about-facts .fact-label,
.project-meta .m-label,
.header-tagline,
.footer-copy,
.footer-note {
  color: #171717;
  font-weight: 600;
}

/* Quiet translucent backing only beneath captions / empty-state copy.
   No padding, dimensions or display changes: preserve layout and visibility. */
.project-card figcaption,
.grid-empty {
  background-color: rgba(237, 237, 237, 0.88);
  color: #111111;
  font-weight: 700;
}

.form-field label,
.contact-row .c-label,
.contact-rows .c-label,
.social-row .c-label {
  color: #202020;
  font-weight: 700;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #3b3b3b;
  opacity: 1;
}
/* حذف باکس پشت متن‌ها و آمار درباره ما */
body[data-page="about"] .about-content p,
body[data-page="about"] .about-facts {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* حذف باکس پشت شماره‌های تماس */
body[data-page="contact"] a[href^="tel:"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
      .takran-link {
        display: inline-block;
        color: inherit;
        text-decoration: none !important;
        transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
      }
      /* تغییر رنگ ملایم در حالت هاور بدون هیچ‌گونه خط */
      .takran-link:hover {
        color: #FFC400 !important;
        text-decoration: none !important;
      }
      
      /* لینک تیم تکران در پایین صفحه پروژه‌ها */

