/*
Theme Name: مقاول تكسير وفتحات كور الرياض
Theme URI: https://webcomeg.com
Author: شركة ويبكوم
Author URI: https://webcomeg.com
Description: قالب ووردبريس احترافي لمقاول تكسير وفتحات كور بالرياض. متجاوب، جاهز للأرشفة، ألوان عصرية، تحكم سهل في أرقام الهواتف وصور الخدمات. جميع الحقوق محفوظة لشركة ويبكوم.
Version: 1.5.2
Requires at least: 5.8
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: riyadh-core
Tags: construction, rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   مقاول تكسير وفتحات كور بالرياض
   تصميم: شركة ويبكوم | webcomeg.com
   ============================================ */

:root {
  --primary: #0B1C2C;
  --primary-light: #1A3A5C;
  --accent: #E85D04;
  --accent-hover: #F48C06;
  --accent-soft: #FFF3E6;
  --secondary: #00A896;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0B1C2C;
  --border: #E5E7EB;
  --success: #059669;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(11, 28, 44, 0.08);
  --shadow-lg: 0 10px 40px rgba(11, 28, 44, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: 16px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-call {
  background: var(--secondary);
  color: var(--white);
}

.btn-call:hover {
  background: #008f80;
  color: var(--white);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-top a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-top a:hover {
  color: var(--accent);
}

.header-main {
  padding: 12px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

.logo img {
  max-height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list a,
.nav-list .menu-item a {
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: block;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list .current-menu-item a,
.nav-list .current_page_item a {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  margin-right: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 28, 44, 0.92) 0%, rgba(26, 58, 92, 0.85) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero.has-bg {
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.4);
  color: #FFB347;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-phones {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-phone strong {
  font-size: 1.2rem;
  direction: ltr;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-card-body p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card-body a {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-body a:hover {
  gap: 10px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
}

/* Neighborhoods */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.neighborhood-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  transition: var(--transition);
  font-weight: 600;
  color: var(--primary);
  display: block;
}

.neighborhood-card:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.3);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 93, 4, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item a {
  color: rgba(255,255,255,0.9);
  direction: ltr;
  display: inline-block;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-alt);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 6px;
}

.footer-phones a {
  display: block;
  direction: ltr;
  text-align: right;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Content */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-block h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.content-block ul {
  margin: 16px 0;
  padding-right: 20px;
}

.content-block ul li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.content-block ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: bold;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content p {
  margin-bottom: 1.2rem;
}

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* WordPress specific */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--text-light); }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 1001;
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
  
  .nav-list a,
  .nav-list .menu-item a {
    width: 100%;
    padding: 14px 16px;
  }
  
  .nav-cta {
    margin: 16px 0 0;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  .header-top {
    font-size: 0.8rem;
  }
  
  .hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-phones {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .hero-phone {
    width: 100%;
    justify-content: center;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== v1.1.0 additions ========== */

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.service-card-body .btn-whatsapp {
  color: var(--white);
  width: 100%;
  justify-content: center;
}

.service-card-body .btn-whatsapp:hover {
  color: var(--white);
  gap: 8px;
}

.service-card-icon {
  /* when no image - icon centered already */
}

/* Service detail (services page) */
.service-detail {
  margin-bottom: 28px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  min-height: 200px;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.service-detail-icon {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  font-size: 4rem;
  color: var(--accent);
  border-radius: var(--radius);
}

.service-detail-body ul {
  margin: 14px 0;
  padding-right: 20px;
}

.service-detail-body ul li {
  list-style: disc;
  margin-bottom: 6px;
  color: var(--text-light);
}

/* Check list */
.check-list {
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-right: 32px;
  margin-bottom: 12px;
  color: var(--text);
  list-style: none;
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--secondary);
  font-size: 1rem;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question i {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 0.9rem;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

/* Neighborhoods groups */
.neighborhoods-group {
  margin-bottom: 32px;
}

.neighborhoods-group h2 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.neighborhood-card-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.neighborhood-card-disabled:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

/* Content block list styles */
.content-block ul:not(.check-list) {
  padding-right: 22px;
  margin: 12px 0;
}

.content-block ul:not(.check-list) li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Responsive for service detail */
@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-img img,
  .service-detail-icon {
    min-height: 180px;
    height: 180px;
  }

  .map-wrapper iframe {
    min-height: 300px;
  }
}
