/* ===== أفراح الكويت - Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --gold: #D4A853;
  --gold-light: #E8C97A;
  --gold-dark: #B8923F;
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-dark: #0f0f1e;
  --green-kw: #007A3D;
  --green-light: #00A854;
  --white: #ffffff;
  --off-white: #f8f6f2;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-600: #6b6b6b;
  --gray-800: #333333;
  --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);
  --shadow-gold: 0 4px 20px rgba(212,168,83,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Cairo', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.8;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.4; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1rem; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: var(--navy); margin-bottom: 10px; position: relative; display: inline-block; }
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px auto 0; border-radius: 2px;
}
.section-title p { color: var(--gray-600); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.text-gold { color: var(--gold); }
.bg-light { background: var(--off-white); }
.bg-navy { background: var(--navy); color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-xl);
  font-size: 1rem; font-weight: 700; transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white); box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212,168,83,0.4); }
.btn-outline {
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-whatsapp {
  background: #25D366; color: var(--white);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* --- Header / Navbar --- */
.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(12px);
  transition: var(--transition); padding: 0;
}
.header.scrolled { box-shadow: var(--shadow-md); background: rgba(26, 26, 46, 0.98); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 45px; height: 45px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white); font-weight: 900;
}
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem;
  padding: 8px 4px; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-right: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.hamburger span { width: 25px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(15,15,30,0.88)), url('../images/hero-bg.webp') center/cover no-repeat;
  color: var(--white); padding-top: 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212,168,83,0.08) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5%,3%); } }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,83,0.15); border: 1px solid rgba(212,168,83,0.3);
  padding: 8px 20px; border-radius: var(--radius-xl); font-size: 0.9rem;
  color: var(--gold-light); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; font-weight: 900; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 550px; line-height: 2; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 50px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat h3 { font-size: 2rem; color: var(--gold); font-weight: 900; }
.hero-stat p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* --- Services Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 35px;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
  overflow: hidden; border: 1px solid var(--gray-200);
}
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(212,168,83,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.8; }
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-weight: 700; margin-top: 15px; font-size: 0.95rem;
}
.service-card .learn-more:hover { gap: 12px; }

/* --- About Preview --- */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); }
.about-image::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
  transform: translate(-15px, 15px); z-index: -1;
}
.about-text h2 { color: var(--navy); margin-bottom: 20px; }
.about-text p { color: var(--gray-600); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.about-feature { display: flex; align-items: center; gap: 10px; }
.about-feature .check { color: var(--gold); font-size: 1.2rem; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 15px; left: 20px;
  font-size: 4rem; color: rgba(212,168,83,0.15); font-family: serif; line-height: 1;
}
.testimonial-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 15px; line-height: 1.9; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 45px; height: 45px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 1rem;
}
.testimonial-name { font-weight: 700; color: var(--navy); }
.testimonial-role { font-size: 0.8rem; color: var(--gray-600); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(212,168,83,0.1) 0%, transparent 60%);
}
.cta-section h2 { color: var(--white); margin-bottom: 15px; position: relative; z-index: 2; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 30px; position: relative; z-index: 2; }
.cta-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* --- Footer --- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { font-size: 0.9rem; line-height: 1.9; margin-top: 15px; }
.footer h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; padding: 6px 0; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-right: 8px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; }
.footer-contact li span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}

/* --- Breadcrumb --- */
.breadcrumb { padding: 15px 0; font-size: 0.9rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--gray-600); margin: 0 8px; }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 140px 0 60px; text-align: center; color: var(--white); position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(212,168,83,0.08), transparent 60%);
}
.page-header h1 { position: relative; z-index: 2; margin-bottom: 10px; }
.page-header p { position: relative; z-index: 2; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

/* --- Gallery --- */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.gallery-filter {
  padding: 10px 24px; border-radius: var(--radius-xl); background: var(--gray-100);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition); cursor: pointer;
  border: 2px solid transparent;
}
.gallery-filter.active, .gallery-filter:hover {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer; transition: var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,46,0.8), transparent);
  opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: var(--white); font-weight: 600; }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; left: 20px; color: var(--white); font-size: 2rem;
  background: none; cursor: pointer; z-index: 10;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 2.5rem; background: rgba(255,255,255,0.1);
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition); border: none;
}
.lightbox-nav:hover { background: rgba(212,168,83,0.3); }
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

/* --- Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 25px; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-image { height: 220px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 25px; }
.blog-card-meta { display: flex; gap: 15px; font-size: 0.8rem; color: var(--gray-600); margin-bottom: 12px; }
.blog-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.blog-card p { color: var(--gray-600); font-size: 0.9rem; }
.blog-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-weight: 700; margin-top: 12px; font-size: 0.9rem;
}

/* --- Blog Post --- */
.blog-post { max-width: 800px; margin: 0 auto; }
.blog-post h2 { color: var(--navy); margin: 35px 0 15px; }
.blog-post h3 { color: var(--navy); margin: 25px 0 12px; }
.blog-post p { color: var(--gray-800); line-height: 2; }
.blog-post ul, .blog-post ol { padding-right: 25px; margin: 15px 0; }
.blog-post li { margin-bottom: 8px; color: var(--gray-800); line-height: 1.8; list-style: disc; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-cards { display: grid; gap: 20px; }
.contact-info-card {
  display: flex; align-items: center; gap: 15px;
  background: var(--white); padding: 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.contact-icon {
  width: 50px; height: 50px; border-radius: var(--radius-md); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-form-wrap {
  background: var(--white); padding: 35px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem;
  transition: var(--transition); background: var(--gray-100);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); outline: none; background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 25px; left: 25px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: var(--transition);
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
}

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  padding: 18px 24px; font-weight: 700; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; background: var(--white);
  transition: var(--transition); color: var(--navy);
}
.faq-question:hover { background: var(--off-white); }
.faq-question .arrow { transition: var(--transition); font-size: 0.8rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 24px 18px; max-height: 500px; }
.faq-answer p { color: var(--gray-600); line-height: 1.9; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-preview { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; right: 0; left: 0; background: var(--navy);
    padding: 20px; gap: 5px; box-shadow: var(--shadow-lg);
  }
  .nav-links.active a { padding: 12px 20px; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .blog-grid { grid-template-columns: 1fr; }
}
