/*
Theme Name: Maynd
Theme URI: https://maynd.ir
Author: Maynd
Description: قالب اختصاصی و سبک سایت مایند (نماینده رسمی وب‌اینگیج در ایران). راست‌چین، بدون وابستگی به افزونه صفحه‌ساز.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: maynd
*/

/* ---------- Tokens ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand colours taken from the Maynd logo */
  --brand: #1E3876;      /* سرمه‌ای لوگو */
  --brand-deep: #152A5A;
  --sky: #A8C9DD;        /* آبی روشن لوگو */
  --sky-soft: #EDF4F9;
  --lilac: #C3B4D4;      /* بنفش روشن لوگو */
  --lilac-soft: #F3F0F8;
  --leaf: #ADE292;       /* سبز لوگو */
  --leaf-soft: #EEF8E8;
  --leaf-deep: #3F7F24;  /* سبز تیره برای متن و آیکن روی زمینه سفید */

  --ink: #16264F;
  --signal: var(--leaf-deep);
  --signal-soft: var(--leaf-soft);
  --paper: #FFFFFF;
  --mist: var(--sky-soft);
  --line: #D6E2EC;
  --muted: #566482;

  --font: "Vazirmatn", Tahoma, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 4.5vw, 3.4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-s: 6px;
  --radius-l: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.95;
  direction: rtl;
  text-align: right;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 4px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; right: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { right: 16px; top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-s);
  font: inherit; font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--leaf); color: var(--brand); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: var(--step-1); }
.brand img { max-height: 40px; width: auto; }
.brand-mark { height: 38px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); direction: ltr; text-align: right; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius-s); }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--mist); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px; flex-direction: column; box-shadow: 0 12px 30px rgba(22,38,79,.08); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 16px 0 0; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 480px) { .header-cta .btn-primary { padding: 0 14px; font-size: var(--step--1); } }

/* ---------- Hero: the customer journey ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.journey { margin: 0; position: relative; background: var(--mist); border-radius: var(--radius-l); padding: 28px 24px 24px; }
.journey-title { font-size: var(--step--1); color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.journey ol { list-style: none; margin: 0; padding: 0; position: relative; }
.journey ol::before { content: ""; position: absolute; top: 14px; bottom: 14px; right: 13px; width: 2px; background: var(--line); }
.journey li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 10px 0; }
.journey .dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; display: grid; place-items: center; }
.journey .dot svg { width: 14px; height: 14px; }
.journey .step-body { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; line-height: 1.7; }
.journey .step-body strong { display: block; font-weight: 700; }
.journey .step-body span { font-size: var(--step--1); color: var(--muted); }
.journey .is-wait .step-body { background: transparent; border: 1px dashed var(--line); }
.journey .is-message .dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.journey .is-message .step-body { border-color: var(--brand); }
.journey .is-win .dot { border-color: var(--leaf); background: var(--leaf); color: var(--brand); }
.journey .is-win .step-body { background: var(--leaf-soft); border-color: var(--leaf); }

/* The one orchestrated moment: the journey plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .journey li { opacity: 0; transform: translateY(6px); animation: step-in .45s ease-out forwards; }
  .journey li:nth-child(1) { animation-delay: .15s; }
  .journey li:nth-child(2) { animation-delay: .55s; }
  .journey li:nth-child(3) { animation-delay: .95s; }
  .journey li:nth-child(4) { animation-delay: 1.35s; }
  .journey li:nth-child(5) { animation-delay: 1.75s; }
}
@keyframes step-in { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.85; }

/* Clients */
.clients { padding: 28px 0; border-block: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.clients-label { color: var(--muted); font-size: var(--step--1); margin-left: 12px; }
.clients ul { display: contents; list-style: none; }
.clients li { font-weight: 700; color: var(--ink); opacity: .78; }
.clients img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .8; }

