
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --green: #0F4C2A;
  --green-light: #26A65B;
  --red: #A31919;
  --white: #FFFFFF;
  --text-light: #666666;
  --bg-swoosh: #E7F0EB;
  --pill-bg: #F8F9FA;
  --bg-color: #FFF9F6;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Georgia', serif;
}

[dir="rtl"] {
  --font-sans: 'Cairo', sans-serif;
  --font-serif: 'Cairo', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  transition: padding 0.3s ease;
}

.navbar.scrolled .nav-inner {
  padding: 10px 20px;
}

.swoosh-bg {
  display: none; /* Removed for the new edge-to-edge design */
}

.nav-logo img {
  height: 60px;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  height: 45px;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: color 0.2s;
}

.nav-link.active {
  color: var(--green);
  font-weight: 600;
}

.nav-link .indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background-color: var(--red);
  border-radius: 2px;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-link.active .indicator {
  width: 100%;
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: var(--white);
  border: 1px solid #ccc;
  color: #000;
  font-family: inherit;
  font-weight: bold;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(163, 25, 25, 0.3);
}
.lang-toggle:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 6px 16px rgba(163, 25, 25, 0.4);
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-whatsapp {
  background-color: var(--green-light);
  box-shadow: 0 4px 8px rgba(38, 166, 91, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1E824C;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(38, 166, 91, 0.4);
}

.btn-red {
  background-color: var(--red);
}

.btn-red:hover {
  background-color: #C83232;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(163, 25, 25, 0.4);
}

.btn-green {
  background-color: var(--green);
}

.btn-green:hover {
  background-color: #1E824C;
  transform: scale(1.05);
}

.btn-outline {
  background-color: var(--white);
  border: 1px solid #CCC;
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: #F8F9FA;
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--red);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  margin-top: 8px;
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
}

.mobile-menu a.active {
  color: var(--red);
  font-weight: bold;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px;
  }

  .navbar.scrolled {
    padding: 6px 12px;
  }

  .nav-inner {
    padding: 8px 12px;
    border-radius: 30px;
    gap: 8px;
  }

  .nav-logo img {
    height: 48px;
  }

  .navbar.scrolled .nav-logo img {
    height: 42px;
  }

  .nav-links-desktop { display: none; }

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 34px;
  }

  .btn-whatsapp {
    padding: 10px;
    min-width: 40px;
  }

  .btn-whatsapp i {
    font-size: 18px;
  }

  .btn-whatsapp span { display: none; }

  .mobile-menu-btn {
    display: block;
    padding: 6px;
    font-size: 18px;
  }

  .nav-spacer {
    height: 90px;
  }
}

/* Spacer for fixed navbar */
.nav-spacer {
  height: 120px;
}

/* Fade In View */
.fade-in-view {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-view.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--green);
  width: 100%;
}
.footer-inner {
  padding: 60px 80px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    padding: 40px;
    gap: 40px;
  }
}
.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-col-large {
  flex: 1.5;
}
.footer-logo-box {
  background: var(--white);
  padding: 12px 24px;
  border-radius: 30px 30px 4px 4px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.footer-logo-box img {
  height: 45px;
}
.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 16px;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background-color: #26A65B;
  transform: scale(1.15);
}
.footer-col h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}
.footer-link {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--white);
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.5;
}
.footer-contact i {
  color: var(--white);
  width: 20px;
  text-align: center;
  margin-top: 3px;
}
.copyright-container {
  padding: 0 40px 32px;
  text-align: center;
}
.copyright-divider {
  max-width: 1200px;
  height: 1px;
  background-color: rgba(255,255,255,0.1);
  margin: 0 auto 24px;
}
.copyright-text {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.copyright-text a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

/* Utility Classes */
.container-box {
  padding: 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .container-box { padding: 40px 24px; }
}
.section-title {
  font-family: var(--font-serif);
  color: var(--green);
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#preloader img {
  width: 120px;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
