/*
Theme Name: Marketing Perspective
Theme URI: https://mp-brandlab.com
Author: Marketing Perspective
Description: Refined editorial RTL brand and marketing consultancy theme.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: marketing-perspective
WPVibe: yes
Update URI: false
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --mp-paper: #f4f2ed;
  --mp-white: #fff;
  --mp-ink: #0f1720;
  --mp-muted: #667078;
  --mp-line: rgba(15, 23, 32, .15);
  --mp-blue: #2563eb;
  --mp-cyan: #22b7f0;
  --mp-green: #10b981;
  --mp-gradient: linear-gradient(115deg, var(--mp-blue), var(--mp-cyan) 52%, var(--mp-green));
  --mp-radius: 2px;
  --mp-shell: min(1240px, calc(100vw - 64px));
  --mp-shadow: 0 24px 70px rgba(15, 23, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mp-paper);
  color: var(--mp-ink);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 237, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 32, .08);
}
.mp-header__inner {
  width: var(--mp-shell);
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
  direction: ltr;
}
.mp-brand { display: flex; align-items: center; gap: 12px; direction: ltr; }
.mp-mark {
  width: 54px;
  height: 34px;
  flex: 0 0 auto;
  background: url('./assets/mp-logo.svg') center/contain no-repeat;
}
.mp-wordmark { line-height: .95; letter-spacing: .1em; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mp-wordmark span { display: block; }
.mp-nav { display: flex; justify-content: center; align-items: center; gap: 30px; direction: rtl; font-size: 13px; }
.mp-nav a { position: relative; padding: 30px 0 26px; }
.mp-nav a::after { content: ''; position: absolute; right: 0; bottom: 20px; width: 0; height: 1px; background: var(--mp-ink); transition: width .25s ease; }
.mp-nav a:hover::after { width: 100%; }
.mp-contact-btn, .mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.mp-contact-btn { direction: rtl; }
.mp-contact-btn:hover, .mp-btn:hover { transform: translateY(-2px); background: var(--mp-ink); color: white; }
.mp-mobile { display: none; }

/* Shared */
.mp-home { overflow: clip; }
.mp-section { padding: 112px 0; }
.mp-shell { width: var(--mp-shell); margin: 0 auto; }
.mp-kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #606970; }
.mp-kicker::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.mp-section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.mp-section-head h2 { margin: 0; max-width: 700px; font-size: clamp(36px, 5vw, 70px); line-height: 1.08; letter-spacing: -.04em; }
.mp-section-head p { max-width: 460px; margin: 0; color: var(--mp-muted); line-height: 2; }
.mp-arrow { font-family: sans-serif; transition: transform .25s ease; }
a:hover .mp-arrow { transform: translateX(-4px); }

