/* Merom Consulting - Main Stylesheet (RTL) */
:root {
  --primary-navy: #0f2439;
  --secondary-blue: #1c3d5a;
  --accent-gold: #c5a059;
  --accent-gold-hover: #b08d48;
  --text-dark: #2d3748;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 36, 57, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 36, 57, 0.12);
  --radius: 8px;
  --font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  direction: rtl;
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

nav a {
  text-decoration: none;
  color: var(--secondary-blue);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
  padding-bottom: 4px;
}

nav a:hover, nav a.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

.btn-contact {
  background-color: var(--accent-gold);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background-color 0.2s;
}

.btn-contact:hover {
  background-color: var(--accent-gold-hover);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  font-family: var(--font-family);
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-navy);
}

/* Sections */
section {
  padding: 4.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Highlights Bar */
.highlights-bar {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.4rem;
  color: var(--accent-gold);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--secondary-blue);
  font-weight: 600;
}

/* Clients Grid */
.clients-category {
  margin-bottom: 2.5rem;
}

.clients-category h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  border-right: 4px solid var(--accent-gold);
  padding-right: 0.75rem;
  margin-bottom: 1.25rem;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.client-tag {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--secondary-blue);
  box-shadow: var(--shadow-sm);
}

/* Contact Info & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  color: var(--primary-navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-item {
  margin-bottom: 1.25rem;
}

.info-label {
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.info-val {
  font-size: 1.15rem;
  color: var(--secondary-blue);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  color: var(--primary-navy);
}

.form-group input, .form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Footer */
footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e3a5f;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 1rem; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
/* --- Client Logos Grid & Cards --- */
.category-header {
  margin-bottom: 2rem;
  border-right: 4px solid var(--accent-gold);
  padding-right: 1rem;
}

.category-header h2 {
  font-size: 1.7rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.category-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.logo-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  min-height: 140px;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.logo-img-wrapper {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

/* עיצוב הלוגואים: גובה אחיד, ריכוז, ואפקט שחור-לבן עדין שחוזר לצבע בריחוף */
.client-logo {
  max-height: 48px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.logo-card:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* טקסט חלופי אלגנטי במקרה שקובץ התמונה טרם הועלה */
.logo-fallback-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}