/* =========================================================================
   Naama Cohen Law Office — site design system
   Evolves the original look (white, bronze accent #a05a1c, Heebo) into a
   consistent, accessible (WCAG 2.0 AA / IS 5568) theme.
   ========================================================================= */

:root {
    --ink: #1c2434;            /* body text / headings */
    --ink-soft: #4a5263;       /* secondary text (7.4:1 on white) */
    --navy: #1f2d4a;           /* primary actions */
    --navy-hover: #15203a;
    --bronze: #a05a1c;         /* brand accent (5.1:1 on white) */
    --bronze-dark: #7f4613;
    --bronze-soft: rgba(160, 90, 28, 0.08);
    --gold: #c9a24a;           /* decorative only, never for text */
    --paper: #faf8f5;          /* page background */
    --surface: #ffffff;
    --line: #e8e2d9;
    --focus: #0b5fff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(28, 36, 52, .06), 0 2px 8px rgba(28, 36, 52, .05);
    --shadow-md: 0 6px 24px rgba(28, 36, 52, .09);
    --font-body: 'IBM Plex Sans Hebrew', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-display: var(--font-body);
    --header-h: 76px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }   /* off-canvas reveal transforms must never cause sideways scroll */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

a { color: var(--bronze-dark); text-underline-offset: .2em; }
a:hover { color: var(--bronze); }

/* ---------- Focus & skip link (keyboard users) ---------- */
:focus-visible {
    outline: 3px solid var(--focus) !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}
.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--navy);
    color: #fff;
    padding: .6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: top .15s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; width: 1px !important; height: 1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.5rem; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.08rem; }
.btn-brand { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent { background: var(--bronze); color: #fff; border: 2px solid var(--bronze); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--bronze-dark); border-color: var(--bronze-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid currentColor; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Keep pages that still use Bootstrap's .btn-primary on-brand */
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-hover); border-color: var(--navy-hover); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding-block: .5rem; transition: min-height .25s; }
.site-header.is-scrolled .navbar { min-height: 62px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 44px; height: 44px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em;
    box-shadow: inset 0 0 0 2px var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }

.site-nav .nav-link {
    position: relative;
    color: var(--ink) !important;
    font-weight: 500;
    padding: .5rem .85rem !important;
}
.site-nav .nav-link::after {
    content: ""; position: absolute; inset-inline: .85rem; bottom: .2rem; height: 2px;
    background: var(--bronze); transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--bronze-dark) !important; }

.lang-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.lang-link:hover { border-color: var(--bronze); color: var(--bronze-dark); }

.navbar-toggler { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .6rem; }
@media (max-width: 991.98px) {
    .site-nav { padding-block: .75rem 1rem; }
    .site-nav .nav-link::after { display: none; }
    .header-actions { padding-bottom: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--bronze-dark); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 2.75rem; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-lead { color: var(--ink-soft); font-size: 1.12rem; }

/* Page hero (inner pages) */
.page-hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(201, 162, 74, .14), transparent 60%),
        linear-gradient(180deg, #fff, var(--paper));
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    text-align: center;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 760px; margin-inline: auto; margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 10% 10%, rgba(201, 162, 74, .16), transparent 60%),
        radial-gradient(700px 400px at 95% 90%, rgba(31, 45, 74, .07), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--paper) 100%);
    padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.hero-title { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); margin-bottom: 1rem; }
.hero-title .accent { color: var(--bronze); }
.hero-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.hero-portrait { position: relative; max-width: 420px; margin-inline: auto; }
.hero-portrait img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
    border: 8px solid #fff; box-shadow: var(--shadow-md); background: #e9ecef;
}
.hero-portrait::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    border: 2px solid var(--gold); opacity: .55;
}
.hero-badge {
    position: absolute; inset-inline-end: -4px; bottom: 8%;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: .75rem 1.1rem; display: flex; align-items: center; gap: .7rem;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--bronze); line-height: 1; }
.hero-badge span { font-size: .9rem; color: var(--ink-soft); line-height: 1.25; }

/* Trust strip */
.trust-strip { background: var(--navy); color: #fff; padding-block: 1.6rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; justify-content: center; }
.trust-item i { color: var(--gold); font-size: 1.5rem; }
.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item span { font-size: .9rem; opacity: .85; }

/* ---------- Cards ---------- */
.card-soft {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-soft:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(160, 90, 28, .35); }
.icon-badge {
    width: 52px; height: 52px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-size: 1.35rem;
    background: var(--bronze-soft); color: var(--bronze);
}

.practice-card { padding: 1.6rem; height: 100%; display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: inherit; }
.practice-card h3 { margin: 0; font-size: 1.2rem; }
.practice-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.practice-card ul { margin: 0; padding-inline-start: 1.1rem; color: var(--ink-soft); font-size: .97rem; }
.practice-card ul li { margin-bottom: .2rem; }
.practice-card ul li::marker { color: var(--gold); }

.contact-card { padding: 1.75rem 1.5rem; text-align: center; height: 100%; }
.contact-card .icon-badge { margin: 0 auto 1rem; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--bronze-dark); text-decoration: underline; }
.contact-line { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.contact-line .label { color: var(--ink-soft); }

/* About */
.about-portrait img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; background: #e9ecef; }
.about-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.prose p { margin-bottom: 1.15rem; }
.about-block { padding: 1.5rem 1.6rem; margin-bottom: 1.1rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.about-block p { margin: 0; }
.pull-quote {
    font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.5;
    color: var(--ink); border-inline-start: 4px solid var(--gold);
    padding: .5rem 1.4rem; margin: 2rem 0;
}
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 2.5rem; margin-bottom: 1.4rem; }
.timeline li::before {
    content: ""; position: absolute; inset-inline-start: 4px; top: .45rem;
    width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--bronze);
}

