/* ===========================================================
   ג. בוז'יקובסקי · משרד עורכי דין — Brand Website
   Navy #0E2148 / Gold #B58A2E · Rubik (uniform, headings + body)
   Bilingual HE/EN/RU
   =========================================================== */

/* ---------- Fonts ---------- */
/* Rubik — uniform family for headings + body (Hebrew + Cyrillic + Latin + Latin-ext;
   variable, weights 400-700). One family covers all three languages natively. */
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/Rubik-he.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/Rubik-cy.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/Rubik-la.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: 'Rubik';
  src: url('../assets/fonts/Rubik-lx.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.78rem, 0.73rem + 0.25vw, 0.9rem);
  --text-sm: clamp(0.92rem, 0.85rem + 0.35vw, 1.05rem);
  --text-base: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --text-lg: clamp(1.2rem, 1.05rem + 0.75vw, 1.6rem);
  --text-xl: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem);

  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem;
  --space-12:3rem; --space-16:4rem; --space-20:5rem; --space-24:6rem; --space-32:8rem;

  --radius-sm:.375rem; --radius-md:.5rem; --radius-lg:.75rem; --radius-xl:1rem; --radius-full:9999px;
  --transition:180ms cubic-bezier(0.16,1,0.3,1);

  --content-narrow:680px; --content-default:1000px; --content-wide:1240px;

  --font-body:'Rubik', -apple-system, 'Segoe UI', system-ui, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-head:'Rubik', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Light theme (brand) ---------- */
:root, [data-theme="light"] {
  --navy:#0E2148; --navy-2:#1C3A6E; --gold:#B58A2E; --gold-l:#C9A24B;

  --color-bg:#F7F6F2;
  --color-surface:#FFFFFF;
  --color-surface-2:#FBFAF6;
  --color-surface-offset:#EFEDE6;
  --color-border:#E2DED4;
  --color-divider:#ECE9E1;

  --color-text:#1A2236;
  --color-text-muted:#5A6276;
  --color-text-faint:#9AA0AE;
  --color-text-inverse:#F7F6F2;

  --color-primary:var(--navy);
  --color-primary-hover:var(--navy-2);
  --color-accent:var(--gold);
  --color-accent-hover:#9E7726;

  --color-hero-overlay:linear-gradient(90deg, rgba(14,33,72,0.92) 0%, rgba(14,33,72,0.78) 42%, rgba(14,33,72,0.55) 100%);

  --shadow-sm:0 1px 2px rgba(14,33,72,.06);
  --shadow-md:0 6px 24px rgba(14,33,72,.10);
  --shadow-lg:0 18px 48px rgba(14,33,72,.16);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --color-bg:#0B1428;
  --color-surface:#11203F;
  --color-surface-2:#152545;
  --color-surface-offset:#172A4E;
  --color-border:#243a63;
  --color-divider:#1c2f54;

  --color-text:#E8EBF2;
  --color-text-muted:#A6B0C6;
  --color-text-faint:#6E7997;
  --color-text-inverse:#0B1428;

  --color-primary:#E8EBF2;
  --color-primary-hover:#FFFFFF;
  --color-accent:#C9A24B;
  --color-accent-hover:#D9B665;

  --color-hero-overlay:linear-gradient(90deg, rgba(7,16,36,0.94) 0%, rgba(7,16,36,0.82) 42%, rgba(7,16,36,0.55) 100%);

  --shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --shadow-md:0 6px 24px rgba(0,0,0,.4);
  --shadow-lg:0 18px 48px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:#0B1428; --color-surface:#11203F; --color-surface-2:#152545;
    --color-surface-offset:#172A4E; --color-border:#243a63; --color-divider:#1c2f54;
    --color-text:#E8EBF2; --color-text-muted:#A6B0C6; --color-text-faint:#6E7997;
    --color-text-inverse:#0B1428; --color-primary:#E8EBF2; --color-primary-hover:#FFFFFF;
    --color-accent:#C9A24B; --color-accent-hover:#D9B665;
    --color-hero-overlay:linear-gradient(90deg, rgba(7,16,36,0.94) 0%, rgba(7,16,36,0.82) 42%, rgba(7,16,36,0.55) 100%);
  }
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{
  -webkit-text-size-adjust:none;text-size-adjust:none;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;scroll-behavior:smooth;scroll-padding-top:5rem;scroll-padding-block-end:5rem;
}
body{
  min-height:100dvh;line-height:1.75;font-family:var(--font-body);
  font-size:var(--text-base);color:var(--color-text);background:var(--color-bg);
  transition:background var(--transition),color var(--transition);
}
img,svg,picture,video{display:block;max-width:100%;height:auto}
ul[role="list"]{list-style:none}
input,button,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:none}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-head);text-wrap:balance;line-height:1.22;font-weight:700;letter-spacing:-.01em}
p{text-wrap:pretty}
::selection{background:rgba(181,138,46,.28);color:var(--color-text)}
:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px;border-radius:var(--radius-sm)}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

