/*
Theme Name: MHAMMED-ALhadi - قالب مظلات وسواتر 
Theme URI: 
Author: Mohammed Alhadi
Description: قالب ووردبريس مخصص فائق السرعة لشركات الحدادة العامة وتركيب المظلات والسواتر والساندوتش بانل في الرياض. التحكم الكامل بالصفحة الرئيسية من (مظهر > تخصيص): إضافة الأقسام وحذفها وإعادة ترتيبها وتعديل كل نص وصورة. بدون Elementor أو أي Page Builder وبدون jQuery.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: MOHAMMED-ALhadi
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, footer-widgets, threaded-comments
*/

:root {
  --hatim-navy: #1A2E40;
  --hatim-navy-dark: #0F1E2B;
  --hatim-gold: #D97706;
  --hatim-gold-hover: #B45309;
  --hatim-whatsapp: #16A34A;
  --hatim-whatsapp-hover: #15803D;
  --hatim-bg: #F8FAFC;
  --hatim-surface: #FFFFFF;
  --hatim-text: #0F172A;
  --hatim-muted: #475569;
  --hatim-border: #E2E8F0;
  --hatim-radius: 10px;
  --hatim-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hatim-bg); color: var(--hatim-text); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
h1, h2, h3, h4, p, ul { margin: 0; }
.hatim-container { width: 100%; max-width: var(--hatim-container); margin-inline: auto; padding-inline: 1.25rem; }

