/* public/styles/style.css — mobile-first */

@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/fonts/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/fonts/Shabnam-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "VazirMatn";
  src: url("../fonts/VazirMatn/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy-950: #0a1830;
  --navy-900: #11223e;
  --stone-700: #8c7355;
  --stone-500: #c0a786;
  --stone-300: #dccaad;
  --cream-50:  #f6f1e7;
  --gradient-gold: linear-gradient(135deg, var(--stone-700), var(--stone-500) 55%, var(--stone-300));
  --font-body: "Shabnam", Tahoma, sans-serif;
  --font-heading: "VazirMatn", Tahoma, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream-50);
  background: var(--navy-900);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html[data-nav="open"],
html[data-about="open"] { overflow: hidden; }

/* ===== HEADER (mobile base) ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.header-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(192, 167, 134, 0.15);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 999px;
  isolation: isolate;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    var(--stone-500) 80deg,
    var(--stone-300) 150deg,
    transparent 230deg,
    transparent 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-ring 4.5s linear infinite;
  z-index: -1;
}
@keyframes rotate-ring { to { --angle: 360deg; } }

.logo-mark path:first-of-type {
  transform-box: fill-box;
  transform-origin: center;
  animation: gem-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(192, 167, 134, 0.55));
}
@keyframes gem-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-text {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.015em;
  filter: drop-shadow(0 0 10px rgba(192, 167, 134, 0.25));
  background: linear-gradient(
    100deg,
    var(--stone-700) 0%,
    var(--stone-500) 30%,
    var(--stone-300) 45%,
    var(--stone-500) 60%,
    var(--stone-700) 100%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer-logo 2.8s ease-in-out infinite;
}
@keyframes shimmer-logo {
  0%   { background-position: 100% 0; }
  100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo::before, .logo-text, .logo-mark path:first-of-type { animation: none; }
}

.logo:hover .logo-text, .logo:focus-visible .logo-text {
  background: var(--gradient-gold);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}

@media (min-width: 860px) {
  .logo-text { font-size: 1.75rem; }
}

.nav-toggle { width: 36px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--cream-50); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-pill {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(80vw, 300px);
  background: var(--navy-950);
  border-inline-start: 1px solid rgba(192, 167, 134, 0.2);
  display: flex;
  flex-direction: column;
  padding: 80px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  z-index: 120;
}
html[data-nav="open"] .nav-pill { transform: translateX(0); }

.nav-close { position: absolute; top: 14px; left: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--stone-500); border-radius: 50%; transition: background 0.2s var(--ease); }
.nav-close:hover { background: rgba(192, 167, 134, 0.12); }

.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-list a { display: block; padding: 13px 14px; font-size: 1.05rem; font-weight: 500; border-radius: 10px; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.nav-list a:hover, .nav-list a:focus-visible { background: var(--gradient-gold); color: var(--navy-950); }

.nav-overlay { position: fixed; inset: 0; background: rgba(6, 14, 28, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 110; }
html[data-nav="open"] .nav-overlay { opacity: 1; pointer-events: auto; }

@media (min-width: 860px) {
  .nav-toggle, .nav-close, .nav-overlay { display: none; }
  .header-bar {
    height: 72px;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(192, 167, 134, 0.15);
    padding: 0 24px;
  }
  .nav-pill {
    position: fixed; top: 16px; right: auto; bottom: auto; left: 50%;
    transform: translateX(-50%);
    width: auto; flex-direction: row; padding: 6px;
    border: 1px solid rgba(192, 167, 134, 0.2); border-radius: 999px;
    pointer-events: auto;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-list a { padding: 10px 18px; border-radius: 999px; }
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 90px 20px 50px; overflow: hidden; background: var(--navy-900); }

.vein-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vein-path { fill: none; stroke: url(#veinGradient); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw-vein 2s var(--ease) 0.1s forwards; }
@keyframes draw-vein { to { stroke-dashoffset: 0; } }

.hero-grid { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 36px; }
.hero-text { max-width: 620px; text-align: start; }
.hero-visual { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 0.85rem; font-weight: 500; color: var(--stone-300); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-gold); }

.hero-title { margin: 0 0 26px; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.9rem); line-height: 1.55; }
.hero-title .accent { background: var(--gradient-gold); background-clip: text; -webkit-background-clip: text; color: transparent; }

.hero-desc { margin: 0 0 34px; font-size: clamp(0.9rem, 2vw, 1.02rem); line-height: 1.9; color: rgba(246, 241, 231, 0.78); }

.hero-slogan { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.slogan-line { width: 42px; height: 2px; background: var(--gradient-gold); border-radius: 2px; }
.hero-slogan p { margin: 0; font-weight: 500; font-size: 1rem; color: var(--stone-300); }

.anim-in { opacity: 0; transform: translateY(14px); animation: fade-up 0.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

@media (min-width: 960px) {
  .hero { padding: 130px 20px 90px; }
  .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .hero-visual { display: block; width: 300px; flex-shrink: 0; }
}

/* ===== RESUME ===== */
.resume-section { position: relative; padding: 88px 20px 100px; overflow: hidden; background: var(--navy-950); }
.resume-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 8% 22%, rgba(192, 167, 134, 0.12), transparent 31%), linear-gradient(135deg, rgba(17, 34, 62, 0.2), transparent 55%); }
.resume-shell { position: relative; max-width: 1100px; margin: 0 auto; }
.resume-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.resume-heading .eyebrow { margin-bottom: 12px; }
.section-title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.65rem, 5vw, 2.7rem); line-height: 1.45; }
.section-title .accent { background: var(--gradient-gold); background-clip: text; -webkit-background-clip: text; color: transparent; }
.section-intro { max-width: 360px; margin: 0; color: rgba(246, 241, 231, 0.68); font-size: 0.95rem; line-height: 1.9; }

