/* فدیا — کاتالوگ شیشه‌ای (Liquid Glass) — متغیرهای تم در themes.css */

:root {
  --blur: 20px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font-body: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Fediya Display", "Vazirmatn", "Segoe UI", sans-serif;
  --header-h: 64px;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.fediya-body *:not(.bg-aurora):not(.bg-aurora *),
  body.fediya-body *:not(.bg-aurora):not(.bg-aurora *)::before,
  body.fediya-body *:not(.bg-aurora):not(.bg-aurora *)::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body.fediya-body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: transparent;
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* قیمت و اعداد — ارقام فارسی (فیلتر/JS)؛ بدون فشردگی display-font */
.price-amount,
.price-amount--was,
.admin-platform-card__amount,
.admin-platform-summary__amount,
.calc-summary__total,
.calc-unit__line-total,
.calc-photo-row__line,
.calc-photo-group__total,
.display-font.price-amount,
.display-font.admin-platform-card__amount,
.display-font.admin-platform-summary__amount {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
  font-feature-settings: "tnum" 0;
}

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

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

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  min-width: 0;
}

#main-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.catalog-app__wrap {
  background: transparent;
}

/* سطح شیشه‌ای / کارت */
.glass-panel,
.glass-card,
.glass-nav,
.glass-pill {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--shadow);
}


.glass-card {
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

/* کارت‌های لیست (پروژه / خدمات / بلاگ / تیم) — کلیک روی کل باکس */
.project-row,
.service-row,
.blog-row,
.team-row {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  max-width: 100%;
}

.project-row.glass-card:hover,
.service-row.glass-card:hover,
.blog-row.glass-card:hover,
.team-row.glass-card:hover {
  transform: none;
}

/* ردیف‌های لیست — reveal هنگام اسکرول، بدون تأخیر تجمعی و بدون blur سنگین */
.project-row.reveal,
.service-row.reveal,
.blog-row.reveal,
.team-row.reveal,
.about-row.reveal,
.story-milestone.reveal {
  transition-delay: 0ms !important;
  transition-duration: 0.45s;
}

.project-row,
.service-row,
.blog-row,
.team-row,
.about-row,
.story-milestone {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.project-row.glass-card,
.service-row.glass-card,
.blog-row.glass-card,
.team-row.glass-card,
.about-row.glass-card,
.story-milestone__card.glass-card,
.admin-platform-card.glass-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-row__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: transparent;
}

.card-row__hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-row__visual,
.project-row__content,
.service-row__visual,
.service-row__content,
.blog-row__visual,
.blog-row__content,
.team-row__visual,
.team-row__content {
  pointer-events: none;
}

.project-row__cta .btn,
.service-row__cta .btn,
.blog-row__cta .btn,
.team-row__cta .btn,
.team-member-hero__actions .team-social-links,
.team-member-hero__actions .team-social-links__item,
.team-social-links,
.team-social-links__item {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.glass-pill {
  border-radius: var(--radius-pill);
}

/* هدر */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.65rem clamp(0.85rem, 3vw, 1.5rem);
}

.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled .glass-nav {
  box-shadow: var(--shadow);
}

.brand-text,
.brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  color: var(--text) !important;
  background: rgba(110, 231, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

html[data-theme="dark"] .btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

/* هیرو */
.catalog-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  gap: 2rem;
}

@media (min-width: 900px) {
  .catalog-hero {
    grid-template-columns: 1fr 1.1fr;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
  }
}

.hero-inner {
  max-width: 560px;
  margin-inline: auto;
}

.hero-eyebrow,
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 75vh;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  font-size: 3rem;
}

.hero-glow {
  position: absolute;
  inset: auto 10% -20% 10%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(110, 231, 255, 0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
}

.scroll-hint .icon {
  transform: rotate(-90deg);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* سکشن‌ها */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
}

/* خدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(110, 231, 255, 0.1);
  margin-bottom: 1rem;
}

.service-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
}

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

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* پروژه‌ها — اسکرول افقی */
.projects-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.projects-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 clamp(1rem, 4vw, 4vw);
  width: max-content;
}

