/* ============================================================
   DECOR ELITE — Light & Vibrant UI (Complete Redesign)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-bright: #F0C040;
  --accent: #8B5E3C;
  --accent2: #C17F3A;
  --bg-main: #FDF8F0;
  --bg-section: #FAF4E8;
  --bg-card: #FFFFFF;
  --text-dark: #2C1810;
  --text-mid: #5A3E28;
  --text-light: #8B6B4A;
  --border: #E8D5B0;
  --shadow: rgba(139, 94, 60, 0.15);
  --cream: #F5EFE0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  direction: rtl;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 70px;
  background: rgba(255, 252, 245, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 20px rgba(139, 94, 60, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.nav-brand {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 1px 2px rgba(184,134,11,0.2);
}

.brand-icon { font-size: 1.3rem; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-shrink: 1;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

.discount-link {
  border: 2px solid var(--gold);
  padding: 7px 18px;
  border-radius: 20px;
  color: var(--gold) !important;
  transition: all 0.3s;
  font-weight: 700 !important;
}

.discount-link:hover {
  background: var(--gold);
  color: #fff !important;
}

.nav-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 1001;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  gap: 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDF8F0 0%, #F8EDD8 40%, #FAEBD7 100%);
}

/* خلفية صور أثاث خفية */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=200&q=30') 5% 20% / 160px no-repeat,
    url('https://images.unsplash.com/photo-1567538096630-e0c55bd6374c?w=200&q=30') 90% 15% / 140px no-repeat,
    url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=200&q=30') 2% 75% / 130px no-repeat,
    url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?w=200&q=30') 88% 70% / 150px no-repeat;
  opacity: 0.07;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 2;
  position: relative;
}

.hero-sub {
  color: var(--accent2);
  letter-spacing: 3px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-sub::before {
  content: '';
  display: inline-block;
  width: 30px; height: 2px;
  background: var(--accent2);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
}

.hero-title em {
  color: var(--gold);
  font-style: italic;
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--gold-light), transparent);
  border-radius: 2px;
}

.hero-desc {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── STATS BAR ───────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(184,134,11,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(184,134,11,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border: 2px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── HERO IMAGE ──────────────────────────────────────────────── */
.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(139,94,60,0.25), 0 4px 12px rgba(0,0,0,0.08);
  max-width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: cover;
}

/* دائرة ديكور */
.hero-image::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold-bright);
  opacity: 0.4;
  z-index: 0;
}

/* ── FEATURES STRIP ──────────────────────────────────────────── */
.features-strip {
  background: linear-gradient(135deg, var(--gold), var(--accent2));
  padding: 22px 5%;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-item span:first-child { font-size: 1.3rem; }

/* ── FURNITURE GALLERY (قسم جديد) ───────────────────────────── */
.furniture-gallery {
  padding: 70px 5%;
  background: var(--bg-section);
}

.furniture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.furn-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.furn-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(139,94,60,0.25);
}

.furn-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.furn-item:hover img { transform: scale(1.08); }

.furn-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(to top, rgba(44,24,16,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.furn-item.tall { aspect-ratio: 2/3; }
.furn-item.wide { grid-column: span 2; aspect-ratio: 16/9; }

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  padding: 80px 5%;
  background: var(--bg-main);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  color: var(--gold);
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.2);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-header h2 {
  font-size: 2.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px var(--shadow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139,94,60,0.2);
}

.service-card img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover img { transform: scale(1.05); }

.service-card h3 {
  padding: 16px 20px 4px;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.service-card p {
  padding: 6px 20px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(184,134,11,0.18);
}

/* ── PORTFOLIO ───────────────────────────────────────────────── */
.portfolio {
  padding: 80px 5%;
  background: var(--bg-section);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139,94,60,0.25);
}

.portfolio-item.large { grid-column: span 2; aspect-ratio: 16/9; }

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.portfolio-item:hover img { transform: scale(1.1); }

.portfolio-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(44,24,16,0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-info { opacity: 1; }

.portfolio-info h3 { color: var(--gold-bright); margin-bottom: 5px; font-size: 1.2rem; }
.portfolio-info p  { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ── INSPIRATION WALL ────────────────────────────────────────── */
.inspiration {
  padding: 70px 5%;
  background: var(--bg-main);
}

.inspo-mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 40px;
}

.inspo-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
}

.inspo-item:hover { transform: scale(1.03); }
.inspo-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.inspo-item.tall img { height: 332px; }
.inspo-item.span2 { grid-column: span 2; }
.inspo-item.span2 img { height: 160px; }

.inspo-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,252,245,0.9);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ── TESTIMONIAL ─────────────────────────────────────────────── */
.testimonial {
  padding: 60px 5%;
  background: linear-gradient(135deg, #FDF3E3, #FAE8C8);
  text-align: center;
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--text-mid);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.8;
  font-family: 'Playfair Display', serif;
}

.testimonial-quote::before { content: '"'; font-size: 3rem; color: var(--gold); line-height: 0; vertical-align: -0.5em; margin-left: 6px; }
.testimonial-author { color: var(--gold); font-weight: 700; font-size: 0.95rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  padding: 30px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .furniture-grid { grid-template-columns: repeat(3, 1fr); }
  .inspo-mosaic { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image img { max-height: 50vh; }
  .hero::before { opacity: 0.04; }
  .furniture-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; right: 0; left: 0;
    background: rgba(255,252,245,0.98);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--border);
    gap: 15px;
  }
  .nav-links.active { display: flex; }
  .nav-menu { display: block; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.large { grid-column: span 1; }
  .section-header h2 { font-size: 2rem; }
  .features-strip { gap: 20px; }
  .inspo-mosaic { grid-template-columns: repeat(2, 1fr); }
  .inspo-item.span2 { grid-column: span 2; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .btn { padding: 11px 22px; font-size: 0.9rem; }
  .furniture-grid { grid-template-columns: repeat(2, 1fr); }
  .inspo-mosaic { grid-template-columns: repeat(2, 1fr); }
}