a,button,[role="button"],input,textarea,select{
  transition:color var(--transition),background var(--transition),border-color var(--transition),box-shadow var(--transition),transform var(--transition),opacity var(--transition);
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Bilingual visibility ---------- */
/* three-language visibility: he / en / ru */
html[lang="he"] .en,html[lang="he"] .ru{display:none!important}
html[lang="en"] .he,html[lang="en"] .ru{display:none!important}
html[lang="ru"] .he,html[lang="ru"] .en{display:none!important}

/* ---------- Layout ---------- */
.wrap{width:min(100% - 2.5rem, var(--content-wide));margin-inline:auto}
.wrap-narrow{width:min(100% - 2.5rem, var(--content-narrow));margin-inline:auto}
.wrap-default{width:min(100% - 2.5rem, var(--content-default));margin-inline:auto}
section{padding-block:clamp(var(--space-16),9vw,var(--space-32))}
.section-sm{padding-block:clamp(var(--space-12),6vw,var(--space-20))}

.eyebrow{
  display:inline-flex;align-items:center;gap:var(--space-2);
  font-size:var(--text-xs);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--color-accent);
}
.eyebrow::before{content:"";width:1.75rem;height:1px;background:var(--color-accent);display:inline-block}
.section-title{font-size:var(--text-xl);color:var(--color-text);margin-block:var(--space-3) var(--space-4)}
.lead{font-size:var(--text-lg);color:var(--color-text-muted);max-width:60ch;line-height:1.6}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);
  padding:.85rem 1.6rem;font-size:var(--text-sm);font-weight:600;
  border-radius:var(--radius-md);border:1.5px solid transparent;line-height:1;
}
.btn svg{width:1.1em;height:1.1em;flex:none}
.btn-primary{background:var(--color-accent);color:#1A1405;border-color:var(--color-accent)}
.btn-primary:hover{background:var(--color-accent-hover);border-color:var(--color-accent-hover);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-outline{border-color:currentColor;color:var(--color-text)}
.btn-outline:hover{background:var(--color-text);color:var(--color-bg);transform:translateY(-2px)}
.btn-ghost-light{border-color:rgba(255,255,255,.4);color:#fff}
.btn-ghost-light:hover{background:rgba(255,255,255,.12);border-color:#fff;transform:translateY(-2px)}
.btn-wa{background:#25D366;color:#04321A;border-color:#25D366}
.btn-wa:hover{background:#1eb858;border-color:#1eb858;transform:translateY(-2px);box-shadow:var(--shadow-md)}

/* ===========================================================
   Header
   =========================================================== */
.header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color var(--transition),box-shadow var(--transition),background var(--transition);
}
.header.scrolled{border-bottom-color:var(--color-border);box-shadow:var(--shadow-sm)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);height:4.5rem}
.brand{display:flex;align-items:center;gap:.7rem;font-weight:700}
.brand .mono{width:2.4rem;height:2.4rem;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text .b-name{font-size:1rem;color:var(--color-text)}
.brand-text .b-sub{font-size:.66rem;font-weight:500;letter-spacing:.05em;color:var(--color-accent)}

.nav-links{display:flex;align-items:center;gap:var(--space-1)}
.nav-links a{
  padding:.5rem .85rem;font-size:var(--text-sm);font-weight:500;
  color:var(--color-text-muted);border-radius:var(--radius-sm);position:relative;
}
.nav-links a:hover{color:var(--color-text)}
.nav-links a.active{color:var(--color-text);font-weight:600}
.nav-links a.active::after{
  content:"";position:absolute;inset-inline:.85rem;bottom:.15rem;height:2px;
  background:var(--color-accent);border-radius:2px;
}
.nav-actions{display:flex;align-items:center;gap:var(--space-2)}
.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.4rem;height:2.4rem;border-radius:var(--radius-md);
  color:var(--color-text-muted);border:1px solid var(--color-border);
}
.icon-btn:hover{color:var(--color-text);border-color:var(--color-text-faint);background:var(--color-surface)}
.lang-btn{width:auto;padding-inline:.8rem;font-size:var(--text-sm);font-weight:600;gap:.35rem}
.lang-seg{display:inline-flex;align-items:stretch;height:2.4rem;border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden}
.lang-seg button{padding-inline:.65rem;font-size:var(--text-sm);font-weight:600;color:var(--color-text-muted);background:transparent;border:0;cursor:pointer;font-family:inherit;line-height:1}
.lang-seg button+button{border-inline-start:1px solid var(--color-border)}
.lang-seg button:hover{color:var(--color-text);background:var(--color-surface)}
.lang-seg button.active{color:#fff;background:var(--color-navy,#0E2148)}
html[data-theme="dark"] .lang-seg button.active{color:#171614;background:var(--color-accent)}
.nav-cta{display:inline-flex}

.burger{display:none}
.mobile-menu{display:none}

/* ===========================================================
   Hero
   =========================================================== */
.hero{position:relative;min-height:clamp(560px,86vh,820px);display:flex;align-items:center;overflow:hidden;isolation:isolate}
.hero-bg{position:absolute;inset:0;z-index:-2}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-overlay{position:absolute;inset:0;z-index:-1;background:var(--color-hero-overlay)}
html[dir="ltr"] .hero-overlay{background:linear-gradient(270deg, rgba(14,33,72,0.92) 0%, rgba(14,33,72,0.78) 42%, rgba(14,33,72,0.55) 100%)}
[data-theme="dark"] html[dir="ltr"] .hero-overlay,
html[dir="ltr"] [data-theme="dark"] .hero-overlay{background:linear-gradient(270deg, rgba(7,16,36,0.94) 0%, rgba(7,16,36,0.82) 42%, rgba(7,16,36,0.55) 100%)}
.hero-content{max-width:48rem;color:#fff;padding-block:var(--space-16)}
/* ---------- Hero promo banner ---------- */
.hero-promo{position:absolute;inset-block-start:0;inset-inline:0;z-index:1;padding-block:var(--space-3);display:flex;justify-content:center;pointer-events:none}
.hero-promo-inner{pointer-events:auto;display:flex;align-items:center;gap:var(--space-5);width:min(100% - 2.5rem, var(--content-wide));padding:.6rem 1rem;background:rgba(14,33,72,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(201,162,75,.45);border-radius:var(--radius-md);box-shadow:0 6px 24px rgba(0,0,0,.18)}
[data-theme="dark"] .hero-promo-inner{background:rgba(7,16,36,.78);border-color:rgba(201,162,75,.5)}
.hero-promo-brand{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.hero-promo-mono{width:2.4rem;height:2.4rem;flex-shrink:0}
.hero-promo-name{font-size:var(--text-sm);font-weight:600;color:#fff;line-height:1.2;white-space:nowrap}
.hero-promo-details{display:flex;flex-wrap:wrap;align-items:center;gap-inline:var(--space-5);gap-block:.15rem;flex:1;min-width:0;margin:0}
.hero-promo-details li{display:flex;align-items:center;gap:.4rem;font-size:var(--text-sm);color:rgba(255,255,255,.9);white-space:nowrap}
.hero-promo-details svg{width:.95rem;height:.95rem;color:var(--gold-l);flex-shrink:0}
.hero-promo-details a{color:rgba(255,255,255,.9);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.hero-promo-details a:hover{border-bottom-color:var(--gold-l)}
.hero-promo-details .dot{color:rgba(201,162,75,.7);margin-inline:.15rem}
.hero-promo-qr{display:flex;align-items:center;gap:.5rem;flex-shrink:0;padding-inline-start:var(--space-4);border-inline-start:1px solid rgba(201,162,75,.3)}
.hero-promo-qr img{width:3.4rem;height:3.4rem;border-radius:6px;background:#F7F6F2;padding:3px;display:block}
.hero-promo-qr-lbl{font-size:var(--text-xs);color:var(--gold-l);font-weight:600;line-height:1.2;max-width:5rem;text-align:center}
@media (max-width:760px){
  .hero{flex-direction:column;justify-content:center;gap:var(--space-3);padding-block:var(--space-4)}
  .hero-promo{position:relative;padding:0;margin:0}
  .hero-promo-inner{flex-wrap:wrap;gap:.5rem .8rem;padding:.55rem .7rem}
  .hero-promo-name{white-space:normal}
  .hero-promo-details{order:3;flex:0 0 100%;gap-inline:var(--space-4);gap-block:.2rem;align-items:flex-start}
  .hero-promo-details li{font-size:.72rem}
  .hero-promo-qr{padding-inline-start:0;border-inline-start:0;margin-inline-start:auto}
  .hero-promo-qr img{width:2.8rem;height:2.8rem}
  .hero-promo-qr-lbl{display:none}
  .hero-content{padding-block:0}
}
.hero .eyebrow{color:var(--gold-l)}
.hero .eyebrow::before{background:var(--gold-l)}
.hero h1{font-size:var(--text-2xl);color:#fff;margin-block:var(--space-4) var(--space-5);letter-spacing:-.02em}
.hero .hero-sub{font-size:var(--text-lg);color:rgba(255,255,255,.86);max-width:46ch;margin-bottom:var(--space-4);line-height:1.55}
.hero .hero-areas{display:flex;flex-wrap:wrap;gap:.5rem .65rem;margin-bottom:var(--space-8)}
.hero .hero-areas span{
  font-size:var(--text-xs);font-weight:500;color:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-full);
  padding:.4rem .85rem;backdrop-filter:blur(4px);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}

/* ===========================================================
   Practice areas grid
   =========================================================== */
.areas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-5);margin-top:var(--space-12)}
.area-card{
  background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-lg);padding:var(--space-8) var(--space-6);
  box-shadow:var(--shadow-sm);position:relative;overflow:hidden;
}
.area-card::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--color-accent);transform:scaleY(0);transform-origin:top;transition:transform var(--transition)}
.area-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--color-text-faint)}
.area-card:hover::before{transform:scaleY(1)}
.area-icon{width:3rem;height:3rem;border-radius:var(--radius-md);background:color-mix(in srgb,var(--color-accent) 14%,transparent);color:var(--color-accent);display:flex;align-items:center;justify-content:center;margin-bottom:var(--space-5)}
.area-icon svg{width:1.5rem;height:1.5rem}
.area-card h3{font-size:var(--text-lg);margin-bottom:var(--space-3);color:var(--color-text)}
.area-card p{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.6}
.area-card .area-list{margin-top:var(--space-4);display:flex;flex-direction:column;gap:.4rem}
.area-card .area-list li{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:flex-start;gap:.5rem}
.area-card .area-list li::before{content:"";width:.4rem;height:.4rem;margin-top:.6rem;border-radius:50%;background:var(--color-accent);flex:none}

/* ===========================================================
   Split / About
   =========================================================== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(var(--space-8),5vw,var(--space-20));align-items:center}
.split.portrait-side{grid-template-columns:.85fr 1.15fr}
.portrait-frame{position:relative}
.portrait-frame img{width:100%;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);position:relative;z-index:1}
.portrait-frame::after{content:"";position:absolute;inset-inline-end:-1rem;inset-block-end:-1rem;width:60%;height:60%;border:2px solid var(--color-accent);border-radius:var(--radius-lg);z-index:0}
.about-text p{color:var(--color-text-muted);margin-bottom:var(--space-4);line-height:1.75}
.about-text p strong{color:var(--color-text);font-weight:600}
.creds{display:flex;flex-wrap:wrap;gap:var(--space-6);margin-top:var(--space-8);padding-top:var(--space-6);border-top:1px solid var(--color-divider)}
.cred-item .num{font-size:var(--text-xl);font-weight:700;color:var(--color-accent);line-height:1}
.cred-item .lbl{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:.35rem}

/* ===========================================================
   Band (navy CTA strip)
   =========================================================== */
.band{background:var(--navy);color:#fff;position:relative;overflow:hidden}
[data-theme="dark"] .band{background:var(--color-surface);border-block:1px solid var(--color-border)}
.band .wrap{position:relative;z-index:1}
.band-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);flex-wrap:wrap}
.band h2{font-size:var(--text-xl);color:#fff;margin-bottom:var(--space-2)}
.band p{color:rgba(255,255,255,.78);max-width:46ch}
[data-theme="dark"] .band h2{color:var(--color-text)}
[data-theme="dark"] .band p{color:var(--color-text-muted)}
.band-mono{position:absolute;inset-inline-end:-3rem;inset-block:50%;translate:0 -50%;opacity:.07;width:18rem;height:18rem}

/* ===========================================================
   Page hero (interior)
   =========================================================== */
.page-hero{background:var(--navy);color:#fff;padding-block:clamp(var(--space-16),10vw,var(--space-24))}
[data-theme="dark"] .page-hero{background:var(--color-surface);border-bottom:1px solid var(--color-border)}
.page-hero .eyebrow{color:var(--gold-l)}
.page-hero .eyebrow::before{background:var(--gold-l)}
.page-hero h1{font-size:var(--text-2xl);color:#fff;margin-block:var(--space-3) var(--space-4)}
[data-theme="dark"] .page-hero h1{color:var(--color-text)}
.page-hero p{color:rgba(255,255,255,.8);max-width:56ch;font-size:var(--text-lg)}
[data-theme="dark"] .page-hero p{color:var(--color-text-muted)}

/* ===========================================================
   Detailed practice list (practice page)
   =========================================================== */
.practice-block{display:grid;grid-template-columns:auto 1fr;gap:var(--space-6);padding-block:var(--space-10);border-bottom:1px solid var(--color-divider)}
.practice-block:last-child{border-bottom:none}
.practice-block .pb-icon{width:3.5rem;height:3.5rem;border-radius:var(--radius-md);background:color-mix(in srgb,var(--color-accent) 14%,transparent);color:var(--color-accent);display:flex;align-items:center;justify-content:center}
.practice-block .pb-icon svg{width:1.7rem;height:1.7rem}
.practice-block h3{font-size:var(--text-lg);margin-bottom:var(--space-3)}
.practice-block p{color:var(--color-text-muted);margin-bottom:var(--space-4);line-height:1.7}
.practice-block .tags{display:flex;flex-wrap:wrap;gap:.5rem}
.practice-block .tags span{font-size:var(--text-xs);font-weight:500;color:var(--color-text-muted);background:var(--color-surface-offset);border-radius:var(--radius-full);padding:.35rem .8rem}
.practice-block .pb-sub{font-weight:600;color:var(--color-text);margin-bottom:var(--space-3);font-size:var(--text-sm)}
.pb-groups{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4) var(--space-6);margin-bottom:var(--space-5)}
.pb-group{padding-inline-start:var(--space-4);border-inline-start:2px solid color-mix(in srgb,var(--color-accent) 40%,transparent)}
.pb-group h4{font-size:var(--text-sm);font-weight:600;color:var(--color-text);margin-bottom:.35rem}
.pb-group p{font-size:var(--text-sm);color:var(--color-text-muted);margin-bottom:0;line-height:1.6}

/* ===========================================================
   Hero tagline (One-Liner) + Core values
   =========================================================== */
.hero-tagline{margin-top:var(--space-5);font-size:var(--text-base);font-weight:500;color:var(--gold-l);letter-spacing:.01em}
[data-theme="dark"] .hero-tagline{color:var(--gold-l)}
.values-section{background:var(--color-bg)}
.values-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--space-6);margin-top:var(--space-10)}
.value-item{text-align:center}
.value-icon{width:3rem;height:3rem;margin:0 auto var(--space-3);border-radius:var(--radius-md);background:color-mix(in srgb,var(--color-accent) 14%,transparent);color:var(--color-accent);display:flex;align-items:center;justify-content:center}
.value-icon svg{width:1.5rem;height:1.5rem}
.value-item h3{font-size:var(--text-base);margin-bottom:var(--space-2)}
.value-item p{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.6}

/* ===========================================================
   Guides / Articles (content page)
   =========================================================== */
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6);margin-top:var(--space-4)}
.article-card{display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-6);box-shadow:var(--shadow-sm);transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,border-color .3s}
.article-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--color-text-faint)}
.article-cat{display:inline-block;align-self:flex-start;font-size:var(--text-xs);font-weight:600;color:var(--color-accent);background:color-mix(in srgb,var(--color-accent) 12%,transparent);border-radius:var(--radius-full);padding:.3rem .8rem;margin-bottom:var(--space-4)}
.article-card h3{font-size:var(--text-lg);line-height:1.35;margin-bottom:var(--space-3)}
.article-card p{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.6;margin-bottom:var(--space-5);flex:1}
.article-more{font-size:var(--text-sm);font-weight:600;color:var(--color-accent);display:inline-flex;align-items:center;gap:.4rem}
.article-more svg{width:1rem;height:1rem;transition:transform .25s}
.article-card:hover .article-more svg{transform:translateX(-4px)}
html[lang="en"] .article-card:hover .article-more svg,html[lang="ru"] .article-card:hover .article-more svg{transform:translateX(4px)}
html[lang="en"] .article-more svg,html[lang="ru"] .article-more svg{transform:scaleX(-1)}
.content-note{margin-top:var(--space-12);padding:var(--space-5) var(--space-6);background:var(--color-surface-offset);border-radius:var(--radius-md);border-inline-start:3px solid var(--color-accent);font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.6}