.project-card {
  position: relative;
  flex: 0 0 min(85vw, 380px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-media .project-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 30%, var(--text-subtle));
  opacity: 0.5;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 10%, var(--bg)),
    color-mix(in srgb, var(--accent-soft) 35%, var(--surface))
  );
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--glass-border);
}

.project-overlay h3 {
  margin: 0.25rem 0;
  font-size: 1.2rem;
}

.project-overlay p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.badge-featured {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(167, 139, 250, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* درباره */
.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-card--media {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }
  .about-card--media .about-media img {
    height: 100%;
    min-height: 280px;
    object-fit: cover;
  }
  .about-card--media .about-content {
    padding: 2rem;
  }
}

.about-card {
  padding: 2rem;
}

.about-card h3 {
  margin: 0 0 0.75rem;
}

/* داستان — خط زمانی */
.section-story {
  overflow: clip;
}

.story-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.story-intro {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
}

.story-intro::before {
  content: "";
  position: absolute;
  inset: auto 15% -40% 15%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.14), transparent 70%);
  pointer-events: none;
}

html[data-theme="dark"] .story-intro::before {
  background: radial-gradient(ellipse, rgba(110, 231, 255, 0.16), transparent 70%);
}

.story-intro__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.story-intro__lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.9;
  color: var(--text-muted);
}

.story-journey {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: 0.5rem 0;
}

.story-journey__track {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  right: 1.15rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent) 8%,
    var(--accent-2) 92%,
    transparent
  );
  border-radius: var(--radius-pill);
  opacity: 0.45;
  pointer-events: none;
}

.story-journey__glow {
  position: absolute;
  inset: 20% -18px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.22), transparent 70%);
  filter: blur(12px);
}

html[data-theme="dark"] .story-journey__glow {
  background: radial-gradient(circle, rgba(110, 231, 255, 0.28), transparent 70%);
}

.story-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding-inline-end: 0.25rem;
}

.story-milestone__marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.story-milestone__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5px rgba(0, 113, 227, 0.25),
    0 0 18px rgba(0, 113, 227, 0.35);
  flex-shrink: 0;
}

html[data-theme="dark"] .story-milestone__dot {
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5px rgba(110, 231, 255, 0.3),
    0 0 22px rgba(110, 231, 255, 0.45);
}

.story-milestone__year {
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
  max-width: 4.5rem;
  word-break: break-word;
}

.story-milestone__period {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.story-milestone__card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.story-milestone__card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.story-milestone__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.35;
}

.story-milestone__text {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.9;
}

.story-milestone__text p {
  margin: 0;
}

.story-milestone__text p + p {
  margin-top: 0.75rem;
}

.story-milestone__media {
  margin: 0;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 220px;
}

.story-milestone__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.story-milestone__card:hover .story-milestone__media img {
  transform: scale(1.04);
}

.story-outro {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.story-outro__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.story-outro__cta {
  justify-self: center;
}

.story-empty {
  grid-column: 1 / -1;
  padding: 2rem;
}

@media (min-width: 768px) {
  .story-journey__track {
    right: 50%;
    transform: translateX(50%);
  }

  .story-milestone {
    grid-template-columns: 1fr 2.5rem 1fr;
    gap: 0 2rem;
    min-height: 0;
  }

  .story-milestone__marker {
    grid-column: 2;
    grid-row: 1;
    padding-top: 1.5rem;
  }

  .story-milestone__card {
    grid-column: 1;
    grid-row: 1;
  }

  .story-milestone--alt .story-milestone__card {
    grid-column: 3;
  }

  .story-milestone--alt .story-milestone__marker {
    grid-column: 2;
  }

  .story-milestone:not(.story-milestone--alt) .story-milestone__card {
    text-align: left;
  }

  .story-milestone--alt .story-milestone__card {
    text-align: right;
  }

  .story-milestone--alt .story-milestone__card::after {
    inset: 0 0 0 auto;
    border-radius: 4px 0 0 4px;
  }

  .story-milestone__year {
    font-size: 1.05rem;
    max-width: none;
    white-space: nowrap;
  }

  .story-milestone__media {
    max-height: 260px;
  }
}

@media (min-width: 1024px) {
  .story-milestone__card {
    padding: 2rem;
  }

  .story-milestone__title {
    font-size: 1.55rem;
  }
}

/* تیم */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  padding: 1.5rem;
  text-align: center;
}