/* Services: a list, not a card grid */
.services { border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service h3 { margin: 0; }
.service h3 small { display: block; font-size: var(--step--1); font-weight: 500; color: var(--muted); direction: ltr; text-align: right; }
.service p { margin: 0; color: var(--muted); }
.service a.more { white-space: nowrap; font-weight: 700; text-decoration: none; }
.service a.more:hover { text-decoration: underline; }
@media (max-width: 720px) { .service { grid-template-columns: 1fr; gap: 6px; } }

/* Prerequisites: a checklist */
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 3px solid var(--leaf); padding-top: 18px; }
.checklist .tick { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--signal-soft); color: var(--signal); margin-bottom: 12px; }
.checklist p { color: var(--muted); }
@media (max-width: 860px) { .checklist { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; }
.why article { padding-block: 8px; }
.why p { color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Quote */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 20px; font-size: var(--step-2); line-height: 1.8; font-weight: 500; }
.quote cite { font-style: normal; color: var(--muted); }
.quote cite strong { color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #C7D6E6; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--mist); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: var(--step-3); margin: 0; }
.page-hero .meta { color: var(--muted); font-size: var(--step--1); margin-top: 8px; }
.breadcrumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.entry { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter); }
.entry-content { font-size: 1.0625rem; }
.entry-content h2 { font-size: var(--step-2); margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: 10px; margin: 1.5em auto; }
.entry-content ul, .entry-content ol { padding-right: 1.4em; padding-left: 0; }
.entry-content blockquote { border-right: 4px solid var(--brand); margin: 1.5em 0; padding: 4px 20px; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--step--1); display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content th { background: var(--mist); }
.entry-content .wp-block-button__link { background: var(--brand); color: #fff; border-radius: var(--radius-s); padding: 12px 22px; text-decoration: none; font-weight: 700; }
.entry-content input, .entry-content textarea, .entry-content select { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.entry-content input[type=submit], .entry-content button { width: auto; background: var(--brand); color: #fff; border: 0; padding: 12px 26px; font-weight: 700; cursor: pointer; border-radius: var(--radius-s); }
.alignwide { max-width: 1000px; }

/* Blog list */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; padding: clamp(32px, 5vw, 56px) 0; }
.post-item a.thumb img { aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; width: 100%; margin-bottom: 14px; background: var(--mist); }
.post-item h2 { font-size: var(--step-1); margin-bottom: 8px; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--brand); }
.post-item p { color: var(--muted); font-size: var(--step--1); line-height: 1.85; }
.post-item .cat { font-size: var(--step--1); color: var(--signal); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 56px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); padding: 0 10px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cat-filter a { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: var(--step--1); background: #fff; }
.cat-filter a.is-active, .cat-filter a:hover { border-color: var(--brand); color: var(--brand); }

.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.related ul { padding-right: 1.2em; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form input[type=search] { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7D6E6; margin-top: 0; padding: 56px 0 24px; font-size: var(--step--1); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: var(--step-0); color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; line-height: 2.3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ltr { direction: ltr; unicode-bidi: embed; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { text-align: center; padding: 96px var(--gutter); }
.not-found .search-form { margin: 24px auto 0; }

/* =====================================================================
   Designed pages (v1.1)
   ===================================================================== */
.narrow { max-width: 820px; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.9; max-width: 58ch; }
.muted { color: var(--muted); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Page hero */
.p-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 64px); background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); }
.p-hero h1 { font-size: var(--step-4); max-width: 18ch; margin-bottom: 18px; }
.p-hero.has-media .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.p-hero:not(.has-media) h1 { max-width: 24ch; }
@media (max-width: 900px) { .p-hero.has-media .wrap { grid-template-columns: 1fr; } }

/* Video clips */
.clip { margin: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--mist); box-shadow: 0 18px 40px -24px rgba(22,38,79,.35); aspect-ratio: 960 / 600; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Text + clip rows */
.split-stack { display: grid; gap: clamp(48px, 7vw, 96px); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.is-flipped .split-text { order: 2; }
.split h3 { font-size: var(--step-2); margin-bottom: 12px; }
.split p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.is-flipped .split-text { order: 0; } }

/* Tick lists */
.ticks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-right: 32px; line-height: 1.8; }
.ticks li::before { content: ""; position: absolute; right: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%233F7F24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks.big li { font-size: 1.0625rem; padding-block: 6px; border-bottom: 1px solid var(--line); }
.ticks.big li::before { top: 11px; }
.dots { padding-right: 1.2em; margin: 12px 0; line-height: 2.1; }

/* Feature grid (no card boxes: icon + text) */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px 40px; }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.features.cols-4 { grid-template-columns: repeat(4, 1fr); }
.features h3 { margin: 14px 0 6px; font-size: 1.125rem; }
.features p { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.85; }
.f-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand); }
.section-tint .f-icon { background: #fff; }
.f-icon svg { width: 26px; height: 26px; }
@media (max-width: 1000px) { .features.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .features.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features.cols-3, .features.cols-4 { grid-template-columns: 1fr; } }

/* Numbered steps: a real sequence */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; position: relative; padding-top: 56px; }
.steps li::before { content: counter(s, persian); position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps li::after { content: ""; position: absolute; top: 20px; right: 52px; left: -12px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.85; }
@media (max-width: 700px) { .steps li::after { display: none; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0 18px 40px; font-weight: 700; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 12px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(-45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(135deg); }
.faq-a { color: var(--muted); padding-bottom: 18px; }
.faq-a p:last-child { margin-bottom: 0; }

/* Form block */
.form-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-intro p { color: var(--muted); }
.form-alt { font-size: var(--step--1); color: var(--muted); margin-top: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.form-card h2 { font-size: var(--step-1); }
@media (max-width: 860px) { .form-block { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,56,118,.15); }
.wpcf7 input[type=tel], .wpcf7 input[type=email] { direction: ltr; text-align: right; }
.wpcf7 textarea { height: 110px; resize: vertical; }
.wpcf7 input[type=submit] { width: 100%; min-height: 50px; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-s); font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--brand-deep); }
.wpcf7-not-valid-tip { font-size: var(--step--1); margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; border-radius: var(--radius-s); padding: 10px 14px; }
.wpcf7-spinner { margin: 8px auto 0; display: block; }

/* Two columns with side note */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.fit, .mission { background: var(--lilac-soft); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.fit h2, .mission h2 { font-size: var(--step-1); }
.note { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.mission p { font-size: var(--step-1); line-height: 1.9; margin: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose p { line-height: 2.05; }

/* Service chooser */
.chooser { display: grid; border-top: 2px solid var(--ink); }
.choice { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.choice-when { font-size: 1.0625rem; }
.choice-name { font-weight: 800; color: var(--brand); white-space: nowrap; }
.choice-name small { font-weight: 500; color: var(--muted); margin-right: 6px; }
.choice:hover { background: var(--mist); }
.choice:hover .choice-name { text-decoration: underline; }
@media (max-width: 640px) { .choice { grid-template-columns: 1fr; gap: 4px; } }

/* Story + quote */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story p { color: var(--muted); }
.story-quote { margin: 0; border-right: 4px solid var(--leaf); padding-right: 24px; }
.story-quote p { font-size: var(--step-1); line-height: 1.9; color: var(--ink); }
.story-quote cite { font-style: normal; color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-l); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.compare tbody th { color: var(--muted); font-weight: 600; width: 22%; }
.compare td:last-child { font-weight: 600; }

/* Signs, pairs, tools */
.signs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; counter-reset: sg; }
.signs li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.9; }
.signs strong { color: var(--ink); display: block; }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.pairs h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.pairs p { color: var(--muted); margin: 0; }
.tools { margin: 0; }
.tools > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tools dt { font-weight: 800; direction: ltr; text-align: right; }
.tools dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .tools > div { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-way h2 { font-size: var(--step-1); margin: 14px 0 6px; }
.contact-way p { margin: 0 0 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form pages */
.form-page { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 60%); }
.form-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-page h1 { font-size: var(--step-3); }
.form-page .clip { margin-top: 24px; }
@media (max-width: 900px) { .form-page-grid { grid-template-columns: 1fr; } .form-page .clip { display: none; } }

/* Glossary */
.section.glossary { padding-top: 16px; }
.g-tools { position: sticky; top: 72px; z-index: 5; background: var(--paper); padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.g-search input { width: 100%; max-width: 520px; font: inherit; font-size: 1.0625rem; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--mist); }
.g-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.cat-filter button { font: inherit; font-size: var(--step--1); padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.cat-filter button.is-active, .cat-filter button:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.g-count { font-size: var(--step--1); margin: 10px 0 0; }
.g-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.g-item { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 200px; }
.g-item:target { background: var(--leaf-soft); margin-inline: -12px; padding-inline: 12px; border-radius: 10px; }
.g-item dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.g-fa { font-weight: 800; font-size: 1.125rem; }
.g-en { direction: ltr; color: var(--muted); font-size: .9rem; font-weight: 600; }
.g-item dd { margin: 0; }
.g-item dd p { margin: 0; color: var(--muted); line-height: 1.95; }
.g-meta { display: flex; gap: 14px; align-items: center; margin-top: 8px !important; font-size: var(--step--1); }
.g-cat { background: var(--lilac-soft); color: var(--ink); border-radius: 999px; padding: 1px 10px; }
.g-meta a { font-weight: 700; text-decoration: none; }
.g-meta a:hover { text-decoration: underline; }
.g-empty { padding: 32px 0; color: var(--muted); }
@media (max-width: 760px) { .g-list { grid-template-columns: 1fr; } .g-tools { top: 72px; } }

/* Hero proof line */
.hero-proof { margin: 20px 0 0; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-proof::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); flex: none; }

/* Proof band: award + customers */
.proof { padding: clamp(40px, 6vw, 72px) 0; background: var(--brand); color: #fff; overflow: hidden; }
.proof-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.proof-award { margin: 0; position: relative; }
.proof-award::before { content: ""; position: absolute; inset: 12% -10% -6% -10%; background: radial-gradient(closest-side, rgba(173,226,146,.35), transparent); z-index: 0; }
.proof-award img { position: relative; z-index: 1; border-radius: var(--radius-l); width: 100%; height: auto; box-shadow: 0 24px 48px -20px rgba(0,0,0,.5); }
.proof h2 { color: #fff; font-size: var(--step-3); }
.proof p { color: #D5E2EE; }
.proof strong { color: #fff; }
.proof-figure { display: flex; align-items: center; gap: 18px; margin: 28px 0 22px; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.18); }
.proof-num { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 900; line-height: 1; color: var(--leaf); direction: ltr; }
.proof-label { font-size: var(--step-1); line-height: 1.7; max-width: 22ch; }
.proof-clients-label { margin: 0 0 8px; font-size: var(--step--1); color: var(--sky) !important; }
.proof-clients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.proof-clients li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 14px; font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } .proof-award { max-width: 240px; margin-inline: auto; } }

/* Events */
.ev-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.ev-side { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ev-side .ev-photos { grid-row: 1 / 6; margin: 0; }
.ev-main { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ev-text { max-width: 60ch; }
.ev-video { border-radius: var(--radius-l); overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 24px 48px -24px rgba(22,38,79,.5); }
.ev-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-date { font-size: var(--step--1); color: var(--leaf-deep); font-weight: 700; margin-bottom: 6px; }
.ev-main h3, .ev-side h3 { font-size: var(--step-2); }
.ev-main p, .ev-side p { color: var(--muted); }
.ev-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-bottom: 20px; aspect-ratio: 16 / 10; }
.ev-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ev-photos img:first-child { grid-row: 1 / 3; }
.ev-photos.ev-photos-single { display: block; aspect-ratio: 16 / 10; }
.ev-photos.ev-photos-single img { height: 100%; }
.ev-more { margin-top: clamp(32px, 5vw, 56px); padding: 24px; border-radius: var(--radius-l); background: var(--lilac-soft); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ev-more h3 { font-size: 1.125rem; margin-bottom: 4px; }
.ev-more p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .ev-side { grid-template-columns: 1fr; } .ev-side .ev-photos { grid-row: auto; } }
@media (max-width: 600px) { .ev-main { grid-template-columns: 1fr; } .ev-video { max-width: 300px; } }

/* About: portrait + timeline */
.portrait { margin: 0; justify-self: center; width: 100%; max-width: 400px; }
.portrait img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(22,38,79,.45); }
.portrait figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: var(--step--1); }
.timeline { list-style: none; margin: 0; padding: 0 28px 0 0; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; right: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--sky), var(--lilac), var(--leaf)); }
.timeline li { position: relative; display: grid; gap: 20px; align-items: center; }
.timeline li::before { content: ""; position: absolute; right: -28px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li.is-now::before { background: var(--leaf); border-color: var(--leaf-deep); }
.timeline li.has-media { grid-template-columns: 1fr 1fr; align-items: start; }
.tl-date { display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 12px; margin-bottom: 6px; }
.tl-text h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.tl-text p { color: var(--muted); margin: 0; max-width: 60ch; }
.tl-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.tl-img.tall { aspect-ratio: 4 / 3; object-position: center 30%; }
@media (max-width: 760px) { .timeline li.has-media { grid-template-columns: 1fr; } }

/* Service pages: tabs, deliverables, related */
.svc-tabs { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 72px; z-index: 20; }
.svc-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-tabs a { padding: 14px 16px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.svc-tabs a:hover { color: var(--ink); }
.svc-tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--leaf); }
.deliver { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.deliver.no-photo { grid-template-columns: 1fr; }
.deliver.no-photo .deliver-list { grid-template-columns: repeat(2, 1fr); }
.deliver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
.deliver-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.deliver-list h3 { font-size: 1.0625rem; margin: 4px 0 4px; }
.deliver-list p { color: var(--muted); margin: 0; }
.deliver-photo { margin: 0; position: sticky; top: 150px; }
.deliver-photo img { width: 100%; height: auto; border-radius: var(--radius-l); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 24px 48px -28px rgba(22,38,79,.5); }
.deliver-photo figcaption { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .deliver, .deliver.no-photo .deliver-list { grid-template-columns: 1fr; } .deliver-photo { position: static; } }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; color: var(--ink); }
.rel-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rel-card span { display: block; padding: 14px 18px 18px; font-weight: 700; line-height: 1.7; }
.rel-card:hover span { color: var(--brand); }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }

/* Solutions: comparison + team */
.svc-compare th, .svc-compare td { text-align: center; }
.svc-compare tbody th { text-align: right; }
.svc-compare .yes { color: var(--leaf-deep); font-weight: 900; font-size: 1.2rem; }
.svc-compare .no { color: var(--line); }
.svc-compare thead a { color: #fff; text-decoration: none; }
.svc-compare thead a:hover { text-decoration: underline; }
.team-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.team-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); aspect-ratio: 4 / 3; }
