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

:root {
  --primary: #113946;
  --secondary: #BCA37F;
  --accent: #EAD7BB;
  --light: #FFF2D8;
  --purple: #A886CD;
  --dark: #333333;
  --white: #ffffff;
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

body.rtl {
  direction: rtl;
  font-family: var(--font-ar);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* ===== Header / Navbar ===== */
.navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.navbar .logo img {
  height: 55px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-links a {
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary);
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 100;
}

body.rtl .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  color: var(--dark) !important;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--accent) !important;
  color: var(--primary) !important;
}

/* Language toggle */
.lang-toggle {
  background: var(--secondary);
  color: var(--primary) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    display: none;
    padding-left: 15px;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: var(--white) !important; }
}

/* ===== Hero Carousel ===== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,57,70,0.85), rgba(17,57,70,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots span.active { background: var(--secondary); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(188,163,127,0.4);
}

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

.btn-purple:hover {
  background: #9370b8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168,134,205,0.4);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  color: #777;
  font-size: 1.05rem;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card .btn {
  margin-top: 20px;
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* ===== About Section ===== */
.about-section {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-text .highlight {
  background: var(--accent);
  border-left: 4px solid var(--secondary);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--primary);
}

body.rtl .about-text .highlight {
  border-left: none;
  border-right: 4px solid var(--secondary);
  border-radius: 8px 0 0 8px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--primary);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--secondary);
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info .info-item i {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-top: 4px;
}

.contact-info .info-item p {
  opacity: 0.9;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--secondary);
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255,255,255,0.18);
}

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), #1a5568);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  font-size: 0.95rem;
  opacity: 0.8;
}

.page-header .breadcrumb a {
  color: var(--secondary);
}

/* ===== Service Detail Page ===== */
.service-detail {
  background: var(--light);
}

.service-detail-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.service-detail-content .service-icon {
  width: 90px;
  height: 90px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: var(--primary);
}

.service-detail-content h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.service-detail-content p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}

.service-detail-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

body.rtl .service-detail-content ul {
  padding-left: 0;
  padding-right: 20px;
}

.service-detail-content ul li {
  list-style: none;
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 25px;
}

body.rtl .service-detail-content ul li {
  padding-left: 0;
  padding-right: 25px;
}

.service-detail-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary);
  position: absolute;
  left: 0;
}

body.rtl .service-detail-content ul li::before {
  left: auto;
  right: 0;
}

.service-detail-content .cta-box {
  background: var(--accent);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
}

.service-detail-content .cta-box h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.service-detail-content .cta-box p {
  margin-bottom: 20px;
}

/* ===== Footer ===== */
.footer {
  background: #0a2a34;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-col .footer-logo {
  height: 50px;
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.7rem; }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

body.rtl .whatsapp-float {
  right: auto;
  left: 30px;
}

/* ===== About Page Specific ===== */
.about-page-content {
  padding: 80px 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.about-feature {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.about-feature i {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.about-feature h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.about-feature p {
  color: #666;
  font-size: 0.9rem;
}

/* ===== Disclaimer Box ===== */
.disclaimer-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 25px 30px;
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.disclaimer-box i {
  color: #ffc107;
  font-size: 1.5rem;
  margin-top: 2px;
}

.disclaimer-box p {
  color: #856404;
  font-size: 0.95rem;
}
