/* ===== CSS Variables / Design Tokens ===== */
:root {
  --bg: #F4F1EA;
  --surface: #FBF8F3;
  --text: #183A3A;
  --muted: #5F6E6B;
  --accent1: #C7A46A;
  --accent2: #7FA7A0;
  --border: #D8D2C6;
  --white: #ffffff;
  --shadow: rgba(24,58,58,0.08);
  --radius: 12px;
  --transition: 300ms ease;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent1); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent1); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,243,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span { color: var(--accent1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent1);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent1);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--text); color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24,58,58,0.55) 0%, rgba(24,58,58,0.3) 100%);
}

.hero-home .hero-bg::after {
  background: linear-gradient(135deg, rgba(244,241,234,0.2) 0%, rgba(24,58,58,0.5) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 0;
}

.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 28px; }

.hero-small { min-height: 45vh; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
}

.btn-primary { background: var(--accent1); color: var(--white); }
.btn-primary:hover { background: var(--text); color: var(--white); transform: translateY(-2px); }

.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent1); color: var(--accent1); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--text); }

/* ===== Sections ===== */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--surface); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; max-width: 600px; margin-inline: auto; }

/* ===== Pain Strip ===== */
.pain-strip {
  background: var(--text);
  color: var(--white);
  padding: 40px 0;
}

.pain-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.pain-item {
  text-align: center;
  font-size: 1rem;
  opacity: 0.9;
}

.pain-item strong { display: block; font-size: 1.8rem; color: var(--accent1); margin-bottom: 4px; }

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); }

.bento-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--white);
}

.bento-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.bento-card p { color: var(--muted); font-size: 0.92rem; }
.bento-card.span-2 { grid-column: span 2; }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent1);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== Stats / Why ===== */
.stats-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stat-chip {
  background: rgba(24,58,58,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 28px;
  text-align: center;
}

.stat-chip .num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent1); }
.stat-chip .label { font-size: 0.85rem; color: var(--muted); }

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

.why-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.why-card .icon-circle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.why-card h3 { font-size: 1rem; margin-bottom: 4px; }
.why-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-card .stars { color: var(--accent1); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; font-style: italic; }
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; }

/* ===== CTA Band ===== */
.cta-band {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ===== Service Cards ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); border-color: var(--accent1); }

.service-card .s-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.comparison-table th { background: var(--text); color: var(--white); font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(199,164,106,0.06); }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-right: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-right: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent1);
  border: 3px solid var(--surface);
}

.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item .year { color: var(--accent1); font-weight: 700; font-size: 0.9rem; }
.timeline-item p { color: var(--muted); font-size: 0.92rem; }

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-card .v-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(199,164,106,0.15);
}

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

.form-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .form-error { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== Accordion / FAQ ===== */
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent1);
  transition: transform var(--transition);
}

.accordion-item.open .accordion-btn::after { content: '−'; }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.accordion-body-inner { padding: 0 24px 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ===== Funnel / Multi-step ===== */
.funnel-page { display: none; }
.funnel-page.active { display: block; }
.quote-step { display: none; }
.quote-step.active { display: block; }

.progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.progress-dot {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.progress-dot.active { background: var(--accent1); }

.funnel-card,
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.funnel-card h3,
.quote-card h3 { margin-bottom: 24px; text-align: center; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: center;
  transition: all var(--transition);
  color: var(--text);
}

.option-btn:hover,
.option-btn.selected {
  border-color: var(--accent1);
  background: rgba(199,164,106,0.1);
  color: var(--accent1);
}

.funnel-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* ===== Success / Error Messages ===== */
.msg-success,
.msg-error {
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 20px;
}

.msg-success {
  background: rgba(127,167,160,0.12);
  border: 1px solid var(--accent2);
  color: var(--text);
}

.msg-success .msg-icon { font-size: 2.4rem; margin-bottom: 8px; }

.msg-error {
  background: rgba(192,57,43,0.08);
  border: 1px solid #c0392b;
  color: #c0392b;
}

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.contact-detail .c-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-detail span { font-size: 0.95rem; }
.contact-detail a { color: var(--text); font-weight: 500; }

.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.trust-panel img { border-radius: 8px; margin-bottom: 12px; max-width: 260px; }

/* ===== Privacy ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 36px; margin-bottom: 12px; font-size: 1.3rem; }
.prose p { margin-bottom: 16px; color: var(--muted); }
.prose ul { margin-bottom: 16px; padding-right: 20px; color: var(--muted); }
.prose li { margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand h3 { color: var(--white); margin-bottom: 8px; }
.footer-brand h3 span { color: var(--accent1); }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }

.footer-links h4 { color: var(--white); margin-bottom: 12px; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-signature {
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.6;
  margin-top: 8px;
}

.footer-signature a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-signature a:hover { color: var(--accent1); }

/* ===== Sticky Mobile CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  text-align: center;
  box-shadow: 0 -4px 16px var(--shadow);
}

.sticky-cta .btn { width: 100%; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { min-height: 60vh; }
  .hero-bg { background-attachment: scroll; }

  .bento-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .stats-row { gap: 12px; }
  .pain-items { gap: 24px; }

  .comparison-table { display: block; overflow-x: auto; }

  .sticky-cta { display: block; }

  section { padding: 56px 0; }

  .option-grid { grid-template-columns: 1fr; }

  .funnel-card, .quote-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .container { padding: 0 16px; }
  body { padding-bottom: 64px; }
}