.resume-swiper { overflow: hidden; cursor: grab; touch-action: pan-y; outline: none; }
.resume-swiper:active { cursor: grabbing; }
.resume-track { display: flex; direction: ltr; gap: 20px; will-change: transform; }
.resume-slide { flex: 0 0 92%; min-width: 0; height: auto; direction: rtl; }

.resume-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(26, 47, 82, 0.9), rgba(10, 24, 48, 0.98));
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.resume-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 167, 134, 0.5), rgba(192, 167, 134, 0) 40%, rgba(192, 167, 134, 0) 60%, rgba(220, 202, 173, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s var(--ease);
}
.resume-card:hover,
.resume-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px -20px rgba(192, 167, 134, 0.28), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.resume-card:hover::before,
.resume-card:focus-within::before { opacity: 1; }

.resume-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(140, 115, 85, 0.5), rgba(10, 24, 48, 0.9));
}
.resume-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 24, 48, 0.85));
  pointer-events: none;
}
.resume-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}
.resume-card:hover .resume-project-image,
.resume-card:focus-within .resume-project-image { transform: scale(1.07); }

.resume-card-number {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 24, 48, 0.65);
  border: 1px solid rgba(220, 202, 173, 0.4);
  color: var(--stone-300);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.resume-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px 24px;
}
.resume-card-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--stone-500); }
.resume-card h3 { margin: 6px 0 0; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.5; }

.resume-visit {
  position: relative;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--gradient-gold);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-position 0.6s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.resume-visit:hover,
.resume-visit:focus-visible {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(192, 167, 134, 0.6);
}
.resume-visit span { transition: transform 0.3s var(--ease); }
.resume-visit:hover span,
.resume-visit:focus-visible span { transform: translate(3px, -3px); }

.resume-pagination { position: static; display: flex; width: auto; justify-content: center; gap: 8px; margin-top: 28px; }
.resume-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(220, 202, 173, 0.25); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.resume-dot.is-active { width: 28px; border-radius: 999px; background: var(--gradient-gold); }