/* ===========================================================
   Brand promise + language strip (about page)
   =========================================================== */
.promise-band{background:var(--navy);color:#fff}
[data-theme="dark"] .promise-band{background:var(--color-surface);border-block:1px solid var(--color-border)}
.promise-inner{max-width:52rem;margin-inline:auto;text-align:center}
.promise-mark{width:2.6rem;height:2.6rem;color:var(--gold-l);margin-bottom:var(--space-5)}
.promise-text{font-size:var(--text-xl);font-weight:500;line-height:1.5;color:#fff}
[data-theme="dark"] .promise-text{color:var(--color-text)}
.promise-oneliner{display:block;margin-top:var(--space-5);font-size:var(--text-base);font-weight:600;color:var(--gold-l);letter-spacing:.01em}
.lang-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem;margin-top:var(--space-10);padding-top:var(--space-8);border-top:1px solid var(--color-divider)}
.lang-strip-label{font-size:var(--text-sm);font-weight:600;color:var(--color-text);margin-inline-end:var(--space-2)}
.lang-chip{font-size:var(--text-sm);font-weight:500;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-full);padding:.4rem 1rem}

/* ===========================================================
   Accessibility banner (contact page)
   =========================================================== */
.access-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6)}
.access-item{display:flex;gap:var(--space-4);align-items:flex-start}
.access-icon{flex:none;width:2.6rem;height:2.6rem;border-radius:var(--radius-md);background:color-mix(in srgb,var(--color-accent) 14%,transparent);color:var(--color-accent);display:flex;align-items:center;justify-content:center}
.access-icon svg{width:1.4rem;height:1.4rem}
.access-item h3{font-size:var(--text-base);margin-bottom:.3rem}
.access-item p{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.55}
.access-langs{margin-top:var(--space-8);text-align:center;font-size:var(--text-sm);font-weight:500;color:var(--color-text-muted)}
.footer-handle{direction:ltr;unicode-bidi:plaintext}

