/*
Theme Name: KSA Epoxy Premium
Theme URI: https://ksaepoxy.com
Author: KSA Epoxy
Author URI: https://ksaepoxy.com
Description: Premium WordPress theme for KSA Epoxy - 3D Epoxy Flooring, Metallic Epoxy & Decorative Resin Floors. Ultra-modern cinematic design with glassmorphism and smooth animations.
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: ksa-epoxy
Tags: epoxy, flooring, construction, premium, dark, modern, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #8B6914;
  --black: #0A0A0A;
  --dark: #111111;
  --dark-2: #1A1A1A;
  --dark-3: #222222;
  --white: #FFFFFF;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.12);
  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8C96A 50%, #C9A84C 100%);
  --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.3);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.section-pad {
  padding: 100px 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--white-60);
  max-width: 600px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gradient-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
  z-index: 0;
}

.btn:hover::before { left: 0; }
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; }

.btn-gold {
  background: var(--gradient-gold);
  color: var(--black);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.6);
  color: var(--black);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--white);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

#site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--gradient-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

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

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white-80);
  padding: 8px 14px;
  border-radius: 4px;
  position: relative;
  text-transform: uppercase;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.main-nav a:hover, .main-nav a.current-menu-item {
  color: var(--white);
}

.main-nav a:hover::after, .main-nav a.current-menu-item::after {
  width: 60%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white-60);
}

.header-phone svg { color: var(--gold); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white-60);
  padding: 12px 40px;
  display: block;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 40%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 160px 0 120px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title .line-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--white-60);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease infinite;
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-40);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 48px 0;
}

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

.stat-item {
  text-align: center;
  padding: 24px 32px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--glass-border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-60);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--dark);
  padding: 120px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 72px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
  min-height: 400px;
  cursor: pointer;
  group: true;
}

.service-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.5) saturate(0.8);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
  filter: brightness(0.4) saturate(1.2);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
}

.service-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  background: rgba(201, 168, 76, 0.1);
}

.service-card:hover .service-icon {
  background: var(--gold);
}

.service-card:hover .service-icon svg {
  color: var(--black);
}

.service-icon svg {
  color: var(--gold);
  transition: var(--transition);
}

.service-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-60);
  max-width: 380px;
  margin-bottom: 20px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
  background: var(--black);
  padding: 120px 0;
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  cursor: pointer;
}

.project-card:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.project-card:nth-child(2) { grid-column: span 5; min-height: 270px; }
.project-card:nth-child(3) { grid-column: span 5; min-height: 270px; }
.project-card:nth-child(4) { grid-column: span 4; min-height: 300px; }
.project-card:nth-child(5) { grid-column: span 4; min-height: 300px; }
.project-card:nth-child(6) { grid-column: span 4; min-height: 300px; }

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img { transform: scale(1.07); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.project-info {
  position: absolute;
  bottom: 0; left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 2;
}

.project-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.project-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.project-card:hover .project-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   BEFORE / AFTER SECTION
   ============================================================ */
.before-after-section {
  background: var(--dark);
  padding: 120px 0;
}

.before-after-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.before-after-text .section-subtitle { margin-bottom: 40px; }

.ba-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ba-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.ba-feature:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.ba-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-feature-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-80);
}

/* Before/After Slider */
.ba-slider-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  cursor: col-resize;
  user-select: none;
}

.ba-before, .ba-after {
  position: absolute;
  inset: 0;
}

.ba-before img, .ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gold);
  z-index: 10;
  cursor: col-resize;
  transition: left 0.05s linear;
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ba-label {
  position: absolute;
  top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; color: var(--gold); }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: var(--black);
  padding: 120px 0;
}

.video-header {
  text-align: center;
  margin-bottom: 60px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark-2);
  cursor: pointer;
}

.video-card:first-child {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.6);
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
  filter: brightness(0.4);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(201, 168, 76, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  animation: pulse 2s ease infinite;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
  animation: none;
}

.video-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  z-index: 2;
}

.video-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   WHY US / TRUST SECTION
   ============================================================ */
.trust-section {
  background: linear-gradient(135deg, #0D0C0A 0%, #1A1714 50%, #0D0C0A 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trust-left .section-subtitle {
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.trust-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-4px);
}

.trust-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  filter: none;
}

.trust-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.trust-card-desc {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.6;
}

.trust-certs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.cert-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.cert-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-80);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--dark-2);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) saturate(0.5);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(26,23,20,0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.cta-desc {
  font-size: 18px;
  color: var(--white-60);
  margin-bottom: 48px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-divider {
  font-size: 12px;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #080808;
  border-top: 1px solid var(--glass-border);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .site-logo { margin-bottom: 20px; }

.footer-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white-60);
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--white-60);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-links a:hover::before { width: 16px; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item-text {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.5;
}

.footer-contact-item-text a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--white-40);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--white-40);
}

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

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-green 2.5s ease infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-tooltip {
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   INTERIOR PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--dark);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

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

