/* ==========================================================
   Grunis Law — additional components (all languages)
   Loaded after style.css. Uses the same design tokens.
   Direction-neutral: logical properties only, so RTL works as-is.
   ========================================================== */

/* ── Accessibility: contrast & focus ─────────────────────────
   Accent text on the dark background did not meet WCAG AA contrast.
   A lighter tint of the same bordeaux is used on dark surfaces only. */
:root {
  --accent-on-dark: #d4838f;
  --muted-on-dark:  rgba(255, 255, 255, 0.72);
}

.nav-logo-sub,
.hero-eyebrow-text,
.hero-epigraph-cite,
.page-hero-label span:last-child,
.footer-logo-sub,
.footer-heading,
.nav-cta { color: var(--accent-on-dark) !important; }
.nav-cta { border-color: rgba(212, 131, 143, 0.6) !important; }
.nav-cta:hover { color: var(--white) !important; }
.hero-eyebrow-line,
.page-hero-label span:first-child { background: var(--accent-on-dark); }

.hero-epigraph-text   { color: rgba(255, 255, 255, 0.74); }
.footer-tagline,
.footer-col a,
.footer-contact-item,
.footer-copy,
.footer-offices-line,
.footer-legal a       { color: var(--muted-on-dark); }
.lang-btn             { color: rgba(255, 255, 255, 0.75); }
.practice-num         { color: rgba(var(--accent-rgb), 0.55); }
.contact-detail-text strong,
.offices-label        { color: var(--text-mid); }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
.site-nav :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section-cta :focus-visible { outline-color: var(--accent-on-dark); }

/* Headings that replaced h4/h5 for a correct outline keep the old look */
.footer-heading {
  font-family: var(--font-sans-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-block-end: 1.25rem;
  line-height: 1.4;
}
.value-item .value-title {
  font-family: var(--font-sans-en);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin-block-end: 0.2rem;
}
.offices-label { font-weight: 600; }

/* ── Language switcher (links, three languages) ── */
a.lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
}

/* ── Practice cards: whole card is clickable ── */
.practice-card .card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
html[dir="rtl"] .practice-card .card-title { font-size: 1.25rem; }
.practice-card a.card-title-link { color: inherit; }
.practice-card a.card-title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.practice-card:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.practice-card a.card-title-link:focus-visible { outline: none; }

/* Six areas: 3 × 2 on desktop, 2 × 3 on tablets */
@media (min-width: 640px) and (max-width: 979px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

.practice-overview {
  padding-block: 4rem 6rem;
  background: var(--white);
}

/* ── Page hero additions ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  margin-block-end: 1.75rem;
}
.breadcrumbs a { color: var(--muted-on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--white); }
.crumb-sep { opacity: 0.5; }

.page-hero-sub {
  margin-block-start: 1rem;
  color: var(--muted-on-dark);
  font-size: 1rem;
  max-width: 60ch;
}

/* ── Practice-area page ── */
.area-page {
  padding-block: 5rem 6rem;
  background: var(--white);
}
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: start;
}
.area-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: none;
  margin-block-end: 1.25rem;
}
.area-section {
  margin-block-start: 3.25rem;
  padding-block-start: 2.75rem;
  border-block-start: 1px solid var(--border);
}
.area-section h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin-block-end: 1.5rem;
}

.area-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2rem;
}
.area-services li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.6;
}
.area-services li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* FAQ accordion */
.faq-item {
  border-block-end: 1px solid var(--border);
}
.faq-item:first-of-type { border-block-start: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-sans-en);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-q {
  font-family: var(--font-sans-en);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  transition: color 0.2s;
}
.faq-a p {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: none;
  padding-block-end: 1.4rem;
}
.faq-note {
  margin-block-start: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: none;
}
.area-local p { color: var(--text-mid); max-width: none; }

/* Sidebar */
.area-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.aside-card {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 1.75rem;
  border-block-start: 3px solid var(--accent);
}
.aside-card h2 {
  font-size: 1.45rem;
  color: var(--white);
  margin-block-end: 0.75rem;
}
.aside-card p {
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  margin-block-end: 1.5rem;
}
.aside-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.8rem;
  border-block-start: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.97rem;
}
.aside-line:hover { color: var(--accent-on-dark); }
.aside-line svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-on-dark); }
.aside-btn { width: 100%; justify-content: center; margin-block-start: 1.25rem; }

.aside-areas {
  background: var(--off-white);
  padding: 1.75rem;
}
.aside-areas h2 {
  font-family: var(--font-sans-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-block-end: 1rem;
}
.aside-areas li + li { border-block-start: 1px solid var(--border); }
.aside-areas a {
  display: block;
  padding-block: 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}
.aside-areas a:hover { color: var(--accent); }

/* ── Local service block ── */
.local-block {
  background: var(--off-white);
  padding-block: 4.5rem;
}
.local-inner {
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}
.local-inner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-block-end: 1rem;
}
.local-inner p {
  color: var(--text-mid);
  line-height: 1.85;
  max-width: none;
}
.contact-local {
  margin-block-start: 2rem;
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--border);
}
.contact-local p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; max-width: none; }