/* ===========================================================
   Floating WhatsApp button
   =========================================================== */
.wa-fab{position:fixed;bottom:1.4rem;inset-inline-end:1.4rem;z-index:200;width:3.5rem;height:3.5rem;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.16);transition:transform .2s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent}
.wa-fab svg{width:1.9rem;height:1.9rem;display:block}
.wa-fab:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 10px 24px rgba(0,0,0,.28),0 3px 8px rgba(0,0,0,.18);color:#fff}
.wa-fab:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.wa-fab::before{content:"";position:absolute;inset:0;border-radius:50%;background:#25D366;z-index:-1;animation:wa-pulse 2.6s ease-out infinite}
@keyframes wa-pulse{0%{transform:scale(1);opacity:.55}70%{transform:scale(1.7);opacity:0}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.wa-fab{transition:none}.wa-fab:hover{transform:none}.wa-fab::before{animation:none;display:none}}
@media (max-width:760px){.wa-fab{bottom:1.1rem;inset-inline-end:1.1rem;width:3.2rem;height:3.2rem}.wa-fab svg{width:1.75rem;height:1.75rem}body{padding-block-end:4.5rem}}

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(var(--space-8),5vw,var(--space-16));align-items:start}
.contact-methods{display:flex;flex-direction:column;gap:var(--space-4)}
.contact-card{
  display:flex;align-items:center;gap:var(--space-4);
  background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-lg);padding:var(--space-5) var(--space-6);box-shadow:var(--shadow-sm);
}
.contact-card:hover{border-color:var(--color-text-faint);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.contact-card .cc-icon{width:2.8rem;height:2.8rem;border-radius:var(--radius-md);flex:none;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-accent) 14%,transparent);color:var(--color-accent)}
.contact-card .cc-icon svg{width:1.4rem;height:1.4rem}
.contact-card .cc-label{font-size:var(--text-xs);color:var(--color-text-muted);margin-bottom:.15rem}
.contact-card .cc-value{font-size:var(--text-base);font-weight:600;color:var(--color-text);direction:ltr;unicode-bidi:plaintext}
html[lang="he"] .contact-card .cc-body{text-align:start}

