/* Logorials theme — main stylesheet */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face{font-family:"Sora";font-style:normal;font-weight:300 600;font-display:swap;src:url("../fonts/sora-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;}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/tajawal-300-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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEFF;}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/tajawal-400-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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEFF;}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/tajawal-500-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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEFF;}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/tajawal-700-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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEFF;}

/* ---------- Tokens ---------- */
:root {
  --bg: #080E10;
  --surface: #0D1518;
  --line: rgba(161, 164, 165, .16);
  --line-strong: rgba(161, 164, 165, .34);
  --text: #FFFFFF;
  --muted: #A1A4A5;
  --dim: rgba(161, 164, 165, .82); /* ≥ 4.5:1 on --bg */
  --purple: #845AFF;
  --purple-soft: rgba(132, 90, 255, .14);
  --green: #00DC93;
  --ink: #080E10;
  --font: "Sora", system-ui, sans-serif;
  --corner: 40px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --fs-sm: .875rem;
  --fs-lead: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.4rem, 2.2vw, 1.6rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 5.4vw, 4.5rem);
  --fs-display: clamp(3rem, 9vw, 7.5rem);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300DC93' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300DC93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6l-8-3z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
html[lang^="ar"] { --font: "Tajawal", "Sora", system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 1rem/1.65 var(--font); overflow-x: hidden; }
html[lang^="ar"] body { font-size: 1.0625rem; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
html[lang^="ar"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.wrap.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--green); color: var(--ink); border-radius: 100px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons (theme + block buttons) ---------- */
/* Core block CSS loads after this file, so block selectors carry an extra class to win. */
.btn, .wp-block-button > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 100px;
  background: var(--green); color: var(--ink);
  font: 500 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: filter .2s, background-color .2s, border-color .2s;
}
.btn:hover, .wp-block-button > .wp-block-button__link:hover { filter: brightness(1.08); color: var(--ink); }
.btn--ghost, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover, .is-style-outline > .wp-block-button__link:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--text); filter: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.wp-block-buttons, .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.link, .lg-link a { color: var(--purple); text-decoration: none; font-weight: 500; }
.link:hover, .lg-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 14, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: block; padding-block: 12px; flex: none; }
.brand img { height: 22px; width: auto; }
.nav { margin-inline-start: auto; }
.nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding-block: 8px; color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links [aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { color: var(--text); text-decoration: none; font: 500 .9375rem/1 var(--font); padding: 10px 6px; }
.lang-switch[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 1rem; }
.lang-switch[lang="en"] { font-family: "Sora", sans-serif; }
.menu-toggle { display: none; place-items: center; background: none; border: 1px solid var(--line-strong); border-radius: 100px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }

/* ---------- Sections (theme templates and lg-* block sections) ---------- */
.section, .lg-section { padding-block: var(--section); }
.section + .section, .lg-section + .lg-section, .page-sections > .lg-section + .lg-section { border-top: 1px solid var(--line); }
.lg-section > .wrap > * + * { margin-top: 0; }
.section-head, .lg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .lg-head h2 { font-size: var(--fs-h2); max-width: 18ch; }
.section-head p, .lg-head p { max-width: 44ch; font-size: var(--fs-lead); font-weight: 300; }
.page-title { font-size: var(--fs-h1); }
.page-head .hero-lead { margin-top: 20px; }
.hero-lead, .lg-lead { margin-top: 24px; max-width: 46ch; font-size: var(--fs-lead); font-weight: 300; }

/* Hero */
.lg-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.lg-hero::before { content: ""; position: absolute; top: -76px; inset-inline-start: 0; width: min(1000px, 140vw); height: 820px; pointer-events: none; background: radial-gradient(ellipse at 0% 0%, rgba(90, 60, 178, .48), rgba(22, 4, 94, .18) 40%, transparent 70%); }
html[dir="rtl"] .lg-hero::before { background: radial-gradient(ellipse at 100% 0%, rgba(90, 60, 178, .48), rgba(22, 4, 94, .18) 40%, transparent 70%); }
.lg-hero > .wrap { position: relative; }
.lg-hero .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.lg-hero .wp-block-column { align-self: center; }
.lg-hero h1 { font-size: var(--fs-h1); }
.lg-hero .wp-block-buttons { margin-top: 36px; }
.lg-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 24px 36px; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: var(--fs-sm); color: var(--dim); }
.lg-facts strong { display: block; color: var(--text); font-size: 1.5rem; font-weight: 600; line-height: 1.2; unicode-bidi: isolate; direction: ltr; text-align: start; }
html[dir="rtl"] .lg-facts strong { text-align: right; }

