/*
Theme Name: Bright Star
Theme URI: https://brightstar.sa
Author: Bright Star
Author URI: https://brightstar.sa
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: brightstar
Tags: rtl-language-support, custom-logo, custom-menu, translation-ready
*/

/* ========================================
   برايت ستار لخدمات التنظيف - Bright Star Cleaning Services
   Main Stylesheet
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy-dark: #091428;
  --navy: #0c1a32;
  --navy-light: #112240;
  --gold: #c9a84c;
  --gold-light: #f5ecd7;
  --gold-hover: #b8943f;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 4rem 0;
}

/* ---------- Header ---------- */
.header {
  background-color: var(--navy-dark);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 56px;
  width: auto;
}

.header-logo-text {
  display: block;
}

.header-logo-text .brand-name {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.header-logo-text .brand-sub {
  color: rgba(201, 168, 76, 0.7);
  font-size: 0.75rem;
  display: block;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--gray-300);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--gold);
  border-radius: 1px;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-300);
}

.menu-toggle:hover {
  color: var(--gold);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-300);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background: linear-gradient(to left, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 5rem 0 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(201, 168, 76, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.btn-navy:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
}

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

.btn-outline-white:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.btn-sm {
  padding: 0.75rem 2rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Why Choose Us ---------- */
.why-choose {
  padding: 4rem 0;
  background-color: var(--gray-50);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 700px;
  margin: -2rem auto 3rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-hover);
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.feature-card p {
  color: var(--gray-600);
}

/* ---------- Service Cards ---------- */
.services-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.5rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-hover);
  fill: none;
  stroke-width: 2;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(to left, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(201, 168, 76, 0.8);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Services Page ---------- */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

.services-cta-box {
  margin-top: 4rem;
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.services-cta-box h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.services-cta-box p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-form-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

/* Contact Info */
.contact-info-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.contact-info-card h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-hover);
  fill: none;
  stroke-width: 2;
}

.contact-info-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-quick-cta {
  background: linear-gradient(to left, var(--navy-dark), var(--navy));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.contact-quick-cta h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.contact-quick-cta p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

/* ---------- About Page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.about-story img {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-story h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-story p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.vm-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vm-card-header h2 {
  font-size: 1.5rem;
  color: var(--navy);
}

.vm-card p {
  color: var(--gray-600);
  line-height: 1.8;
}

.values-section {
  margin-bottom: 4rem;
}

.stats-section {
  background: linear-gradient(to left, var(--navy-dark), var(--navy));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

.stats-section h2 {
  text-align: center;
  color: var(--gold);
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-300);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 64px;
  width: auto;
}

.footer-logo-text .brand-name {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.footer-logo-text .brand-sub {
  color: rgba(201, 168, 76, 0.7);
  font-size: 0.85rem;
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-section h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  min-width: 18px;
}

.footer-contact-item span {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-social svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-500);
}

/* ---------- WordPress Core ---------- */
.alignleft {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  padding: 0.5rem 0;
}

.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;
}

/* ---------- Floating Action Buttons ---------- */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floating-pulse 2s ease-in-out infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
}

.floating-btn-whatsapp {
  background-color: #25D366;
}

.floating-btn-whatsapp:hover {
  background-color: #1ebe5d;
}

.floating-btn-call {
  background-color: var(--gold);
}

.floating-btn-call:hover {
  background-color: var(--gold-hover);
}

@keyframes floating-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero {
    padding: 3rem 0 5rem;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-story img {
    height: 250px;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .header-logo-text {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-buttons {
    bottom: 1rem;
    left: 1rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 24px;
    height: 24px;
  }
}