.contact-form{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:clamp(var(--space-6),4vw,var(--space-10));box-shadow:var(--shadow-md)}
.field{margin-bottom:var(--space-4)}
.field label{display:block;font-size:var(--text-sm);font-weight:500;margin-bottom:.4rem;color:var(--color-text)}
.field input,.field textarea{
  width:100%;padding:.8rem 1rem;font-size:var(--text-sm);
  background:var(--color-bg);border:1.5px solid var(--color-border);
  border-radius:var(--radius-md);color:var(--color-text);
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--color-accent);box-shadow:0 0 0 3px rgba(181,138,46,.15)}
.field textarea{resize:vertical;min-height:7rem}
.form-note{font-size:var(--text-xs);color:var(--color-text-faint);margin-top:var(--space-3);text-align:center}
.map-embed{margin-top:var(--space-6);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--color-border);box-shadow:var(--shadow-sm)}
.map-embed iframe{width:100%;height:280px;border:0;display:block;filter:grayscale(.25)}
[data-theme="dark"] .map-embed iframe{filter:grayscale(.4) invert(.9) hue-rotate(180deg)}

/* ===========================================================
   Footer
   =========================================================== */
.footer{background:var(--navy);color:rgba(255,255,255,.78);padding-block:var(--space-16) var(--space-8)}
[data-theme="dark"] .footer{background:var(--color-surface);border-top:1px solid var(--color-border)}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:var(--space-10);padding-bottom:var(--space-10);border-bottom:1px solid rgba(255,255,255,.12)}
[data-theme="dark"] .footer-top{border-bottom-color:var(--color-border)}
.footer .brand .b-name{color:#fff}
[data-theme="dark"] .footer .brand .b-name{color:var(--color-text)}
.footer-blurb{margin-top:var(--space-4);font-size:var(--text-sm);max-width:36ch;line-height:1.6}
.footer h4{font-size:var(--text-sm);color:#fff;margin-bottom:var(--space-4);font-weight:600}
[data-theme="dark"] .footer h4{color:var(--color-text)}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:.6rem}
.footer ul a,.footer ul li{font-size:var(--text-sm);color:rgba(255,255,255,.72)}
[data-theme="dark"] .footer ul a,[data-theme="dark"] .footer ul li{color:var(--color-text-muted)}
.footer ul a:hover{color:var(--gold-l)}
.footer-contact-val{direction:ltr;unicode-bidi:plaintext;display:inline-block}
html[lang="he"] .footer-contact li{display:flex;justify-content:flex-start;gap:.4rem}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-3);padding-top:var(--space-8);font-size:var(--text-xs);color:rgba(255,255,255,.55)}
[data-theme="dark"] .footer-bottom{color:var(--color-text-faint)}