/* Professions list (original page structure, upgraded) */
.profession-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.15rem 1.35rem; margin-bottom: .9rem;
}
.profession-item .profession-text { font-size: 1.15rem; font-weight: 500; flex: 1; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.form-label { font-weight: 600; margin-bottom: .35rem; }
.form-label .req { color: #b42318; margin-inline-start: .15rem; }
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1.5px solid #cfc8bd; padding: .7rem .9rem; font-size: 1rem;
    background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(31, 45, 74, .15); }
.form-text { color: var(--ink-soft); }
.privacy-notice { font-size: .88rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1rem; font-weight: 500; }
.form-status.ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* Map: click-to-load (privacy + speed) */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; background: #e9e5de; min-height: 320px; display: grid; place-items: center; text-align: center; }
.map-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { padding: 2rem; max-width: 460px; }
.map-placeholder p { color: var(--ink-soft); font-size: .92rem; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, #2b3d63 100%); color: #fff;
    border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(201, 162, 74, .35); inset-inline-end: -90px; top: -120px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }
.cta-band .btn-ghost { color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Legal / prose pages ---------- */
.legal-page { max-width: 860px; margin-inline: auto; }
.legal-page h2 { font-size: 1.45rem; margin-top: 2.2rem; margin-bottom: .8rem; }
.legal-page ul { padding-inline-start: 1.3rem; }
.legal-page li { margin-bottom: .35rem; }
.legal-meta { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #151c2b; color: rgba(255, 255, 255, .82); padding-top: 3.5rem; margin-top: 0; font-size: .97rem; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-block: 1.25rem; font-size: .88rem; }
.footer-bottom nav a { margin-inline-end: 1.1rem; }
.footer-disclaimer { font-size: .84rem; color: rgba(255, 255, 255, .7); margin-top: .75rem; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); margin-inline-end: .4rem; }
.social-link:hover { border-color: var(--gold); text-decoration: none !important; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed; bottom: 22px; left: 22px; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(37, 211, 102, .35); }
.whatsapp-float img { width: 56px; height: 56px; display: block; }

.a11y-toggle {
    position: fixed; bottom: 22px; right: 22px; z-index: 1045;
    width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: var(--navy); color: #fff; font-size: 1.45rem;
    display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.a11y-toggle:hover { background: var(--navy-hover); }
.a11y-panel {
    position: fixed; bottom: 86px; right: 22px; z-index: 1045;
    width: min(320px, calc(100vw - 44px));
    background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    border: 1px solid var(--line); padding: 1.1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-family: var(--font-body); font-size: 1.1rem; margin: 0 0 .8rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-btn {
    border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
    padding: .6rem .5rem; font-size: .9rem; font-weight: 500; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: .25rem; line-height: 1.2;
}
.a11y-btn i { font-size: 1.1rem; color: var(--navy); }
.a11y-btn[aria-pressed="true"] { border-color: var(--navy); background: #eef1f7; box-shadow: inset 0 0 0 1px var(--navy); }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; font-size: .9rem; }
@media (max-width: 600px) {
    .whatsapp-float { bottom: 16px; left: 16px; width: 50px; height: 50px; }
    .whatsapp-float img { width: 50px; height: 50px; }
    .a11y-toggle { bottom: 16px; right: 16px; width: 48px; height: 48px; }
    .a11y-panel { right: 16px; bottom: 74px; }
}

/* ---------- Accessibility menu effects ---------- */
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .site-header, html.a11y-contrast .card-soft, html.a11y-contrast .section-alt,
html.a11y-contrast .page-hero, html.a11y-contrast .hero { background: #fff !important; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast .section-lead, html.a11y-contrast .hero-lead,
html.a11y-contrast .brand-sub, html.a11y-contrast .practice-card p { color: #000 !important; }
html.a11y-contrast a:not(.btn) { color: #0000c8 !important; text-decoration: underline !important; }
html.a11y-contrast .card-soft { border: 2px solid #000 !important; box-shadow: none !important; }
html.a11y-contrast .site-footer, html.a11y-contrast .trust-strip, html.a11y-contrast .cta-band { background: #000 !important; }
html.a11y-contrast .site-footer a, html.a11y-contrast .site-footer p, html.a11y-contrast .site-footer li { color: #ff0 !important; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .brand-name, html.a11y-readable .display-font { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
html.a11y-readable body { line-height: 1.9; word-spacing: .08em; }
html.a11y-grayscale body > *:not(.a11y-panel):not(.a11y-toggle) { filter: grayscale(1); }

/* ---------- Reveal-on-scroll animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html.a11y-no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Print */
@media print {
    .site-header, .site-footer, .whatsapp-float, .a11y-toggle, .a11y-panel, .cta-band { display: none !important; }
    body { background: #fff; }
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 991.98px) {
    .hero-portrait { max-width: 280px; }
    .hero-portrait::before { inset: -10px; }
    .hero-badge { padding: .55rem .85rem; }
    .hero-badge strong { font-size: 1.5rem; }
    .about-sticky { position: static; }
    .about-portrait img { max-height: 380px; object-position: center 20%; }
    .about-portrait { max-width: 420px; margin-inline: auto; }
}
