/* === LegalDan.co.il — Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #1a237e;
  --navy-light: #283593;
  --blue: #1565c0;
  --blue-light: #42a5f5;
  --sky: #e3f2fd;
  --gold: #dcc864;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-600: #757575;
  --gray-800: #424242;
  --red: #c62828;
  --green: #2e7d32;
  --text: #212121;
  --text-light: #616161;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Heebo', 'Segoe UI', 'Arial', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === Skip to content (accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  z-index: 10000;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 0 var(--radius);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
}

/* === Header / Nav === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  direction: ltr;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.4rem;
}
.nav-logo img {
  height: 36px;
  width: 36px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  direction: ltr;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 1px rgba(26,35,126,0.2);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--navy);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 2px rgba(255,255,255,0.9);
}
.nav-links .nav-cta {
  background: var(--navy);
  color: #ffffff !important;
  padding: 8px 20px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 2px rgba(255,255,255,0.9);
}
.nav-links .nav-cta:hover {
  background: var(--navy-light);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 3px rgba(255,255,255,1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: var(--transition);
}

/* === Sections === */
.section {
  padding: 8px 24px;
}
.section-alt {
  background: var(--gray-50);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--sky) 0%, var(--white) 100%);
  padding: 40px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 span {
  color: var(--blue);
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
}
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Cards === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Product Card (Home) === */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  transition: all var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card .product-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.product-card .product-type {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 600;
}
.product-card p {
  color: var(--text-light);
  margin-bottom: 24px;
}
.product-card .product-features {
  list-style: none;
  text-align: right;
  margin-bottom: 24px;
}
.product-card .product-features li {
  padding: 4px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.product-card .product-features li::before {
  content: "\2713 ";
  color: var(--green);
  font-weight: 700;
  margin-left: 8px;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: all var(--transition);
}
.price-card.featured {
  border: 2px solid var(--navy);
  position: relative;
}
.price-card.featured::before {
  display: none;
}
.price-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1rem;
}
.price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}
.price-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.price-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: right;
}
.price-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

/* === FAQ === */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
}
.faq-question:hover {
  background: var(--gray-50);
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* === Contact Form === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  direction: rtl;
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* === Footer === */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 10px 24px 6px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
  direction: rtl;
  text-align: right;
}
.footer-columns .footer-heading {
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.footer-columns .footer-links {
  list-style: none;
}
.footer-columns .footer-links li {
  margin-bottom: 1px;
}
.footer-columns .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-columns .footer-links a:hover {
  color: var(--white);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
  direction: rtl;
  text-align: right;
}
.footer-col h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 2px 0;
  font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
  direction: rtl;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--white);
}

/* === Chatbot === */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-toggle:hover {
  background: var(--navy-light);
  transform: scale(1.1);
}
.chatbot-window {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 360px;
  max-height: 480px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.chatbot-window.open {
  display: flex;
}
.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header h4 {
  font-size: 1rem;
}
.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--gray-100);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-input {
  display: flex;
  border-top: 1px solid var(--gray-200);
}
.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  direction: rtl;
}
.chatbot-input input:focus {
  outline: none;
}
.chatbot-input button {
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.chatbot-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.quick-btn {
  background: var(--sky);
  color: var(--navy);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.quick-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* === Accessibility Widget === */
.a11y-toggle {
  position: fixed;
  bottom: 24px;
  left: 90px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-panel {
  position: fixed;
  bottom: 78px;
  left: 90px;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9996;
  display: none;
  padding: 20px;
  border: 1px solid var(--gray-200);
}
.a11y-panel.open {
  display: block;
}
.a11y-panel h4 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1rem;
}
.a11y-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: right;
  transition: all var(--transition);
}
.a11y-btn:hover {
  background: var(--sky);
}

/* === Policy pages === */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h2 {
  color: var(--navy);
  margin: 32px 0 12px;
  font-size: 1.3rem;
}
.policy-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}
.policy-content ul {
  margin: 0 24px 16px 0;
}
.policy-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    direction: rtl;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: right;
  }
  .nav-links .nav-cta {
    text-align: center;
    margin-top: 8px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .hero h1,
  .hero-home h1 {
    font-size: 1.8rem;
  }
  .hero-home h1 span {
    font-size: 1.1rem;
  }
  .hero p,
  .hero-home .hero-desc {
    font-size: 1rem;
    padding: 0 8px;
  }
  .hero-badges {
    gap: 8px;
  }
  .hero-badges .badge,
  .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .section {
    padding: 40px 16px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-group .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  /* Chatbot mobile */
  .chatbot-toggle {
    width: 48px;
    height: 48px;
    bottom: 16px;
    left: 16px;
    font-size: 1.2rem;
  }
  .chatbot-window {
    width: calc(100% - 32px);
    left: 16px;
    bottom: 74px;
    max-height: 400px;
  }
  /* Accessibility mobile */
  .a11y-toggle {
    width: 40px;
    height: 40px;
    bottom: 16px;
    left: 72px;
    font-size: 1.1rem;
  }
  .a11y-panel {
    left: 16px;
    width: calc(100% - 32px);
    bottom: 66px;
  }
  /* FAQ mobile */
  .faq-question {
    padding: 16px;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0 16px 16px;
  }
  /* Contact form mobile */
  .contact-form {
    padding: 0 8px;
  }
  /* Policy pages mobile */
  .policy-content {
    padding: 0 8px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-home h1 {
    font-size: 1.5rem;
  }
  .hero-home h1 span {
    font-size: 1rem;
  }
  .nav-logo {
    font-size: 1.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === Print === */
@media print {
  .site-header, .site-footer, .chatbot-toggle, .chatbot-window, .a11y-toggle, .a11y-panel {
    display: none !important;
  }
}

/* === Focus styles (accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* === High contrast mode === */
body.high-contrast {
  --text: #000000;
  --text-light: #000000;
  --navy: #000080;
  --gray-50: #ffffff;
  --gray-100: #f0f0f0;
}
body.high-contrast .card,
body.high-contrast .price-card,
body.high-contrast .faq-item {
  border-width: 2px;
  border-color: #000;
}

/* === Large text mode === */
body.large-text {
  font-size: 20px;
}

/* === Links underline mode === */
body.underline-links a {
  text-decoration: underline !important;
}
