/* ===== CSS Variables ===== */
:root {
  --primary: #5B7B5E;
  --primary-dark: #3E5940;
  --primary-light: #8AAF8D;
  --accent: #C8A96E;
  --accent-light: #E0C98E;
  --bg: #FAF8F5;
  --bg-alt: #F0EDE7;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title h2 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--primary-dark); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.3rem 0;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none; border: none; padding: 0.5rem;
}
.menu-toggle span {
  width: 28px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .menu-toggle span { background: var(--text); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    gap: 1.5rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
  .mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .mobile-overlay.active { opacity: 1; pointer-events: all; }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-bg.home-hero { background-image: url('_uploads/ai_7498488587a1f6bc.jpg'); }
.hero-bg.contact-hero { background-image: url('_uploads/ai_4ed8f10ba800d585.jpg'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(62,89,64,0.75) 0%, rgba(45,45,45,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem;
  animation: fadeUp 1s ease-out;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.92;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,169,110,0.35);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Features / Benefits Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.5rem;
  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(--white);
}
.feature-card h3 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Process / Steps ===== */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  counter-reset: step;
}
.step {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem; right: 1.5rem;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--primary-dark); }
.stars { color: var(--accent); margin-bottom: 0.75rem; font-size: 1.1rem; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
  border-radius: var(--radius);
  margin: 3rem auto;
  max-width: 1100px;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; opacity: 0.9; font-size: 1.1rem; }

/* ===== Contact Form ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { color: var(--primary-dark); margin-bottom: 0.15rem; font-size: 0.95rem; }
.contact-info-item p { color: var(--text-light); font-size: 0.95rem; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
  direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,123,94,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
  font-weight: 500;
  text-align: center;
}
.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-message.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.3rem; }
.footer-brand p { max-width: 300px; font-size: 0.9rem; opacity: 0.8; }
.footer-links h4 { color: var(--white); margin-bottom: 0.75rem; }
.footer-links a {
  display: block;
  padding: 0.25rem 0;
  opacity: 0.8;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-links a:hover { opacity: 1; color: var(--accent-light); }
.footer-contact p { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Glassmorphism Accent ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  section { padding: 3rem 0; }
  .hero { min-height: 85vh; }
  .hero-bg { background-attachment: scroll; }
  .cta-section { margin: 2rem 1rem; padding: 2.5rem 1.5rem; }
}

/* Contact hero smaller */
.hero-mini {
  min-height: 50vh;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}
