:root {
  --tabika-orange: #f97316;
  --tabika-orange-dark: #ea580c;
  --tabika-ink: #111827;
}

html { scroll-behavior: smooth; }
body { font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; }

::selection { background: #fed7aa; color: #9a3412; }

.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 9999px;
  background: var(--tabika-orange);
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--tabika-orange); }

.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .65);
}

.orange-grid { background-image: none; }

.hero-glow { background: #fff8f3; }

.card-hover {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -24px rgba(234, 88, 12, .35);
  border-color: #fdba74;
}

.float-slow { animation: float 5s ease-in-out infinite; }
.float-delay { animation: float 6s ease-in-out 1s infinite; }
.pulse-soft { animation: pulseSoft 3s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.2); }
  50% { box-shadow: 0 0 0 16px rgba(249,115,22,0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.text-gradient { color: #ea580c; }

.logo-mark {
  box-shadow: inset 0 -10px 20px rgba(194,65,12,.22), 0 10px 28px rgba(249,115,22,.25);
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 20px;
  width: 2px;
  background: #fdba74;
}

input:focus, textarea:focus, select:focus { outline: none; }

@media (max-width: 767px) {
  .nav-link::after { bottom: -3px; }
}


/* Refined typography and visual system */
html {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  background: #fff;
}
h1, h2 {
  font-weight: 800 !important;
  letter-spacing: -.035em;
}
h3, h4, h5, h6 { font-weight: 700 !important; }
p, li, input, textarea, select { font-weight: 400; }
strong, b { font-weight: 700; }

#siteHeader {
  border-bottom-color: rgba(255, 237, 213, .9);
  box-shadow: 0 1px 0 rgba(249, 115, 22, .04), 0 14px 42px -32px rgba(15, 23, 42, .35);
}
#siteHeader::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: #f97316;
}

.logo-mark {
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 160%;
  top: -30%;
  right: -80%;
  transform: rotate(20deg);
  background: rgba(255,255,255,.28);
  transition: right .45s ease;
}
a:hover .logo-mark::after { right: 120%; }

.card-hover {
  position: relative;
  isolation: isolate;
  background: #fff;
  box-shadow: 0 12px 40px -30px rgba(15, 23, 42, .32);
}
.card-hover::before {
  content: '';
  position: absolute;
  inset: 0 1.5rem auto;
  height: 2px;
  border-radius: 999px;
  background: #f97316;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.card-hover:hover::before { opacity: 1; }

/* More tactile primary actions without changing page markup */
a[class*="bg-orange-500"],
button[class*="bg-orange-500"] {
  background-image: none;
  background-color: #f97316;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 32px -18px rgba(234,88,12,.72);
}
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover {
  background-image: none;
  background-color: #ea580c;
  box-shadow: 0 18px 38px -18px rgba(234,88,12,.85);
}

input, textarea, select {
  font-family: inherit;
  background-color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.025);
}
input:hover, textarea:hover, select:hover { border-color: #fdba74; }

blockquote {
  border: 1px solid rgba(255, 237, 213, .85);
  box-shadow: 0 18px 48px -34px rgba(124,45,18,.4) !important;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.contact-phone:hover { color: #fb923c; }

body > footer {
  position: relative;
  overflow: hidden;
  background: #020617 !important;
}
body > footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #f97316;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, .62fr) minmax(120px, .62fr) minmax(190px, .9fr) minmax(150px, .68fr);
  gap: 2.5rem;
  align-items: start;
}
.enamad-column h3 { margin-bottom: 1.25rem; }
.enamad-slot {
  min-height: 154px;
  border-radius: 1.25rem;
  border: 1px dashed rgba(251,146,60,.45);
  background: rgba(255,255,255,.055);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.enamad-slot:hover {
  transform: translateY(-3px);
  border-color: rgba(251,146,60,.85);
  background: rgba(249,115,22,.1);
}
.enamad-slot strong { font-size: .875rem; }
.enamad-slot span { margin-top: .25rem; color: #94a3b8; font-size: .68rem; }
.enamad-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: .75rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: #fb923c;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(251,146,60,.2);
}
.enamad-icon svg { width: 2rem; height: 2rem; }

.floating-contact {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border-radius: 1rem;
  color: #fff;
  background: #f97316;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 42px -18px rgba(194,65,12,.8);
  font-size: .78rem;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -18px rgba(194,65,12,.9);
}
.floating-contact svg { width: 1.25rem; height: 1.25rem; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff7ed; }
::-webkit-scrollbar-thumb { background: #fdba74; border: 2px solid #fff7ed; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.3fr .7fr .7fr 1fr; }
  .enamad-column { grid-column: span 1; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1, h2 { letter-spacing: -.02em; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .enamad-slot { max-width: 180px; }
  .floating-contact { width: 3.25rem; padding: 0; justify-content: center; border-radius: 50%; }
  .floating-contact span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Tabika brand identity */
.brand-link { min-width: max-content; }
.brand-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 1.05rem;
  filter: drop-shadow(0 10px 14px rgba(194,65,12,.16));
  transition: transform .3s ease, filter .3s ease;
}
.brand-link:hover .brand-logo {
  transform: translateY(-2px) rotate(-2deg) scale(1.035);
  filter: drop-shadow(0 14px 18px rgba(194,65,12,.24));
}
.footer-brand-logo { border-radius: 1.2rem; }

/* Team page */
.team-heading-row { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) {
  .team-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.team-members-section {
  background: #fffaf7;
}
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.team-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 18px 55px -38px rgba(15,23,42,.42);
}
.team-card-featured {
  border-color: rgba(251,146,60,.62);
  box-shadow: 0 22px 65px -38px rgba(234,88,12,.56);
}
.team-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12.5rem;
  overflow: hidden;
  background: #fff7ed;
}
.team-card-featured .team-card-visual {
  background: #ffedd5;
}
.team-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 2.15rem;
  color: #fff;
  background: #f97316;
  border: 5px solid rgba(255,255,255,.82);
  box-shadow: 0 24px 45px -22px rgba(194,65,12,.75);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.team-card-featured .team-avatar {
  transform: scale(1.06);
  box-shadow: 0 28px 52px -22px rgba(194,65,12,.9);
}
.team-index {
  position: absolute;
  left: 1rem;
  top: .9rem;
  z-index: 2;
  color: rgba(194,65,12,.32);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.team-card-body { padding: 1.5rem; }
.team-card-body h2 {
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.65;
}
.team-role {
  min-height: 2.9rem;
  margin-top: .35rem;
  color: #ea580c;
  font-size: .78rem;
  line-height: 1.8;
  font-weight: 700;
}
.team-description {
  margin-top: .9rem;
  color: #64748b;
  font-size: .84rem;
  line-height: 1.95;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.15rem;
}
.team-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: .66rem;
  font-weight: 700;
  direction: ltr;
}
.team-count {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  padding: .75rem 1rem;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 40px -32px rgba(194,65,12,.55);
}
.team-count strong { color: #f97316; font-size: 1.8rem; line-height: 1; }
.team-count span { color: #475569; font-size: .78rem; font-weight: 700; }

@media (max-width: 980px) {
  .team-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .team-members-grid { grid-template-columns: 1fr; }
  .team-card-visual { min-height: 11.5rem; }
  .team-role { min-height: auto; }

  /* Keep quick access and services side by side on mobile. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.15rem;
  }
  .footer-brand,
  .footer-contact,
  .enamad-column {
    grid-column: 1 / -1;
  }
  .footer-quick-links,
  .footer-services {
    grid-column: auto;
  }
  .footer-quick-links h3,
  .footer-services h3 { font-size: .92rem; }
  .footer-quick-links a,
  .footer-services a { font-size: .76rem; line-height: 1.8; }
  .footer-contact p { max-width: 100%; }
}

/* Tabika restrained visual refresh */
:root {
  --tabika-orange: #f97316;
  --tabika-orange-dark: #ea580c;
  --tabika-soft: #fff7ed;
  --tabika-border: #e8edf3;
  --tabika-ink: #0f172a;
}

body {
  background: #ffffff;
  color: #334155;
}

.orange-grid { background-image: none; }
.hero-glow { background: #fff8f3; }
.text-gradient {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ea580c;
}
.timeline-line::before { background: #fdba74; }

#siteHeader {
  background: rgba(255,255,255,.94);
  border-bottom-color: #ffedd5;
  box-shadow: 0 10px 35px -30px rgba(15,23,42,.45);
}
#siteHeader::after {
  right: 50%;
  left: auto;
  width: 5rem;
  transform: translateX(50%);
  background: #f97316;
  opacity: .35;
}

.card-hover {
  background: #fff;
  border-color: var(--tabika-border);
  box-shadow: 0 18px 45px -36px rgba(15,23,42,.6);
}
.card-hover::before {
  right: 1.5rem;
  left: auto;
  width: 2.75rem;
  background: #f97316;
  opacity: .8;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 25px 55px -34px rgba(15,23,42,.48);
}

/* Solid buttons: orange remains an accent, not a gradient surface. */
a[class*="bg-orange-500"],
button[class*="bg-orange-500"] {
  background: #f97316;
  background-image: none;
  border-color: #f97316;
  box-shadow: 0 14px 28px -20px rgba(234,88,12,.9);
}
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover {
  background: #ea580c;
  background-image: none;
  box-shadow: 0 18px 32px -20px rgba(194,65,12,.85);
}

.bg-slate-950 h2,
.bg-slate-950 h3,
.home-process h2,
.home-process h3 { color: #fff !important; }
.bg-slate-950 .text-slate-500,
.home-process .text-slate-500 { color: #94a3b8 !important; }

/* Home hero */
.home-hero {
  position: relative;
  background: #fffaf6;
  border-bottom: 1px solid #ffedd5;
}
.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: 2rem;
  pointer-events: none;
}
.home-hero::before {
  width: 9rem;
  height: 9rem;
  top: 7rem;
  left: 4%;
  border: 1px solid #fed7aa;
  background: rgba(255,255,255,.7);
  transform: rotate(12deg);
}
.home-hero::after {
  width: 4rem;
  height: 4rem;
  right: 5%;
  bottom: 5rem;
  background: #ffedd5;
  transform: rotate(-14deg);
}
.home-hero > div { min-height: 690px; }
.home-hero h1 { max-width: 12ch; }
.home-hero .rounded-\[2\.2rem\] {
  border-color: #1e293b;
  box-shadow: 0 30px 70px -42px rgba(15,23,42,.72);
}

/* Elevated stats strip */
.home-stats {
  position: relative;
  z-index: 5;
  padding: 0 1rem 2.5rem;
  background: transparent;
}
.home-stats > div {
  margin: -2.5rem auto 0;
  padding: 1.6rem 1rem;
  border: 1px solid #e8edf3;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 24px 65px -44px rgba(15,23,42,.72);
}
.home-stats > div > div { position: relative; }
.home-stats > div > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 0;
  width: 1px;
  height: 70%;
  background: #e8edf3;
}

.home-services { padding-top: 5rem; }
.home-process { background: #0f172a !important; }
.home-portfolio { background: #fff; }
.home-testimonials blockquote {
  border: 1px solid #e8edf3;
  box-shadow: 0 20px 50px -40px rgba(15,23,42,.62) !important;
}
.home-cta > div > div {
  background: #0f172a !important;
  box-shadow: 0 28px 70px -44px rgba(15,23,42,.9);
}
.home-cta > div > div > div[class*="absolute"] { display: none; }

/* Pricing preview on home */
.home-pricing {
  background: #fffaf6;
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}
.pricing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .85rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.pricing-details-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  color: #ea580c;
  font-size: .86rem;
  font-weight: 800;
  transition: gap .2s ease, color .2s ease;
}
.pricing-details-link:hover { gap: .85rem; color: #c2410c; }
.pricing-details-link svg { width: 1.15rem; height: 1.15rem; }
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 20px 55px -42px rgba(15,23,42,.72);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: #fdba74;
  box-shadow: 0 28px 60px -40px rgba(15,23,42,.62);
}
.pricing-card-featured {
  border: 2px solid #f97316;
  box-shadow: 0 26px 62px -40px rgba(194,65,12,.55);
}
.pricing-badge {
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(-50%);
  padding: .4rem .8rem;
  border-radius: 999px;
  color: #fff;
  background: #f97316;
  font-size: .68rem;
  font-weight: 800;
}
.pricing-card-top {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.pricing-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: .76rem;
  font-weight: 800;
}
.pricing-card h3 {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.5;
}
.pricing-card-top p { margin-top: .15rem; color: #94a3b8; font-size: .76rem; }
.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 1.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}
.pricing-price strong { color: #0f172a; font-size: 1.45rem; font-weight: 800; }
.pricing-price span { color: #94a3b8; font-size: .72rem; }
.pricing-card ul { display: grid; gap: .85rem; margin-bottom: 1.75rem; }
.pricing-feature {
  position: relative;
  padding-right: 1.65rem;
  color: #475569;
  font-size: .82rem;
  line-height: 1.8;
}
.pricing-feature::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: .05rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  color: #ea580c;
  background: #fff7ed;
  font-size: .68rem;
  font-weight: 900;
}
.pricing-button {
  display: block;
  margin-top: auto;
  padding: .85rem 1rem;
  border-radius: .9rem;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.pricing-button:hover { transform: translateY(-2px); }
.pricing-button-dark { color: #fff; background: #0f172a; }
.pricing-button-dark:hover { background: #1e293b; }
.pricing-button-orange { color: #fff; background: #f97316; }
.pricing-button-orange:hover { background: #ea580c; }
.pricing-note {
  margin-top: 1.5rem;
  color: #94a3b8;
  text-align: center;
  font-size: .72rem;
}

/* Restrained shared surfaces */
body > footer { background: #020617 !important; }
body > footer::before { background: #f97316; }
.enamad-slot { background: rgba(255,255,255,.055); }
.enamad-slot:hover { background: rgba(249,115,22,.1); }
.floating-contact { background: #f97316; }
.floating-contact:hover { background: #ea580c; }
.team-members-section { background: #fffaf7; }
.team-card-visual { background: #fff7ed; }
.team-card-featured .team-card-visual { background: #ffedd5; }
.team-avatar { background: #f97316; }

@media (max-width: 900px) {
  .pricing-preview-grid { grid-template-columns: 1fr; max-width: 42rem; margin-right: auto; margin-left: auto; }
  .pricing-heading { align-items: flex-start; flex-direction: column; }
  .pricing-card-featured { order: -1; }
}

@media (max-width: 640px) {
  .home-hero::before, .home-hero::after { display: none; }
  .home-hero > div { min-height: auto; padding-top: 5rem; padding-bottom: 6rem; }
  .home-stats { padding-right: .75rem; padding-left: .75rem; }
  .home-stats > div { margin-top: -1.75rem; border-radius: 1.35rem; }
  .home-stats > div > div:nth-child(2)::after { display: none; }
  .home-stats > div > div:not(:last-child)::after { height: 55%; top: 22%; }
  .pricing-card { padding: 1.35rem; border-radius: 1.4rem; }
  .pricing-price strong { font-size: 1.25rem; }
}