/* Header */
.hatim-header { position: relative; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hatim-border); }
.hatim-header--sticky { position: sticky; top: 0; }
.hatim-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.hatim-brand { display: flex; align-items: center; gap: .75rem; }
.hatim-brand__icon { width: 44px; height: 44px; border-radius: 8px; background: var(--hatim-navy); color: #FBBF24; display: inline-flex; align-items: center; justify-content: center; }
.hatim-brand__title { font-size: 1.15rem; font-weight: 800; color: var(--hatim-navy); line-height: 1.3; display: block; }
.hatim-brand__sub { font-size: .76rem; color: var(--hatim-muted); display: block; }
.hatim-nav { display: flex; align-items: center; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.hatim-nav a { font-weight: 600; font-size: .94rem; }
.hatim-nav a:hover { color: var(--hatim-gold); }
.hatim-header__actions { display: flex; align-items: center; gap: .6rem; }

/* Buttons */
.hatim-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 8px; font-weight: 700; font-size: .94rem; border: 0; cursor: pointer; white-space: nowrap; }
.hatim-btn svg { flex-shrink: 0; }
.hatim-btn--gold { background: var(--hatim-gold); color: #fff; }
.hatim-btn--gold:hover { background: var(--hatim-gold-hover); }
.hatim-btn--navy { background: var(--hatim-navy); color: #fff; }
.hatim-btn--navy:hover { background: var(--hatim-navy-dark); }
.hatim-btn--whatsapp { background: var(--hatim-whatsapp); color: #fff; }
.hatim-btn--whatsapp:hover { background: var(--hatim-whatsapp-hover); }
.hatim-btn--outline { border: 2px solid #fff; color: #fff; }
.hatim-btn--sm { padding: .5rem .8rem; font-size: .8rem; }

/* Hero */
.hatim-hero { position: relative; background: var(--hatim-navy-dark); color: #fff; padding-block: 4.25rem; overflow: hidden; }
.hatim-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hatim-hero__overlay { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(15,30,43,.96), rgba(26,46,64,.82)); }
.hatim-hero__content { position: relative; z-index: 2; max-width: 800px; }
.hatim-hero__badge { display: inline-flex; align-items: center; gap: .45rem; background: rgba(217,119,6,.2); border: 1px solid rgba(217,119,6,.5); color: #FBBF24; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 1.2rem; }
.hatim-hero__title { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; line-height: 1.32; margin-bottom: 1rem; }
.hatim-hero__highlight { color: #FBBF24; }
.hatim-hero__desc { font-size: 1.02rem; color: #E2E8F0; margin-bottom: 1.9rem; }
.hatim-hero__btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hatim-hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.35rem; }
.hatim-hero__stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .7rem .9rem; }
.hatim-hero__stat b { display: block; color: #FBBF24; font-size: 1.2rem; }
.hatim-hero__stat span { font-size: .8rem; color: #CBD5E1; }

/* Features */
.hatim-features { padding-block: 2rem; background: var(--hatim-surface); border-bottom: 1px solid var(--hatim-border); }
.hatim-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hatim-feature-card { display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem; background: var(--hatim-bg); border: 1px solid var(--hatim-border); border-radius: var(--hatim-radius); }
.hatim-feature-card__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px; background: var(--hatim-navy); color: #FBBF24; display: flex; align-items: center; justify-content: center; }
.hatim-feature-card h3 { font-size: 1rem; font-weight: 800; color: var(--hatim-navy); margin-bottom: .15rem; }
.hatim-feature-card p { font-size: .82rem; color: var(--hatim-muted); line-height: 1.6; }

/* Sections */
.hatim-section { padding-block: 4rem; }
.hatim-section--white { background: var(--hatim-surface); border-block: 1px solid var(--hatim-border); }
.hatim-section__head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.hatim-section__eyebrow { color: var(--hatim-gold); font-weight: 700; font-size: .87rem; display: block; margin-bottom: .35rem; }
.hatim-section__title { font-size: clamp(1.45rem, 2.8vw, 2.15rem); font-weight: 800; color: var(--hatim-navy); margin-bottom: .65rem; line-height: 1.35; }
.hatim-section__desc { color: var(--hatim-muted); font-size: .95rem; }

/* Services / Projects */
.hatim-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hatim-card { background: var(--hatim-surface); border: 1px solid var(--hatim-border); border-radius: var(--hatim-radius); overflow: hidden; display: flex; flex-direction: column; }
.hatim-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #E2E8F0; }
.hatim-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hatim-card:hover .hatim-card__media img { transform: scale(1.04); }
.hatim-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.hatim-card__title { font-size: 1.12rem; font-weight: 800; color: var(--hatim-navy); margin-bottom: .45rem; }
.hatim-card__desc { font-size: .88rem; color: var(--hatim-muted); margin-bottom: .9rem; flex: 1; }
.hatim-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border-top: 1px solid #F1F5F9; padding-top: .8rem; }
.hatim-badge { display: inline-block; background: var(--hatim-navy); color: #fff; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 6px; }
.hatim-badge--media { position: absolute; top: .6rem; right: .6rem; background: rgba(26,46,64,.95); color: #FBBF24; }
.hatim-badge--price { position: absolute; bottom: .6rem; left: .6rem; background: rgba(255,255,255,.96); color: var(--hatim-navy); }
.hatim-badge--gold { background: var(--hatim-gold); }
.hatim-specs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.hatim-specs span { font-size: .68rem; font-weight: 700; background: #F1F5F9; color: #334155; padding: .2rem .5rem; border-radius: 5px; }

/* About */
.hatim-about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hatim-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.3rem 0; list-style: none; padding: 0; }
.hatim-highlights li { display: flex; align-items: flex-start; gap: .5rem; background: var(--hatim-bg); border: 1px solid var(--hatim-border); border-radius: 8px; padding: .7rem; font-size: .82rem; font-weight: 700; }
.hatim-highlights svg { color: #16A34A; flex-shrink: 0; margin-top: .15rem; }
.hatim-about__media img { width: 100%; height: 430px; object-fit: cover; border-radius: var(--hatim-radius); border: 4px solid #fff; box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.hatim-about__p { color: var(--hatim-muted); font-size: .94rem; margin-bottom: .8rem; }
.hatim-about__p--bold { color: var(--hatim-text); font-weight: 600; }

/* FAQ */
.hatim-faq { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: .75rem; }
.hatim-faq__item { background: var(--hatim-surface); border: 1px solid var(--hatim-border); border-radius: var(--hatim-radius); overflow: hidden; }
.hatim-faq__item[open] { background: var(--hatim-bg); border-color: var(--hatim-navy); }
.hatim-faq__item summary { padding: 1rem 1.2rem; font-weight: 800; font-size: 1rem; color: var(--hatim-navy); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hatim-faq__item summary::-webkit-details-marker { display: none; }
.hatim-faq__item summary::after { content: "+"; font-size: 1.25rem; color: var(--hatim-gold); font-weight: 800; }
.hatim-faq__item[open] summary::after { content: "−"; }
.hatim-faq__answer { padding: 0 1.2rem 1.1rem; color: var(--hatim-muted); font-size: .92rem; border-top: 1px solid var(--hatim-border); padding-top: .8rem; }

/* CTA + custom */
.hatim-cta { background: linear-gradient(135deg, var(--hatim-navy), var(--hatim-navy-dark)); color: #fff; padding-block: 3.6rem; text-align: center; border-top: 4px solid var(--hatim-gold); }
.hatim-cta h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .7rem; }
.hatim-cta p { color: #E2E8F0; max-width: 720px; margin: 0 auto 1.75rem; }
.hatim-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hatim-custom { padding-block: 3.4rem; background: var(--hatim-surface); border-top: 1px solid var(--hatim-border); text-align: center; }
.hatim-custom__content { max-width: 780px; margin: 0 auto; color: var(--hatim-muted); }
.hatim-custom__content p { margin-bottom: .7rem; }
.hatim-custom__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }

/* Footer */
.hatim-footer { background: #0B1520; color: #CBD5E1; padding-block: 3.4rem 1.6rem; }
.hatim-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.hatim-footer h3, .hatim-footer h4 { color: #fff; font-size: 1.02rem; font-weight: 800; margin-bottom: .9rem; }
.hatim-footer__links { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .87rem; padding: 0; }
.hatim-footer__login { margin-top: 1rem; display: flex; gap: .8rem; font-size: .8rem; list-style: none; padding: 0; }
.hatim-footer__bottom { padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .78rem; color: #94A3B8; }
.hatim-mobile-toggle { display: none; background: none; border: 1px solid var(--hatim-border); border-radius: 6px; padding: .4rem; cursor: pointer; }

@media (max-width: 992px) {
  .hatim-features__grid { grid-template-columns: repeat(2, 1fr); }
  .hatim-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hatim-about, .hatim-footer__grid { grid-template-columns: 1fr; }
  .hatim-nav { display: none; }
  .hatim-nav.is-open { display: flex; flex-direction: column; gap: .9rem; position: absolute; top: 78px; inset-inline: 0; background: #fff; padding: 1.2rem; border-bottom: 1px solid var(--hatim-border); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .hatim-mobile-toggle { display: inline-flex; }
  .hatim-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hatim-about__media img { height: 320px; }
}
@media (max-width: 640px) {
  .hatim-features__grid, .hatim-grid-3, .hatim-highlights { grid-template-columns: 1fr; }
  .hatim-header__actions .hatim-btn--whatsapp { display: none; }
  .hatim-hero__btns .hatim-btn { width: 100%; }
  .hatim-section { padding-block: 2.8rem; }
}