/* ── Contact form notice ── */
.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-mid);
}
.form-notice {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: none;
  margin-block: 0.25rem 0;
}
.form-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer legal links ── */
.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
}
.footer-legal a:hover { color: var(--white); }
.footer-bottom { row-gap: 0.75rem; }
html[dir="ltr"] .footer-bottom { flex-direction: row; }

/* ── Legal pages ── */
.legal-page {
  padding-block: 4.5rem 6rem;
  background: var(--white);
}
.legal-body {
  max-width: 760px;
}
.legal-body section + section { margin-block-start: 2.5rem; }
.legal-body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-block-end: 0.85rem;
}
.legal-body p,
.legal-body li {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: none;
}
.legal-body p + p { margin-block-start: 0.85rem; }
.legal-body ul { list-style: none; display: grid; gap: 0.5rem; margin-block-start: 0.5rem; }
.legal-body li { position: relative; padding-inline-start: 1.25rem; }
.legal-body li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── WhatsApp floating button ── */
.wa-float {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f7a4d;              /* darker WhatsApp green: AA contrast with white */
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
@media print { .wa-float { display: none; } }

/* Contact-detail icons: the WhatsApp glyph is filled, keep it the same size */
.contact-detail-icon svg { width: 18px; height: 18px; }

/* ── 404 ── */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: var(--white);
  padding-block: 4rem;
}
.notfound section { margin-block-start: 2rem; }
.notfound h1, .notfound h2 { color: var(--white); font-size: 1.8rem; margin-block-end: 0.5rem; }
.notfound p { color: var(--muted-on-dark); margin-block-end: 1rem; }
.notfound [dir="rtl"] { font-family: var(--font-sans-he); }
.notfound-code { font-family: var(--font-serif-en); font-size: 5rem; color: var(--accent-on-dark); line-height: 1; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .area-grid { grid-template-columns: 1fr; gap: 3rem; }
  .area-aside { position: static; }
}
@media (max-width: 640px) {
  .area-services { grid-template-columns: 1fr; }
  .area-page { padding-block: 3.5rem 4.5rem; }
  .local-inner { text-align: start; }
  .wa-float { width: 52px; height: 52px; inset-block-end: 1rem; inset-inline-end: 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .wa-float, .faq-item summary::after { transition: none !important; }
}

/* ==========================================================
   Accessibility menu (self-hosted)
   ========================================================== */
.a11y {
  position: fixed;
  inset-block-end: 5.5rem;              /* above the WhatsApp button */
  inset-inline-end: 1.25rem;
  z-index: 95;
}
.a11y-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: #1a1816;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.a11y-toggle:hover { transform: translateY(-2px); background: var(--accent); }
.a11y-toggle:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.a11y-toggle svg { width: 30px; height: 30px; }

.a11y-panel {
  position: absolute;
  inset-block-end: calc(100% + 0.75rem);
  inset-inline-end: 0;
  width: min(300px, calc(100vw - 2.5rem));
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-block-start: 3px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-sans-en);
}
html[dir="rtl"] .a11y-panel { font-family: var(--font-sans-he); }
.a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 0.25rem;
}
.a11y-head h2 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.a11y-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-mid);
  padding: 0 0.25rem;
}
.a11y-close:hover { color: var(--accent); }
.a11y-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.a11y-panel button[data-a11y] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: start;
  transition: background 0.15s, border-color 0.15s;
}
.a11y-panel button[data-a11y]:hover { border-color: var(--accent); }
.a11y-panel button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.a11y-panel button[aria-pressed="true"]::before { content: '✓ '; }
.a11y-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: 0.5rem;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--border);
  font-size: 0.85rem;
}
.a11y-panel .a11y-reset { width: auto; background: none; border: none; color: var(--accent); text-decoration: underline; padding: 0; }
.a11y-foot a { color: var(--text-mid); text-decoration: underline; text-underline-offset: 2px; }
.a11y-foot a:hover { color: var(--accent); }
@media print { .a11y { display: none; } }

/* ── Effects of the options ── */

