/* ============================================================
   المحامية شوق ناصر شبكوه — Legal Awareness Group
   Identity: cream #F6E9DC on navy #04274A (docs/Branding.md)
   Motion: GSAP/ScrollTrigger (js/site.js). Initial hidden states live
   under html.js:not(.static); without JS or with reduced motion all is visible.
   ============================================================ */
:root {
  /* DARK THEME (owner, 2026-11-07): ~60% navy, ~25% lighter navy, ~15% cream (text, buttons, two cream bands). */
  --surface: #04274A;      /* navy — page background */
  --surface-2: #04305F;    /* lighter navy — alternate sections, header, footer, menu */
  --surface-3: #0B3A6B;    /* image placeholders */
  --accent: #F6E9DC;       /* cream — text, lines, buttons, inverted bands */
  --accent-2: #FBF3EA;
  --ink: #F6E9DC; --muted: rgba(246, 233, 220, .72); --line: rgba(246, 233, 220, .16); --line-2: rgba(246, 233, 220, .34);
  --wa: #1f8a5b;
  --font-ar: 'Mirza', 'Amiri', 'Noto Naskh Arabic', serif;
  --font-quote: 'Amiri', 'Mirza', serif;
  --font-latin: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px); --head-h: 72px;
  --r: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x must be `clip`, never `hidden`: `hidden` turns html/body into scroll containers, which breaks
   position:sticky (the header) and CSS scroll-snap on every browser. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-ar); font-size: 19px; line-height: 1.85; overflow-x: clip; }
