/* ============================================================
   مفروشات الرياض — Classic Conversion-Focused Stylesheet
   ============================================================ */
:root {
  --gold: #b8933f;
  --gold-dark: #8f6f27;
  --gold-light: #e6d4a3;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --muted: #7a746a;
  --cream: #faf7f1;
  --sand: #f1ebdf;
  --line: #e2dbcc;
  --white: #ffffff;
  --green: #25d366;
  --green-dark: #1da851;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 26, 23, 0.16);
  --radius: 6px;
  --max: 1180px;
  --font-head: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.4; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--cream); }
.eyebrow {
  display: inline-block; color: var(--gold); letter-spacing: .08em;
  font-weight: 700; font-size: .85rem; margin-bottom: .6rem;
}
.eyebrow::before { content: "— "; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Ornament ---------- */
.divider {
  width: 120px; height: 14px; margin: 1rem auto 0;
  background:
    linear-gradient(var(--gold), var(--gold)) center/100% 1px no-repeat;
  position: relative;
}
.divider::after {
  content: "◆"; position: absolute; inset: 0; text-align: center;
  color: var(--gold); font-size: 12px; line-height: 14px;
  background: var(--cream); width: 24px; margin: auto;
}
.section-alt .divider::after { background: var(--sand); }
.section-dark .divider::after { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: var(--radius); font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: inherit; font-size: 1rem; white-space: nowrap; line-height: 1.5;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-whatsapp { background: var(--green); color: var(--white); }
.btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink); color: var(--cream); font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-light); }
.topbar svg { width: 15px; height: 15px; }
.topbar-right { display: flex; gap: 1.2rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(250,247,241,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-family: var(--font-head);
  font-weight: 700; font-size: 1.3rem;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { font-weight: 600; position: relative; padding: .4rem 0; }
.nav a::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-dark); }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.header-cta .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: grid; align-items: center;
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(20,18,15,.9) 0%, rgba(20,18,15,.78) 45%, rgba(20,18,15,.3) 100%);
}
.hero-inner { padding: 5rem 0; max-width: 640px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 540px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 2rem; }
.hero-trust { display: flex; gap: 2.2rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.4rem; }
.hero-trust div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-light); line-height: 1.1; }
.hero-trust div span { font-size: .85rem; opacity: .85; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 5rem 0 4rem; color: var(--white); text-align: center; isolation: isolate; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,.7); z-index: -1; }
.page-hero h1 { color: var(--white); }
.breadcrumb { font-size: .9rem; opacity: .85; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 .5rem; color: var(--gold-light); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: .85rem; align-items: center; padding: 1.2rem 1rem; border-left: 1px solid var(--line); }
.trust-item:last-child { border-left: 0; }
.trust-item svg { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item span { font-size: .82rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: .8rem; right: .8rem; background: var(--gold); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 3px;
}
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35rem; }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { font-size: .75rem; background: var(--sand); color: var(--ink-soft); padding: .2rem .6rem; border-radius: 3px; }
.card-price { font-weight: 800; color: var(--gold-dark); font-size: 1.05rem; margin-bottom: .8rem; }
.card-actions { display: flex; gap: .5rem; }
.card-actions .btn { flex: 1; padding: .65rem .8rem; font-size: .9rem; }
.card-actions .btn-outline { flex: 0 0 auto; padding-inline: .9rem; }

/* ---------- Feature / why us ---------- */
.feature { text-align: center; padding: 2rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon {
  width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--gold); border: 1px solid var(--gold-light);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.split-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.checklist li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  color: var(--white); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: .25rem;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.4rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; right: 1.4rem; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}
.step h3 { font-size: 1.15rem; margin-top: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border: 1px solid var(--line); padding: 1.8rem; border-radius: var(--radius); position: relative; }
.testimonial::before { content: "“"; position: absolute; top: .2rem; right: 1.2rem; font-family: var(--font-head); font-size: 5rem; color: var(--gold-light); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.testimonial p { color: var(--ink-soft); }
.testimonial footer { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--gold-dark); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.testimonial footer strong { display: block; font-size: .95rem; }
.testimonial footer span { font-size: .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--white); padding: 3.5rem 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-outline-light:hover { color: var(--gold-dark); }
.cta-band .btn-whatsapp { background: var(--white); color: var(--green-dark); }
.cta-band .btn-whatsapp:hover { background: var(--cream); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; }
.gallery a.wide { grid-column: span 2; aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 2rem 1rem .9rem; color: var(--white); font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button {
  background: var(--white); border: 1px solid var(--line); padding: .5rem 1.2rem; border-radius: 30px;
  font-family: inherit; font-weight: 600; cursor: pointer; transition: .2s;
}
.filters button.active, .filters button:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.hidden { display: none !important; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 999; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(92vw, 900px); max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.2rem; left: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }
.lightbox-cap { position: absolute; bottom: 1.5rem; color: #fff; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--cream); transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(184,147,63,.15); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a746a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .9rem center; background-size: 18px; padding-left: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* Contact info */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.info-list strong { display: block; margin-bottom: .1rem; }
.info-list span, .info-list a { color: var(--ink-soft); }
.info-list a:hover { color: var(--gold-dark); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; }
.faq summary { padding: 1.1rem 1.4rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 1rem; }
.footer .brand-name { color: var(--white); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; text-align: center; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Sticky mobile bar + floating WhatsApp ---------- */
.float-wa {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.2s infinite;
}
.float-wa svg { width: 32px; height: 32px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 60% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

.mobile-bar {
  display: none; position: fixed; bottom: 0; right: 0; left: 0; z-index: 95; background: var(--white);
  border-top: 1px solid var(--line); padding: .6rem .8rem; gap: .6rem; box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mobile-bar .btn { flex: 1; padding: .75rem .6rem; font-size: .92rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 5rem 2rem 2rem; gap: 1.2rem; transform: translateX(110%); transition: transform .35s; z-index: 110;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; z-index: 120; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-cta .btn-outline { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .topbar-right { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .hero { min-height: 78vh; }
  .hero::before { background: linear-gradient(180deg, rgba(20,18,15,.55), rgba(20,18,15,.88)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .cta-band .btn { width: 100%; }
  h1 { font-size: 1.9rem; }
  .grid-3, .grid-4, .grid-2, .steps, .gallery, .form-row { grid-template-columns: 1fr; }
  .gallery a.wide { grid-column: auto; aspect-ratio: 3/4; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .float-wa { display: none; }
  .header-cta .btn-whatsapp { display: none; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .form-card { padding: 1.5rem; }
}
