/* ============================================================
   RAJ — design tokens & global system
   Palette: Deep Ocean / Warm White / Soft Gray / Carbon /
            Electric Blue / Muted Gold (rare)
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ocean: #0b1928;
  --warm: #f7f5f0;
  --soft: #e6e7e3;
  --carbon: #161a1d;
  --blue: #2563eb;
  --blue-deep: #1d4fd7;
  --blue-on-dark: #93c5fd;
  --gold: #c8b28a;
  --muted: #55606c;
  --muted-on-dark: rgba(247, 245, 240, 0.72);
  --hairline: rgba(22, 26, 29, 0.14);
  --hairline-strong: rgba(22, 26, 29, 0.28);
  --hairline-dark: rgba(247, 245, 240, 0.16);
  --danger: #b3261e;
  --surface: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 25, 40, 0.05),
    0 10px 28px rgba(11, 25, 40, 0.07);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --header-h: 68px;
}

/* ---------- responsive scale (documented) ----------
   1200  pkg preview opens to 4 columns only above this
   1100  header nav collapses to the RAJ menu panel
    960  hero / pillars / cases / contact stack; process 3→2
    860  two-column editorial splits stack (viewpoint, about, isnot, svc lists, footer)
    760  flow band vertical; problems/team/form/case-dl single column
    620  package cards single column; fine print rebalances
   No other thresholds — content decides, not device classes. */

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

/* No body-level overflow clipping: layouts must fit by construction.
   (Removed during the responsive hardening pass; scrollWidth is honest.) */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 2;
  color: var(--carbon);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.5;
  font-weight: 800;
  margin: 0 0 0.6em;
  color: var(--ocean);
}
h1 {
  font-size: clamp(1.8rem, 1.1rem + 3.2vw, 2.9rem);
  line-height: 1.55;
}
h2 {
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-underline-offset: 5px;
}
a:hover {
  color: var(--blue-deep);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.site-footer :focus-visible,
.contact-side :focus-visible,
.frame-panel :focus-visible {
  outline-color: var(--blue-on-dark);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

/* anchor targets never hide under the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* grid/flex children must be allowed to shrink */
.hero-grid > *,
.contact-grid > *,
.about-split > *,
.viewpoint > *,
.pillars-grid > *,
.pkg-grid > *,
.cases-grid > *,
.process-grid > *,
.team-grid > *,
.isnot-grid > *,
.form-grid > *,
.problems-grid > *,
.guide-row > * {
  min-width: 0;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 32px);
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ocean);
  color: var(--warm);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--warm);
  border-bottom: 1px solid var(--hairline);
}

.header-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(14px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ocean);
}
.brand-mark {
  border-radius: 10px;
}
.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
@media (min-width: 1101px) {
  /* desktop only: centering must not leak into the absolute mobile panel,
     where justify-self would shrink the abspos box to max-content */
  .site-nav {
    justify-self: center;
  }
}
.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 2vw, 24px);
  list-style: none;
}
.site-nav ul a {
  text-decoration: none;
  color: var(--carbon);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover {
  color: var(--blue);
}
.site-nav ul a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
/* CTA visibility is controlled after .btn in the cascade (see buttons section). */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.menu-toggle-box {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.menu-toggle-box span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--carbon);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 200ms ease, top 240ms ease;
}
.menu-toggle-box span:nth-child(1) {
  top: 0;
}
.menu-toggle-box span:nth-child(2) {
  top: 7px;
}
.menu-toggle-box span:nth-child(3) {
  top: 14px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .header-in {
    display: flex;
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta--header {
    display: none;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--warm);
    border-bottom: 1px solid var(--hairline);
    padding: 14px clamp(18px, 4.5vw, 32px) 26px;
    box-shadow: var(--shadow-1);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav ul a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.05rem;
  }
  .site-nav ul a[aria-current="page"] {
    border-bottom-color: var(--hairline);
    color: var(--blue);
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72em 1.7em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 160ms ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--carbon);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}

.btn--light-ghost {
  background: transparent;
  color: var(--warm);
  border-color: rgba(247, 245, 240, 0.45);
}
.btn--light-ghost:hover {
  border-color: var(--warm);
  color: var(--warm);
}