/* ===========================================================
   Reveal animation
   Content is visible by default. When JS is present it adds
   .reveal-ready to <html>, which hides reveal elements and then
   the .in class (added on scroll/load) animates them in. If JS
   never runs, content simply stays visible. Reduced-motion users
   get instant visibility.
   =========================================================== */
.reveal{opacity:1;transform:none}
html.reveal-ready .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)}
html.reveal-ready .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html.reveal-ready .reveal{opacity:1;transform:none;transition:none}
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width:920px){
  .areas-grid{grid-template-columns:1fr 1fr}
  .footer-top{grid-template-columns:1fr 1fr}
  .values-grid{grid-template-columns:repeat(3,1fr);row-gap:var(--space-8)}
  .articles-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .nav-links{display:none}
  .nav-cta{display:none}
  .burger{display:inline-flex}
  .nav-actions{gap:.4rem}
  .lang-seg{height:2.2rem}
  .lang-seg button{padding-inline:.4rem;font-size:.75rem}
  .split,.split.portrait-side,.contact-grid{grid-template-columns:1fr}
  .split.portrait-side .portrait-frame{max-width:22rem;margin-inline:auto}
  .areas-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .values-grid{grid-template-columns:1fr 1fr;row-gap:var(--space-8)}
  .articles-grid{grid-template-columns:1fr}
  .access-grid{grid-template-columns:1fr;gap:var(--space-5)}
  .pb-groups{grid-template-columns:1fr}
  .practice-block{grid-template-columns:1fr;gap:var(--space-4)}
  .band-inner{flex-direction:column;align-items:flex-start}
  .mobile-menu{
    display:none;position:fixed;inset:4.5rem 0 0;z-index:49;
    background:var(--color-bg);padding:var(--space-6);flex-direction:column;gap:var(--space-1);
  }
  .mobile-menu.open{display:flex}
  .mobile-menu a{padding:var(--space-4);font-size:var(--text-lg);font-weight:500;border-bottom:1px solid var(--color-divider);color:var(--color-text)}
  .mobile-menu .btn{margin-top:var(--space-4)}
}

