/* ============================================
   V9 — Alon Lev Law Firm
   Inspired by Goldfarb Gross Seligman
   Black + White + Gold | Serif + Sans-serif
   RTL Hebrew
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gold: #b8860b;
  --gold-light: #d4af37;
  --gold-pale: rgba(184, 134, 11, 0.08);
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --serif: 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Heebo', 'Segoe UI', sans-serif;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--sans);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.8;
}

/* ---------- Gold separator ---------- */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 40px 0;
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

.gold-line--full {
  width: 100%;
  opacity: 0.2;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a.active {
  color: var(--gold-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  direction: ltr;
}

.btn-gold {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gold-light);
  padding: 10px 24px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}

.btn-gold:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 12px 32px;
  border-radius: 100px;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-white-outline {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 32px;
  border-radius: 100px;
  transition: all var(--transition);
}

.btn-white-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-family: var(--serif);
  color: var(--white);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 8px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

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

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-hero .section-tag { color: var(--gold-light); }
.page-hero h1 { margin-bottom: 16px; }

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--light {
  background: var(--off-white);
}

.section--gold-tint {
  background: var(--gold-pale);
}

/* ---------- News Ticker ---------- */
.ticker-bar {
  background: var(--black);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item:first-child {
  border-left: none;
}

.ticker-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.ticker-title {
  color: var(--white);
  font-weight: 500;
}

.ticker-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  direction: ltr;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Article card (typography only) */
.article-card {
  border-right: 3px solid var(--gold);
  padding: 32px;
  background: var(--white);
  transition: all var(--transition);
}

.article-card:hover {
  background: var(--gold-pale);
}

.article-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.article-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Practice Area cards ---------- */
.practice-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.practice-card:hover {
  border-color: var(--gold);
}

.practice-card.active {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.practice-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.practice-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.practice-card.active .practice-submenu {
  max-height: 400px;
}

.practice-submenu ul {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-top: 16px;
}

.practice-submenu li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 6px 0;
  position: relative;
  padding-right: 16px;
}

.practice-submenu li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Team card ---------- */
.team-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, transparent 100%);
  color: var(--white);
}

.team-card__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.team-card__motto {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- Quotes / Reviews ---------- */
.quote-card {
  text-align: center;
  padding: 48px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--black);
  position: relative;
  padding: 0 20px;
}

.quote-text::before {
  content: '\201F';
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--serif);
  line-height: 1;
}

.quote-source {
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.quote-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 12px;
}

/* Quote carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  direction: ltr;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- Timeline (wins) ---------- */
.timeline {
  position: relative;
  padding-right: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding: 0 40px 48px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
}

.timeline-year {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  border-right: 3px solid var(--gold);
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.timeline-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-card__desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  padding: 14px 48px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ---------- Map ---------- */
.map-container {
  width: 100%;
  height: 360px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta .btn-gold { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 120px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
