/*
Theme Name: Sadeem Home
Theme URI: https://sadeemhome.com
Author: Sadeem Home
Description: قالب سديم هوم الخاص: هوية فاخرة بألوان الشعار، عربي RTL أصلي، مصمم لموقع ترشيحات ومقارنات بالعمولة. يعمل مع إضافة Sadeem Home Core.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sadeem-home
Tags: rtl-language-support, custom-logo, custom-menu, featured-images
*/

/* Layout concept: a quiet gallery in a Saudi majlis — ivory grounds, wide margins,
   thin gold hairlines that echo the logo's house outline. */
:root{
  --sdm-ivory:#FBF9F5; --sdm-stone:#F4EFE7; --sdm-paper:#FFFFFF;
  --sdm-ink:#1F1F1E; --sdm-graphite:#575754; --sdm-mist:#8C8B86;
  --sdm-gold:#B38A3A; --sdm-gold-deep:#86621F; --sdm-gold-wash:#F3E9D6; --sdm-line:#E7DFD2;
  --sdm-display:"Noto Kufi Arabic","IBM Plex Sans Arabic",Tahoma,sans-serif;
  --sdm-body:"IBM Plex Sans Arabic","Noto Kufi Arabic",Tahoma,sans-serif;
  --sdm-latin:"Cormorant Garamond",Georgia,serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{direction:rtl}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--sdm-ivory);color:var(--sdm-graphite);font-family:var(--sdm-body);font-size:17px;line-height:1.85;text-align:start}