.btn--sm {
  padding: 0.45em 1.2em;
  font-size: 0.9rem;
}

/* header CTAs: single row on desktop, panel-only on compact widths.
   Declared after .btn so the cascade resolves correctly. */
.btn.nav-cta--panel {
  display: none;
}
@media (max-width: 1100px) {
  .btn.nav-cta--panel {
    display: inline-flex;
    margin: 16px 0 0;
  }
  .btn.nav-cta--header {
    display: none;
  }
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- sections & type helpers ---------- */

.section {
  padding-block: clamp(24px, 9vw, 15px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.section--soft {
  background: var(--soft);
}
.section--dark {
  background: var(--ocean);
  color: var(--warm);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--warm);
}

.page-head {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.page-head h1 {
  max-width: 22em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}
.eyebrow--on-dark {
  color: var(--blue-on-dark);
}
.eyebrow--on-dark::before {
  background: var(--blue-on-dark);
}

.lead {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 2.1;
}
.lead--on-dark {
  color: var(--muted-on-dark);
}

.section-head {
  margin-bottom: clamp(28px, 4.5vw, 52px);
}
.section-foot {
  margin-top: clamp(20px, 3vw, 32px);
}

.text-link {
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--ocean);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
}
.section--dark .badge,
.case-block .badge {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(48px, 7vw, 15px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 0.5em;
}
.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* RAJ Frame panel */
.frame-panel {
  position: relative;
  background: var(--ocean);
  color: var(--warm);
  border-radius: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-1);
  min-height: 320px;
}
.frame-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  pointer-events: none;
}
.frame-panel::after {
  content: "";
  position: absolute;
  top: 10px;
  inset-inline-start: 26px;
  width: 44px;
  height: 3px;
  background: var(--blue);
}
.frame-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-on-dark);
  margin-bottom: 20px;
}

/* flow (framework) */
.flow {
  list-style: none;
}

.flow--panel {
  position: relative;
}
.flow--panel .flow-node {
  position: relative;
  padding-inline-start: 30px;
  padding-bottom: 22px;
}
.flow--panel .flow-node:last-child {
  padding-bottom: 0;
}
.flow--panel::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  inset-inline-start: 7px;
  width: 2px;
  background: var(--hairline-dark);
}
.flow-dot {
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  background: var(--ocean);
}
.flow-node--end .flow-dot {
  background: var(--blue);
  border-color: var(--blue);
}
.flow-term {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 2px;
  color: var(--warm);
}
.flow-desc {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  line-height: 1.9;
}

.flow--band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  margin-top: 12px;
}
.flow--band::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline: 11%;
  height: 2px;
  background: var(--hairline-dark);
}
.flow--band .flow-node {
  position: relative;
  padding-top: 32px;
  text-align: center;
}
.flow--band .flow-dot {
  inset-inline: 0;
  margin-inline: auto;
  top: 1px;
}
.flow--band .flow-term {
  color: var(--warm);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .flow--band {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow--band::before {
    inset-inline-start: 7px;
    inset-inline-end: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
  }
  .flow--band .flow-node {
    text-align: start;
    padding-top: 0;
    padding-inline-start: 30px;
    padding-bottom: 22px;
  }
  .flow--band .flow-node:last-child {
    padding-bottom: 0;
  }
  .flow--band .flow-dot {
    inset-inline-start: 0;
    inset-inline-end: auto;
    margin-inline: 0;
    transform: none;
    top: 7px;
  }
}

/* ---------- problems / quote ---------- */

.problems-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.problem-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 20px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
}

.tick {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.75em;
  background: var(--blue);
  transform: rotate(45deg);
}
.cross {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 0.7em;
  position: relative;
}
.cross::before,
.cross::after {
  content: "";
  position: absolute;
  inset: 5px 0;
  background: #8b95a1;
  border-radius: 2px;
}
.cross::before {
  transform: rotate(45deg);
}
.cross::after {
  transform: rotate(-45deg);
}