.team-photo-wrap {
  margin-bottom: 1rem;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid var(--glass-border);
}

.team-photo--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.2), rgba(167, 139, 250, 0.2));
  font-size: 2rem;
}

.team-role {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.team-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}

a.team-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--glass-border));
}

.team-card__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* تعرفه */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2rem;
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(110, 231, 255, 0.35);
  background: rgba(110, 231, 255, 0.08);
}

.pricing-price {
  margin: 1rem 0;
}

.price-amount {
  font-size: 2rem;
}

.price-currency,
.price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.icon-check {
  color: var(--accent);
}

/* تماس */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.contact-form {
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.glass-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s;
}

.glass-input:focus {
  border-color: var(--accent);
}

.glass-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-errors p {
  color: #ff6b8a;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

/* فوتر — مینیمال */
.site-footer {
  margin: 2rem 0 0;
  padding: 0 clamp(1rem, 4vw, 2rem) max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  background: transparent;
}

.hub-home .site-footer .footer-top {
  padding-top: 1.25rem;
}

.footer-inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0 1.25rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  max-width: 280px;
}

.footer-brand:hover .footer-brand__name {
  color: var(--accent);
}

.footer-brand__logo {
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand__name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}

.footer-brand__tag {
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: end;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  background: var(--glass);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.35);
  transform: translateY(-2px);
}

html[data-theme="dark"] .footer-social a:hover {
  border-color: rgba(110, 231, 255, 0.35);
}

.footer-mhfa {
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.footer-mhfa__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-mhfa__html p {
  margin: 0 0 0.35rem;
}

.footer-mhfa__html a,
.footer-mhfa__link a {
  color: var(--accent);
  text-decoration: none;
}

.footer-mhfa__html a:hover,
.footer-mhfa__link a:hover {
  text-decoration: underline;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--glass-border);
}

.footer-bar .copyright {
  flex: 1 1 auto;
  text-align: center;
}

.copyright.m-0,
.copyright {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.company-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.company-link:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-aside {
    align-items: flex-start;
    text-align: start;
  }

  .footer-nav {
    gap: 0.5rem 1rem;
  }

  .copyright {
    font-size: 0.72rem;
  }
}

/* فلش پیام */
.flash-messages {
  position: fixed;
  top: calc(var(--header-h) + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.flash {
  padding: 0.65rem 1.25rem;
  margin-bottom: 0.5rem;
}

.flash-success {
  background: rgba(52, 211, 153, 0.2);
}

.flash-error {
  background: rgba(255, 107, 138, 0.2);
}

.flash-info {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0) * 80ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* جزئیات پروژه */
.project-detail-hero {
  padding-top: var(--header-h);
}

.project-detail-cover {
  max-height: 70vh;
  overflow: hidden;
}

.project-detail-cover img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-detail-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.project-description {
  padding: 2rem;
  line-height: 1.9;
}

.gallery-masonry {
  columns: 1;
  column-gap: 1rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius);
}

.gallery-item figcaption {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-card {
  overflow: hidden;
  padding: 0;
}

.related-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.related-card h3 {
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
}

/* موبایل */
@media (max-width: 899px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: calc(var(--header-h) + 0.5rem) 1rem auto;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.35s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .catalog-hero {
    position: relative;
  }

  .scroll-hint {
    display: none;
  }
}

/* parallax */
.parallax-wrap {
  overflow: hidden;
}

.parallax {
  transform: translateZ(0);
}

/* موبایل: کاهش هزینه blur شیشه‌ای */
@media (max-width: 768px) {
  .glass-panel,
  .glass-card,
  .glass-nav,
  .glass-pill {
    --blur: 16px;
    backdrop-filter: blur(var(--blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  }

}