img{max-width:100%;height:auto}
a{color:var(--sdm-gold-deep)}
h1,h2,h3,h4,h5,h6{font-family:var(--sdm-display);color:var(--sdm-ink);line-height:1.5;text-wrap:balance;margin:0 0 .5em}
:focus-visible{outline:2px solid var(--sdm-gold-deep);outline-offset:3px;border-radius:6px}
.screen-reader-text,.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link:focus{position:fixed!important;top:8px;inset-inline-start:8px;width:auto;height:auto;clip:auto;z-index:100;background:var(--sdm-ink);color:#fff;padding:10px 16px;border-radius:8px}
.sh-wrap{max-width:1200px;margin-inline:auto;padding-inline:clamp(16px,4vw,40px)}

/* buttons */
.sdm-btn{display:inline-flex;align-items:center;gap:.6em;min-height:48px;padding:0 1.6em;border-radius:999px;font:600 15px/1 var(--sdm-display);text-decoration:none;cursor:pointer;border:1px solid transparent;transition:background .2s,color .2s}
.sdm-btn svg{width:16px;height:16px;flex:none}
.sdm-btn-dark{background:var(--sdm-ink);color:var(--sdm-ivory)!important}
.sdm-btn-dark:hover{background:var(--sdm-gold-deep)}
.sdm-btn-line{border-color:var(--sdm-gold);color:var(--sdm-gold-deep)!important;background:transparent}
.sdm-btn-line:hover{background:var(--sdm-gold-wash)}

/* header */
.sh-topnote{background:var(--sdm-ink);color:#EDE6D8;font-size:13px;line-height:1.7;text-align:center;padding-block:8px}
.sh-topnote b{color:#D9BC7E;font-weight:500}
.sh-header{position:sticky;top:0;z-index:50;background:rgba(251,249,245,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--sdm-line)}
.admin-bar .sh-header{top:32px}
@media (max-width:782px){.admin-bar .sh-header{top:46px}}
@media (max-width:600px){.admin-bar .sh-header{top:0}}
.sh-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px;position:relative}
.sh-brand{display:block;line-height:0}
.sh-brand img{height:54px;width:auto}
.sh-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;flex-wrap:wrap}
.sh-nav a{display:block;padding:10px 14px;border-radius:10px;text-decoration:none;font:500 15px/1.4 var(--sdm-display);color:var(--sdm-ink)}
.sh-nav a:hover{color:var(--sdm-gold-deep)}
.sh-nav .current-menu-item>a,.sh-nav a[aria-current="page"]{background:var(--sdm-stone)}
.sh-nav .sub-menu{display:none}
.sh-menu-btn{display:none;width:48px;height:48px;border:1px solid var(--sdm-line);border-radius:12px;background:var(--sdm-paper);cursor:pointer;padding:0}
.sh-menu-btn span{display:block;width:20px;height:1.5px;background:var(--sdm-ink);margin:5px auto}
@media (max-width:980px){
  .sh-menu-btn{display:block}
  .sh-nav{display:none;position:absolute;inset-inline:0;top:100%;background:var(--sdm-ivory);border-bottom:1px solid var(--sdm-line);padding:8px 0 16px}
  .sh-nav.is-open{display:block}
  .sh-nav ul{flex-direction:column}
  .sh-brand img{height:46px}
}

/* hero (original greeting, text and hall image) */
.sh-hero{padding-block:clamp(32px,6vw,72px)}
.sh-hero-card{background:var(--sdm-paper);border:1px solid var(--sdm-line);border-radius:22px;padding:clamp(20px,4vw,56px);display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(24px,5vw,64px);align-items:center}
.sh-hero-text{min-width:0}
.sh-greet{font:600 clamp(24px,3vw,32px)/1.5 var(--sdm-display);color:var(--sdm-gold-deep);margin:0 0 12px}
.sh-hero h1{font-size:clamp(28px,3.6vw,42px);font-weight:700;margin-bottom:22px}
.sh-hero p{max-width:60ch;margin:0 0 16px}
.sh-hero strong{color:var(--sdm-ink);font-weight:600}
.sh-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.sh-hero-img{position:relative;margin:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 60px -30px rgba(60,45,20,.45);aspect-ratio:1/1}
.sh-hero-img img{display:block;width:100%;height:100%;object-fit:cover}
.sh-hero-img::after{content:"";position:absolute;inset:14px;border:1px solid rgba(255,255,255,.55);border-radius:12px;pointer-events:none}
.sh-stores{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:30px;padding-top:22px;border-top:1px solid var(--sdm-line);font-size:14px}
.sh-stores .s{font-family:var(--sdm-latin);font-size:19px;font-weight:600;color:var(--sdm-ink);direction:ltr;unicode-bidi:isolate}
@media (max-width:880px){.sh-hero-card{grid-template-columns:1fr}.sh-hero-img{order:-1}}

/* page / article */
.sh-main{min-height:40vh}
.sh-page-head{padding-block:clamp(40px,6vw,72px) clamp(20px,3vw,32px)}
.sh-page-head h1{font-size:clamp(30px,4vw,44px);font-weight:700;margin:0}
.sh-eyebrow{display:flex;align-items:center;gap:10px;color:var(--sdm-gold-deep);font:500 14px/1.6 var(--sdm-display);margin-bottom:10px}
.sh-eyebrow a{color:inherit;text-decoration:none}
.sh-eyebrow svg{width:22px;height:22px}
.sh-meta{margin-top:12px;font-size:14px;color:var(--sdm-graphite)}
.sh-article{max-width:780px;margin-inline:auto;padding-bottom:clamp(48px,8vw,96px)}
.sh-cover{margin:0 0 32px;border-radius:18px;overflow:hidden;border:1px solid var(--sdm-line)}
.sh-cover img{display:block;width:100%}
.sh-note{display:flex;gap:10px;align-items:flex-start;background:var(--sdm-gold-wash);color:var(--sdm-ink);border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.7;margin-bottom:28px}
.sh-prose{font-size:18px;line-height:2}
.sh-prose>*+*{margin-top:1.1em}
.sh-prose h2{font-size:clamp(22px,2.6vw,28px);margin-top:1.8em}
.sh-prose h3{font-size:20px;margin-top:1.5em}
.sh-prose a{color:var(--sdm-gold-deep);text-decoration-thickness:1px;text-underline-offset:4px}
.sh-prose ul,.sh-prose ol{padding-inline-start:1.4em}
.sh-prose li+li{margin-top:.4em}
.sh-prose blockquote{margin-inline:0;padding:16px 22px;border-inline-start:3px solid var(--sdm-gold);background:var(--sdm-paper);border-radius:0 12px 12px 0;color:var(--sdm-ink)}
.sh-prose table{width:100%;border-collapse:collapse;font-size:15px;display:block;overflow-x:auto}
.sh-prose th,.sh-prose td{padding:12px 14px;border-bottom:1px solid var(--sdm-line);text-align:start}
.sh-prose thead th{background:var(--sdm-stone);font-family:var(--sdm-display);color:var(--sdm-ink)}
.sh-prose img{border-radius:12px}
.sh-prose .wp-block-button__link{border-radius:999px;background:var(--sdm-ink);color:#fff}
.sh-buybox{margin-top:36px;padding:22px;border:1px solid var(--sdm-gold);border-radius:16px;background:var(--sdm-paper);display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.sh-buybox p{margin:0;font-size:14px}
.sh-elementor-full .sh-article{max-width:none;padding:0}

/* listings */
.sh-list{padding-bottom:clamp(48px,8vw,96px)}
.sh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media (max-width:880px){.sh-grid{grid-template-columns:1fr}}
.sh-pager{margin-top:36px}
.sh-pager .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.sh-pager .page-numbers{min-width:44px;min-height:44px;display:grid;place-items:center;padding:0 12px;border:1px solid var(--sdm-line);border-radius:999px;text-decoration:none;color:var(--sdm-ink);background:var(--sdm-paper)}
.sh-pager .page-numbers.current{background:var(--sdm-ink);color:#fff;border-color:var(--sdm-ink)}
.sh-empty{text-align:center;padding:56px 16px;border:1px dashed var(--sdm-line);border-radius:18px;background:var(--sdm-paper)}

/* footer (original content kept: title, tagline, logo, social links, copyright) */
.sh-footer{border-top:1px solid var(--sdm-line);padding-block:56px 28px;text-align:center;background:var(--sdm-ivory)}
.sh-footer h2{font-size:20px;font-weight:700;margin:0}
.sh-tagline{max-width:52ch;margin:10px auto 0}
.sh-flogo{width:130px;height:auto;margin:30px auto 0;display:block}
.sh-fsoc{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:26px}
.sh-fsoc a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--sdm-line);color:var(--sdm-ink);background:var(--sdm-paper)}
.sh-fsoc a:hover{border-color:var(--sdm-gold);color:var(--sdm-gold-deep)}
.sh-fsoc svg{width:18px;height:18px}
.sh-flinks{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 22px;margin-top:26px;font-size:14px}
.sh-flinks a{text-decoration:none;color:var(--sdm-graphite)}
.sh-flinks a:hover{color:var(--sdm-gold-deep)}
.sh-disclose{max-width:70ch;margin:24px auto 0;font-size:13px;line-height:1.8}
.sh-copy{margin-top:26px;padding-top:20px;border-top:1px solid var(--sdm-line);font-size:13px}

/* the shortcode sections sit flush under the hero */
.sh-front .sdm{background:transparent}
