/* ===== CSS Variables ===== */
:root {
  --primary: #2c6e49;
  --primary-light: #4c956c;
  --primary-dark: #1b4332;
  --accent: #f4a261;
  --accent-dark: #e76f51;
  --bg: #fefae0;
  --bg-light: #ffffff;
  --bg-dark: #f0ead2;
  --text: #2d3436;
  --text-light: #636e72;
  --text-white: #ffffff;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.25);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Heebo', sans-serif;
  --font-heading: 'Rubik', sans-serif;
}

/* ===== Reset & Base ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.nav-logo img { height: 42px; width: auto; border-radius: 8px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary);
  color: var(--text-white);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--text-white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-bg.home { background-image: url('_uploads/ai_be4b46adc7240bff.jpg'); }
.hero-bg.about { background-image: url('_uploads/ai_849804e2cb768200.jpg'); }
.hero-bg.services { background-image: url('_uploads/ai_63483eb7e700f5f7.jpg'); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.75), rgba(44,110,73,0.6));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
  padding: 120px 24px 80px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 36px;
  opacity: 0.92;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Mini hero for inner pages */
.hero-mini {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  color: var(--text-white);
  overflow: hidden;
}
.hero-mini .hero-bg { background-attachment: fixed; }
.hero-mini .hero-overlay {
  background: linear-gradient(135deg, rgba(27,67,50,0.8), rgba(44,110,73,0.65));
}
.hero-mini-content { position: relative; z-index: 2; }
.hero-mini h1 { font-size: 2.8rem; margin-bottom: 12px; }
.hero-mini p { font-size: 1.1rem; opacity: 0.9; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: var(--text-white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-green { background: var(--primary); color: var(--text-white); }
.btn-green:hover { background: var(--primary-dark); }

/* ===== Cards ===== */
.card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 12px; }
.card p { color: var(--text-light); line-height: 1.6; }

/* ===== Grid Layouts ===== */
.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; }

/* ===== Features / Why Us ===== */
.features-section { background: var(--bg-light); }
.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.feature-item:hover { background: var(--bg-dark); }
.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}
.feature-text h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--primary-dark); }
.feature-text p { font-size: 0.95rem; color: var(--text-light); }

/* ===== Testimonials ===== */
.testimonials-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text-white);
}
.testimonial-card .stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-weight: 600; opacity: 0.85; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-white);
  text-align: center;
  padding: 64px 24px;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.92; }

/* ===== Contact Form ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-light);
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(44,110,73,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 16px;
  display: none;
  animation: fadeInUp 0.4s ease;
}
.form-message.success { background: #d4edda; color: #155724; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; display: block; }

/* ===== Steps / Process ===== */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.step-number {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.step-content h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 6px; }
.step-content p { color: var(--text-light); }

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  direction: rtl;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-dark); }
.faq-question .icon {
  font-size: 1.4rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 0;
}
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-light); line-height: 1.8; }

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h3 { color: var(--text-white); font-size: 1.2rem; margin-bottom: 16px; }
.footer p { line-height: 1.7; font-size: 0.95rem; }
.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color var(--transition), padding var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-right: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== Funnel / Quote ===== */
.funnel-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.funnel-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ddd;
  transition: background var(--transition), transform var(--transition);
}
.funnel-dot.active { background: var(--primary); transform: scale(1.3); }
.funnel-step { display: none; animation: fadeInUp 0.5s ease; }
.funnel-step.active { display: block; }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}

/* ===== Stats ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
}
.stat-label { font-size: 0.95rem; color: var(--text-light); margin-top: 4px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Privacy page ===== */
.privacy-content h2 { font-size: 1.5rem; color: var(--primary-dark); margin: 32px 0 12px; }
.privacy-content p, .privacy-content li { color: var(--text-light); line-height: 1.8; }
.privacy-content ul { padding-right: 24px; list-style: disc; margin: 12px 0; }

/* ===== About values ===== */
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.value-card { text-align: center; padding: 32px 20px; }
.value-card .card-icon { margin: 0 auto 16px; }

/* ===== Service detail ===== */
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-benefits li {
  padding: 8px 0;
  padding-right: 28px;
  position: relative;
  color: var(--text-light);
}
.service-benefits li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px; right: -100%;
    width: 280px;
    height: calc(100vh - 72px);
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1.05rem; }
  .section-title { font-size: 2rem; }
  .stats-row { gap: 24px; }
  .hero-bg { background-attachment: scroll; }
  .hero-mini .hero-bg { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .section-padding { padding: 56px 0; }
  .card { padding: 24px 20px; }
}