/* High contrast: dark text on white, strong borders, no translucency */
html.a11y-contrast body,
html.a11y-contrast .section-practice-home,
html.a11y-contrast .practice-card,
html.a11y-contrast .contact-form,
html.a11y-contrast .office-card,
html.a11y-contrast .credential-card,
html.a11y-contrast .aside-areas,
html.a11y-contrast .local-block,
html.a11y-contrast .contact-privacy,
html.a11y-contrast .a11y-panel button[data-a11y] { background: #fff !important; color: #000 !important; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast label, html.a11y-contrast .practice-subtitle, html.a11y-contrast .practice-full-subtitle,
html.a11y-contrast .section-label-text, html.a11y-contrast .attorney-title, html.a11y-contrast .credential-year,
html.a11y-contrast .faq-q, html.a11y-contrast .form-notice, html.a11y-contrast .faq-note,
html.a11y-contrast .contact-detail-text strong, html.a11y-contrast .offices-label { color: #000 !important; }
html.a11y-contrast .hero, html.a11y-contrast .page-hero, html.a11y-contrast .section-cta,
html.a11y-contrast .site-footer, html.a11y-contrast .site-nav, html.a11y-contrast .aside-card,
html.a11y-contrast .btn-dark, html.a11y-contrast .btn-primary, html.a11y-contrast .a11y-toggle { background: #000 !important; color: #fff !important; }
html.a11y-contrast .hero *, html.a11y-contrast .page-hero *, html.a11y-contrast .section-cta *,
html.a11y-contrast .site-footer *, html.a11y-contrast .site-nav *, html.a11y-contrast .aside-card *,
html.a11y-contrast .btn-dark, html.a11y-contrast .btn-primary { color: #fff !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .hero::after { display: none; }
html.a11y-contrast .btn, html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select,
html.a11y-contrast .practice-card, html.a11y-contrast .value-item, html.a11y-contrast .faq-item,
html.a11y-contrast .a11y-panel button[data-a11y] { border: 2px solid #000 !important; }
html.a11y-contrast .btn-primary, html.a11y-contrast .btn-dark, html.a11y-contrast .nav-cta { border-color: #fff !important; }
html.a11y-contrast a:not(.btn) { text-decoration: underline; }
html.a11y-contrast .a11y-panel button[aria-pressed="true"] { background: #000 !important; color: #fff !important; }
html.a11y-contrast .wa-float { background: #000 !important; border: 2px solid #fff; }

/* Highlight links */
html.a11y-links a:not(.btn):not(.lang-btn):not(.wa-float):not(.a11y-toggle) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Readable font: one plain sans-serif everywhere */
html.a11y-readable, html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4,
html.a11y-readable .nav-logo-name, html.a11y-readable .footer-logo-name, html.a11y-readable .practice-num,
html.a11y-readable .practice-full-num, html.a11y-readable .hero-epigraph-text, html.a11y-readable .about-philosophy,
html.a11y-readable .office-city, html.a11y-readable .btn, html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}

/* More spacing */
html.a11y-spacing body { line-height: 2 !important; word-spacing: 0.16em; letter-spacing: 0.04em; }
html.a11y-spacing p, html.a11y-spacing li { margin-block-end: 1.2em; line-height: 2 !important; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3 { line-height: 1.5 !important; }

/* Stop animations */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-motion .fade-in, html.a11y-motion .practice-full-item,
html.a11y-motion .hero-eyebrow, html.a11y-motion .hero-epigraph, html.a11y-motion .hero h1,
html.a11y-motion .hero-tagline, html.a11y-motion .hero-actions, html.a11y-motion .hero-phone-mobile {
  opacity: 1 !important;
  transform: none !important;
}

/* Large cursor */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M6 3l26 15-11 2 6 12-5 2-6-12-8 8z' fill='%23fff' stroke='%23000' stroke-width='2'/></svg>") 6 3, auto !important;
}
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor [role="button"], html.a11y-cursor summary, html.a11y-cursor select {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M14 3v18l-4-3-4 8h4l4 7 4-2-4-7h6z' fill='%23fff' stroke='%23000' stroke-width='2'/></svg>") 14 3, pointer !important;
}

/* Larger text: let long headings wrap instead of overflowing */
html.a11y-bigger .hero h1 { max-width: none; }
html.a11y-bigger .nav-links { gap: 1.2rem; }

@media (max-width: 640px) {
  .a11y { inset-block-end: 5rem; inset-inline-end: 1rem; }
  .a11y-toggle { width: 52px; height: 52px; }
}

/* Accessibility panel stays readable in every mode */
.a11y-panel .a11y-foot button.a11y-reset { width: auto; padding: 0; border: none !important; background: none !important; font-size: 0.85rem; }
html.a11y-contrast .a11y-panel { background: #fff !important; border: 2px solid #000; }
html.a11y-contrast .a11y-panel h2,
html.a11y-contrast .a11y-close,
html.a11y-contrast .a11y-foot a,
html.a11y-contrast .a11y-panel .a11y-reset { color: #000 !important; }
html.a11y-contrast .a11y-panel .a11y-reset { text-decoration: underline; }

.meetings-note { font-size: 0.9rem; color: var(--text-mid); margin-block: -0.5rem 1rem; max-width: none; }
