/*
Theme Name: Wadi Alrayan Marble
Theme URI: https://example.com/wadi-alrayan
Author: Lovable
Author URI: https://lovable.dev
Description: قالب ووردبريس احترافي لشركات جلي وتلميع الرخام والجرانيت، بتصميم عربي RTL فاخر بألوان كحلي وذهبي. يدعم القوائم، الودجت، ومخصص ووردبريس.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wadi-alrayan
Tags: rtl-language-support, business, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root{
  --navy:#1c2340;
  --navy-deep:#141a30;
  --gold:#d4a84c;
  --gold-soft:#e8c47a;
  --bg:#fafaf7;
  --fg:#1a1a2e;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;
  --shadow-gold: 0 10px 30px -12px rgba(212,168,76,.55);
  --shadow-elegant: 0 20px 60px -20px rgba(20,26,48,.35);
  --grad-gold: linear-gradient(135deg,#e8c47a,#c99a3a);
  --grad-navy: linear-gradient(180deg,#1c2340,#0e1226);
}

*{box-sizing:border-box}
html{direction:rtl}
body{
  margin:0;
  font-family:"Tajawal","Cairo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  background:var(--bg); color:var(--fg); line-height:1.7;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4{font-weight:800; letter-spacing:-.01em; line-height:1.25; margin:0 0 .5em}
p{margin:0 0 1em}
.container{max-width:1200px; margin:0 auto; padding:0 20px}

/* Header */
.site-header{position:sticky; top:0; z-index:50; background:rgba(20,26,48,.96); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,.06)}
.site-header .bar{display:flex; align-items:center; justify-content:space-between; height:80px}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{width:42px; height:42px; border-radius:8px; background:var(--grad-gold); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-gold); color:var(--navy-deep); font-weight:900}
.brand-text .name{color:var(--gold); font-weight:900; font-size:18px}
.brand-text .sub{color:rgba(255,255,255,.55); font-size:10px; letter-spacing:.25em}
.main-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:28px}
.main-nav a{color:rgba(255,255,255,.85); font-size:14px; transition:color .2s}
.main-nav a:hover, .main-nav .current-menu-item > a{color:var(--gold)}
.header-cta{display:inline-flex; align-items:center; gap:8px; background:var(--grad-gold); color:var(--navy-deep); font-weight:800; padding:10px 16px; border-radius:8px; box-shadow:var(--shadow-gold); font-size:14px}
.header-cta:hover{opacity:.9}
.menu-toggle{display:none; background:transparent; border:0; color:var(--gold); font-size:26px; cursor:pointer}

/* Hero */
.hero{position:relative; background:var(--navy-deep); overflow:hidden}
.hero-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.4}
.hero-overlay{position:absolute; inset:0; background:linear-gradient(180deg,rgba(20,26,48,.7),rgba(20,26,48,.6),rgba(20,26,48,1))}
.hero-inner{position:relative; padding:120px 0}
.hero-frame{border:2px solid rgba(212,168,76,.6); padding:50px 30px; max-width:900px; margin:0 auto; text-align:center; color:#fff}
.eyebrow{color:var(--gold); font-size:13px; letter-spacing:.3em; margin-bottom:14px}
.hero-frame h1{font-size:clamp(28px,4vw,52px); color:#fff}
.hero-frame h1 span{color:var(--gold)}
.hero-frame p{color:rgba(255,255,255,.8); max-width:640px; margin:0 auto 30px; font-size:17px}
.btn-group{display:flex; flex-wrap:wrap; gap:12px; justify-content:center}
.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:999px; font-weight:800; transition:transform .2s, background .2s}
.btn-gold{background:var(--grad-gold); color:var(--navy-deep); box-shadow:var(--shadow-gold)}
.btn-gold:hover{transform:scale(1.04)}
.btn-outline{background:transparent; color:var(--gold); border:2px solid var(--gold)}
.btn-outline:hover{background:var(--gold); color:var(--navy-deep)}

/* Sections */
section{padding:80px 0}
.section-head{text-align:center; max-width:720px; margin:0 auto 50px}
.section-head h2{font-size:clamp(26px,3vw,38px)}
.divider{width:80px; height:4px; background:var(--grad-gold); margin:16px auto 0; border-radius:2px}

/* About */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center}
.about-grid .divider{margin:0 0 24px}
.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:24px}
.stat{text-align:center; border:1px solid var(--border); border-radius:10px; padding:16px; background:#fff}
.stat b{display:block; font-size:24px; color:var(--gold); font-weight:900}
.stat span{font-size:12px; color:var(--muted)}
.about-img{position:relative}
.about-img img{border-radius:12px; box-shadow:var(--shadow-elegant); width:100%}
.badge{position:absolute; bottom:-24px; left:-24px; background:var(--grad-gold); color:var(--navy-deep); padding:20px; border-radius:12px; box-shadow:var(--shadow-gold); max-width:220px}
.badge b{display:block; margin:6px 0 2px; font-weight:900}
.badge span{font-size:12px}

/* Services */
.services{background:var(--navy-deep); color:#fff}
.services .section-head h2{color:#fff}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.card{background:var(--navy); border:1px solid rgba(255,255,255,.1); border-radius:12px; overflow:hidden; transition:border-color .3s, transform .3s}
.card:hover{border-color:var(--gold); transform:translateY(-4px)}
.card-media{position:relative; height:220px; overflow:hidden}
.card-media img{width:100%; height:100%; object-fit:cover; transition:transform .5s}
.card:hover .card-media img{transform:scale(1.08)}
.card-media::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,var(--navy-deep))}
.card-icon{position:absolute; top:14px; right:14px; width:44px; height:44px; border-radius:8px; background:var(--grad-gold); color:var(--navy-deep); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-gold); z-index:2; font-size:20px}
.card-body{padding:22px}
.card-body h3{color:var(--gold); font-size:20px}
.card-body p{color:rgba(255,255,255,.7); font-size:14px}
.card-link{color:var(--gold); font-weight:800; border-bottom:1px solid rgba(212,168,76,.4); padding-bottom:2px; font-size:14px; display:inline-flex; gap:6px; align-items:center}

