/* ===== هوية نَوْل ===== */
:root {
  --cream: #f6efe6;
  --sand: #efe4d3;
  --ink: #2a1f1a;
  --ink-soft: #5c4a3e;
  --indigo: #1f5a7a;
  --indigo-2: #2a7396;
  --saffron: #d9a441;
  --clay: #b5532f;
  --wa: #1f8f55;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(42, 31, 26, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--cream); color: var(--ink); line-height: 1.85; overflow-x: hidden;
  background-image: radial-gradient(rgba(42,31,26,.05) 1px, transparent 1px);
  background-size: 6px 6px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* شريط علوي */
.topbar { background: var(--ink); color: var(--saffron); text-align: center; font-size: .85rem; padding: .35rem 1rem; }

/* الرأس */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 5vw; background: rgba(246,239,230,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,31,26,.08);
}
.logo { display: flex; align-items: center; gap: .5rem; color: var(--indigo); }
.logo svg { width: 38px; height: 38px; }
.logo span { font-family: "Aref Ruqaa", serif; font-size: 2rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--clay); box-shadow: 0 2px 0 var(--clay); }
.nav-wa { background: var(--wa); color: #fff; padding: .35rem 1.1rem; border-radius: 99px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* أزرار */
.btn { display: inline-block; padding: .75rem 1.6rem; border-radius: 99px; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px var(--indigo); }
.btn-ghost { border: 2px solid var(--indigo); color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px var(--wa); }
.btn-light { background: var(--cream); color: var(--ink); }

/* الأقسام */
.section { padding: 5rem 6vw; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 2rem; position: relative; display: inline-block; }
.section-title::after { content: ""; position: absolute; right: 0; bottom: .1em; width: 60%; height: .35em; background: var(--saffron); opacity: .35; z-index: -1; border-radius: 4px; }
.kicker { font-family: "Aref Ruqaa", serif; color: var(--clay); font-size: 1.4rem; }
.muted { color: var(--ink-soft); font-size: .95rem; }

.sadu-band { height: 52px; background: url(assets/images/sadu-band.webp) repeat-x center / auto 100%; box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink); }

/* ===== الرئيسية: البطل ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 3.5rem 6vw 4.5rem; min-height: calc(100vh - 100px); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.3; font-weight: 800; color: var(--indigo); }
.hero h1 span { color: var(--ink); font-size: .62em; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.2rem 0 2rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-facts { list-style: none; display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-facts li { color: var(--ink-soft); font-size: .95rem; }
.hero-facts strong { display: block; font-size: 1.5rem; color: var(--clay); }

/* العرض الدوّار ثلاثي الأبعاد */
.carousel-scene { --w: 170px; --r: 300px; height: 460px; perspective: 1100px; display: grid; place-items: center; position: relative; }
.ring { width: var(--w); height: var(--w); position: relative; transform-style: preserve-3d; animation: spin 26s linear infinite; }
.carousel-scene:hover .ring { animation-play-state: paused; }
.ring-item {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r));
  box-shadow: 0 20px 30px -14px rgba(0,0,0,.5); border: 4px solid #fff;
}
.ring-item img { width: 100%; height: 100%; object-fit: cover; }
.ring-floor { position: absolute; bottom: 30px; width: 70%; height: 40px; border-radius: 50%; background: radial-gradient(rgba(31,90,122,.35), transparent 70%); filter: blur(6px); }
@keyframes spin { from { transform: rotateX(-8deg) rotateY(0); } to { transform: rotateX(-8deg) rotateY(-360deg); } }

/* الخدمات */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow);
  border-bottom: 6px solid var(--saffron); transform-style: preserve-3d; transition: transform .2s ease-out;
}
.service:nth-child(2) { border-color: var(--clay); }
.service:nth-child(3) { border-color: var(--indigo); }
.service-ico { font-size: 2.6rem; transform: translateZ(40px); }
.service h3 { font-size: 1.3rem; margin: .6rem 0; transform: translateZ(25px); }
.service p { color: var(--ink-soft); margin-bottom: 1rem; }
.service a { color: var(--clay); font-weight: 700; }