/* The memorable element: one identity, every touchpoint */
.lg-system { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.lg-system > figure { position: relative; margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.lg-system > figure:nth-child(1) { grid-row: span 2; border-start-start-radius: var(--corner); }
.lg-system > figure:nth-child(4) { grid-column: span 2; border-end-end-radius: var(--corner); }
.lg-system img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.lg-system > figure:nth-child(1) img { aspect-ratio: auto; height: 100%; }
.lg-system > figure:nth-child(4) img { aspect-ratio: 21 / 8; }
.lg-system figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; margin: 0; padding: 6px 12px; border-radius: 100px; background: rgba(8, 14, 16, .8); color: var(--text); font-size: .8125rem; }
.lg-note { margin-top: 14px; font-size: var(--fs-sm); color: var(--dim); }
.lg-note a { color: var(--muted); display: inline-block; padding-block: 4px; }

/* Problems: three columns separated by hairlines */
.wp-block-columns.lg-problems { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.wp-block-columns.lg-problems > .wp-block-column { padding: 32px 32px 8px 0; }
html[dir="rtl"] .wp-block-columns.lg-problems > .wp-block-column { padding: 32px 0 8px 32px; }
.wp-block-columns.lg-problems > .wp-block-column + .wp-block-column { border-inline-start: 1px solid var(--line); padding-inline-start: 32px; }
.wp-block-columns.lg-problems h3 { font-size: var(--fs-h4); margin-bottom: 10px; }

/* Two-column split (deliverables, about) */
.wp-block-columns.lg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wp-block-columns.lg-split h2 { font-size: var(--fs-h2); }
.lg-media { margin: 0; overflow: hidden; border: 1px solid var(--line); border-start-start-radius: var(--corner); border-end-end-radius: var(--corner); }
.lg-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Checklist */
.lg-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.lg-checklist li { position: relative; padding: 14px 0; padding-inline-start: 28px; border-bottom: 1px solid var(--line); color: var(--text); }
.lg-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 19px; width: 16px; height: 16px; background: var(--check) center / contain no-repeat; }

/* Work grid */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.case { text-decoration: none; display: block; }
.case-media { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-start-start-radius: 28px; border-end-end-radius: 28px; }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.case:hover .case-media img { transform: scale(1.03); }
.case-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.case-meta h3 { font-size: var(--fs-h4); }
.case-meta span { color: var(--dim); font-size: var(--fs-sm); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; font-size: .9375rem; }
.filters a:hover { border-color: var(--line-strong); color: var(--text); }
.filters a[aria-current] { border-color: var(--purple); background: var(--purple-soft); color: var(--text); }

/* Steps (a real sequence) */
.lg-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.lg-steps li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--line-strong); counter-increment: step; font-size: .9375rem; }
html[dir="rtl"] .lg-steps li { padding: 28px 0 0 24px; }
.lg-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--green); font: 500 .875rem/1 "Sora", sans-serif; }
.lg-steps li::after { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.lg-steps strong { display: block; margin-bottom: 8px; color: var(--text); font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }

/* Package */
.wp-block-columns.lg-package { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-start-start-radius: var(--corner); border-end-end-radius: var(--corner); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.wp-block-columns.lg-package > .wp-block-column { padding: clamp(28px, 4.5vw, 56px); }
.wp-block-columns.lg-package > .wp-block-column + .wp-block-column { border-inline-start: 1px solid var(--line); background: var(--purple-soft); display: flex; flex-direction: column; gap: 20px; }
.wp-block-columns.lg-package h3 { font-size: var(--fs-h3); }
.wp-block-columns.lg-package .lg-checklist { grid-template-columns: 1fr; margin-top: 24px; }
.lg-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 6px; color: var(--dim); font-size: var(--fs-sm); }
.lg-price strong { color: var(--text); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.lg-guarantee h4 { display: flex; gap: 12px; align-items: center; font-size: 1.0625rem; margin-bottom: 6px; }
.lg-guarantee h4::before { content: ""; width: 26px; height: 26px; flex: none; background: var(--shield) center / contain no-repeat; }
.lg-guarantee p { font-size: .9375rem; padding-inline-start: 38px; }
.wp-block-columns.lg-package .wp-block-buttons { margin-top: auto; }

/* Testimonials */
.wp-block-columns.lg-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.wp-block-quote, .quote { margin: 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--line-strong); }
.wp-block-quote p, .quote blockquote { margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.6; }
.wp-block-quote cite, .quote figcaption { display: block; margin-top: 20px; font-size: var(--fs-sm); font-style: normal; color: var(--muted); }
.wp-block-quote.is-ltr p { direction: ltr; text-align: left; }
.quote--single { max-width: 860px; }
.quote--single blockquote { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

/* Add-on / generic cards */
.wp-block-columns.lg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lg-card { padding: 32px; border: 1px solid var(--line); border-start-start-radius: 24px; border-end-end-radius: 24px; }
.lg-card h3 { font-size: var(--fs-h4); margin: 0 0 8px; }
.lg-badge { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 100px; background: var(--purple-soft); color: var(--text); font-size: .8125rem; }
.lg-card .lg-link { margin-top: 16px; }

/* FAQ (core/details) */
.lg-faq { max-width: 860px; }
.wp-block-details { border-bottom: 1px solid var(--line); }
.wp-block-details summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--text); font-size: 1.125rem; font-weight: 500; cursor: pointer; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--green); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { padding: 0 0 24px; max-width: 70ch; }

