/* =========================================================
   Speiser Law Firm — styles
   Palette: Counsel Navy & Gold | Type: Playfair Display + Source Sans 3
   ========================================================= */

:root {
  /* color */
  --color-bg:        #fbfaf7;
  --color-surface:   #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #5a5f66;
  --color-primary:   #0f2c4d;   /* navy */
  --color-primary-d: #0a2138;
  --color-primary-l: #1c3f66;
  --color-accent:    #b08d57;   /* gold */
  --color-accent-d:  #98763f;
  --color-accent-l:  #c8a872;
  --color-border:    #e6e3dc;

  /* type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, sans-serif;
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;

  /* spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-24: 96px;

  /* radius & shadow */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15,44,77,.06);
  --shadow:    0 14px 40px rgba(15,44,77,.12);
  --shadow-lg: 0 24px 60px rgba(15,44,77,.18);

  --container: 1160px;
}

/* ---- Hebrew (RTL) typography ---- */
html[lang="he"] {
  --font-display: "Rubik", "Assistant", system-ui, sans-serif;
  --font-body: "Assistant", "Source Sans 3", system-ui, sans-serif;
}
html[lang="he"] body { line-height: 1.8; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4 {
  font-weight: 600; letter-spacing: 0; }
[dir="rtl"] .hl { font-style: normal; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-lg); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-primary); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; margin: 0 0 var(--space-6); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, var(--text-3xl)); font-weight: 700; margin: 0 0 var(--space-4); }
h3 { font-size: var(--text-xl); margin: 0 0 var(--space-3); }
p  { max-width: 65ch; }
a  { color: var(--color-accent-d); text-decoration: none; }
a:hover { color: var(--color-accent); }

/* ---- Layout helpers ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-24); }
.section-alt { background: var(--color-surface); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: var(--text-xs); font-weight: 600; margin: 0 0 var(--space-4);
}
.eyebrow-gold { color: var(--color-accent-l); }
.eyebrow-dark { color: var(--color-accent-d); }

.sec-head { max-width: 720px; margin: 0 auto var(--space-16); text-align: center; }
.sec-head .rule { margin-inline: auto; }
.sec-head .section-intro { margin-inline: auto; }
.rule { display: block; width: 56px; height: 3px; background: var(--color-accent);
  margin: var(--space-4) 0 var(--space-6); border-radius: 2px; }
.section-intro { color: var(--color-muted); margin: 0; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-4) var(--space-8); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  cursor: pointer; border: 1.5px solid transparent; letter-spacing: .01em;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: var(--space-2) var(--space-6); }
.btn-lg { padding: var(--space-4) var(--space-12); font-size: var(--text-lg); }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-d); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--color-accent); color: var(--color-primary); box-shadow: 0 8px 24px rgba(176,141,87,.35); }
.btn-accent:hover { background: var(--color-accent-l); color: var(--color-primary-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn:focus-visible { outline: 3px solid var(--color-accent-l); outline-offset: 3px; }

/* ---- Top bar ---- */
.topbar { background: var(--color-primary-d); color: rgba(255,255,255,.85); font-size: var(--text-sm); }
.topbar-inner { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-2); }
.topbar-item { color: rgba(255,255,255,.85); }
.topbar-item:hover { color: #fff; }
.topbar-spacer { flex: 1; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 70px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a { color: var(--color-text); font-weight: 600; font-size: var(--text-base); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--color-accent); transition: width .2s ease; }
.nav-links a:not(.btn):hover { color: var(--color-primary); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn-accent { color: var(--color-primary); }
.lang-toggle { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  color: var(--color-primary); background: transparent; border: 1.5px solid var(--color-border);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.lang-toggle:hover { border-color: var(--color-accent); color: var(--color-accent-d); }

/* ---- Hero (full-bleed banner) ---- */
.hero { position: relative; color: #fff; text-align: center;
  background-image: linear-gradient(rgba(10,33,56,.82), rgba(10,33,56,.9)), url("images/office.jpg");
  background-size: cover; background-position: center; background-attachment: fixed;
  padding-block: clamp(96px, 17vh, 200px); }
.hero-content { position: relative; max-width: 840px; margin-inline: auto; }
.hero h1 { color: #fff; }
.lead { font-size: var(--text-xl); max-width: 60ch; margin: 0 auto var(--space-8); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center;
  margin: var(--space-12) 0 0; padding: 0; font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.hero-trust li { position: relative; padding-inline-start: var(--space-6); }
.hero-trust li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--color-accent-l); font-weight: 700; }

/* ---- Who we are (mission) ---- */
.mission { max-width: 900px; margin-inline: auto; text-align: center; }
.mission .rule { margin-inline: auto; }
.mission-quote { font-family: var(--font-display); font-style: italic; max-width: none;
  font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.5; color: var(--color-primary);
  margin: 0 0 var(--space-6); }
.mission-author { font-weight: 700; color: var(--color-accent-d); margin: 0; }
[dir="rtl"] .mission-quote { font-style: normal; }

/* ---- Value strip ---- */
.stats { background: var(--color-accent); color: var(--color-primary-d); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: var(--space-12) var(--space-6); position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 25%; height: 50%;
  width: 1px; background: rgba(15,44,77,.2); }
.stat-t { display: block; font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 700; line-height: 1.2; }
.stat-d { display: block; margin-top: var(--space-2); font-size: var(--text-sm);
  font-weight: 600; color: rgba(10,33,56,.85); }

/* ---- Cards ---- */
.grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-8); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(176,141,87,.12); color: var(--color-accent-d); margin-bottom: var(--space-6); }
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--color-muted); }
.card-link { font-weight: 700; color: var(--color-primary); }
.card-link:hover { color: var(--color-accent-d); }