/* ---------- Content pillars: filter bar + pillar tags ---------- */
.filter-bar{display:flex;flex-wrap:wrap;gap:.55rem;margin-block:var(--space-2) var(--space-8)}
.filter-chip{font-family:inherit;font-size:var(--text-sm);font-weight:600;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-full);padding:.45rem 1.05rem;cursor:pointer;transition:color .25s,background .25s,border-color .25s,transform .25s}
.filter-chip:hover{color:var(--color-text);border-color:var(--color-text-faint);transform:translateY(-1px)}
.filter-chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}
[data-theme="dark"] .filter-chip.active{background:var(--color-accent);color:#1A1405;border-color:var(--color-accent)}
.card-tags{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:var(--space-4)}
.card-tags .article-cat{margin-bottom:0}
.pillar-tag{display:inline-block;font-size:var(--text-xs);font-weight:500;color:var(--color-text-muted);border:1px solid var(--color-border);border-radius:var(--radius-full);padding:.3rem .8rem}

/* ---------- Article pages ---------- */
.article-hero h1{max-width:26ch}
.article-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:var(--space-4)}
.article-hero .article-cat{margin-bottom:0;color:var(--gold-l);background:color-mix(in srgb,#C9A24B 16%,transparent)}
.article-hero .pillar-tag{color:rgba(255,255,255,.75);border-color:rgba(255,255,255,.28)}
[data-theme="dark"] .article-hero .pillar-tag{color:var(--color-text-muted);border-color:var(--color-border)}
.article-meta{margin-top:var(--space-4);font-size:var(--text-sm);color:rgba(255,255,255,.65)}
[data-theme="dark"] .article-meta{color:var(--color-text-muted)}
.article-section{padding-block:clamp(var(--space-12),7vw,var(--space-20))}
.article-body{font-size:var(--text-base);line-height:1.75;color:var(--color-text)}
.article-body p{margin-bottom:var(--space-5);color:var(--color-text)}
.article-body p em{color:var(--color-text-muted);font-size:var(--text-sm)}
.article-body h2{font-size:var(--text-xl);line-height:1.3;margin-block:var(--space-10) var(--space-4);position:relative;padding-inline-start:var(--space-4)}
.article-body h2::before{content:"";position:absolute;inset-inline-start:0;top:.22em;bottom:.22em;width:3px;border-radius:2px;background:var(--color-accent)}
.article-body ul{list-style:none;margin-bottom:var(--space-6);display:grid;gap:var(--space-3)}
.article-body ul li{position:relative;padding-inline-start:1.6rem}
.article-body ul li::before{content:"";position:absolute;inset-inline-start:.2rem;top:.62em;width:.5rem;height:.5rem;border-radius:50%;background:color-mix(in srgb,var(--color-accent) 55%,transparent);outline:1.5px solid var(--color-accent);outline-offset:2px}
.article-body strong{font-weight:600}
.article-back{display:inline-flex;align-items:center;gap:.5rem;margin-top:var(--space-8);font-size:var(--text-sm);font-weight:600;color:var(--color-accent)}
.article-back svg{width:1rem;height:1rem}
html[lang="en"] .article-back svg,html[lang="ru"] .article-back svg{transform:scaleX(-1)}
.article-back:hover{color:var(--color-accent-hover)}

@media (max-width:760px){
  .filter-bar{gap:.45rem}
  .filter-chip{padding:.4rem .85rem}
  .article-body h2{margin-block:var(--space-8) var(--space-3)}
}

/* Skip link (accessibility) */
.skip-link{position:absolute;top:-100px;inset-inline-start:12px;z-index:300;background:var(--navy);color:#fff;padding:.6rem 1.1rem;border-radius:0 0 10px 10px;font-weight:600;font-size:var(--text-sm);transition:top .15s ease}
.skip-link:focus{top:0}
/* Footer legal links */
.footer-legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer-legal a:hover{color:var(--gold-l)}
[data-theme="dark"] .footer-legal a:hover{color:var(--gold-l)}
/* Long-word wrapping for RU headings on narrow screens */
.page-hero h1,.article-body h2{overflow-wrap:break-word}
