/*
Theme Name: مظلات ظلك - Mazallat Zelak
Theme URI: https://zelak.sa
Author: محمد المبرمج
Author URI: https://wa.me/966500000000
Description: قالب احترافي فاخر لنشاط مظلات ظلك - جدة، مكة، السعودية
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mazallat-zelak
Tags: rtl-language, arabic, business, one-page
*/

/* ============================================================
   CSS VARIABLES - هوية الموقع الألوانية
   ============================================================ */
:root {
  /* الألوان الأساسية */
  --color-primary:       #1a6b3a;   /* أخضر ظلك الرئيسي */
  --color-primary-dark:  #145530;
  --color-primary-light: #22883f;
  --color-gold:          #c9a84c;   /* ذهبي فاخر */
  --color-gold-light:    #e8c97a;
  --color-dark:          #0d1117;
  --color-dark-2:        #161b22;
  --color-dark-3:        #1c2228;
  --color-text:          #1a1a2e;
  --color-text-light:    #4a5568;
  --color-white:         #ffffff;
  --color-bg:            #f8faf9;
  --color-bg-section:    #f0f5f2;
  --color-border:        #e2e8e5;

  /* الخطوط */
  --font-arabic:   'Cairo', 'Tajawal', sans-serif;
  --font-display:  'Tajawal', sans-serif;

  /* المسافات */
  --section-padding: 90px 0;
  --container-max:   1280px;

  /* الظلال */
  --shadow-sm:  0 2px 8px rgba(26,107,58,.08);
  --shadow-md:  0 8px 30px rgba(26,107,58,.12);
  --shadow-lg:  0 20px 60px rgba(26,107,58,.18);
  --shadow-xl:  0 30px 80px rgba(0,0,0,.25);

  /* الانتقالات */
  --transition: all .35s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .2s ease;

  /* الحدود */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-arabic);
  background: var(--color-white);
  color: var(--color-text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { font-size: 1.05rem; color: var(--color-text-light); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: var(--section-padding); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(26,107,58,.08);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-header h2 {
  color: var(--color-dark);
  margin-bottom: 16px;
}
.section-header h2 span { color: var(--color-primary); }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-arabic);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(26,107,58,.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,107,58,.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #1a1a00;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,.6);
}

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

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
}

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: .9rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,107,58,.2);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,.7);
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ============================================================
   CALL FLOAT BUTTON
   ============================================================ */
.call-float {
  position: fixed;
  bottom: 105px;
  left: 30px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.call-float:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover { transform: translateY(-4px); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .btn-lg { padding: 15px 30px; font-size: 1rem; }
}