/* ---- About ---- */
.about-inner { display: grid; grid-template-columns: 1fr 1.12fr; gap: var(--space-16); align-items: center; }
.about-media { position: relative; }
.about-media::before { content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 2px solid var(--color-accent); border-radius: var(--radius-lg); }
.about-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-text p { color: var(--color-muted); margin-bottom: var(--space-4); }
.checklist { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.checklist li { position: relative; padding-inline-start: var(--space-8); color: var(--color-text); }
.checklist li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--color-accent-d); font-weight: 700; }

/* ---- Experience / sectors ---- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.exp-col { background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-12); box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent); }
.exp-col h3 { margin-bottom: var(--space-6); }
.checklist-1 { grid-template-columns: 1fr; gap: var(--space-4); margin: 0; }

/* ---- Availability band ---- */
.band { position: relative; color: #fff; text-align: center;
  background-image: linear-gradient(rgba(10,33,56,.86), rgba(10,33,56,.9)), url("images/office.jpg");
  background-size: cover; background-position: center; background-attachment: fixed; }
.band-inner { padding-block: var(--space-24); }
.band h2 { color: #fff; }
.band-sub { color: rgba(255,255,255,.88); margin: 0 auto var(--space-8); max-width: 50ch; font-size: var(--text-xl); }
.band-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.lexlink-badge { display: inline-flex; background: #fff; border-radius: var(--radius);
  padding: var(--space-6) var(--space-8); box-shadow: var(--shadow); }
.lexlink-badge img { height: 56px; width: auto; display: block; }

/* ---- Contact ---- */
.section-cta { background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-d) 100%); color: #eef2f6; }
.section-cta h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-16); align-items: start; }
.contact-text p { color: rgba(255,255,255,.85); }
.contact-list { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-6); }
.contact-list li { display: flex; gap: var(--space-4); align-items: center; }
.contact-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(176,141,87,.18); font-size: 1.1rem; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-accent-l); }
.contact-list a, .contact-list span { color: #fff; font-size: var(--text-lg); }
.contact-list a:hover { color: var(--color-accent-l); }

.contact-form { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-12);
  box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { font-weight: 700; font-size: var(--text-xs); color: var(--color-primary);
  text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea { padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font: inherit; font-size: var(--text-base); background: var(--color-bg); color: var(--color-text); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176,141,87,.22); background: #fff; }
.form-note { font-size: var(--text-xs); color: var(--color-muted); margin: var(--space-4) 0 0; text-align: center; }

/* ---- Footer ---- */
.site-footer { background: var(--color-primary-d); color: rgba(255,255,255,.75); padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer-grid h4 { color: #fff; font-size: var(--text-base); margin: 0 0 var(--space-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--space-2); }
.footer-grid a, .site-footer a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: var(--color-accent-l); }
.brand-footer { font-family: var(--font-display); color: #fff; font-size: var(--text-2xl); font-weight: 700; margin: 0 0 var(--space-2); }
.footer-tagline { color: rgba(255,255,255,.6); font-size: var(--text-base); }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15); font-size: var(--text-xs);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: none; }
.disclaimer { opacity: .6; }

/* ---- Floating quick-contact ---- */
.float-actions { position: fixed; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.float-actions a { width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s; }
.float-actions a:first-child { border-start-start-radius: var(--radius); }
.float-actions a:last-child { border-end-start-radius: var(--radius); }
.float-actions a:hover { background: var(--color-accent); color: var(--color-primary-d); }
.float-actions svg { width: 22px; height: 22px; }

/* ---- Sticky CTA ---- */
.sticky-cta { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 60;
  background: var(--color-accent); color: var(--color-primary-d); font-weight: 700;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .15s, background .15s; }
.sticky-cta:hover { background: var(--color-accent-l); color: var(--color-primary-d);
  text-decoration: none; transform: translateY(-2px); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner, .about-inner, .contact-inner, .exp-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .about-media { max-width: 460px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding-block: var(--space-16); }
  .topbar-item:first-child { display: none; }
  .nav-links { gap: var(--space-4); }
  .nav-links a:not(.btn) { display: none; }
  .brand-logo { height: 52px; }
  .field-row, .checklist { grid-template-columns: 1fr; }
  .contact-form { padding: var(--space-8); }
  .band, .hero { background-attachment: scroll; }
  .float-actions { display: none; }
  .sticky-cta { inset-inline-end: 16px; bottom: 16px; padding: 12px 20px; font-size: var(--text-sm); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
