/*
Theme Name: Bareq Clean
Theme URI: https://bareqclean.sa
Description: قالب احترافي لشركة بريق كلين للخدمات المنزلية - خدمات التنظيف ومكافحة الحشرات في الرياض. يدعم الاتجاه من اليمين لليسار وأزرار الاتصال والواتساب العائمة.
Author: Bareq Clean
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bareq-clean
*/

/* ============ Design tokens ============ */
:root {
  --bc-primary: #0f9d76;
  --bc-primary-dark: #0b7a5c;
  --bc-deep: #0b3d33;
  --bc-deep-2: #082b24;
  --bc-gold: #d9a441;
  --bc-bg: #f5faf8;
  --bc-surface: #ffffff;
  --bc-text: #12332c;
  --bc-muted: #5b7a72;
  --bc-border: #dcebe6;
  --bc-wa: #25d366;
  --bc-radius: 18px;
  --bc-shadow: 0 12px 30px rgba(11, 61, 51, 0.10);
  --bc-shadow-lg: 0 22px 50px rgba(11, 61, 51, 0.18);
}

/* ============ Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bc-bg);
  color: var(--bc-text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bc-primary); }

.bc-container { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

/* ============ Top bar ============ */
.bc-topbar {
  background: var(--bc-deep-2);
  color: #cfe8e0;
  font-size: 13px;
}
.bc-topbar .bc-container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-block: 8px; flex-wrap: wrap;
}
.bc-topbar a { color: #ffd97a; font-weight: 700; }
.bc-topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ============ Header ============ */
.bc-header {
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-border);
  position: sticky; top: 0; z-index: 50;
}
.bc-header .bc-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.bc-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; color: var(--bc-deep);
}
.bc-logo-badge {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--bc-primary), var(--bc-deep));
  color: #fff; display: grid; place-items: center;
  box-shadow: var(--bc-shadow);
}
.bc-logo small { display: block; font-size: 12px; font-weight: 600; color: var(--bc-muted); line-height: 1.4; }

.bc-nav ul { list-style: none; display: flex; gap: 4px; }
.bc-nav a {
  display: block; padding: 8px 14px; border-radius: 10px;
  font-weight: 700; font-size: 15px; color: var(--bc-text);
}
.bc-nav a:hover, .bc-nav .current-menu-item > a { background: #e8f5f0; color: var(--bc-primary-dark); }

.bc-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bc-primary); color: #fff !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 800;
  box-shadow: var(--bc-shadow);
}
.bc-header-cta:hover { background: var(--bc-primary-dark); }

.bc-menu-toggle {
  display: none; background: none; border: 1px solid var(--bc-border);
  border-radius: 10px; padding: 8px 12px; font-size: 20px; cursor: pointer;
  color: var(--bc-deep); font-family: inherit;
}

@media (max-width: 900px) {
  .bc-menu-toggle { display: block; }
  .bc-nav { display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--bc-surface); border-bottom: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow-lg); }
  .bc-nav.open { display: block; }
  .bc-nav ul { flex-direction: column; padding: 10px; }
  .bc-header-cta span.bc-cta-text { display: none; }
}