@media (min-width: 760px) {
  .resume-section { padding: 112px 32px 124px; }
  .resume-heading { flex-direction: row; align-items: end; justify-content: space-between; margin-bottom: 42px; }
  .resume-track { gap: 18px; }
  .resume-slide { flex-basis: 58%; }
}

@media (min-width: 960px) {
  .resume-track { gap: 22px; }
  .resume-slide { flex-basis: 43%; }
}

@media (min-width: 1200px) {
  .resume-track { gap: 24px; }
  .resume-slide { flex-basis: 36%; }
}

/* ===== دکمه‌ی آشنایی بیشتر ===== */
.btn-about {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border: 1px solid rgba(220, 202, 173, 0.35);
  border-radius: 999px;
  color: var(--stone-300);
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-about:hover, .btn-about:focus-visible { background: var(--gradient-gold); color: var(--navy-950); border-color: transparent; }
.btn-about svg { transform: rotate(-90deg); }

/* ===== صفحه‌ی درباره‌ی ما ===== */
.about-page {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-950);
  overflow-y: auto;
  padding: 84px 18px 60px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.about-page.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.about-page-inner { max-width: 1000px; margin: 0 auto; }

.about-close {
  position: fixed; top: 14px; left: 16px; z-index: 201;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--stone-500); background: var(--navy-950); border: 1px solid rgba(192,167,134,0.2);
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}
.about-close:hover { background: rgba(192, 167, 134, 0.12); }

.about-hero { text-align: center; margin-bottom: 40px; }
.about-hero .eyebrow { justify-content: center; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-box-wide { grid-column: 1 / -1; }
}

.about-box {
  border: 1px solid rgba(220, 202, 173, 0.16);
  background: rgba(17, 34, 62, 0.55);
  padding: 24px 22px;
}
.about-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--stone-300);
}
.about-box p { margin: 0 0 12px; line-height: 2; color: rgba(246, 241, 231, 0.82); font-size: 0.92rem; }
.about-box p:last-child { margin-bottom: 0; }
.about-closing { color: var(--stone-300); font-weight: 500; }

.about-values { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.about-values li {
  padding: 7px 15px; border: 1px solid rgba(192, 167, 134, 0.35); border-radius: 999px;
  font-size: 0.82rem; color: var(--stone-300);
}

/* ===== معرفی کوتاه (About teaser) ===== */
.about-teaser {
  position: relative;
  padding: 70px 20px;
  text-align: center;
  background: var(--navy-950);
  border-top: 1px solid rgba(192, 167, 134, 0.08);
  border-bottom: 1px solid rgba(192, 167, 134, 0.08);
}
.about-teaser-inner { max-width: 640px; margin: 0 auto; }
.about-teaser-inner .eyebrow { justify-content: center; }
.about-teaser-inner .section-title { margin-bottom: 18px; }
.about-teaser-text {
  margin: 0 0 30px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.95;
  color: rgba(246, 241, 231, 0.75);
}
@media (min-width: 760px) {
  .about-teaser { padding: 96px 32px; }
}

/* ===== VALUE / SEO SECTION ===== */
.value-section { position: relative; padding: 88px 20px 100px; background: var(--navy-900); overflow: hidden; }
.value-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% 12%, rgba(192, 167, 134, 0.1), transparent 32%); }
.value-shell { position: relative; max-width: 980px; margin: 0 auto; }

.value-intro { margin-bottom: 56px; }
.value-intro .section-title { margin-bottom: 22px; }
.value-intro p { margin: 0 0 16px; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 2; color: rgba(246, 241, 231, 0.78); }
.value-intro p:last-child { margin-bottom: 0; }
.value-intro strong { color: var(--stone-300); font-weight: 700; }

