/* ========================================
   ريحانة المملكة — Premium Stylesheet v2
   Million-Dollar Design | Light + Dark Mode
   ======================================== */

/* ---------- CSS Variables — Light Mode ---------- */
:root {
  --bg-primary: #f8faf9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,0.7);
  --text-primary: #0c1a12;
  --text-secondary: #4a5a50;
  --text-muted: #7a8a80;
  --accent: #0a8754;
  --accent-hover: #067040;
  --accent-light: rgba(10,135,84,0.08);
  --accent-glow: rgba(10,135,84,0.25);
  --gold: #c9a84c;
  --gold-light: rgba(201,168,76,0.12);
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(10,135,84,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(10,135,84,0.12);
  --gradient-hero: linear-gradient(160deg, #0a3d25 0%, #0a8754 40%, #0d6b40 70%, #0a5c35 100%);
  --gradient-accent: linear-gradient(135deg, #0a8754, #0d9b5e);
  --gradient-gold: linear-gradient(135deg, #c9a84c, #dbb960);
  --header-bg: rgba(248,250,249,0.85);
  --footer-bg: #0a1a12;
  --footer-text: #aab8b0;
  --section-alt: #f0f5f2;
  --overlay: rgba(10,26,18,0.55);
  --card-hover-shadow: 0 24px 60px rgba(10,135,84,0.15);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* ---------- CSS Variables — Dark Mode ---------- */
[data-theme="dark"] {
  --bg-primary: #080e0b;
  --bg-secondary: #0f1a14;
  --bg-card: #142018;
  --bg-glass: rgba(20,32,24,0.8);
  --text-primary: #e8f0ec;
  --text-secondary: #a0b8ac;
  --text-muted: #6a8078;
  --accent: #34d87a;
  --accent-hover: #2bc46a;
  --accent-light: rgba(52,216,122,0.1);
  --accent-glow: rgba(52,216,122,0.2);
  --gold: #f0d060;
  --gold-light: rgba(240,208,96,0.1);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(52,216,122,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(52,216,122,0.1);
  --gradient-hero: linear-gradient(160deg, #040806 0%, #0a2818 40%, #0d3a22 70%, #061a10 100%);
  --gradient-accent: linear-gradient(135deg, #34d87a, #2bc46a);
  --gradient-gold: linear-gradient(135deg, #f0d060, #f5dc80);
  --header-bg: rgba(8,14,11,0.88);
  --footer-bg: #040806;
  --footer-text: #6a8078;
  --section-alt: #0b1610;
  --overlay: rgba(4,8,6,0.65);
  --card-hover-shadow: 0 24px 60px rgba(52,216,122,0.1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; width: 100%; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  direction: rtl;
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

#page-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--section-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Premium Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
}
.btn-whatsapp::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

/* ========================================
   HEADER — Premium Glass
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
[data-theme="dark"] .header {
  background: transparent;
  box-shadow: none;
}
.header.scrolled {
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 6px 0;
}
[data-theme="dark"] .header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 18px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}
.header.scrolled .logo-img {
  width: 90px;
  height: 90px;
}
.logo-img:hover { transform: scale(1.08) rotate(-3deg); }
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 2000;
  padding: 90px 28px 28px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-nav.open { right: 0; }
.mobile-nav-links {
  flex: 1;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 2px;
}
.mobile-nav-links a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mobile-nav-actions .theme-toggle {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}
.mobile-nav-actions .theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mobile-nav-actions .btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  backdrop-filter: blur(4px);
}
.mobile-nav-overlay.open { display: block; }

/* ========================================
   HERO — Cinematic Premium
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  background-image: url('../images/الهيرو باك جراوند.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 60, 30, 0.75);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: heroFloat 20s infinite ease-in-out;
}
.hero-shapes .shape:nth-child(1) {
  width: 400px; height: 400px;
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.hero-shapes .shape:nth-child(2) {
  width: 250px; height: 250px;
  bottom: 10%; left: 5%;
  animation-delay: 5s;
}
.hero-shapes .shape:nth-child(3) {
  width: 150px; height: 150px;
  top: 40%; left: 30%;
  animation-delay: 10s;
}
.hero-shapes .shape:nth-child(4) {
  width: 300px; height: 300px;
  bottom: -5%; right: 20%;
  animation-delay: 15s;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(2deg); }
}

.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
}

.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge i { color: var(--gold); }

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-content h1 .accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Image Area */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  animation: heroGlow 4s infinite ease-in-out;
}
@keyframes heroGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
  animation: heroImageFloat 6s infinite ease-in-out;
}
@keyframes heroImageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Service pills floating around hero image */
.hero-pills {
  position: absolute;
  inset: 0;
}
.hero-pill {
  position: absolute;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pillFloat 5s infinite ease-in-out;
  white-space: nowrap;
}
.hero-pill:nth-child(1) { top: 5%; left: -10%; animation-delay: 0s; }
.hero-pill:nth-child(2) { bottom: 20%; right: -15%; animation-delay: 1.5s; }
.hero-pill:nth-child(3) { top: calc(55% + 80px); left: -20%; animation-delay: 3s; }
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   ABOUT — Elegant Split
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content .about-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 24px;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.85;
}
.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.about-image-area {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-image-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.about-stats-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2;
}
.about-stats-badge .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.about-stats-badge .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========================================
   SERVICES — 3D Tilt Cards
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }

.service-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-2deg);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--border-hover);
}

.service-card-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.4rem;
  color: var(--accent);
  transition: var(--transition);
  position: relative;
}
.service-card:hover .service-icon {
  background: var(--gradient-accent);
  color: #fff;
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
.service-card .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px;
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}
.modal-close:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.modal h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.modal p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.modal ul { margin: 20px 0; }
.modal ul li {
  padding: 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.modal ul li:last-child { border-bottom: none; }
.modal ul li::before {
  content: '\2713';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.modal .btn { width: 100%; justify-content: center; margin-top: 20px; }

/* ========================================
   WHY US — Premium Grid
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.why-card h4 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========================================
   STATS — Counter Section
   ======================================== */
.stats-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.08), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
}
.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* ========================================
   TESTIMONIALS — Slider
   ======================================== */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-card {
  min-width: calc(33.333% - 16px);
  margin: 0 8px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-right: 20px;
}
.testimonial-text::before {
  content: '\201C';
  position: absolute;
  right: 0; top: -8px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.testimonial-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active {
  background: var(--accent);
  width: 32px;
  border-radius: 5px;
}

/* ========================================
   FAQ — Accordion
   ======================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.02rem;
  transition: var(--transition);
}
.faq-question i {
  transition: var(--transition);
  color: var(--accent);
  font-size: 0.85rem;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s;
  padding: 0 28px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 24px;
}

/* ========================================
   CONTACT — Premium Form
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
.contact-form .form-group {
  margin-bottom: 22px;
}
.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  direction: rtl;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}
.info-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-card h4 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.info-card a { color: var(--accent); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-container {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ========================================
   FOOTER — Elegant Dark
   ======================================== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.footer-brand-text h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0;
}
.footer-brand-text span {
  font-size: 0.7rem;
  color: var(--footer-text);
  letter-spacing: 1px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col p {
  line-height: 1.9;
  font-size: 0.9rem;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  color: var(--footer-text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
  padding-right: 8px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.footer-contact-item i { color: var(--accent); width: 18px; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--footer-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================
   WHATSAPP SECTION LINK
   ======================================== */
.wa-section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 60px;
  background: rgba(37,211,102,0.08);
  color: #25D366;
  font-weight: 700;
  margin-top: 32px;
  transition: var(--transition);
  border: 1px solid rgba(37,211,102,0.15);
}
.wa-section-link:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

/* ========================================
   MOBILE BOTTOM BAR
   ======================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  height: 68px;
}
.mobile-bottom-bar .bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.mobile-bottom-bar .bar-btn:active { opacity: 0.85; transform: scale(0.98); }
.bar-call { background: #22c55e; }
.bar-whatsapp { background: #25D366; }
.bar-btn i { font-size: 1.3rem; }
.bar-btn .bar-num {
  font-size: 0.72rem;
  opacity: 0.85;
  display: block;
  direction: ltr;
  font-weight: 600;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.fab-wa, .fab-call {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
  text-decoration: none;
}
.fab-wa {
  bottom: 90px;
  left: 24px;
  background: #25D366;
}
.fab-wa:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}
.fab-call {
  bottom: 160px;
  left: 24px;
  background: #22c55e;
}
.fab-call:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-badge { justify-content: center; }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; }
  body { position: relative; }
  .header, .hero, .section, .footer { overflow-x: hidden; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; flex-direction: column; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 68px; }

  .header-actions .theme-toggle,
  .header-actions .btn-whatsapp { display: none; }
  .header .container { gap: 8px; }

  .logo-img { width: 72px; height: 72px; }
  .logo-name { font-size: 0.95rem; }
  .logo-sub { font-size: 0.55rem; }
  .header.scrolled .logo-img { width: 60px; height: 60px; }
  .header { padding: 4px 0; }

  .mobile-nav-links { flex: 1; }
  .mobile-nav { padding: 70px 20px 16px; }

  .hero-pills { display: none !important; }
  .hero-shapes .shape { display: none !important; }
  .hero-visual { display: none !important; }
  .hero-content h1 { word-break: break-word; }

  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-content h1 { font-size: 1.8rem; }
  .section { padding: 72px 0; }
  .section-title { font-size: 1.6rem; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image-area { order: -1; }
  .about-image-card { max-width: 260px; }
  .about-buttons { justify-content: center; }
  .about-content .about-label { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .testimonial-card { min-width: calc(100% - 16px); }

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

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact-item { justify-content: center; }
  .footer-brand { justify-content: center; }
  .social-links { justify-content: center; }

  .fab-wa { bottom: 80px; left: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
  .fab-call { bottom: 142px; left: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .btn { padding: 14px 28px; font-size: 0.92rem; }
}

/* ---------- Animation Classes ---------- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="flip-left"] { transform: perspective(250px) rotateY(20deg); }
