/* ===== CSS Variables ===== */
:root {
  --color-black: #1a1a1a;
  --color-dark: #2c2c2c;
  --color-gold: #c9a96e;
  --color-gold-light: #d4b97a;
  --color-gold-dark: #b8944f;
  --color-white: #ffffff;
  --color-off-white: #f8f6f3;
  --color-cream: #f0ece4;
  --color-wood: #8b6914;
  --color-gray: #6b6b6b;
  --color-light-gray: #e0dcd5;
  --color-success: #2ecc71;
  --color-error: #e74c3c;
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 16px; position: relative; }
.section-subtitle { text-align: center; color: var(--color-gray); margin-bottom: 48px; font-size: 1.1rem; }
.gold-line { width: 60px; height: 3px; background: var(--color-gold); margin: 16px auto 0; border-radius: 2px; }
.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(201,169,110,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,169,110,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-black);
}
.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  transition: color var(--transition);
}
.nav-logo span { color: var(--color-gold); }
.navbar.scrolled .nav-logo { color: var(--color-black); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--color-black); }
.nav-cta {
  padding: 10px 24px !important;
  background: var(--color-gold) !important;
  color: var(--color-white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--color-gold-dark) !important; }

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  transition: right 0.4s ease;
  padding: 100px 32px 32px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-light-gray);
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active { opacity: 1; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-home { background-image: url('_uploads/ai_a036dc6518a820ae.jpg'); }
.hero-about { background-image: url('_uploads/ai_f00fb31bae9bb4d8.jpg'); }
.hero-services { background-image: url('_uploads/ai_5e9039c17c9f5636.jpg'); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 24px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Mini Hero for inner pages */
.hero-mini {
  min-height: 50vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.75), rgba(26,26,26,0.55));
  z-index: 1;
}
.hero-mini .hero-content { z-index: 2; position: relative; }
.hero-mini .hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-white);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-gray); font-size: 0.95rem; }

/* ===== 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 / Stats ===== */
.stats-bar {
  background: var(--color-black);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: var(--color-white);
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.stat-item p { font-size: 0.95rem; opacity: 0.8; }

/* ===== Process Steps ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--color-gray); font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testimonials-section { background: var(--color-off-white); }
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-gold);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: Georgia, serif;
}
.testimonial-card p { margin-top: 24px; color: var(--color-gray); font-style: italic; }
.testimonial-author { margin-top: 16px; font-weight: 600; color: var(--color-black); }
.testimonial-stars { color: var(--color-gold); margin-top: 8px; letter-spacing: 2px; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-black), var(--color-dark));
  padding: 64px 0;
  text-align: center;
  color: var(--color-white);
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; opacity: 0.8; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Services Grid ===== */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--color-cream), var(--color-light-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.service-card-body { padding: 24px; }
.service-card-body h3 { margin-bottom: 12px; }
.service-card-body p { color: var(--color-gray); font-size: 0.9rem; margin-bottom: 16px; }
.service-card-link {
  color: var(--color-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card-link:hover { color: var(--color-gold-dark); }

/* ===== Contact / Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--color-white);
  direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-white);
  flex-shrink: 0;
}

/* Form Messages */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
  display: none;
  animation: fadeIn 0.3s ease;
}
.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--color-gold); }
.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  background: var(--color-white);
  transition: background var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--color-off-white); }
.faq-question .arrow {
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--color-gold);
  flex-shrink: 0;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--color-gray);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ===== Funnel ===== */
.funnel-section { background: var(--color-off-white); }
.funnel-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.funnel-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.funnel-benefit {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.funnel-benefit .icon { font-size: 2rem; margin-bottom: 12px; }
.funnel-benefit h3 { font-size: 1rem; margin-bottom: 8px; }
.funnel-benefit p { font-size: 0.85rem; color: var(--color-gray); }

/* ===== Quote Flow ===== */
.quote-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.quote-step-indicator {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-light-gray);
  transition: background var(--transition);
}
.quote-step-indicator.active { background: var(--color-gold); }
.quote-step { display: none; animation: fadeIn 0.4s ease; }
.quote-step.active { display: block; }
.quote-option {
  padding: 16px 20px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-option:hover,
.quote-option.selected {
  border-color: var(--color-gold);
  background: rgba(201,169,110,0.05);
}
.quote-option .check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-light-gray);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-option.selected .check {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-white);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-white);
}
.footer-brand h3 span { color: var(--color-gold); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 {
  margin-bottom: 20px;
  color: var(--color-gold);
  font-size: 1rem;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== Privacy ===== */
.privacy-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--color-black); }
.privacy-content h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.privacy-content p, .privacy-content li { color: var(--color-gray); line-height: 1.8; }
.privacy-content ul { padding-right: 24px; list-style: disc; margin-bottom: 16px; }
.privacy-content li { margin-bottom: 8px; }

/* ===== Service Detail Page ===== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-features { margin: 24px 0; }
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.service-feature-item .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
  font-size: 1rem;
}
.service-visual {
  background: linear-gradient(135deg, var(--color-cream), var(--color-light-gray));
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .mobile-overlay { display: block; }

  .hero { background-attachment: scroll; }
  .hero-mini { background-attachment: scroll; }
  .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }

  .section { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .funnel-benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .funnel-form-wrapper { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .stat-item h3 { font-size: 2rem; }
}

/* Loading spinner for forms */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
