/*
Theme Name: Ramz Digital
Theme URI: https://ramz.sa
Author: Ramz Agency
Author URI: https://ramz.sa
Description: Custom bilingual (Arabic/English) WordPress theme for Ramz Digital Marketing Agency. Features interactive elements, RTL support, and auto-generated pages on activation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ramz
Tags: rtl-language-support, translation-ready, custom-logo, custom-menu
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   RAMZ BRAND VARIABLES
   ============================================ */
:root {
  --ramz-blue: #0F72CD;
  --ramz-blue-dark: #0d65b8;
  --ramz-green: #59AB56;
  --ramz-black: #000000;
  --ramz-white: #FFFFFF;
  --ramz-gray-50: #FAFBFC;
  --ramz-gray-100: #f5f8fc;
  --ramz-gray-200: #e8edf3;
  --ramz-gray-500: #666;
  --ramz-gray-800: #0a0a0a;
  --ramz-gradient: linear-gradient(135deg, #0F72CD, #59AB56);
  --ramz-gradient-dark: linear-gradient(135deg, #0F72CD, #0d65b8);
  --font-en: 'Sora', sans-serif;
  --font-ar: 'Noto Sans Arabic', sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(15,114,205,0.15);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-en);
  background: var(--ramz-gray-50);
  color: var(--ramz-gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl, .rtl body {
  font-family: var(--font-ar);
  direction: rtl;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--ramz-gradient); border-radius: 4px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.ramz-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(15,114,205,0.08), rgba(89,171,86,0.08));
  padding: 6px 20px;
  border-radius: 30px;
  border: 1px solid rgba(15,114,205,0.12);
  font-size: 12px;
  font-weight: 700;
  color: var(--ramz-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ramz-tag--green {
  background: rgba(89,171,86,0.08);
  color: var(--ramz-green);
  border-color: rgba(89,171,86,0.12);
}

.ramz-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ramz-green);
  animation: pulse 2s infinite;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--ramz-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 17px;
  color: var(--ramz-gray-500);
  line-height: 1.9;
  max-width: 700px;
}

/* ============================================
   LAYOUT
   ============================================ */
.ramz-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ramz-section {
  padding: 120px 24px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.ramz-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.ramz-nav.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,114,205,0.08);
}

.ramz-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ramz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ramz-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ramz-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-en);
}

.ramz-logo__text {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
  font-family: var(--font-en);
  background: var(--ramz-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ramz-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ramz-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  position: relative;
}

.ramz-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ramz-gradient);
  transition: var(--transition);
}

.ramz-nav__link:hover::after { width: 100%; }
.ramz-nav__link:hover { color: var(--ramz-blue); }

.ramz-lang-toggle {
  background: linear-gradient(135deg, rgba(15,114,205,0.08), rgba(89,171,86,0.08));
  border: 1px solid rgba(15,114,205,0.15);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ramz-blue);
  transition: var(--transition);
  font-family: inherit;
}

.ramz-lang-toggle:hover {
  background: var(--ramz-blue);
  color: white;
}

/* Mobile Menu */
.ramz-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ramz-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ramz-gray-800);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .ramz-nav__links { display: none; }
  .ramz-nav__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 32px;
    gap: 24px;
    box-shadow: var(--shadow-md);
  }
  .ramz-menu-toggle { display: block; }
}

/* ============================================
   HERO
   ============================================ */
.ramz-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.ramz-hero__content { max-width: 720px; position: relative; z-index: 1; }

.ramz-hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.ramz-hero__desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ramz-gray-500);
  max-width: 560px;
  margin-bottom: 40px;
}

.ramz-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.ramz-hero__blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15,114,205,0.08) 0%, rgba(89,171,86,0.04) 50%, transparent 70%);
  animation: morphBlob 20s ease-in-out infinite;
}

.ltr .ramz-hero__blob { right: -10%; top: 10%; }
.rtl .ramz-hero__blob { left: -10%; top: 10%; }

/* ============================================
   BUTTONS
   ============================================ */
.ramz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.ramz-btn--primary {
  background: var(--ramz-gradient-dark);
  color: white;
}

.ramz-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,114,205,0.4);
}

.ramz-btn--secondary {
  background: transparent;
  color: var(--ramz-blue);
  border: 2px solid rgba(15,114,205,0.2);
}

.ramz-btn--secondary:hover {
  background: rgba(15,114,205,0.08);
}

.ramz-btn--gradient {
  background: var(--ramz-gradient);
  color: white;
}

.ramz-btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,114,205,0.35);
}

/* ============================================
   CARDS
   ============================================ */
