/* ==========================================
   Healing Center - Main Stylesheet
   Colors: #F78154, #6DA566, #A28966, #FDD26F, #4D9078
   ========================================== */

/* CSS Variables */
:root {
  --color-primary-orange: #F78154;
  --color-primary-green: #6DA566;
  --color-primary-brown: #A28966;
  --color-secondary-gold: #FDD26F;
  --color-secondary-teal: #4D9078;
  --color-dark: #3D3225;
  --color-light: #F8F5F0;
  --color-white: #FFFFFF;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

body[dir="rtl"] {
  font-family: var(--font-arabic);
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Top Bar */
.top-bar {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar a {
  color: var(--color-secondary-gold);
  margin: 0 8px;
}

.top-bar a:hover {
  color: var(--color-primary-orange);
}

.top-bar .social-links a {
  color: var(--color-white);
  margin: 0 6px;
  font-size: 14px;
}

.top-bar .social-links a:hover {
  color: var(--color-secondary-gold);
}

/* Navigation */
.main-navbar {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-navbar .navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-orange), var(--color-primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.main-navbar .nav-link {
  color: var(--color-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 25px 18px !important;
  text-transform: uppercase;
  position: relative;
}

body[dir="rtl"] .main-navbar .nav-link {
  font-size: 0.85rem;
}

.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-primary-orange);
  transform: scaleX(0);
  transition: var(--transition);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--color-primary-orange) !important;
}

.lang-switcher {
  background: var(--color-primary-green);
  color: var(--color-white) !important;
  border-radius: 25px;
  padding: 8px 20px !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-switcher:hover {
  background: var(--color-secondary-teal);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(61, 50, 37, 0.7) 0%,
    rgba(77, 144, 120, 0.5) 50%,
    rgba(109, 165, 102, 0.4) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-secondary-gold);
  font-weight: 500;
}

.hero-content .description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.8;
  opacity: 0.95;
}

.hero-buttons .btn {
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  margin: 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary-custom {
  background: var(--color-primary-orange);
  color: var(--color-white);
  border: 2px solid var(--color-primary-orange);
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--color-primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(247, 129, 84, 0.3);
}

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

.btn-outline-custom:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-3px);
}

/* Section Styles */
.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-orange), var(--color-primary-green));
  margin: 20px auto;
  border-radius: 2px;
}

/* Feature Cards */
.feature-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.feature-card .feature-img {
  height: 240px;
  overflow: hidden;
}

.feature-card .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-card:hover .feature-img img {
  transform: scale(1.1);
}

.feature-card .feature-body {
  padding: 30px;
}

.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Icon backgrounds */
.icon-orange { background: rgba(247, 129, 84, 0.15); color: var(--color-primary-orange); }
.icon-green { background: rgba(109, 165, 102, 0.15); color: var(--color-primary-green); }
.icon-gold { background: rgba(253, 210, 111, 0.2); color: #C9961A; }
.icon-teal { background: rgba(77, 144, 120, 0.15); color: var(--color-secondary-teal); }
.icon-brown { background: rgba(162, 137, 102, 0.15); color: var(--color-primary-brown); }

/* Content Section (Image + Text) */
.content-section {
  padding: 80px 0;
}

.content-section.alt-bg {
  background: var(--color-white);
}

.content-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.content-img-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.content-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.content-text .lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-text p {
  color: var(--color-text);
  line-height: 1.8;
}

/* Services Page Specific */
.service-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

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

.service-card .service-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-card .service-body {
  padding: 30px;
}

.service-card .service-num {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

body[dir="rtl"] .service-card .service-num {
  left: auto;
  right: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card .service-subtitle {
  color: var(--color-primary-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About Page Specific */
.mission-card, .vision-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  height: 100%;
}

.mission-card {
  border-top: 4px solid var(--color-primary-orange);
}

.vision-card {
  border-top: 4px solid var(--color-primary-green);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

body[dir="rtl"] .value-item {
  flex-direction: row-reverse;
}

.value-item .value-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.value-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary-teal), var(--color-primary-green));
  padding: 100px 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-section h2 {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 35px;
  opacity: 0.95;
  position: relative;
}

/* Footer */
.main-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 70px 0 0;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-about {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-right: 10px;
  transition: var(--transition);
}

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

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--color-secondary-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-orange);
  padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
}

body[dir="rtl"] .footer-contact li {
  flex-direction: row-reverse;
}

.footer-contact i {
  color: var(--color-primary-orange);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  margin-top: 50px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

body[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 25px;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--color-primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
  border: none;
}

body[dir="rtl"] .scroll-top {
  right: auto;
  left: 25px;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-primary-green);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(247, 129, 84, 0.2);
  border-top-color: var(--color-primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .main-navbar .nav-link {
    padding: 12px 15px !important;
  }

  .main-navbar .nav-link::after {
    display: none;
  }

  .content-img-wrapper img {
    height: 300px;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .mission-card, .vision-card {
    padding: 30px;
  }
}