.page-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-40);
}

.page-breadcrumb a { color: var(--white-40); }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb span { color: var(--gold); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-list-section {
  background: var(--black);
  padding: 100px 0;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--glass-border);
}

.service-detail-card:last-child { border-bottom: none; }

.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }

.service-detail-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-detail-card:hover .service-detail-img img {
  transform: scale(1.04);
}

.service-detail-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--glass-border);
  line-height: 1;
  margin-bottom: 8px;
}

.service-detail-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--white-60);
  margin-bottom: 28px;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--white-80);
}

.service-features-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section {
  background: var(--black);
  padding: 80px 0 120px;
}

.gallery-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--white-60);
  background: var(--glass);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:nth-child(4n+1) { aspect-ratio: 3/4; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: var(--black);
  padding: 80px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { color: var(--gold); }

.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
}

.contact-info-value a:hover { color: var(--gold); }

/* Contact Form */
.contact-form-wrap {
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--white-60);
  margin-bottom: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field.full { grid-column: span 2; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-60);
}

.form-input, .form-select, .form-textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--white-40); }

.form-select { appearance: none; cursor: pointer; }

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

.form-submit-wrap {
  margin-top: 8px;
}

/* Map */
.map-section {
  height: 450px;
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(0.8) saturate(0.8);
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-section {
  background: var(--black);
  padding: 80px 0 120px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: flex-start;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar .section-subtitle { margin-bottom: 32px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--gold); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.faq-item.active .faq-question { color: var(--gold); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--white-60);
  border-radius: 2px;
  transition: var(--transition);
}

.faq-icon::before { width: 12px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.active .faq-icon::before { background: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--white-60);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
  background: var(--black);
  padding: 80px 0 120px;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 80px;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--dark);
  box-shadow: var(--shadow-card);
}

.about-img-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-text .section-subtitle { margin-bottom: 32px; }

.about-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white-60);
  margin-bottom: 40px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.about-value-card {
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.about-value-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.about-value-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.about-value-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-value-desc {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.6;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(201, 168, 76, 0); }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(6, 1fr); }
  .project-card:nth-child(1) { grid-column: span 6; }
  .project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 3; }
  .project-card:nth-child(4), .project-card:nth-child(5), .project-card:nth-child(6) { grid-column: span 2; }
  .before-after-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
}

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
  .main-nav, .header-phone, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card:first-child { grid-column: span 1; aspect-ratio: 16/9; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(4n+1) { aspect-ratio: 4/3; }
  .about-values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reverse { direction: ltr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 38px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { grid-column: span 1; min-height: 250px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
  .contact-form-wrap { padding: 28px 20px; }
}

/* ============================================================
   WORDPRESS SPECIFICS
   ============================================================ */
.wp-caption, .gallery-caption { font-size: 13px; color: var(--white-60); text-align: center; margin-top: 8px; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { margin: 0 auto 16px; display: block; }
.wp-block-image { margin-bottom: 24px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin: 32px 0 16px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 8px; color: var(--white-80); }
.screen-reader-text { position: absolute; left: -9999em; }

/* ============================================================
   RTL — ARABIC SUPPORT
   ============================================================ */

/* Arabic font — Tajawal for body, Cairo for headings */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700&display=swap');

html[lang="ar"], [dir="rtl"] {
  --font-display:  'Cairo', 'Playfair Display', serif;
  --font-heading:  'Cairo', 'Montserrat', sans-serif;
  --font-body:     'Tajawal', 'Inter', sans-serif;
  direction: rtl;
  text-align: right;
}

/* flip arrow icons direction for RTL */
[dir="rtl"] .btn svg,
[dir="rtl"] .service-card-link svg { transform: scaleX(-1); }

/* hero scroll text */
[dir="rtl"] .scroll-text { writing-mode: vertical-lrl; transform: rotate(0deg); }

/* header flip */
[dir="rtl"] .header-inner { flex-direction: row; }

/* footer links left border → right border in RTL */
[dir="rtl"] .footer-links a::before {
  margin-left: 0;
  margin-right: 0;
}
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }

/* section-label line on right for RTL */
[dir="rtl"] .section-label::before { order: 1; }
[dir="rtl"] .section-label { flex-direction: row-reverse; }

/* BA labels */
[dir="rtl"] .ba-label.before { right: 16px; left: auto; }
[dir="rtl"] .ba-label.after  { left: 16px; right: auto; }

/* Contact info item gap */
[dir="rtl"] .contact-info-item,
[dir="rtl"] .footer-contact-item,
[dir="rtl"] .ba-feature,
[dir="rtl"] .cert-item { flex-direction: row; }

/* Footer bottom */
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Page breadcrumb arrow */
[dir="rtl"] .page-breadcrumb svg { transform: scaleX(-1); }

/* Project hover arrow */
[dir="rtl"] .project-hover svg { transform: scaleX(-1); }

/* Input fields RTL */
[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea { text-align: right; }

/* Service card link */
[dir="rtl"] .service-card-link { flex-direction: row-reverse; }

/* Main nav for RTL */
[dir="rtl"] .main-nav { flex-direction: row-reverse; }

/* Trust card */
[dir="rtl"] .trust-card { text-align: right; }

/* Mobile nav */
[dir="rtl"] .mobile-nav a:hover { transform: translateX(-8px); }

/* Line heights for Arabic */
[dir="rtl"] p,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .hero-desc,
[dir="rtl"] .service-card-desc,
[dir="rtl"] .footer-desc { line-height: 1.9; }

/* Font sizes adjustments for Arabic */
[dir="rtl"] .display-title,
[dir="rtl"] .hero-title { letter-spacing: 0; }

[dir="rtl"] .section-label {
  letter-spacing: 1px;
  font-size: 13px;
}

[dir="rtl"] .btn { letter-spacing: 0.5px; }

[dir="rtl"] .stat-label,
[dir="rtl"] .footer-col-title { letter-spacing: 0.5px; }

/* Service detail reverse fix for RTL */
[dir="rtl"] .service-detail-card.reverse { direction: rtl; }
[dir="rtl"] .service-detail-card.reverse > * { direction: rtl; }

/* Scroll indicator RTL */
[dir="rtl"] .hero-scroll { right: auto; left: 50%; transform: translateX(50%); }

/* WhatsApp float RTL — move to left side */
@media (min-width: 769px) {
  [dir="rtl"] .whatsapp-float { left: 32px; right: auto; }
  [dir="rtl"] .whatsapp-tooltip { transform: translateX(-10px); }
  [dir="rtl"] .whatsapp-float:hover .whatsapp-tooltip { transform: translateX(0); }
}

/* ============================================================
   SUCCESS MODAL — نافذة تأكيد الطلب
   ============================================================ */

.success-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.success-modal-backdrop.active {
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

/* Modal box */
.success-modal-box {
  position: relative;
  background: linear-gradient(145deg, #161410 0%, #1E1B15 60%, #161410 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 24px;
  padding: 52px 44px 44px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.1),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(201, 168, 76, 0.06) inset;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  overflow: hidden;
}

.success-modal-backdrop.active .success-modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Shimmer top bar */
.success-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, #E8C96A, #C9A84C, transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease infinite;
}

/* Close button */
.success-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.success-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  transform: rotate(90deg);
}

/* Confetti */
.confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}
.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 3s ease forwards;
}

