/*
Theme Name: تشليح البادية
Theme URI: https://tashlih-albadia.com
Author: Tashlih Albadia
Author URI: https://tashlih-albadia.com
Description: قالب ووردبريس عربي (RTL) لمواقع شراء وتشليح السيارات في السعودية. قابل للتعديل بالكامل من لوحة ووردبريس: الأرقام، النصوص، الخدمات، المدن، والشعار — بدون أي إضافات.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tashlih-albadia
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, one-column, two-columns
*/

:root {
  --tb-dark: #17181c;
  --tb-dark-2: #22242b;
  --tb-orange: #f26b00;
  --tb-orange-dark: #d35e00;
  --tb-orange-soft: #fff1e6;
  --tb-light: #f7f6f3;
  --tb-white: #ffffff;
  --tb-text: #2a2b30;
  --tb-muted: #6b6d75;
  --tb-border: #e6e4df;
  --tb-green: #25d366;
  --tb-shadow: 0 12px 30px -12px rgba(23, 24, 28, 0.25);
  --tb-radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--tb-text);
  background: var(--tb-white);
  line-height: 1.9;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.5; margin: 0 0 .6em; color: var(--tb-dark); }
p { margin: 0 0 1em; }
a { color: var(--tb-orange); text-decoration: none; }
a:hover { color: var(--tb-orange-dark); }
img { max-width: 100%; height: auto; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--tb-orange); color: #fff; }
.btn-primary:hover { background: var(--tb-orange-dark); color: #fff; }
.btn-outline { border-color: var(--tb-orange); color: var(--tb-orange); background: transparent; }
.btn-outline:hover { background: var(--tb-orange); color: #fff; }
.btn-whatsapp { background: var(--tb-green); color: #fff; }
.btn-whatsapp:hover { background: #1eb457; color: #fff; }
.btn-light { background: #fff; color: var(--tb-dark); }
.btn-light:hover { background: var(--tb-orange); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(23, 24, 28, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--tb-orange);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-branding img { max-height: 52px; width: auto; }
.site-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.site-title a { color: #fff; }
.site-title .accent { color: var(--tb-orange); }
.site-description { font-size: 12px; color: #b9bac0; margin: 0; }
.header-contact { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 800; font-size: 18px; padding: 8px 18px;
  border: 2px solid var(--tb-orange); border-radius: 999px; direction: ltr;
}
.header-phone:hover { background: var(--tb-orange); color: #fff; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation a { color: #d8d9de; padding: 10px 14px; display: block; font-weight: 600; font-size: 15px; border-radius: 8px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #fff; background: rgba(242, 107, 0, 0.15); }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--tb-orange); color: #fff;
  border-radius: 10px; padding: 8px 14px; font-size: 16px; font-family: inherit; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,24,28,0.92) 0%, rgba(23,24,28,0.65) 55%, rgba(23,24,28,0.35) 100%);
}
.hero-content { position: relative; max-width: 640px; padding: 90px 0; }
.hero-badge {
  display: inline-block; background: rgba(242,107,0,0.18); border: 1px solid var(--tb-orange);
  color: #ffb27a; padding: 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); font-weight: 900; margin-bottom: 16px; }
.hero h1 .accent { color: var(--tb-orange); }
.hero p { font-size: 19px; color: #d8d9de; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 30px; color: var(--tb-orange); font-weight: 900; }
.hero-stat span { font-size: 14px; color: #c5c6cc; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--tb-light); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; color: var(--tb-orange); font-weight: 800; font-size: 14px;
  letter-spacing: 1px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.section-head p { color: var(--tb-muted); font-size: 17px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--tb-shadow); }
.service-card img { width: 100%; height: 210px; object-fit: cover; }
.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 20px; font-weight: 800; }
.service-body p { color: var(--tb-muted); font-size: 15px; flex: 1; }
.service-link { font-weight: 800; color: var(--tb-orange); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-item {
  background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
  padding: 28px 22px; text-align: center;
}
.feature-item .fi-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--tb-orange-soft); color: var(--tb-orange);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.feature-item h3 { font-size: 18px; font-weight: 800; }
.feature-item p { color: var(--tb-muted); font-size: 14.5px; margin: 0; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step-item { position: relative; background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 34px 24px 24px; }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; inset-inline-start: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tb-orange); color: #fff; font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(242,107,0,.35);
}
.step-item h3 { font-size: 18px; font-weight: 800; }
.step-item p { color: var(--tb-muted); font-size: 14.5px; margin: 0; }

/* Cities */
.cities-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city-chip {
  background: #fff; border: 1px solid var(--tb-border); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; font-size: 15px; color: var(--tb-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.city-chip::before { content: "📍"; font-size: 15px; }
.city-chip.major { border-color: var(--tb-orange); color: var(--tb-orange); background: var(--tb-orange-soft); }

/* Posts */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow); }
.post-card .post-thumb { display: block; }
.post-card .post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-card .post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .post-meta { font-size: 13px; color: var(--tb-muted); margin-bottom: 8px; }
.post-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.post-card h3 a { color: var(--tb-dark); }
.post-card h3 a:hover { color: var(--tb-orange); }
.post-card p { color: var(--tb-muted); font-size: 14.5px; flex: 1; }
.post-card .read-more { font-weight: 800; font-size: 14px; color: var(--tb-orange); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--tb-dark) 0%, #2b2d36 100%); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset-inline-start: -120px; top: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,107,0,.35), transparent 70%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); font-weight: 900; margin: 0 0 8px; }
.cta-inner p { color: #c5c6cc; margin: 0; font-size: 17px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Blog / Archive ===== */
.page-head { background: var(--tb-dark); color: #fff; padding: 60px 0; text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 0; }
.page-head p { color: #c5c6cc; margin: 8px 0 0; }

.content-area { padding: 60px 0; }
.layout-split { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media (max-width: 900px) { .layout-split { grid-template-columns: 1fr; } }

.single-article { background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 36px; }
.single-article .entry-thumb img { border-radius: 10px; margin-bottom: 26px; width: 100%; }
.single-article h1.entry-title { font-size: clamp(24px, 3.5vw, 34px); font-weight: 900; }
.entry-meta { color: var(--tb-muted); font-size: 14px; margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap; }
.entry-content { font-size: 16.5px; }
.entry-content h2 { margin-top: 1.6em; font-size: 24px; font-weight: 800; }
.entry-content h3 { margin-top: 1.4em; font-size: 20px; font-weight: 800; }
.entry-content ul, .entry-content ol { padding-inline-start: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-inline-start: 4px solid var(--tb-orange); background: var(--tb-orange-soft);
  margin: 1.4em 0; padding: 16px 22px; border-radius: 10px; color: var(--tb-dark);
}
.entry-content img { border-radius: 10px; }
.entry-cta {
  margin-top: 36px; background: var(--tb-orange-soft); border: 1px dashed var(--tb-orange);
  border-radius: var(--tb-radius); padding: 24px; text-align: center;
}
.entry-cta h3 { margin-bottom: 6px; }
.entry-cta p { color: var(--tb-muted); margin-bottom: 16px; }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.post-navigation a { font-weight: 700; }

/* Sidebar */
.widget {
  background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
  padding: 24px; margin-bottom: 24px;
}
.widget-title { font-size: 18px; font-weight: 800; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--tb-orange); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--tb-border); }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--tb-text); font-weight: 600; }
.widget li a:hover { color: var(--tb-orange); }
.sidebar-cta { background: var(--tb-dark); color: #fff; border: none; }
.sidebar-cta .widget-title { color: #fff; border-color: var(--tb-orange); }
.sidebar-cta p { color: #c5c6cc; font-size: 14.5px; }
.sidebar-cta .btn { width: 100%; margin-bottom: 10px; }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--tb-border); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--tb-text);
}
input:focus, textarea:focus { outline: 2px solid var(--tb-orange); border-color: var(--tb-orange); }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; }

/* Comments */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 20px; margin-bottom: 16px; }
.comment-list .children { list-style: none; margin-inline-start: 30px; }
.comment-form p { margin-bottom: 14px; }
.comment-form input, .comment-form textarea { margin-top: 4px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--tb-border); border-radius: 10px; font-weight: 700; color: var(--tb-dark); padding: 0 14px;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--tb-orange); border-color: var(--tb-orange); color: #fff; }

/* 404 */
.error-404 { text-align: center; padding: 90px 0; }
.error-404 h1 { font-size: 90px; color: var(--tb-orange); font-weight: 900; margin: 0; line-height: 1; }

/* ===== Footer ===== */
.site-footer { background: var(--tb-dark); color: #c5c6cc; padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h4 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 3px; background: var(--tb-orange); border-radius: 2px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { max-height: 52px; }
.footer-brand span { color: #fff; font-weight: 900; font-size: 20px; }
.footer-about p { font-size: 14.5px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #c5c6cc; }
.footer-menu a:hover { color: var(--tb-orange); }
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.footer-contact .fc-icon { color: var(--tb-orange); }
.footer-contact a { color: #fff; direction: ltr; unicode-bidi: embed; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 14px; color: #8f9097; }

/* ===== Floating buttons ===== */
.floating-wrap { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.floating-btn {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .2s ease; text-decoration: none; border: none; cursor: pointer; position: relative;
}
.floating-btn svg { width: 28px; height: 28px; }
.floating-btn:hover { transform: scale(1.08); color: #fff; }
.floating-call { background: var(--tb-dark); border: 2px solid var(--tb-orange); }
.floating-call svg { color: var(--tb-orange); }
.floating-whatsapp { background: var(--tb-green); }
.floating-label {
  position: absolute; inset-inline-end: 70px; top: 50%; transform: translateY(-50%);
  background: var(--tb-dark); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.floating-btn:hover .floating-label { opacity: 1; }
@media (max-width: 600px) {
  .floating-btn { width: 52px; height: 52px; }
  .floating-btn svg { width: 25px; height: 25px; }
  .floating-wrap { bottom: 16px; inset-inline-end: 16px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-contact .header-phone span.hp-label { display: none; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--tb-dark-2); padding: 12px 4%; border-bottom: 3px solid var(--tb-orange); }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; }
  .hero { min-height: 480px; }
  .hero-content { padding: 60px 0; }
  .section { padding: 56px 0; }
  .single-article { padding: 24px; }
  .header-inner { flex-wrap: wrap; }
}

/* WordPress core alignment classes */
.alignleft { float: inline-start; margin: 0 0 20px 24px; }
.alignright { float: inline-end; margin: 0 24px 20px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 1000; background: var(--tb-orange); color: #fff; padding: 10px 20px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