/* ============ Hero ============ */
.bc-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--bc-deep-2);
}
.bc-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('assets/img/hero.jpg') center/cover no-repeat;
  opacity: .45;
}
.bc-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,43,36,.95) 0%, rgba(8,43,36,.75) 45%, rgba(8,43,36,.25) 100%);
}
.bc-hero .bc-container { position: relative; z-index: 2; padding-block: 96px; }
.bc-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #ffe6a8; margin-bottom: 18px;
}
.bc-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; line-height: 1.35; }
.bc-hero h1 em { font-style: normal; color: #7fe3c4; }
.bc-hero p {
  max-width: 620px; margin-top: 16px; font-size: clamp(15px, 2vw, 19px);
  color: #dcefe9;
}
.bc-hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 16px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.bc-btn:hover { transform: translateY(-2px); }
.bc-btn-primary { background: var(--bc-primary); color: #fff !important; box-shadow: var(--bc-shadow-lg); }
.bc-btn-primary:hover { background: var(--bc-primary-dark); }
.bc-btn-wa { background: var(--bc-wa); color: #fff !important; box-shadow: var(--bc-shadow-lg); }
.bc-btn-wa:hover { filter: brightness(1.05); }
.bc-btn-outline {
  background: rgba(255,255,255,.1); color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}
.bc-btn-outline:hover { background: rgba(255,255,255,.2); }
.bc-btn-dark { background: var(--bc-deep); color: #fff !important; }
.bc-btn-dark:hover { background: var(--bc-deep-2); }

.bc-hero-stats {
  display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap;
}
.bc-hero-stats b { display: block; font-size: 26px; color: #7fe3c4; }
.bc-hero-stats span { font-size: 13px; color: #cfe8e0; }

/* ============ Sections ============ */
.bc-section { padding-block: 76px; }
.bc-section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 44px; }
.bc-section-head .bc-kicker {
  color: var(--bc-primary); font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.bc-section-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; margin-top: 6px; }
.bc-section-head p { color: var(--bc-muted); margin-top: 10px; }

/* Services */
.bc-services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
}
.bc-card {
  background: var(--bc-surface); border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.bc-card:hover { transform: translateY(-5px); box-shadow: var(--bc-shadow-lg); }
.bc-card-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  background: #e8f5f0; color: var(--bc-primary-dark);
  display: grid; place-items: center;
}
.bc-card-icon svg { width: 28px; height: 28px; }
.bc-card h3 { font-size: 18px; font-weight: 800; }
.bc-card p { color: var(--bc-muted); font-size: 14.5px; margin-top: 8px; }

/* Pest split */
.bc-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--bc-surface); border: 1px solid var(--bc-border);
  border-radius: 24px; overflow: hidden; box-shadow: var(--bc-shadow);
}
.bc-split-media { min-height: 320px; background: url('assets/img/pest-control.jpg') center/cover no-repeat; }
.bc-split-body { padding: 40px; }
.bc-split-body h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.bc-split-body ul { list-style: none; margin-top: 18px; }
.bc-split-body li {
  padding-inline-start: 30px; position: relative; margin-block: 8px; color: var(--bc-muted);
}
.bc-split-body li::before {
  content: "✔"; position: absolute; inset-inline-start: 0;
  color: var(--bc-primary); font-weight: 900;
}
.bc-split-body .bc-btn { margin-top: 22px; }
@media (max-width: 800px) {
  .bc-split { grid-template-columns: 1fr; }
  .bc-split-media { min-height: 240px; }
}

/* Features strip */
.bc-features {
  background: linear-gradient(135deg, var(--bc-deep), var(--bc-deep-2));
  color: #fff;
}
.bc-features .bc-section-head h2, .bc-features .bc-section-head p { color: #fff; }
.bc-features .bc-section-head p { color: #cfe8e0; }
.bc-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px;
  text-align: center;
}
.bc-feature-icon {
  width: 64px; height: 64px; margin-inline: auto; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; color: #7fe3c4; margin-bottom: 14px;
}
.bc-feature-icon svg { width: 30px; height: 30px; }
.bc-feature h4 { font-size: 17px; font-weight: 800; }
.bc-feature p { font-size: 14px; color: #cfe8e0; margin-top: 6px; }

/* CTA strip */
.bc-cta {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark));
  color: #fff; text-align: center; padding-block: 56px;
}
.bc-cta h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; }
.bc-cta p { color: #e2fff4; margin-top: 8px; }
.bc-cta .bc-btn { margin-top: 22px; }

/* Contact */
.bc-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.bc-contact-card {
  background: var(--bc-surface); border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--bc-shadow);
}
.bc-contact-card .bc-card-icon { margin-inline: auto; }
.bc-contact-card a.big {
  display: block; font-size: 24px; font-weight: 900; margin-top: 6px;
  direction: ltr;
}
.bc-areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.bc-areas span {
  background: var(--bc-surface); border: 1px solid var(--bc-border);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; color: var(--bc-muted);
  font-weight: 700;
}

/* ============ Footer ============ */
.bc-footer { background: var(--bc-deep-2); color: #cfe8e0; padding-block: 48px 0; }
.bc-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px;
}
.bc-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.bc-footer ul { list-style: none; }
.bc-footer li { margin-block: 6px; font-size: 14.5px; }
.bc-footer a { color: #cfe8e0; }
.bc-footer a:hover { color: #7fe3c4; }
.bc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px;
  padding-block: 18px; text-align: center; font-size: 13px; color: #9dc3b8;
}

/* ============ Floating buttons ============ */
.bc-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 999;
  display: flex; flex-direction: column; gap: 12px;
}
.bc-float a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px; color: #fff !important;
  font-weight: 800; font-size: 14.5px; box-shadow: var(--bc-shadow-lg);
  transform: translateX(0); transition: transform .2s;
  animation: bc-pulse 2.6s infinite;
}
.bc-float a:hover { transform: translateY(-3px); }
.bc-float svg { width: 22px; height: 22px; flex: none; }
.bc-float .bc-float-wa { background: var(--bc-wa); }
.bc-float .bc-float-call { background: var(--bc-primary); animation-delay: 1.3s; }
@keyframes bc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 157, 118, .45); }
  50% { box-shadow: 0 0 0 12px rgba(15, 157, 118, 0); }
}
@media (max-width: 600px) {
  .bc-float a { padding: 12px; }
  .bc-float a span { display: none; }
}

/* ============ WordPress content fallback ============ */
.bc-content-area { padding-block: 60px; }
.bc-content-area article { background: var(--bc-surface); border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius); padding: 30px; margin-bottom: 22px; }
.bc-content-area h2 a { color: var(--bc-deep); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