/* CTA band (template + block) */
.cta-band, .lg-cta { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 128px); text-align: center; border-top: 1px solid var(--line); }
.cta-band::before, .lg-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(90, 60, 178, .55), rgba(22, 4, 94, .2) 45%, transparent 70%); pointer-events: none; }
.cta-band .wrap, .lg-cta > .wrap { position: relative; }
.cta-band h2, .lg-cta h2 { font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-band p, .lg-cta p { margin: 18px auto 36px; max-width: 48ch; font-size: var(--fs-lead); font-weight: 300; }
.cta-band .hero-cta, .lg-cta .wp-block-buttons { justify-content: center; }

/* Inner page hero */
.lg-page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.lg-page-hero::before { content: ""; position: absolute; top: -76px; inset-inline-start: 0; width: min(900px, 140vw); height: 640px; pointer-events: none; background: radial-gradient(ellipse at 0% 0%, rgba(90, 60, 178, .4), transparent 65%); }
html[dir="rtl"] .lg-page-hero::before { background: radial-gradient(ellipse at 100% 0%, rgba(90, 60, 178, .4), transparent 65%); }
.lg-page-hero > .wrap { position: relative; }
.lg-page-hero h1 { font-size: var(--fs-h1); max-width: 20ch; }
.lg-page-hero .wp-block-buttons { margin-top: 32px; }

/* Text sections (privacy, statements) and a single highlighted quote */
.lg-prose { max-width: 760px; }
.lg-prose h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.lg-prose p + p { margin-top: 1em; }
.lg-quote-single .wp-block-quote { max-width: 860px; }
.lg-quote-single .wp-block-quote p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.lg-page-hero .lg-facts { margin-top: 40px; }
[id] { scroll-margin-top: 96px; }

/* ---------- Case study ---------- */
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--dim); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.case-hero { padding: clamp(48px, 6vw, 80px) 0 40px; }
.case-hero h1 { font-size: var(--fs-display); letter-spacing: -.04em; }
.case-hero .hero-lead { max-width: 52ch; }
.case-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 56px; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.case-facts dt { font-size: var(--fs-sm); color: var(--dim); }
.case-facts dd { margin: 4px 0 0; color: var(--text); }
.bleed { margin-top: 24px; }
.bleed img { width: 100%; max-height: 82vh; object-fit: cover; border-start-start-radius: var(--corner); border-end-end-radius: var(--corner); }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.story h2 { font-size: var(--fs-h4); margin-bottom: 12px; }
.case-gallery-section { padding-top: 0; }
.section + .case-gallery-section { border-top: 0; }
.case-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.case-body > * { margin: 0; }
.case-body > .alignwide, .case-body > .alignfull, .case-body > p, .case-body > h2 { grid-column: 1 / -1; }
.case-body .wp-block-image { margin: 0; background: var(--surface); }
.case-body .wp-block-image img { width: 100%; height: auto; }
.case-body figcaption { margin: 0; padding: 12px 0 0; font-size: var(--fs-sm); color: var(--dim); background: var(--bg); text-align: start; }
.next-case { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; text-decoration: none; }
.next-case small { color: var(--dim); font-size: var(--fs-sm); }
.next-case h2 { font-size: var(--fs-h2); margin: 8px 0 16px; }
.next-case .case-media img { aspect-ratio: 16 / 9; }

