/* ===== VARIABLES ===== */
:root {
  --bg: #0e0e0e;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --gold: #c9a84c;
  --gold-light: #e4c97a;
  --gold-dark: #9a7a2e;
  --white: #f5f0e8;
  --gray: #888;
  --border: rgba(201,168,76,0.2);
  --font: 'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.nav-logo i {
  font-size: 1.4rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,168,76,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201,168,76,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  animation: fadeDown 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.1s both;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--gold);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  max-width: 620px;
  margin: 18px auto 0;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.3s both;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0e0e0e;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.phone-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.3);
}

.phone-btn i { font-size: 1rem; }

/* ===== SERVICES LIST ===== */
.services-section {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.services-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245,240,232,0.85);
  transition: border-color 0.3s ease;
}

.services-list li:hover { border-color: rgba(201,168,76,0.5); }

.services-list li i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ===== SECTIONS GRID ===== */
.sections-grid-wrapper {
  padding: 20px 40px 100px;
}

.sections-grid-wrapper h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
}

.sections-grid-wrapper p.subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 24px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.section-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.2);
}

.section-card:hover::before { opacity: 1; }

.card-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  position: relative;
  margin-bottom: 4px;
  transition: all 0.35s ease;
}

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

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

.card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-dark);
}

.card-img-fallback i { font-size: 2rem; }
.card-img-fallback span { font-size: 0.75rem; color: var(--gray); }

/* card-thumb variant */
.card-thumb {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  position: relative;
  margin-bottom: 4px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-card:hover .card-thumb-overlay { opacity: 1; }

.card-thumb-overlay i {
  font-size: 2rem;
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.card-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb.no-img .card-thumb-overlay {
  opacity: 1;
  background: rgba(201,168,76,0.06);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.section-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.section-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

.card-arrow {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.3s ease;
}

.section-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.footer-links a i { font-size: 0.75rem; }

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 20px;
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 700;
  transition: color 0.25s ease;
}

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

/* ===== PAGE SECTIONS ===== */
.page-hero {
  padding-top: 70px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 50px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-hero-icon i { font-size: 2.2rem; color: var(--gold); }

.page-hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.page-hero-text h1 span { color: var(--gold); }

.page-hero-text p {
  color: var(--gray);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== GALLERY ===== */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.gallery-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 36px;
}

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

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.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: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay i { font-size: 1.6rem; color: var(--gold); }

/* Placeholder when no image */
.gallery-item.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-item.placeholder i { font-size: 2rem; color: var(--gold-dark); }
.gallery-item.placeholder span { font-size: 0.8rem; color: var(--gray); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.lightbox-close:hover { background: var(--gold); color: #0e0e0e; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.lightbox-nav:hover { background: var(--gold); color: #0e0e0e; }
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--bg2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero { padding: 90px 24px 60px; }
  .services-section { padding: 60px 24px; }
  .sections-grid-wrapper { padding: 20px 24px 80px; }
  .gallery-section { padding: 30px 20px 80px; }
  .page-hero-inner { padding: 50px 24px 40px; flex-direction: column; align-items: flex-start; }
  footer { padding: 30px 20px; }
}






/* ===== MAINTENANCE SECTION ===== */
.maintenance-section {
  padding: 80px 40px 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}

.maintenance-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* Header */
.maintenance-header {
  text-align: center;
}

.maintenance-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 10px 0 14px;
}

.maintenance-header p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Features row */
.maintenance-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.maint-feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.maint-feature:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
}

.maint-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.3s ease;
}

.maint-feature:hover .maint-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.maint-icon i {
  font-size: 1.3rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

.maint-feature:hover .maint-icon i { color: #0e0e0e; }

.maint-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.maint-feature p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* CTA */
.maintenance-cta {
  text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.maintenance-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.maint-cta-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.maint-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.maint-phone-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gold);
  color: #0e0e0e;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: var(--font);
  min-width: 200px;
}

.maint-phone-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.3);
}

.maint-phone-btn i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.maint-phone-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.maint-phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

.maint-phone-num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  direction: ltr;
}

.maint-phone-secondary {
  background: var(--bg3);
  color: var(--gold);
  border: 1px solid var(--border);
}

.maint-phone-secondary:hover {
  background: rgba(201,168,76,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
  animation: none;
}

.whatsapp-float i {
  font-size: 1.9rem;
  color: #fff;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.1); }
}

@media (max-width: 768px) {
  .maintenance-section { padding: 60px 20px 80px; }
  .maintenance-features { grid-template-columns: 1fr; }
  .maintenance-cta { padding: 30px 24px; }
  .maint-phone-btn { min-width: 160px; }
}