/* Gallery */
.gallery-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.gallery-item{position:relative; aspect-ratio:1/1; overflow:hidden; border-radius:12px; box-shadow:var(--shadow-elegant)}
.gallery-item img{width:100%; height:100%; object-fit:cover; transition:transform .5s}
.gallery-item:hover img{transform:scale(1.08)}
.gallery-item::after{content:"✦"; position:absolute; inset:0; background:rgba(20,26,48,0); color:var(--gold); font-size:32px; display:flex; align-items:center; justify-content:center; opacity:0; transition:.3s}
.gallery-item:hover::after{background:rgba(20,26,48,.5); opacity:1}

/* Why */
.why{background:var(--navy); color:#fff}
.why .section-head h2{color:#fff}
.features{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.feature{padding:26px; border:1px solid rgba(255,255,255,.1); border-radius:12px; transition:.3s}
.feature:hover{border-color:var(--gold); background:var(--navy-deep)}
.feature .icn{width:52px; height:52px; border-radius:8px; background:var(--grad-gold); color:var(--navy-deep); display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:22px; box-shadow:var(--shadow-gold)}
.feature h3{color:var(--gold); font-size:19px}
.feature p{color:rgba(255,255,255,.7); font-size:14px}

/* FAQ */
.faq{max-width:820px; margin:0 auto}
.faq details{background:#fff; border:1px solid var(--border); border-radius:10px; padding:18px 22px; margin-bottom:14px}
.faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:800; color:var(--fg)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; width:32px; height:32px; border-radius:50%; background:var(--grad-gold); color:var(--navy-deep); display:flex; align-items:center; justify-content:center; font-size:20px; transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:14px 0 0; color:var(--muted)}

/* CTA */
.cta{position:relative; background:var(--navy-deep); color:#fff; overflow:hidden}
.cta-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.2}
.cta-overlay{position:absolute; inset:0; background:var(--grad-navy); opacity:.82}
.cta-inner{position:relative; text-align:center; max-width:820px; margin:0 auto}
.cta-inner h2{font-size:clamp(28px,4vw,46px); color:#fff}
.cta-inner p{color:rgba(255,255,255,.8)}

/* Blog / Posts */
.posts-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.post-card{background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:transform .3s, box-shadow .3s}
.post-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-elegant)}
.post-card .thumb{aspect-ratio:16/10; overflow:hidden}
.post-card .thumb img{width:100%; height:100%; object-fit:cover}
.post-card .body{padding:20px}
.post-card h3{font-size:18px}
.post-card h3 a{color:var(--fg)}
.post-card h3 a:hover{color:var(--gold)}
.post-meta{font-size:12px; color:var(--muted); margin-bottom:8px}
.read-more{color:var(--gold); font-weight:800; font-size:14px}

/* Single */
.entry{max-width:820px; margin:0 auto; background:#fff; padding:40px; border-radius:12px; box-shadow:var(--shadow-elegant)}
.entry h1{font-size:32px; margin-bottom:12px}
.entry img{border-radius:10px; margin:20px 0}
.entry a{color:var(--gold); border-bottom:1px solid var(--gold)}

/* Footer */
.site-footer{background:var(--navy-deep); color:#fff; border-top:1px solid rgba(255,255,255,.05)}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; padding:60px 0}
.site-footer h4{color:var(--gold); font-size:16px; margin-bottom:14px}
.site-footer p, .site-footer li, .site-footer a{color:rgba(255,255,255,.7); font-size:14px}
.site-footer ul{list-style:none; padding:0; margin:0}
.site-footer li{margin-bottom:8px}
.site-footer a:hover{color:var(--gold)}
.social{display:flex; gap:10px; margin-top:14px}
.social a{width:38px; height:38px; border-radius:8px; background:var(--grad-gold); color:var(--navy-deep); display:flex; align-items:center; justify-content:center; font-size:16px; transition:transform .2s}
.social a:hover{transform:scale(1.1)}
.copy{border-top:1px solid rgba(255,255,255,.05); padding:16px 0; text-align:center; font-size:12px; color:rgba(255,255,255,.4)}

/* Floating WhatsApp */
.fab{position:fixed; bottom:24px; left:24px; z-index:60; width:56px; height:56px; border-radius:50%; background:var(--grad-gold); color:var(--navy-deep); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-gold); font-size:26px; transition:transform .2s}
.fab:hover{transform:scale(1.1)}

/* Widgets / sidebar */
.widget{background:#fff; border:1px solid var(--border); border-radius:10px; padding:20px; margin-bottom:20px}
.widget h4{color:var(--fg); margin-bottom:12px; padding-bottom:10px; border-bottom:2px solid var(--gold); display:inline-block}

/* Responsive */
@media (max-width:900px){
  .main-nav{display:none; position:absolute; top:80px; right:0; left:0; background:var(--navy-deep); padding:20px; border-top:1px solid rgba(255,255,255,.06)}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column; gap:14px}
  .menu-toggle{display:block}
  .header-cta{display:none}
  .about-grid, .cards, .gallery-grid, .features, .posts-grid, .footer-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(3,1fr)}
  .badge{display:none}
  section{padding:60px 0}
  .hero-inner{padding:80px 0}
  .hero-frame{padding:36px 20px}
  .entry{padding:24px}
}
@media (max-width:600px){
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
}
