/* =========================================================
   Notaryon — עיצוב ראשי
   RTL | נגישות IS 5568 / WCAG 2.1 AA
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --navy:       #1B2A4A;
  --navy-dark:  #111d33;
  --navy-light: #243659;
  --gold:       #B8962E;
  --gold-light: #D4AF60;
  --bg:         #F5F3EF;
  --bg-card:    #FFFFFF;
  --text:       #2C2C2C;
  --text-light: #5a5a5a;
  --border:     #D8D4CC;
  --focus:      #005FCC;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --transition: 0.2s ease;
  --max-width:  1100px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Rubik', 'Arial Hebrew', Arial, sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Accessibility: Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--focus);
  color: #fff;
  padding: .6rem 1.2rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { flex: 1; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
}

.site-logo .logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.site-logo .logo-title {
  font-size: .78rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: .03em;
}

/* ── Navigation ── */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: .25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: .55rem .95rem;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 400;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  font-weight: 600;
  border-bottom: 2px solid var(--gold-light);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  color: #fff;
  padding: .4rem .7rem;
  cursor: pointer;
  font-size: .85rem;
  gap: .4rem;
  align-items: center;
}
.nav-toggle:focus-visible { outline-color: #fff; }

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.hero h1 { color: #fff; margin-bottom: .5rem; }

.hero .subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: .05em;
}

/* ── Page Content ── */
.page-section {
  padding: 3.5rem 1.5rem;
}

.page-section:nth-child(even) {
  background: var(--bg-card);
}

.section-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* ── Cards (Practice Areas) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.card h3 {
  margin-bottom: .75rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.card p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

/* ── Info Blocks ── */
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.info-block h3 {
  margin-bottom: .5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-details dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: .25rem 0 0 0;
  color: var(--text);
  font-size: 1rem;
}

.contact-details a {
  color: var(--navy);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: .95rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.alert-warning {
  background: #FFF8E1;
  border: 1px solid #F0C040;
  border-right: 4px solid #D4A017;
  color: #5a4200;
}

.alert-info {
  background: #E8F0FE;
  border: 1px solid #9BBAF0;
  border-right: 4px solid #2B5FBF;
  color: #1a3566;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: .1rem;
}

/* ── Accessibility Notice ── */
.accessibility-notice {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  text-align: center;
  padding: .5rem 1rem;
}

.accessibility-notice a {
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .85rem;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer a {
  color: var(--gold-light);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 1rem 0;
}

/* ── Bio Section ── */
.bio-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 780px;
}

.extra-sections {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

/* ── Responsive Nav ── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open { display: block; }

  .header-inner { flex-wrap: wrap; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: .5rem;
    margin-top: .5rem;
  }

  .main-nav a {
    padding: .75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .main-nav a[aria-current="page"] {
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-top: none;
  }
}

/* ── Utilities ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