.quote-block {
  margin: clamp(24px, 4vw, 40px) 0 0;
  border-inline-start: 3px solid var(--blue);
  background: var(--surface);
  /* logical radii: square on the bordered (start) side, rounded on the end side */
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  padding: 18px 26px;
  max-width: 70ch;
}
.quote-block p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ocean);
}

/* ---------- viewpoint ---------- */

.viewpoint {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.viewpoint .cta-row {
  grid-column: 1 / -1;
}
.viewpoint ul {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .viewpoint {
    grid-template-columns: 1fr;
  }
}

/* ---------- pillars ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: box-shadow 280ms ease, transform 280ms ease;
}
.pillar-card:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}
.pillar-name {
  font-size: 1.45rem;
  margin-bottom: 4px;
  position: relative;
  padding-bottom: 12px;
}
.pillar-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  background: var(--blue);
}
.pillar-tag {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.pillar-list {
  list-style: none;
  display: grid;
  gap: 9px;
}
.pillar-list li {
  position: relative;
  padding-inline-start: 20px;
  line-height: 1.9;
}
.pillar-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
  opacity: 0.85;
}
.pillar-note {
  margin-top: 18px;
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 960px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- packages ---------- */

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 1200px) {
  .pkg-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow 280ms ease, transform 280ms ease;
}
.pkg-card:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}
.pkg-name {
  font-size: 1.3rem;
  margin: 0;
}
.pkg-pos {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  flex-grow: 1;
}
.pkg-price {
  font-weight: 800;
  color: var(--ocean);
  font-size: 1.05rem;
  margin: 6px 0 0;
}
.pkg-price--big {
  font-size: 1.35rem;
}
.pkg-duration {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 0;
}
.pkg-link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration-thickness: 1px;
  margin-top: 10px;
}

@media (max-width: 620px) {
  .pkg-grid {
    grid-template-columns: 1fr;
  }
}

.guide-box {
  margin-top: clamp(22px, 3.5vw, 36px);
  background: var(--ocean);
  color: var(--warm);
  border-radius: var(--radius);
  padding: 22px 28px;
}
.guide-box p {
  color: var(--muted-on-dark);
  margin: 0;
}
.guide-title {
  color: var(--warm) !important;
  font-weight: 800;
  margin-bottom: 8px !important;
}
.guide-box--full {
  margin-top: 0;
}
.guide-list {
  list-style: none;
}
.guide-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline-dark);
}
.guide-row:first-child {
  border-top: 0;
}
.guide-sit {
  flex: 1;
  color: var(--muted-on-dark);
}
.guide-arrow {
  color: var(--blue-on-dark);
  font-weight: 700;
}
.guide-level {
  font-weight: 800;
  color: var(--blue-on-dark);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .guide-row {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .guide-sit {
    flex-basis: 100%;
  }
}

/* packages page blocks */
.pkg-stack {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}
.pkg-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.pkg-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pkg-index {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 4px;
}
.pkg-block-head h2 {
  margin: 0 0 6px;
}
.pkg-block-head .pkg-pos {
  flex-basis: 100%;
  max-width: 52ch;
}
.pkg-block-price {
  text-align: end;
}
.svc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin-bottom: 20px;
}
.svc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.9;
}
.svc-list .tick {
  margin-top: 0.72em;
}
@media (max-width: 860px) {
  .svc-list,
  .svc-list--cols {
    grid-template-columns: 1fr;
  }
}
.pkg-fit {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--carbon);
}
.pkg-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 18px;
}
@media (max-width: 620px) {
  .pkg-block-price {
    text-align: start;
  }
}

.addons-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.addons-grid li {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.92rem;
}

/* ---------- cases / work ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.case-card h3 {
  margin: 2px 0 0;
}
.case-card p {
  color: var(--muted);
  font-size: 0.93rem;
  flex-grow: 1;
}
@media (max-width: 960px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-stack {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}
.case-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.case-block-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.case-block-head h2 {
  margin: 0;
}
.case-dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 28px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.case-dl dt {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 3px;
}
.case-dl dd {
  margin: 0;
}
@media (max-width: 760px) {
  .case-dl > div {
    grid-template-columns: 1fr;
  }
}
.work-foot {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- steps / process ---------- */