.value-block { margin-bottom: 56px; }
.value-block:last-of-type { margin-bottom: 0; }
.value-block h3 {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--cream-50);
}
.value-block > p { margin: 0 0 20px; line-height: 2; color: rgba(246, 241, 231, 0.75); font-size: 0.94rem; }
.value-block strong { color: var(--stone-300); font-weight: 700; }

/* کارت‌های مزایا */
.value-benefits { display: grid; grid-template-columns: 1fr; gap: 16px; }
.benefit-card {
  position: relative;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(26, 47, 82, 0.7), rgba(10, 24, 48, 0.9));
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 167, 134, 0.45), transparent 45%, transparent 60%, rgba(220, 202, 173, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}
.benefit-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 167, 134, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.benefit-card:hover { transform: translateY(-6px); }
.benefit-card:hover::before { opacity: 1; }
.benefit-card:hover::after { opacity: 1; }

.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--gradient-gold);
  color: var(--navy-950);
}
.value-benefits .benefit-card:nth-child(2) .benefit-icon { filter: hue-rotate(-14deg); }
.value-benefits .benefit-card:nth-child(3) .benefit-icon { filter: hue-rotate(14deg); }
.value-benefits .benefit-card:nth-child(4) .benefit-icon { filter: hue-rotate(28deg); }

.benefit-card h4 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 1.02rem; color: var(--cream-50); }
.benefit-card p { margin: 0; font-size: 0.86rem; line-height: 1.9; color: rgba(246, 241, 231, 0.68); }

@media (min-width: 640px) {
  .value-benefits { grid-template-columns: 1fr 1fr; }
}

/* لیست ویژگی‌ها */
.feature-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17, 34, 62, 0.55);
  font-size: 0.9rem;
  color: rgba(246, 241, 231, 0.85);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-list li:hover { background: rgba(192, 167, 134, 0.1); transform: translateX(-4px); }
.feature-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gradient-gold);
  position: relative;
}
.feature-check::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 5px;
  border-left: 1.6px solid var(--navy-950);
  border-bottom: 1.6px solid var(--navy-950);
  transform: translate(-50%, -60%) rotate(-45deg);
}

@media (min-width: 640px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

/* آکاردئون سوالات متداول */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 14px;
  background: rgba(17, 34, 62, 0.55);
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.faq-item[open] { background: rgba(17, 34, 62, 0.85); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--cream-50);
}
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(220, 202, 173, 0.4);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--stone-300);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-toggle::before { width: 9px; height: 1.4px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 1.4px; height: 9px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-toggle { background: var(--gradient-gold); border-color: transparent; }
.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after { background: var(--navy-950); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer { padding: 0 20px 20px; }
.faq-answer p { margin: 0; font-size: 0.88rem; line-height: 1.95; color: rgba(246, 241, 231, 0.72); }
.faq-answer strong { color: var(--stone-300); font-weight: 700; }

/* دکمه‌ی CTA پایانی */
.value-cta { margin-top: 64px; text-align: center; }
.value-cta p { margin: 0 0 20px; font-size: 1rem; color: var(--stone-300); font-weight: 500; }
.btn-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--gradient-gold);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.98rem;
  overflow: hidden;
  transition: background-position 0.6s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background-position: 100% 0%;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -12px rgba(192, 167, 134, 0.55);
}
.btn-cta svg { transform: scaleX(-1); }

@media (min-width: 760px) {
  .value-section { padding: 112px 32px 130px; }
}
#about,
#resume,
#learning,
#news,
#contact {
  scroll-margin-top: 90px;
}
@media (min-width: 860px) {
  #about,
  #resume,
  #learning,
  #news,
  #contact {
    scroll-margin-top: 100px;
  }
}

/* ===== NEWS / ACHIEVEMENTS ===== */
.news-section { position: relative; padding: 88px 20px 100px; background: var(--navy-950); overflow: hidden; }
.news-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 6% 85%, rgba(192, 167, 134, 0.1), transparent 34%);
}
.news-shell { position: relative; max-width: 1100px; margin: 0 auto; }