/* Icon circle */
.success-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.15);
  animation: ringPulse 2.5s ease infinite;
}
.ring-1 { width: 96px; height: 96px; animation-delay: 0s; }
.ring-2 { width: 120px; height: 120px; animation-delay: 0.4s; border-color: rgba(201, 168, 76, 0.08); }

.success-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C 0%, #E8C96A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5), 0 0 0 0 rgba(201, 168, 76, 0.3);
  animation: iconGlow 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

/* Animated checkmark SVG */
.check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.4s;
}

/* Badge */
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.success-badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: dotPulse 1.5s ease infinite;
  box-shadow: 0 0 6px #4ade80;
}

/* Text */
.success-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.success-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 360px;
  margin-inline: auto;
}

/* Order card */
.success-order-card {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.success-order-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.success-order-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  margin-bottom: 6px;
  text-align: right;
}

.success-order-number {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  text-align: right;
  flex: 1;
}

.success-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.success-copy-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  transform: scale(1.04);
}

.success-copy-btn.copied {
  background: rgba(39, 174, 96, 0.15);
  border-color: rgba(39, 174, 96, 0.4);
  color: #4ade80;
}

/* Info rows */
.success-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  text-align: right;
}

.success-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 14px;
}

.success-info-row svg { color: var(--gold); flex-shrink: 0; }
.success-info-row strong { color: rgba(255,255,255,0.8); }

/* Action buttons */
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: #25D366;
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}
.success-btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
  color: white;
}

.success-btn-close {
  padding: 13px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.success-btn-close:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

/* Submit button states */
#submitContactForm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Spinner animation */
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

@keyframes iconGlow {
  from { box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4); }
  to   { box-shadow: 0 8px 40px rgba(201, 168, 76, 0.7), 0 0 60px rgba(201, 168, 76, 0.2); }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(420px) rotate(720deg); opacity: 0; }
}

/* Mobile modal */
@media (max-width: 560px) {
  .success-modal-box { padding: 44px 24px 32px; }
  .success-order-number { font-size: 18px; letter-spacing: 2px; }
  .success-order-card { flex-direction: column; text-align: center; }
  .success-order-label, .success-order-number { text-align: center; }
}
