/* ============================================
   اسفلت مقاول بالرياض — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-black: #111111;
  --color-dark: #2B2B2B;
  --color-gold: #D99A00;
  --color-gold-light: #F2B705;
  --color-bg: #F5F5F5;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-arabic: 'Tajawal', 'Cairo', 'Noto Kufi Arabic', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--color-black);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-gray {
  background-color: var(--color-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title .gold-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-black);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(217, 154, 0, 0.5), 0 4px 15px rgba(217, 154, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-dark:hover {
  background: var(--color-dark);
  box-shadow: 0 0 20px rgba(17, 17, 17, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--color-gold-light);
}

.top-bar a:hover {
  color: var(--color-white);
}

.top-bar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info i {
  color: var(--color-gold);
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

html {
  direction: rtl;
}

/* Premium Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  border: 2px solid rgba(217, 154, 0, 0.45);
  border-radius: 50px;
  padding: 4px;
  gap: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  min-width: 64px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--color-text-light);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

.lang-btn i {
  font-size: 0.8rem;
  color: var(--color-gold);
}

.lang-btn:hover:not(.active) {
  color: var(--color-black);
  background: rgba(217, 154, 0, 0.1);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-black);
  box-shadow: 0 3px 12px rgba(217, 154, 0, 0.4);
}

.lang-btn.active i {
  color: var(--color-black);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile header tools — lang + call icon */
.header-mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
}

.header-mobile-bar .lang-switcher {
  padding: 3px;
}

.header-mobile-bar .lang-btn {
  padding: 7px 12px;
  min-width: 52px;
  font-size: 0.78rem;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.65) 50%, rgba(43, 43, 43, 0.78) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page Banner (inner pages) */
.page-banner {
  position: relative;
  padding: 100px 0 70px;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
}

.page-banner h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-banner--image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-banner--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.84) 0%, rgba(43, 43, 43, 0.72) 100%);
  z-index: 1;
}

.page-banner--image .container {
  position: relative;
  z-index: 2;
}

/* --- Featured Project --- */
.featured-project {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(217, 154, 0, 0.25);
}

.featured-project img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.featured-project-caption {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
  padding: 28px 32px;
  border-top: 3px solid var(--color-gold);
}

.featured-project-caption h3 {
  color: var(--color-white);
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.featured-project-caption p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.8;
}

/* --- Feature Cards (Why Choose Us) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-gold);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--color-black);
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-gold);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(217, 154, 0, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 154, 0, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body p {
  flex: 1;
}

.service-card-cta {
  margin-top: 20px;
}

.service-card-cta .btn-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-black);
  transition: all var(--transition);
}

.service-card-cta .btn-service:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-black);
  border-color: var(--color-gold);
  box-shadow: 0 0 18px rgba(217, 154, 0, 0.4);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-black);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card .read-more {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .read-more:hover {
  color: var(--color-gold-light);
}

/* Dark service cards variant */
.section-dark .service-card {
  background: var(--color-dark);
}

.section-dark .service-card h3 {
  color: var(--color-white);
}

.section-dark .service-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  color: var(--color-white);
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 154, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  margin-bottom: 20px;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.mv-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--color-gold);
}

.mv-card h3 {
  color: var(--color-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-card p {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  background: var(--color-black);
}

.value-card .feature-icon {
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
}

.value-card h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.value-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Contact Page --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-black);
}

.contact-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-card p,
.contact-card a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--color-gold);
}

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-black);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: var(--color-white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: auto;
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-right: 6px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--color-gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--color-gold);
  margin-top: 4px;
  min-width: 16px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- PHP Response Page --- */
.response-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.response-box {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-md);
  max-width: 500px;
}

.response-box .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.response-box.success .icon {
  color: #28a745;
}

.response-box.error .icon {
  color: #dc3545;
}

.response-box h2 {
  margin-bottom: 12px;
}

.response-box p {
  margin-bottom: 24px;
}

/* --- Animations --- */
.animate {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(40px);
}

.fade-right {
  transform: translateX(-40px);
}

.animate.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.hero-content h1,
.hero-content p,
.hero-content .hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-content p {
  animation-delay: 0.2s;
}

.hero-content .hero-buttons {
  animation-delay: 0.4s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.stagger-children .animate:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .animate:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .animate:nth-child(6) { transition-delay: 0.6s; }
.stagger-children .animate:nth-child(7) { transition-delay: 0.7s; }
.stagger-children .animate:nth-child(8) { transition-delay: 0.8s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 300px;
  }
}

/* --- Compact Project Showcase (Services page) --- */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
}

.project-showcase-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-showcase-item:hover img {
  transform: scale(1.06);
}

html.lang-en .nav {
  right: auto;
  left: -100%;
}

html.lang-en .nav.open {
  left: 0;
  right: auto;
}

html.lang-en .whatsapp-float {
  left: auto;
  right: 28px;
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--color-white);
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.35s ease;
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float i {
  font-size: 1.6rem;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--color-white);
  animation: none;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 16px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .whatsapp-float .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float i {
    font-size: 1.75rem;
  }

  .header-mobile-bar {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .lang-switcher-mobile {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
    gap: 0;
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }

  .header-cta {
    display: none;
  }

  .header-cta-mobile {
    display: block;
    margin-top: 20px;
    width: 100%;
  }

  .header-cta-mobile .btn {
    width: 100%;
  }

  .hero {
    min-height: 70vh;
  }

  .page-banner--image {
    min-height: 260px;
    padding: 90px 0 60px;
  }

  .featured-project-caption {
    padding: 20px 18px;
  }

  .featured-project-caption h3 {
    font-size: 1.15rem;
  }

  .featured-project img {
    max-height: 280px;
  }

  .features-grid,
  .services-grid,
  .gallery-grid,
  .values-grid,
  .project-showcase {
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-page-section {
    padding: 50px 0 60px;
  }

  .contact-info {
    gap: 16px;
  }

  .contact-card {
    padding: 22px 20px;
  }

  .contact-card:hover {
    transform: none;
  }

  .contact-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-info {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 70px;
  }

  .logo img {
    height: 45px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .btn {
    padding: 12px 24px;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

.header-cta-mobile {
  display: none;
}

.lang-switcher-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header-cta-mobile {
    display: block;
  }
}
