/* ===== VARIABLES ===== */
:root {
  /* Primary Colors */
  --soft-lilac: #B8A3D3;
  --mint-green: #A8E6CF;
  
  /* Neutrals */
  --warm-white: #FAF9F7;
  --light-grey: #E7E7E7;
  --charcoal: #3A3A3C;
  
  /* Accent Colors */
  --soft-peach: #F9D7C2;
  --gold-beige: #E6D8B9;
  
  /* Typography */
  --font-heading: 'Arial', sans-serif;
  --font-body: 'Arial', sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.5;
}

/* ===== HEADER STYLES ===== */
.main-header {
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--light-grey);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--soft-lilac);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--soft-lilac);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--soft-lilac);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--charcoal);
  transition: 0.3s;
}

/* ===== FOOTER STYLES ===== */
.main-footer {
  background-color: var(--mint-green);
  padding: 2.5rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-section h4 {
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.footer-section p {
  color: var(--charcoal);
  opacity: 0.9;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--soft-lilac);
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 1rem 20px 0;
  border-top: 1px solid rgba(58, 58, 60, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: var(--charcoal);
  opacity: 0.8;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

/* ===== MAIN CONTENT STYLES ===== */
main {
  max-width: 1200px;
  margin: 90px auto 0;
  padding: 0; /* ⬅️ التعديل الوحيد: غيرت من 20px إلى 0 */
  min-height: calc(100vh - 350px);
}

/* Button Styles */
.btn-primary {
  background-color: var(--soft-lilac);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #a992c7;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  padding: 10px 20px;
  border: 2px solid var(--mint-green);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn-secondary:hover {
  background-color: var(--mint-green);
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: var(--warm-white);
  border: 1px solid var(--mint-green);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(184, 163, 211, 0.1);
}

/* Section Styles */
.section {
  padding: 2.5rem 20px; /* ⬅️ التعديل الثاني: أضفت 20px جانبي */
}

.section-light {
  background-color: rgba(184, 163, 211, 0.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--warm-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    gap: 1.2rem;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
  }
  
  main {
    margin-top: 70px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 60px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  main {
    margin-top: 60px;
  }
  
  .section {
    padding: 2rem 15px; /* ⬅️ تكيف مع الهاتف */
  }
}
