@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --green-dark: #1a3a2e;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --bg-dark: #0d1b16;
  --bg-card: #152b21;
  --text-white: #f5f5f0;
  --text-gray: #b8b8b0;
  --border: rgba(201,168,76,0.2);
  --radius: 8px;
  --transition: 0.35s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  direction: rtl;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,27,22,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 0.7rem 5%; background: rgba(13,27,22,0.98); }

.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); }
.nav-logo small { display: block; font-size: 0.65rem; color: var(--text-gray); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem; color: var(--text-gray);
  transition: var(--transition); padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--gold); color: #000 !important;
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  font-weight: 700; border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-light); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-white); transition: var(--transition); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide .bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,22,0.85) 0%, rgba(26,58,46,0.6) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  padding: 0 8%; max-width: 650px;
}
.hero-content .badge {
  display: inline-block; padding: 0.3rem 1rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.8rem; letter-spacing: 2px; border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3; margin-bottom: 1rem;
  color: var(--text-white);
}
.hero-content h1 span { color: var(--gold); }
.hero-content p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 2rem; line-height: 1.8; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: #000;
  padding: 0.8rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-family: 'Tajawal', sans-serif;
  font-size: 1rem; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold); color: var(--gold);
  padding: 0.8rem 2rem; border-radius: var(--radius);
  font-size: 1rem; cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: var(--gold); color: #000; }

/* Hero Controls */
.hero-controls {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.1);
  border: 1px solid var(--border); color: var(--text-white);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1.2rem; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.hero-arrow.prev { right: 2rem; }
.hero-arrow.next { left: 2rem; }

/* ===== SECTION STYLES ===== */
section { padding: 5rem 8%; }

.section-label {
  font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 1rem; color: var(--text-white);
}
.section-line {
  width: 60px; height: 2px; background: var(--gold);
  margin-bottom: 2rem;
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--green-dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3rem 8%;
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 1rem;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; color: var(--gold);
}
.stat-label { font-size: 0.9rem; color: var(--text-gray); margin-top: 0.3rem; }

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-img-wrap img { width: 100%; height: 500px; object-fit: cover; }
.about-img-wrap::before {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid var(--gold); border-radius: var(--radius);
  opacity: 0.4; z-index: -1;
}

/* ===== PRODUCT CAROUSEL ===== */
.products-section { background: var(--bg-dark); }
.carousel-wrap { position: relative; }
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s ease;
}

.product-card {
  flex: 0 0 calc(25% - 1.2rem);
  background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.product-card .card-img {
  height: 220px; overflow: hidden; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .card-img img { transform: scale(1.08); }

.product-card .card-body { padding: 1.2rem; }
.product-card .card-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.product-card .card-sub { font-size: 0.8rem; color: var(--text-gray); }
.product-card .card-btn {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.85rem; color: var(--gold);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.product-card:hover .card-btn { border-bottom-color: var(--gold); }

.carousel-btn {
  position: absolute; top: 40%; transform: translateY(-50%);
  background: var(--green-dark); border: 1px solid var(--border);
  color: var(--text-white); width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1.1rem;
}
.carousel-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.carousel-btn.prev-btn { right: -1.5rem; }
.carousel-btn.next-btn { left: -1.5rem; }

.carousel-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 2rem;
}
.carousel-tabs { display: flex; gap: 1rem; }
.carousel-tab {
  background: none; border: none; cursor: pointer;
  padding: 0.4rem 1rem; border-radius: 50px;
  font-family: 'Tajawal', sans-serif; font-size: 0.9rem;
  color: var(--text-gray); border: 1px solid transparent;
  transition: var(--transition);
}
.carousel-tab.active { color: var(--gold); border-color: var(--gold); }

/* ===== WHY US ===== */
.why-section { background: var(--green-dark); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); background: rgba(201,168,76,0.06); border-color: var(--gold); }
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-white); }
.why-card p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative; text-align: center; overflow: hidden;
}
.cta-section .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.cta-section .bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,27,22,0.88);
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 1rem; }
.cta-content p { color: var(--text-gray); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  background: #081109;
  border-top: 1px solid var(--border);
  padding: 3.5rem 8% 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.8; margin: 1rem 0; }
.footer-social { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #000; }

.footer-col h4 { font-size: 1rem; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-gray); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-gray);
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
  background: #25d366; color: #fff;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  height: 45vh; min-height: 350px;
  display: flex; align-items: center;
  padding: 0 8%; position: relative; overflow: hidden;
  margin-top: 70px;
}
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .bg::after { content: ''; position: absolute; inset: 0; background: rgba(13,27,22,0.8); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,4vw,3rem); }
.page-hero-content p { color: var(--text-gray); margin-top: 0.8rem; font-size: 1rem; }

/* ===== PRODUCTS GRID (inner pages) ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
  margin-top: 2.5rem;
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.85rem; color: var(--gold); margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.95rem; color: var(--text-gray); }

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-white);
  font-family: 'Tajawal', sans-serif; font-size: 0.95rem;
  margin-bottom: 1rem; transition: var(--transition); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== ABOUT VALUES ===== */
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--gold); }
.value-card .v-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.value-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.value-card p { color: var(--text-gray); font-size: 0.92rem; line-height: 1.7; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

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

/* ===== PRODUCT MARBLE SWATCH ===== */
.swatch {
  width: 100%; height: 200px; border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.swatch-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1, #d4d0c8) 0%, var(--c2, #b8b4a8) 100%);
  display: flex; align-items: center; justify-content: center;
}
.swatch-pattern { width: 100%; height: 100%; opacity: 0.6; }