.steps-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
}
.step-num {
  color: var(--blue);
  font-weight: 800;
}

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.process-step h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.step-num--big {
  display: block;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.principle-list {
  list-style: none;
}
.principle-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1.9;
}

/* ---------- services page ---------- */

.pillar-stack {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}
.pillar-block {
  border-top: 1px solid var(--hairline-strong);
  padding-top: clamp(24px, 4vw, 36px);
}
.pillar-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}
.pillar-index {
  font-size: 2.2rem;
  font-weight: 800;
  color: #c6cdd5;
  line-height: 1.2;
}
.pillar-head h2 {
  margin: 0;
}
.pillar-block .lead {
  margin-bottom: 20px;
}

/* ---------- about ---------- */

.about-story {
  max-width: 78ch;
}
.about-story p {
  font-size: 1.05rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-panel {
  background: var(--ocean);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 44px);
  box-shadow: var(--shadow-1);
}
.about-panel img {
  border-radius: 12px;
  width: 100%;
}
@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.isnot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.is-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.is-card--no h3 {
  color: var(--muted);
}
.is-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.is-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.9;
}
@media (max-width: 860px) {
  .isnot-grid {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.team-card {
  background: var(--ocean);
  color: var(--warm);
  border-radius: var(--radius);
  padding: 28px;
}
.team-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 2px;
}
.team-role {
  color: var(--blue-on-dark);
  font-weight: 700;
  margin: 0 0 10px;
}
.team-desc {
  color: var(--muted-on-dark);
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-side {
    position: static;
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 36px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field--wide {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.req {
  color: var(--danger);
}
.opt {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--carbon);
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: inset 0 1px 3px rgba(11, 25, 40, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: inset 0 1px 3px rgba(11, 25, 40, 0.05),
    0 0 0 3px rgba(37, 99, 235, 0.16);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.help {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.error {
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 700;
  margin: 6px 0 0;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--consent {
  margin-top: 20px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 500 !important;
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.form-status {
  font-weight: 700;
  margin: 0;
}
.form-status.ok {
  color: #1b7a3d;
}
.form-status.bad {
  color: var(--danger);
}

.contact-side {
  background: var(--ocean);
  color: var(--warm);
  border-radius: 18px;
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.contact-side h2 {
  font-size: 1.2rem;
  color: var(--warm);
}
.next-steps {
  list-style: persian;
  padding-inline-start: 22px;
  margin: 14px 0 22px;
}
.next-steps li {
  margin-bottom: 10px;
  color: var(--muted-on-dark);
  line-height: 1.9;
}
.contact-mail {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}
.contact-mail a {
  color: var(--blue-on-dark);
  font-weight: 700;
}
.contact-note {
  font-size: 0.83rem;
  color: var(--muted-on-dark);
  margin: 14px 0 0;
  border-top: 1px solid var(--hairline-dark);
  padding-top: 14px;
}

/* ---------- privacy ---------- */

.privacy-body {
  max-width: 80ch;
}
.privacy-body section {
  margin-bottom: 30px;
}
.privacy-body h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* ---------- final CTA ---------- */

.cta-final .container {
  max-width: 880px;
}
.cta-final h2 {
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.3rem);
  max-width: 20em;
}
.cta-final .lead {
  margin-bottom: 26px;
}

.notfound {
  min-height: 52vh;
  display: flex;
  align-items: center;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ocean);
  color: var(--warm);
  padding-top: clamp(44px, 6vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: 36px;
}
.footer-brand img {
  border-radius: 10px;
  margin-bottom: 14px;
}
.footer-line {
  font-weight: 800;
  margin-bottom: 6px;
}
.footer-sub {
  color: var(--muted-on-dark);
  font-size: 0.9rem;
}
.footer-title {
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--blue-on-dark);
  font-size: 0.95rem;
}
.footer-nav ul,
.footer-contact p {
  margin: 0;
}
.footer-nav ul {
  list-style: none;
}
.footer-nav li {
  margin-bottom: 4px;
}
.footer-contact p {
  margin-bottom: 4px;
}
.footer-nav a,
.footer-contact a {
  display: inline-block;
  padding-block: 6px;
}
.site-footer a {
  color: rgba(247, 245, 240, 0.82);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--warm);
}
.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 18px;
  padding-bottom: 22px;
}
.footer-bottom p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- reveal & motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================
   RAJ — Custom Button
   ================================ */

.raj-btn {
  --raj-blue: #2563eb;
  --raj-blue-dark: #1d4ed8;
  --raj-blue-soft: #eff6ff;
  --raj-ocean: #0b1928;
  --raj-white: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 0 20px;

  border: 1px solid var(--raj-blue);
  border-radius: 12px;

  background: var(--raj-blue);
  color: var(--raj-white);

  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  box-shadow: 0 1px 2px rgba(11, 25, 40, 0.06),
    0 4px 12px rgba(37, 99, 235, 0.12);

  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

/* Hover */

.raj-btn:hover {
  background: var(--raj-blue-dark);
  border-color: var(--raj-blue-dark);

  box-shadow: 0 2px 4px rgba(11, 25, 40, 0.08),
    0 7px 18px rgba(37, 99, 235, 0.16);

  transform: translateY(-1px);
}

/* Active */

.raj-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(11, 25, 40, 0.06);
}

/* Focus */

.raj-btn:focus-visible {
  outline: none;

  box-shadow: 0 0 0 3px var(--raj-blue-soft), 0 0 0 4px var(--raj-blue);
}

/* Disabled */

.raj-btn:disabled,
.raj-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
/* ============================================================
   RAJ — Live Demo Portfolio
   ============================================================ */

.work-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- card ---------- */

.work-demo-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  background: var(--surface);

  border: 1px solid var(--hairline);
  border-radius: var(--radius);

  overflow: hidden;

  transition: transform 220ms ease, box-shadow 220ms ease,
    border-color 220ms ease;
}

.work-demo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  border-color: var(--hairline-strong);
}

/* ---------- image ---------- */

/*
   تصویر همیشه یک قاب ثابت دارد.
   نسبت عکس اصلی هرچه باشد، اندازه کارت تغییر نمی‌کند.
*/

.work-demo-media {
  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--soft);
}

.work-demo-media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 300ms ease;
}

.work-demo-card:hover .work-demo-media img {
  transform: scale(1.025);
}

/* ---------- content ---------- */

.work-demo-content {
  display: flex;
  flex-direction: column;

  flex: 1;

  min-width: 0;

  padding: 18px 18px 17px;
}

.work-demo-title {
  margin: 0 0 5px;

  color: var(--ocean);

  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 800;
}

/*
   توضیح عمداً کوتاه و یک‌خطی است
   تا ارتفاع کارت‌ها یکپارچه بماند.
*/

.work-demo-description {
  margin: 0;

  color: var(--muted);

  font-size: 0.84rem;
  line-height: 1.9;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- demo link ---------- */

.work-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: max-content;

  margin-top: 15px;

  color: var(--blue);

  font-size: 0.86rem;
  font-weight: 700;

  text-decoration: none;

  transition: color 180ms ease, gap 180ms ease;
}

.work-demo-link:hover {
  color: var(--blue-deep);
  gap: 10px;
}

/* ---------- focus ---------- */

.work-demo-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet / small desktop
   3 cards per row */

@media (max-width: 1100px) {
  .work-demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet
   2 cards per row */

@media (max-width: 760px) {
  .work-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .work-demo-content {
    padding: 16px;
  }
}

/* Mobile
   1 card per row */

@media (max-width: 620px) {
  .work-demo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-demo-media {
    aspect-ratio: 16 / 9;
  }

  .work-demo-title {
    font-size: 1.05rem;
  }

  .work-demo-description {
    font-size: 0.86rem;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .work-demo-card,
  .work-demo-media img,
  .work-demo-link {
    transition: none;
  }

  .work-demo-card:hover {
    transform: none;
  }

  .work-demo-card:hover .work-demo-media img {
    transform: none;
  }
}

