/* ========================================
   א.נ.נ — אתר חשבונאות ושכר
   style.css
======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:   #1B2A4A;
  --navy2:  #162340;
  --gold:   #C9A84C;
  --gold2:  #b8952e;
  --green:  #2E7D50;
  --light:  #F7F9FC;
  --border: #E4E8F0;
  --text:   #374151;
  --muted:  #6B7280;
  --white:  #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 12px 48px rgba(27,42,74,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Rubik', sans-serif; direction: rtl; color: var(--text); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
ul   { list-style: none; }

/* ── Skip nav ── */
.skip-nav {
  position: absolute; top: -100px; right: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 20px; font-weight: 700; font-size: 15px;
  z-index: 999999; border-radius: 0 0 8px 0; transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ── Topbar ── */
.topbar {
  background: var(--navy2);
  padding: 8px 0;
  font-size: 13px;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span {
  color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 6px;
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-contact i { color: var(--gold); font-size: 12px; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a {
  color: rgba(255,255,255,0.75); font-size: 20px;
  transition: color 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.topbar-social a:hover { color: var(--gold); transform: scale(1.15); }

/* ── Header ── */
#header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.13); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-main { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.logo-sub  { font-size: 11px; font-weight: 500; color: var(--muted); display: block; line-height: 1.3; }

/* ── Nav ── */
nav ul { display: flex; align-items: center; gap: 6px; }
nav ul li a {
  color: var(--navy); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover { background: var(--light); color: var(--gold); }
.btn-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 9px 20px !important;
  border-radius: 8px !important;
}
.btn-cta:hover { background: var(--gold2) !important; }

/* hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.6); color: #fff;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.btn-primary-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--gold); color: var(--gold);
  padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary-outline:hover { background: var(--gold); color: var(--navy); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 100px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1f3d 0%, #1B2A4A 50%, #1a3a6b 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 820px; animation: fadeUp 0.8s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.18); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  color: #fff; font-size: 52px; font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 28px; line-height: 1.7; }
.hero-checks {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.hero-checks span {
  color: rgba(255,255,255,0.9); font-size: 15px;
  display: flex; align-items: center; gap: 7px;
}
.hero-checks i { color: var(--gold); }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Stats ── */
.stats-bar {
  background: var(--gold);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat { text-align: center; padding: 0 40px; flex: 1; min-width: 140px; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { display: block; font-size: 13px; font-weight: 500; color: var(--navy); opacity: 0.75; margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(27,42,74,0.2); flex-shrink: 0; }

/* ── Sections ── */
.section-light { background: var(--light); }
.section-navy  { background: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-light, .section-navy, .faq, .process { padding: 90px 0; }

.section-label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: block; margin-bottom: 10px;
}
.section-label.light { color: var(--gold); }
.section-title {
  font-size: 34px; font-weight: 800; color: var(--navy);
  margin-bottom: 14px; line-height: 1.25;
}
.section-title.light { color: #fff; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 600px; margin-bottom: 52px; line-height: 1.7; }
.section-sub.light { color: rgba(255,255,255,0.75); }

/* ── Services ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 36px 28px 28px;
  position: relative; transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.featured-badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--gold); color: var(--navy);
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 12px;
}
.service-icon-wrap {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #2a4a7a);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--gold); margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.service-list { margin-bottom: 24px; }
.service-list li {
  font-size: 13px; color: var(--text); padding: 5px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.service-list li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.btn-service {
  display: inline-block; background: var(--light);
  color: var(--navy); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid var(--border);
}
.service-card.featured .btn-service { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-service:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Why us ── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s;
}
.why-card:hover { background: rgba(255,255,255,0.10); border-color: rgba(201,168,76,0.35); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold); margin-bottom: 16px;
}
.why-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p  { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ── Process ── */
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap;
}
.process-step {
  flex: 1; min-width: 180px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  text-align: center; transition: box-shadow 0.2s, transform 0.2s;
}
.process-step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-size: 22px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.step-content h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-content p  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.process-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px; padding: 40px 8px 0; flex-shrink: 0;
}

/* ── Certified ── */
.certified-section {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  padding: 60px 24px;
}
.certified-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.certified-icon {
  font-size: 52px; color: var(--gold); flex-shrink: 0;
}
.certified-text { flex: 1; min-width: 260px; }
.certified-text h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.certified-text p  { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-item.active { border-color: var(--gold); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; font-family: 'Rubik', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--navy);
  text-align: right; gap: 12px; transition: background 0.2s;
}
.faq-q:hover { background: var(--light); }
.faq-q i { font-size: 13px; color: var(--gold); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.active .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start;
}
.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.contact-item i { font-size: 18px; color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.contact-item strong { display: block; color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: rgba(255,255,255,0.75); font-size: 14px; }
.contact-item a:hover { color: var(--gold); }

.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Rubik', sans-serif; font-size: 14px; color: var(--text);
  background: var(--white); direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; background: var(--navy); color: var(--white);
  border: none; padding: 14px; border-radius: 8px;
  font-family: 'Rubik', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ── Footer ── */
.footer { background: #0f1b30; padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; margin-bottom: 14px; }
.footer-brand .logo-main { font-size: 24px; font-weight: 800; color: var(--gold); }
.footer-brand .logo-sub  { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer-col > p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h4 { color: var(--gold); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a,
.footer-col ul li { color: rgba(255,255,255,0.6); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li i { color: var(--gold); font-size: 12px; flex-shrink: 0; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  text-align: center;
}
.footer-copy p { color: rgba(255,255,255,0.35); font-size: 13px; }

/* ── WhatsApp float — מוסר ── */
.wa-float { display: none; }

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-connector { display: none; }
  .section-title { font-size: 26px; }
  .stats-inner { gap: 16px; }
  .stat-divider { display: none; }
  .stat { padding: 12px 20px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { padding: 0 16px; }

  nav ul {
    position: fixed; top: 72px; right: 0; left: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    align-items: stretch; gap: 0; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease;
    padding: 16px;
    z-index: 999;
  }
  nav ul.open { transform: translateX(0); }
  nav ul li a { padding: 14px 16px; font-size: 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 16px 60px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .hero-checks { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .certified-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner { flex-direction: column; }
}