.news-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.news-intro .eyebrow { justify-content: center; }
.news-intro .section-title { margin-bottom: 18px; }
.news-lead { margin: 0; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 2; color: rgba(246, 241, 231, 0.72); }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.news-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(26, 47, 82, 0.75), rgba(10, 24, 48, 0.95));
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.news-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 167, 134, 0.5), transparent 45%, transparent 60%, rgba(220, 202, 173, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}
.news-card::after {
  content: "";
  position: absolute; bottom: -35%; left: -20%;
  width: 55%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 167, 134, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(192, 167, 134, 0.3);
}
.news-card:hover::before,
.news-card:hover::after { opacity: 1; }

.news-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: var(--navy-950);
}
.news-grid .news-card:nth-child(2) .news-icon { filter: hue-rotate(-12deg); }
.news-grid .news-card:nth-child(3) .news-icon { filter: hue-rotate(12deg); }
.news-grid .news-card:nth-child(4) .news-icon { filter: hue-rotate(24deg); }

.news-card h3 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 1.08rem; color: var(--cream-50); }
.news-card p { margin: 0; font-size: 0.88rem; line-height: 1.95; color: rgba(246, 241, 231, 0.68); }

.news-card-featured {
  background: linear-gradient(165deg, rgba(140, 115, 85, 0.28), rgba(10, 24, 48, 0.95) 65%);
}
.news-card-featured::before { opacity: 0.85; }
.news-card-featured .news-icon { box-shadow: 0 10px 26px -10px rgba(192, 167, 134, 0.55); }

@media (min-width: 640px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .news-card-featured { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 32px 34px; }
  .news-card-featured .news-icon { margin-bottom: 0; width: 64px; height: 64px; }
}

@media (min-width: 760px) {
  .news-section { padding: 112px 32px 124px; }
}

/* ===== CONTACT ===== */
.contact-section { position: relative; padding: 88px 20px 100px; background: var(--navy-900); overflow: hidden; }
.contact-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 90%, rgba(192, 167, 134, 0.12), transparent 34%);
}
.contact-shell { position: relative; max-width: 900px; margin: 0 auto; }

.contact-intro { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.contact-intro .eyebrow { justify-content: center; }
.contact-intro .section-title { margin-bottom: 16px; }
.contact-lead { margin: 0; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.95; color: rgba(246, 241, 231, 0.72); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(26, 47, 82, 0.75), rgba(10, 24, 48, 0.95));
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 167, 134, 0.5), transparent 45%, transparent 60%, rgba(220, 202, 173, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px -22px rgba(192, 167, 134, 0.32);
}
.contact-card:hover::before, .contact-card:focus-visible::before { opacity: 1; }

.contact-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: var(--navy-950);
}
.contact-grid .contact-card:nth-child(2) .contact-icon { filter: hue-rotate(-12deg); }
.contact-grid .contact-card:nth-child(3) .contact-icon { filter: hue-rotate(12deg); }
.contact-grid .contact-card:nth-child(4) .contact-icon { filter: hue-rotate(-6deg); }
.contact-card-text h3 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1rem; color: var(--cream-50); }
.contact-card-text p { margin: 0; font-size: 0.86rem; color: var(--stone-300); }

@media (min-width: 620px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; text-align: right; }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .contact-section { padding: 112px 32px 124px; }
}

/* ===== FOOTER ===== */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(192, 167, 134, 0.12); padding: 40px 20px 28px; }
.footer-shell { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-logo-text { direction: ltr; unicode-bidi: isolate; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--stone-300); }
.footer-brand p { margin: 0; font-size: 0.82rem; color: rgba(246, 241, 231, 0.55); }
.footer-copy { margin: 0; font-size: 0.78rem; color: rgba(246, 241, 231, 0.45); }

@media (min-width: 760px) {
  .site-footer { padding: 48px 32px 32px; }
  .footer-shell { flex-direction: row; justify-content: space-between; text-align: start; }
}