.video-desc { color: var(--muted); font-size: .92em; margin: 10px 0 0; }
html.js:not(.static) .yt-wrap.is-static, html.js:not(.static) .clip-box.is-static { clip-path: none; opacity: 1; }
html[lang="en"] body { font-family: var(--font-latin); font-size: 17px; line-height: 1.7; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .brand-name { font-family: 'Mirza', var(--font-latin); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .14; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body > * { position: relative; z-index: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { color: var(--accent); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.brand, .brand > span, .about-copy, .post-body, .svc, .hero-copy { min-width: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1.02em; line-height: 1.2; border: 1.5px solid var(--accent); color: var(--accent); transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s; white-space: nowrap; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(4, 39, 74, .6); }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #197a4f; color: #fff; }
.btn-sm { font-size: .9em; padding: .5em 1.1em; }
.btn-lg { font-size: 1.15em; padding: .8em 1.8em; box-shadow: 0 18px 36px -18px rgba(31, 138, 91, .9); }
@media (max-width: 420px) { .btn-lg { font-size: 1.02em; white-space: normal; text-align: center; } }

/* ---------- header (auto-hides on scroll down) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 48, 95, .97); border-bottom: 1px solid var(--line); transition: box-shadow .4s; }
.site-header.is-compact { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.to-top { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--surface); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .to-top { bottom: 22px; inset-inline-start: 22px; width: 46px; height: 46px; } }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { display: block; font-weight: 700; font-size: 1.1em; line-height: 1.15; }
.brand-sub { display: block; font-size: .7em; color: var(--muted); font-weight: 500; }
.header-cta { margin-inline-start: auto; }
.nav-toggle { background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; color: var(--accent); flex: none; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* full-screen menu (both desktop and mobile) */
.site-nav { position: fixed; inset: 0; z-index: 49; background: var(--surface-2); color: var(--accent); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) + 20px) var(--gutter) 40px; gap: 4px; opacity: 0; pointer-events: none; transform: translateY(-2%); transition: opacity .4s var(--ease), transform .4s var(--ease); overflow: auto; }
.site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.site-nav a { color: var(--accent); font-size: clamp(26px, 4.5vw, 44px); font-weight: 600; padding: .25em 0; border-bottom: 1px solid rgba(246, 233, 220, .14); max-width: 720px; width: 100%; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; transition: padding-inline-start .3s var(--ease), opacity .3s; }
.site-nav a::after { content: "←"; opacity: .35; font-size: .7em; }
html[dir="ltr"] .site-nav a::after { content: "→"; }
.site-nav a:hover, .site-nav a.is-active { padding-inline-start: .4em; }
.site-nav .nav-cta { color: #9fe3c0; }
.site-nav .lang-switch { font-family: var(--font-latin); font-size: 1.05em; border: 0; margin-top: 22px; letter-spacing: .04em; opacity: .85; }
.site-nav .lang-switch::after { content: ""; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--surface-2); border-color: transparent; }
@media (max-width: 560px) { .header-cta span { display: none; } .header-cta { padding: .55em; } .brand-sub { display: none; } }

/* ---------- scroll rule ---------- */
.scroll-rule { position: fixed; top: 0; bottom: 0; inset-inline-start: 14px; width: 1px; background: var(--line); z-index: 40; pointer-events: none; }
.scroll-rule i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
@media (max-width: 980px) { .scroll-rule { display: none; } }

/* ---------- initial (pre-animation) states ---------- */
html.js:not(.static) .reveal { opacity: 0; transform: translateY(28px); }
html.js:not(.static) .hero-logo, html.js:not(.static) .hero-lead, html.js:not(.static) .hero-cta, html.js:not(.static) .hero-note { opacity: 0; transform: translateY(18px); }
html.js:not(.static) .hero h1 .line > span { transform: translateY(112%); }
html.js:not(.static) .portrait img { opacity: 0; transform: translateY(24px) scale(.97); }
html.js:not(.static) .portrait-tag { opacity: 0; transform: translateX(-20px); }
html.js:not(.static) .sec-head h2 .word { transform: translateY(110%); opacity: 0; }
html.js:not(.static) .sec-lead { opacity: 0; transform: translateY(14px); }
html.js:not(.static) .about-media img.main { clip-path: inset(0 0 100% 0 round 14px); }
html.js:not(.static) .about-media img.second { opacity: 0; transform: translateY(30px) rotate(-6deg); }
html.js:not(.static) .cv-item { opacity: 0; transform: translateX(26px); }
html[dir="ltr"].js:not(.static) .cv-item { transform: translateX(-26px); }
html.js:not(.static) .svc { opacity: 0; transform: translateY(50px) scale(.96); }
html.js:not(.static) .yt-wrap, html.js:not(.static) .clip-box { clip-path: inset(10% 10% 10% 10% round 14px); opacity: 0; }
html.js:not(.static) .post { opacity: 0; transform: translateY(40px); }
html.js:not(.static) .faq details { opacity: 0; transform: translateX(18px); }
html[dir="ltr"].js:not(.static) .faq details { transform: translateX(-18px); }
html.js:not(.static) .portrait path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
html.js.ready:not(.static) .portrait path { stroke-dashoffset: 0; }
.sec-head h2 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.sec-head h2 .word { display: inline-block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(20px, 4vh, 44px) 0 clamp(36px, 6vh, 72px); min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-wm { position: absolute; inset-inline-end: -6%; bottom: -8%; width: clamp(280px, 38vw, 560px); opacity: .07; pointer-events: none; transform-origin: 50% 90%; }
.hero-logo { width: min(360px, 82%); margin-bottom: 22px; }
html[lang="en"] .hero-logo { width: min(320px, 80%); }
.hero h1 { font-size: clamp(30px, 3.9vw, 52px); margin-bottom: .35em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; }
.hero-lead { font-size: clamp(18px, 1.5vw, 22px); max-width: 34em; margin-bottom: 1.4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .88em; color: var(--muted); margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.hero-note svg { width: 18px; height: 18px; flex: none; }
.portrait { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 440 / 760; }
.portrait img { position: absolute; inset: 5% 5% 0 5%; width: 90%; height: 95%; object-fit: cover; object-position: top; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portrait path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.portrait-tag { position: absolute; bottom: 4%; inset-inline-start: -2%; background: var(--accent); color: var(--surface); padding: 10px 18px; border-radius: 10px; font-size: .88em; line-height: 1.5; box-shadow: 0 16px 30px -18px rgba(4, 39, 74, .8); }
.portrait-tag b { display: block; font-size: 1.05em; }
@media (max-width: 860px) {
  .hero { min-height: calc(100svh - var(--head-h)); padding-top: 14px; padding-bottom: 96px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy { order: 2; text-align: center; }
  .hero-logo, .hero-lead { margin-inline: auto; }
  .hero-logo { width: min(260px, 70%); margin-bottom: 12px; }
  .hero-lead { font-size: 16px; margin-bottom: 1em; }
  .hero-cta, .hero-note { justify-content: center; }
  /* phone: the photo fills the top half of the screen edge-to-edge, text follows below */
  /* the whole first screen must end with the WhatsApp button visible on any phone height */
  .hero { padding-top: 0; padding-bottom: 20px; min-height: 0; }
  .hero .wrap { gap: 10px; }
  .hero-logo { width: min(190px, 56%); margin-bottom: 6px; }
  .hero h1 { font-size: clamp(21px, 6vw, 26px); margin-bottom: .3em; line-height: 1.35; }
  .hero-lead { font-size: 14.5px; line-height: 1.6; margin-bottom: .8em; max-width: 30em; }
  .hero-cta .btn-lg { font-size: .98em; padding: .7em 1.4em; }
  .hero-note { display: none; }
  .portrait { order: 1; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); aspect-ratio: auto; height: clamp(210px, 36svh, 340px); max-width: none; }
  .portrait img { position: static; width: 100%; height: 100%; inset: auto; object-fit: cover; object-position: 50% 28%; border-radius: 0 0 28px 28px; box-shadow: none; }
  .portrait svg { display: none; }
  .portrait-tag { font-size: .72em; padding: 7px 11px; inset-inline-start: var(--gutter); bottom: 14px; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 12px 0; white-space: nowrap; background: var(--surface-2); }
.marquee-track { display: inline-flex; align-items: center; gap: 34px; will-change: transform; color: var(--accent); font-weight: 600; font-size: 1.05em; }
.marquee-track i { font-style: normal; opacity: .45; font-size: .9em; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vh, 110px) 0; position: relative; }
.sec-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.sec, .marquee, .quote, .site-footer, .page-hero, .cta-band, .scene-press { overflow-x: clip; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: start; margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
.sec-no { width: 58px; height: 58px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-weight: 600; font-size: 1.1em; }
.sec-head h2 { margin-bottom: .25em; }
.sec-lead { color: var(--muted); font-size: 1.05em; margin: 0; max-width: 42em; }

/* ---------- about + CV ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-media { position: relative; }
.about-media img.main { border-radius: var(--r); box-shadow: 0 30px 60px -40px rgba(4, 39, 74, .8); }
.about-media img.second { position: absolute; width: 42%; inset-inline-end: -8%; bottom: -14%; border-radius: var(--r); border: 6px solid var(--surface); box-shadow: 0 20px 40px -24px rgba(4, 39, 74, .8); }
.about-copy p { font-size: 1.02em; }
.cv-title { margin-top: 30px; font-size: 1.25em; display: flex; align-items: center; gap: 14px; }
.cv-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cv { list-style: none; margin: 0; padding: 6px 0 0; position: relative; padding-inline-start: 34px; }
.cv-line { position: absolute; inset-inline-start: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.cv-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.cv-item { position: relative; padding: 6px 0 16px; }
.cv-item::before { content: ""; position: absolute; inset-inline-start: -30px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.cv-item small { display: block; color: var(--muted); font-size: .8em; font-weight: 500; }
.cv-item span { color: var(--accent); font-weight: 600; font-size: 1.02em; line-height: 1.5; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } .about-media { margin-bottom: 48px; max-width: 520px; } .about-media img.second { inset-inline-end: 4%; } }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .05); position: relative; overflow: hidden; transform-style: preserve-3d; transition: border-color .45s, box-shadow .45s, background .45s; }
.svc::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.svc:hover { border-color: var(--accent); box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .7); background: rgba(255, 255, 255, .1); }
.svc:hover::after { transform: none; }
.svc-icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: var(--accent); transition: background .45s, color .45s; }
.svc-icon svg { width: 28px; height: 28px; }
.svc:hover .svc-icon { background: var(--accent); color: var(--surface); }
.svc h3 { margin: 6px 0 0; font-size: 1.3em; }
.svc p { margin: 0; color: var(--muted); font-size: .96em; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- videos ---------- */
.video-featured { margin-bottom: 22px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--accent) center/cover no-repeat; border-radius: var(--r); overflow: hidden; cursor: pointer; isolation: isolate; }
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 39, 74, .85), rgba(4, 39, 74, .1) 60%); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--surface); display: grid; place-items: center; transition: transform .4s var(--ease); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.yt .play svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.yt:hover .play { transform: scale(1.1); }
.yt .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 22px; color: var(--accent); font-weight: 600; font-size: 1.05em; line-height: 1.4; }
.yt .cap small { display: block; opacity: .8; font-weight: 400; font-size: .82em; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::before, .yt.is-playing .play, .yt.is-playing .cap { display: none; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-grid .yt .play { width: 56px; height: 56px; } .video-grid .yt .play svg { width: 22px; height: 22px; }
.video-grid .yt .cap { font-size: .92em; padding: 14px 16px; }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.clip-box { background: var(--accent); border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; position: relative; margin: 0; }
.clip-box video { width: 100%; height: 100%; object-fit: contain; background: var(--accent); }
.clip-box figcaption { position: absolute; inset-inline: 0; top: 0; padding: 10px 14px; color: var(--accent); font-size: .85em; background: linear-gradient(rgba(4, 39, 74, .8), transparent); pointer-events: none; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } .clips { grid-template-columns: 1fr 1fr; } }

/* ---------- press: pinned horizontal scene ---------- */
.scene-press { position: relative; background: var(--surface-2); border-block: 1px solid var(--line); }
.press-stage { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0; }
.press-stage .sec-head { margin-bottom: 8px; }
.press-viewport { overflow: hidden; width: 100%; }
.press-track { display: flex; gap: 26px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.press-item { flex: none; width: clamp(280px, 36vw, 560px); color: #1B2A3A; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.press-item figcaption small { color: #5E6B78 !important; }
.press-item img { height: min(52svh, 480px); width: 100%; object-fit: cover; object-position: top; filter: saturate(.9); }
.press-item figcaption { padding: 14px 16px 16px; font-size: .92em; line-height: 1.45; }
.press-item figcaption small { display: block; color: var(--muted); font-size: .85em; margin-bottom: 4px; }
@media (max-width: 860px) { .press-item { width: 78vw; } .press-item img { height: min(50svh, 420px); } .press-stage { gap: 10px; } }
html.static .press-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html.static .press-stage { height: auto; }
html.static .press-item { scroll-snap-align: start; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 39, 74, .94); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: var(--accent); text-align: center; }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246, 233, 220, .5); background: transparent; color: var(--accent); font-size: 26px; cursor: pointer; }
body.lb-open { overflow: hidden; }

/* ---------- articles (background guide, no links on the home page) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255, 255, 255, .05); color: var(--ink); transition: box-shadow .45s, border-color .45s; }
a.post:hover { box-shadow: 0 24px 40px -30px rgba(4, 39, 74, .7); border-color: var(--accent); }
.post-img { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-img img { transform: scale(1.04); }
.post-img.ph { display: grid; place-items: center; } .post-img.ph img { width: 64px; height: 64px; opacity: .25; object-fit: contain; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .82em; color: var(--muted); }
.tag { color: var(--accent); border: 1px solid var(--line-2); border-radius: 999px; padding: .1em .7em; font-weight: 500; }
.post h3 { font-size: 1.18em; margin: 0; line-height: 1.4; }
.post p { margin: 0; color: var(--muted); font-size: .92em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.posts-more { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: .95em; }
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { padding: 26px 22px; border-top: 2px solid var(--accent); }
.why .n { font-size: 2.2em; color: var(--accent); font-weight: 700; line-height: 1; margin-bottom: 10px; opacity: .9; }
.why h3 { font-size: 1.25em; margin-bottom: .3em; }
.why p { color: var(--muted); font-size: .95em; margin: 0; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- quote band ---------- */
.quote { background: var(--accent); color: var(--surface); padding: clamp(56px, 8vw, 96px) 0; text-align: center; position: relative; overflow: hidden; }
.quote img { position: absolute; inset-inline-start: -4%; top: -20%; width: 42%; opacity: .07; pointer-events: none; }
.quote blockquote { margin: 0 auto; max-width: 20em; font-family: var(--font-quote); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.6; font-weight: 400; }
.quote blockquote::before, .quote blockquote::after { content: "“"; opacity: .4; font-size: 1.4em; line-height: 0; vertical-align: -.3em; margin-inline-end: .1em; }
.quote blockquote::after { content: "”"; margin-inline-start: .1em; }
.quote cite { display: block; margin-top: 22px; font-style: normal; opacity: .8; font-size: .95em; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.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: 20px 8px; font-weight: 600; color: var(--accent); font-size: 1.12em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-weight: 400; transition: transform .35s var(--ease), background .35s, color .35s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--surface); }
.faq .ans { padding: 0 8px 22px; max-width: 60em; }
.faq .ans p { margin: 0; }