.ramz-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(15,114,205,0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ramz-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ramz-card__icon { font-size: 48px; margin-bottom: 16px; }
.ramz-card__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ramz-card__subtitle { font-size: 14px; color: var(--ramz-blue); font-weight: 600; margin-bottom: 12px; }
.ramz-card__desc { font-size: 15px; color: var(--ramz-gray-500); line-height: 1.8; }

/* Service Tags */
.ramz-service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.ramz-service-tag {
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,114,205,0.06), rgba(89,171,86,0.06));
  font-size: 13px;
  font-weight: 500;
  color: #333;
  border: 1px solid rgba(15,114,205,0.1);
  transition: var(--transition);
  cursor: pointer;
}

.ramz-service-tag:hover {
  background: var(--ramz-gradient);
  color: white;
  border-color: transparent;
}

/* ============================================
   STATS
   ============================================ */
.ramz-stats {
  padding: 80px 24px;
  background: linear-gradient(135deg, #0F72CD 0%, #0d65b8 50%, #0a5299 100%);
  position: relative;
  overflow: hidden;
}

.ramz-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, white 20px, white 21px);
}

.ramz-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.ramz-stats__item { text-align: center; color: white; }
.ramz-stats__num { font-size: 48px; font-weight: 800; font-family: var(--font-en); margin-bottom: 8px; }
.ramz-stats__label { font-size: 14px; opacity: 0.8; }

@media (max-width: 768px) {
  .ramz-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PILLAR TABS
   ============================================ */
.ramz-pillars__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ramz-pillar-tab {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  background: white;
  color: #555;
  box-shadow: var(--shadow-sm);
}

.ramz-pillar-tab.active {
  background: var(--ramz-gradient);
  color: white;
  box-shadow: 0 8px 24px rgba(15,114,205,0.3);
}

.ramz-pillar-detail {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(15,114,205,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  animation: slideUp 0.5s ease;
}

@media (max-width: 768px) {
  .ramz-pillar-detail { grid-template-columns: 1fr; }
}

/* ============================================
   INDUSTRIES
   ============================================ */
.ramz-industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ramz-industry {
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
  background: white;
  border: 1px solid rgba(15,114,205,0.08);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.ramz-industry:hover {
  background: var(--ramz-gradient);
  color: white;
  transform: scale(1.05);
}

.ramz-industry__icon { font-size: 28px; margin-bottom: 8px; }
.ramz-industry__name { font-size: 13px; font-weight: 600; line-height: 1.4; }

@media (max-width: 768px) {
  .ramz-industries__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   CTA SECTION
   ============================================ */
.ramz-cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ramz-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,114,205,0.15) 0%, transparent 60%);
}

.ramz-cta__title { font-size: 40px; font-weight: 800; color: white; margin-bottom: 16px; }
.ramz-cta__desc { font-size: 18px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }

/* ============================================
   FOOTER
   ============================================ */
.ramz-footer {
  padding: 48px 24px 32px;
  background: var(--ramz-gray-800);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ramz-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ramz-footer__brand { display: flex; align-items: center; gap: 10px; }
.ramz-footer__tagline { color: rgba(255,255,255,0.3); font-size: 12px; margin: 0 12px; }
.ramz-footer__rights { color: rgba(255,255,255,0.3); font-size: 13px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 42% 56% 72% 28% / 42% 42% 56% 56%; }
  33% { border-radius: 72% 28% 42% 56% / 56% 72% 28% 42%; }
  66% { border-radius: 28% 72% 56% 42% / 72% 28% 42% 56%; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-30px) translateX(15px); }
  66% { transform: translateY(15px) translateX(-10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.ramz-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ramz-particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle 10s ease-in-out infinite;
}

/* ============================================
   SERVICE PAGE TEMPLATE
   ============================================ */
.ramz-service-hero {
  padding: 160px 24px 80px;
  background: linear-gradient(180deg, var(--ramz-gray-50), var(--ramz-white));
}

.ramz-service-content { padding: 80px 24px; }

.ramz-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ramz-service-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(15,114,205,0.06);
  transition: var(--transition);
}

.ramz-service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15,114,205,0.15);
}

.ramz-service-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ramz-gradient);
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ramz-service-item__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ramz-service-item__desc {
  font-size: 14px;
  color: var(--ramz-gray-500);
  line-height: 1.8;
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */
.ramz-interactive-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,114,205,0.06);
  transition: var(--transition);
  cursor: pointer;
}

.ramz-interactive-icon:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15,114,205,0.12);
}

.ramz-interactive-icon__emoji { font-size: 36px; }
.ramz-interactive-icon__label { font-size: 13px; font-weight: 600; color: #333; }