/* Hero */
.mp-hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 44% 56%;
  direction: ltr;
  background: #f8f7f3;
}
.mp-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; direction: rtl; padding: 84px max(48px, calc((100vw - 1240px)/2)) 72px 48px; }
.mp-hero__eyebrow { margin: 0 0 28px; font-size: 13px; color: var(--mp-muted); }
.mp-hero h1 { margin: 0; max-width: 640px; font-size: clamp(50px, 6.1vw, 96px); line-height: .98; letter-spacing: -.065em; font-weight: 800; }
.mp-hero h1 em { display: block; font-style: normal; background: var(--mp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-hero__lead { max-width: 530px; margin: 32px 0 36px; font-size: clamp(15px, 1.4vw, 19px); line-height: 2.05; color: #4d5860; }
.mp-hero__media { position: relative; min-height: 720px; overflow: hidden; }
.mp-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,32,.05), rgba(15,23,32,.13)); }
.mp-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.mp-hero__services { position: absolute; z-index: 2; inset-inline-end: 34px; top: 50%; transform: translateY(-50%); color: white; font-size: 13px; line-height: 2.1; text-align: right; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.mp-hero__services span { display: block; }
.mp-index { position: absolute; bottom: 28px; inset-inline-start: 34px; z-index: 2; color: white; font: 700 11px/1 sans-serif; letter-spacing: .12em; }

/* Services */
.mp-services { background: var(--mp-paper); }
.mp-services__intro { display: grid; grid-template-columns: 1fr 2.35fr; gap: 58px; align-items: end; margin-bottom: 46px; }
.mp-services__intro p { margin: 0; color: var(--mp-muted); line-height: 2; max-width: 360px; }
.mp-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
.mp-service { min-height: 420px; padding: 30px 24px 28px; border-inline-end: 1px solid var(--mp-line); display: flex; flex-direction: column; transition: background .3s ease, transform .3s ease; }
.mp-service:first-child { border-inline-start: 1px solid var(--mp-line); }
.mp-service:hover { background: white; transform: translateY(-7px); box-shadow: var(--mp-shadow); }
.mp-service__art { height: 150px; margin-bottom: 28px; overflow: hidden; background: #dce1e4; }
.mp-service__art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.mp-service:hover img { transform: scale(1.06); filter: saturate(1); }
.mp-service__no { font: 600 10px/1 sans-serif; color: #7a8388; letter-spacing: .12em; }
.mp-service h3 { margin: auto 0 10px; font-size: 19px; line-height: 1.45; }
.mp-service p { margin: 0; min-height: 52px; color: var(--mp-muted); font-size: 13px; line-height: 1.9; }
.mp-service__more { margin-top: 20px; width: 34px; height: 34px; border: 1px solid var(--mp-line); border-radius: 50%; display: grid; place-items: center; font-family: sans-serif; }

/* Process */
.mp-process { position: relative; background: #0d141a; color: white; }
.mp-process::before { content: ''; position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 20% 0, #22b7f0 0, transparent 32%), linear-gradient(120deg, transparent 45%, rgba(255,255,255,.04) 45.5%, transparent 46%); }
.mp-process__inner { position: relative; display: grid; grid-template-columns: .9fr 2.1fr; gap: 70px; align-items: center; }
.mp-process__copy h2 { margin: 18px 0 28px; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.mp-process__copy h2 span { display: inline-block; white-space: nowrap; font-size: .88em; }
.mp-process__copy p { color: #aeb7bd; line-height: 2.05; max-width: 470px; }
.mp-process__copy .mp-btn { margin-top: 24px; color: white; }
.mp-steps { display: grid; grid-template-columns: repeat(3, 1fr); direction: ltr; }
.mp-step { position: relative; padding: 28px 32px 22px; border-top: 1px solid rgba(255,255,255,.28); direction: rtl; min-height: 305px; }
.mp-step:not(:last-child)::after { content: '←'; position: absolute; left: -10px; top: 50%; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; background: #0d141a; color: #8c969c; font-family: sans-serif; }
.mp-step__num { font: 500 10px/1 sans-serif; letter-spacing: .15em; color: #91a0a8; }
.mp-step__visual { height: 110px; margin: 22px 0; overflow: hidden; background: linear-gradient(135deg, #222d35, #10171d); }
.mp-step__visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); opacity: .74; }
.mp-step:nth-child(2) .mp-step__visual { background: var(--mp-gradient); }
.mp-step:nth-child(2) .mp-step__visual img { mix-blend-mode: luminosity; opacity: .45; }
.mp-step h3 { margin: 0 0 8px; font-size: 18px; }
.mp-step p { margin: 0; color: #9ba6ad; font-size: 12px; line-height: 1.8; }

/* Work */
.mp-work { background: #f8f7f3; }
.mp-work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; direction: ltr; }
.mp-case { position: relative; min-height: 430px; overflow: hidden; color: white; direction: rtl; background: #1a2228; }
.mp-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mp-case::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,10,14,.88)); }
.mp-case__content { position: absolute; z-index: 2; inset: auto 28px 28px; }
.mp-case__tag { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; font-size: 10px; backdrop-filter: blur(8px); }
.mp-case h3 { margin: 14px 0 4px; font-size: 26px; }
.mp-case p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.mp-case__arrow { position: absolute; z-index: 3; bottom: 26px; inset-inline-end: 26px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; font-family: sans-serif; }
.mp-case:hover img { transform: scale(1.06); }

/* Insights */
.mp-insights { background: var(--mp-paper); }
.mp-insights__layout { display: grid; grid-template-columns: .82fr 2.18fr; gap: 52px; align-items: start; }
.mp-insights__intro h2 { margin: 18px 0 28px; font-size: clamp(42px, 5vw, 72px); line-height: 1.12; letter-spacing: -.05em; }
.mp-insights__intro p { color: var(--mp-muted); line-height: 2; }
.mp-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-article { border-top: 1px solid var(--mp-line); padding-top: 18px; }
.mp-article__image { height: 180px; margin-bottom: 18px; overflow: hidden; }
.mp-article__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mp-article:hover img { transform: scale(1.05); }
.mp-article__date { font-size: 10px; color: #7d858a; }
.mp-article h3 { margin: 12px 0 14px; font-size: 18px; line-height: 1.65; }
.mp-article__link { font-size: 12px; font-weight: 700; }

/* Founders */
.mp-about { padding: 90px 0; background: #eceae5; }
.mp-about__grid { display: grid; grid-template-columns: 1fr 1.08fr .35fr; align-items: center; gap: 42px; }
.mp-about h2 { margin: 0 0 24px; font-size: clamp(42px, 5vw, 72px); line-height: 1.09; letter-spacing: -.055em; }
.mp-about p { color: var(--mp-muted); line-height: 2; max-width: 520px; }
.mp-duo { height: 370px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #d7d8d8; }
.mp-person { position: relative; display: grid; place-items: center; overflow: hidden; font: 800 clamp(100px, 14vw, 210px)/1 sans-serif; letter-spacing: -.12em; color: #141b20; }
.mp-person:nth-child(2) { background: #c5c8ca; color: #f4f2ed; }
.mp-person::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, transparent, rgba(15,23,32,.16)); }
.mp-about__words { border-inline-start: 1px solid var(--mp-line); padding-inline-start: 24px; color: #667078; font-size: 12px; line-height: 2.2; }
.mp-about__words strong { display: block; color: var(--mp-ink); }

/* CTA */
.mp-cta { position: relative; min-height: 420px; display: flex; align-items: center; color: white; overflow: hidden; }
.mp-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,26,.94), rgba(13,20,26,.24)); }
.mp-cta__inner { position: relative; z-index: 2; width: var(--mp-shell); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 60px; direction: rtl; }
.mp-cta h2 { margin: 0 0 14px; max-width: 850px; font-size: clamp(38px, 5.2vw, 74px); line-height: 1.12; letter-spacing: -.05em; }
.mp-cta p { margin: 0; color: rgba(255,255,255,.76); }
.mp-cta .mp-btn { flex: 0 0 auto; color: var(--mp-ink); background: white; border-color: white; }
.mp-cta .mp-btn:hover { color: white; background: transparent; }

/* Footer */
.mp-footer { background: #f7f6f2; border-top: 1px solid var(--mp-line); }
.mp-footer__main { width: var(--mp-shell); min-height: 180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; align-items: center; direction: ltr; }
.mp-footer__brand { display: flex; align-items: center; gap: 13px; }
.mp-footer__nav { display: flex; justify-content: center; gap: 24px; direction: rtl; font-size: 12px; }
.mp-footer__meta { direction: rtl; text-align: right; color: #7b8388; font-size: 11px; line-height: 1.8; }
.mp-credit { width: var(--mp-shell); margin: 0 auto; padding: 14px 0 24px; border-top: 1px solid rgba(15,23,32,.08); color: #9ba1a5; font-size: 9px; line-height: 1.7; text-align: center; }

/* Inner pages */
.mp-content-shell { width: min(920px, calc(100vw - 48px)); margin: 0 auto; padding: 110px 0; direction: rtl; }
.mp-content-shell h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.05em; }
.mp-content-shell p { line-height: 2; }

@media (max-width: 1050px) {
  :root { --mp-shell: min(100% - 40px, 920px); }
  .mp-header__inner { grid-template-columns: auto 1fr auto; min-height: 74px; gap: 18px; }
  .mp-nav { display: none; }
  .mp-mobile { display: block; justify-self: end; direction: rtl; }
  .mp-mobile summary { cursor: pointer; list-style: none; font-size: 13px; border: 1px solid var(--mp-line); border-radius: 999px; padding: 10px 16px; }
  .mp-mobile summary::-webkit-details-marker { display: none; }
  .mp-mobile[open] nav { position: absolute; top: 66px; left: 20px; right: 20px; background: #fff; border: 1px solid var(--mp-line); box-shadow: var(--mp-shadow); padding: 16px; display: grid; gap: 4px; }
  .mp-mobile nav a { padding: 12px; border-bottom: 1px solid rgba(15,23,32,.07); }
  .mp-contact-btn { display: none; }
  .mp-hero { grid-template-columns: 1fr; }
  .mp-hero__copy { min-height: 620px; padding: 70px 28px; align-items: stretch; }
  .mp-hero__media { min-height: 520px; }
  .mp-services__grid { grid-template-columns: 1fr 1fr; }
  .mp-service:nth-child(3) { border-inline-start: 1px solid var(--mp-line); }
  .mp-process__inner { grid-template-columns: 1fr; }
  .mp-work__grid { grid-template-columns: 1fr 1fr; }
  .mp-case:last-child { grid-column: 1 / -1; }
  .mp-insights__layout { grid-template-columns: 1fr; }
  .mp-about__grid { grid-template-columns: 1fr 1fr; }
  .mp-about__words { grid-column: 1 / -1; display: flex; gap: 28px; border-inline-start: 0; border-top: 1px solid var(--mp-line); padding: 20px 0 0; }
}

@media (max-width: 700px) {
  :root { --mp-shell: calc(100vw - 32px); }
  .mp-wordmark { display: none; }
  .mp-mark { width: 48px; }
  .mp-section { padding: 78px 0; }
  .mp-section-head, .mp-cta__inner { flex-direction: column; align-items: flex-start; }
  .mp-hero__copy { min-height: 560px; }
  .mp-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .mp-hero__media { min-height: 420px; }
  .mp-hero__services { inset-inline-end: 20px; }
  .mp-services__intro { grid-template-columns: 1fr; gap: 18px; }
  .mp-services__grid { grid-template-columns: 1fr; }
  .mp-service, .mp-service:first-child, .mp-service:nth-child(3) { border-inline: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
  .mp-service { min-height: 360px; }
  .mp-process__copy h2 span { white-space: normal; }
  .mp-steps { grid-template-columns: 1fr; }
  .mp-step { min-height: 240px; }
  .mp-step:not(:last-child)::after { display: none; }
  .mp-work__grid, .mp-articles, .mp-about__grid { grid-template-columns: 1fr; }
  .mp-case, .mp-case:last-child { grid-column: auto; min-height: 390px; }
  .mp-duo { height: 290px; }
  .mp-about__words { grid-column: auto; flex-wrap: wrap; }
  .mp-cta { min-height: 520px; }
  .mp-footer__main { grid-template-columns: 1fr; padding: 44px 0; gap: 28px; }
  .mp-footer__nav { justify-content: flex-start; flex-wrap: wrap; }
  .mp-footer__meta { text-align: left; }
}

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