/* ---------- final CTA band ---------- */
.cta-band { position: relative; background: var(--accent); color: var(--surface); padding: clamp(64px, 10vw, 120px) 0; text-align: center; overflow: hidden; }
.cta-emblem { position: absolute; inset-inline-end: -10%; top: 50%; width: clamp(300px, 40vw, 600px); translate: 0 -50%; opacity: .07; pointer-events: none; }
.cta-band h2 { color: var(--surface); font-size: clamp(32px, 5vw, 60px); margin-bottom: .3em; }
.cta-band h2 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; } .cta-band h2 .word { display: inline-block; }
html.js:not(.static) .cta-band h2 .word { transform: translateY(110%); opacity: 0; }
.cta-lead { max-width: 34em; margin: 0 auto 28px; font-size: 1.1em; opacity: .9; }
.cta-band .btn-lg { font-size: 1.25em; }
.cta-phone { margin: 22px 0 4px; font-size: 1.25em; font-weight: 600; letter-spacing: .02em; }
.cta-phone a, .cta-band a:not(.btn) { color: var(--surface); }
.cta-note { opacity: .75; font-size: .92em; margin: 0; }

/* ---------- footer (compact) ---------- */
.site-footer { background: var(--surface-2); color: rgba(246, 233, 220, .85); padding: 28px 0; border-top: 1px solid rgba(246, 233, 220, .12); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; }
.foot-brand img { width: 46px; height: 46px; }
.foot-brand b { display: block; color: var(--accent); font-size: 1.05em; line-height: 1.2; }
.foot-brand small { display: block; font-size: .78em; opacity: .8; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(246, 233, 220, .35); border-radius: 999px; padding: .35em .9em; font-size: .85em; font-family: var(--font-latin); }
.foot-social svg { width: 16px; height: 16px; }
.foot-legal { display: flex; gap: 10px; font-size: .88em; }
.foot-copy { font-size: .8em; opacity: .75; flex-basis: 100%; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- mobile: section-by-section snapping (touch only; pinned press scene excluded) ---------- */
@media (max-width: 980px) and (pointer: coarse) {
  /* overflow:hidden on html/body turns them into scroll containers on iOS and kills snapping -> use clip */
  html, body { overflow-x: clip; scroll-snap-type: y mandatory; }
  body { scroll-snap-type: none; }
  main > section, .marquee, .site-footer { scroll-snap-align: start; scroll-snap-stop: always; }
  /* the pinned press scene: its spacer (taller than the screen) is the snap area, so the page stops at its
     top and the finger can then rest anywhere inside while the clippings slide */
  .pin-spacer { scroll-snap-align: start; scroll-snap-stop: always; }
  .pin-spacer > .scene-press { scroll-snap-align: none; }
  html { scroll-padding-top: var(--head-h); }
  html.no-snap { scroll-snap-type: none; }
}

/* ---------- inner pages (articles / services / legal) ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.crumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.page-hero h1 { max-width: 24em; font-size: clamp(30px, 4vw, 48px); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .92em; color: var(--muted); flex-wrap: wrap; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); }
.byline b { color: var(--accent); display: block; font-size: 1.05em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 5vw, 56px) 0; align-items: start; }
.prose { max-width: 72ch; font-size: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; padding-top: .4em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.3em; margin-top: 1.3em; }
.prose h4 { font-size: 1.12em; margin-top: 1.1em; }
.prose ul { padding-inline-start: 1.3em; } .prose li { margin-bottom: .35em; }
.prose img.cover { border-radius: var(--r); margin-bottom: 28px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.answer-first { border-inline-start: 3px solid var(--accent); background: rgba(255, 255, 255, .06); padding: 18px 22px; border-radius: 0 10px 10px 0; margin-bottom: 28px; font-size: 1.05em; }
html[dir="rtl"] .answer-first { border-radius: 10px 0 0 10px; }
.answer-first b { color: var(--accent); display: block; margin-bottom: 4px; font-size: .9em; }
.note-box { border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 22px; font-size: .92em; color: var(--muted); margin-top: 36px; background: rgba(255, 255, 255, .05); }
.note-box b { color: var(--accent); }
.aside { position: sticky; top: 24px; display: grid; gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: rgba(255, 255, 255, .05); }
.card h3 { font-size: 1.15em; margin-bottom: .6em; }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95em; line-height: 1.5; }
.card li { padding-inline-start: 14px; position: relative; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card-cta { background: var(--accent); color: var(--surface); border-color: var(--accent); text-align: center; }
.card-cta h3 { color: var(--surface); }
.card-cta p { font-size: .95em; opacity: .9; }
.author-card { display: flex; gap: 14px; align-items: center; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); flex: none; }
.author-card b { display: block; color: var(--accent); }
.author-card small { color: var(--muted); font-size: .85em; line-height: 1.4; display: block; }
.related { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters a { border: 1px solid var(--line-2); border-radius: 999px; padding: .3em 1em; font-size: .92em; }
.filters a:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.cluster-title { margin-top: 44px; font-size: 1.4em; display: flex; align-items: center; gap: 14px; }
.cluster-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.legal-body { max-width: 72ch; padding: clamp(32px, 5vw, 56px) 0; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-size: clamp(80px, 14vw, 140px); color: var(--accent); font-weight: 700; line-height: 1; opacity: .9; }
.notfound img { width: 90px; margin: 0 auto 10px; opacity: .8; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .aside { position: static; } }
@media print { .site-header, .wa-float, .scroll-rule, .aside, .site-footer, .hero-wm { display: none !important; } body { background: #fff; } }