/* ---------- Blog & text pages ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.post-card-link { display: block; text-decoration: none; }
.post-card h2 { font-size: var(--fs-h4); margin: 18px 0 10px; }
.post-card p { font-size: .9375rem; margin-bottom: 14px; }
.pager { display: flex; justify-content: space-between; margin-top: 48px; }
.pager a { color: var(--purple); text-decoration: none; }
.post-hero { padding: clamp(48px, 6vw, 80px) 0 32px; }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.post-date { margin-top: 16px; font-size: var(--fs-sm); color: var(--dim); }
.post-cover img { border-start-start-radius: var(--corner); border-end-end-radius: var(--corner); }
.prose { padding-block: 40px 96px; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--purple); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose-page .page-title { margin-bottom: 8px; }
.prose-page .prose { max-width: 760px; }
.not-found { min-height: 60vh; }
.not-found .hero-cta { margin-top: 36px; }

/* ---------- Booking form (logorials-core) ---------- */
.wp-block-columns.lg-booking-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.lg-contact-side h3 { font-size: var(--fs-h4); margin-bottom: 16px; }
.lg-contact-side p + p { margin-top: 8px; }
.lg-contact-side a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 4px; }
.lg-contact-side a:hover { color: var(--green); }
.lg-booking { max-width: 760px; border: 1px solid var(--line); border-start-start-radius: var(--corner); border-end-end-radius: var(--corner); padding: clamp(24px, 5vw, 48px); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.lg-booking fieldset { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.lg-booking legend { margin-bottom: 14px; padding: 0; color: var(--text); font-size: 1.0625rem; font-weight: 500; }
.lg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-opt { position: relative; cursor: pointer; }
.lg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lg-opt span { display: inline-flex; padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: .9375rem; transition: border-color .15s, background-color .15s, color .15s; }
.lg-opt:hover span { border-color: var(--line-strong); color: var(--text); }
.lg-opt input:checked + span { border-color: var(--purple); background: var(--purple-soft); color: var(--text); }
.lg-opt input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 3px; }
.lg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lg-field { display: block; }
.lg-field span { display: block; margin-bottom: 8px; font-size: .875rem; }
.lg-field input, .lg-field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #0F181B; color: var(--text); font: 400 1rem var(--font); }
.lg-field input:focus, .lg-field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.lg-booking .lg-error { min-height: 1.5em; margin: 0 0 12px; color: #FF8A8A; font-size: .9375rem; }
.lg-booking .hp { position: absolute; left: -9999px; }
.lg-booking-done { text-align: center; padding: 24px 0; }
.lg-booking-done h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.lg-booking-done .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-title { font-size: .9375rem; font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--muted); display: inline-block; padding-block: 4px; }
.site-footer a:hover { color: var(--text); }
.footer-about img { height: 22px; width: auto; }
.footer-about p { margin-top: 18px; max-width: 34ch; }
.footer-social, .footer-legal { display: flex; gap: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .site-header.open .nav { display: block; position: absolute; top: 76px; inset-inline: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links { flex-direction: column; gap: 0; }
  .site-header.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .lg-hero .wp-block-columns { grid-template-columns: 1fr; }
  .lg-steps { grid-template-columns: 1fr; }
  .lg-steps li { padding: 0 0 28px 28px; border-top: 0; border-inline-start: 1px solid var(--line-strong); }
  html[dir="rtl"] .lg-steps li { padding: 0 28px 28px 0; }
  .lg-steps li::after { top: 0; inset-inline-start: -5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 760px) {
  .lg-facts { grid-template-columns: 1fr 1fr; }
  .wp-block-columns.lg-problems, .wp-block-columns.lg-quotes, .wp-block-columns.lg-cards, .wp-block-columns.lg-booking-row, .story, .wp-block-columns.lg-split, .wp-block-columns.lg-package, .work, .next-case, .post-grid, .lg-fields { grid-template-columns: 1fr; }
  .wp-block-columns.lg-problems > .wp-block-column + .wp-block-column { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .wp-block-columns.lg-problems > .wp-block-column { padding: 24px 0 !important; }
  .wp-block-columns.lg-package > .wp-block-column + .wp-block-column { border-inline-start: 0; border-top: 1px solid var(--line); }
  .lg-checklist { grid-template-columns: 1fr; }
  .section-head, .lg-head { flex-direction: column; align-items: flex-start; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lg-system figcaption { font-size: .75rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