/* المنتجات */
.featured-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.link-more { color: var(--clay); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .2s ease-out, opacity .4s;
}
.product.hide { display: none; }
.product-img { position: relative; overflow: hidden; }
.product-img img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.06); }
.tag { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--saffron); font-size: .8rem; padding: .1rem .7rem; border-radius: 99px; }
.product-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.25rem; }
.size { color: var(--clay); font-size: .85rem; font-weight: 600; }
.story { color: var(--ink-soft); font-size: .93rem; margin: .5rem 0 1rem; flex: 1; }
.buy { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--indigo); }
.price small { font-size: .7em; font-weight: 600; }
.buy .btn { padding: .5rem 1.2rem; }

/* المراحل */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { background: var(--sand); border-radius: var(--radius); padding: 1.6rem 1.3rem; position: relative; border: 2px dashed rgba(42,31,26,.2); }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--indigo); color: var(--saffron); font-weight: 800; font-size: 1.3rem; margin-bottom: .6rem; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* صاحبة النول */
.maker-card { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s ease-out; }
.maker-card img { width: 100%; height: 380px; object-fit: cover; }
.maker-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 2rem 6%; color: var(--cream);
  background: linear-gradient(to left, rgba(31,90,122,.95) 0%, rgba(31,90,122,.85) 50%, rgba(31,90,122,.2) 100%);
}
.maker-text .kicker { color: var(--saffron); }
.maker-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.maker-text p { max-width: 48ch; margin: .6rem 0 1.4rem; }

/* رأس الصفحات الداخلية */
.page-hero { text-align: center; padding: 4rem 6vw 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--indigo); }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin: .8rem auto 0; font-size: 1.1rem; }
.filters { display: flex; justify-content: center; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }
.filter { font: inherit; font-weight: 700; padding: .5rem 1.5rem; border-radius: 99px; border: 2px solid var(--indigo); background: transparent; color: var(--indigo); cursor: pointer; transition: .25s; }
.filter.active, .filter:hover { background: var(--indigo); color: #fff; }
.shop { padding-top: 2.5rem; padding-bottom: 2rem; }
.shop.hide { display: none; }
.group-title { font-size: 1.6rem; margin-bottom: 1.4rem; }
.cta-box { text-align: center; background: var(--sand); border-radius: 26px; padding: 3rem 1.5rem; border: 2px dashed var(--clay); transform-style: preserve-3d; transition: transform .2s ease-out; }
.cta-box h2 { font-size: 1.8rem; }
.cta-box p { color: var(--ink-soft); margin: .4rem 0 1.4rem; }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; padding-top: 2.5rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s ease-out; }
.contact-card.wa { background: linear-gradient(150deg, var(--indigo), var(--indigo-2)); color: var(--cream); }
.c-ico { font-size: 2.4rem; transform: translateZ(40px); }
.contact-card h2 { font-size: 1.35rem; margin: .4rem 0; }
.contact-card .btn { margin-top: 1rem; }
.contact-card.wa p { color: #d9e2ee; }
.faq details { background: #fff; border-radius: 14px; margin-bottom: .9rem; box-shadow: 0 8px 20px -16px rgba(0,0,0,.5); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; left: 1.3rem; color: var(--clay); font-size: 1.4rem; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* التذييل */
.site-footer { background: var(--ink); color: #d9cbb8; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; padding: 3rem 6vw 1.5rem; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: .3rem; }
.footer-grid a span { display: inline; margin: 0; }
.footer-grid a:hover { color: var(--saffron); }
.footer-grid p a { display: inline; color: var(--saffron); }
.footer-logo { font-family: "Aref Ruqaa", serif; font-size: 2.2rem; color: var(--saffron); line-height: 1.2; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.copy { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* زر واتساب العائم */
.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.5); transition: transform .25s; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ===== الجوال ===== */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 1rem; background: var(--cream); padding: 1.2rem; border-bottom: 1px solid rgba(42,31,26,.1); display: none; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 2rem; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .carousel-scene { --w: 110px; --r: 175px; height: 320px; order: -1; }
  .section { padding: 3.5rem 6vw; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .maker-card img { height: 460px; }
  .maker-text { background: rgba(31,90,122,.88); align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* منع أي تمرير أفقي بسبب العناصر ثلاثية الأبعاد */
html { overflow-x: hidden; }
.hero { overflow-x: clip; }
@media (max-width: 1100px) and (min-width: 761px) {
  .carousel-scene { --w: 130px; --r: 220px; }
}
