/* styles.css — Mazan Alarid Full Updated */

/* palette */
:root {
  --bg: #101408;
  --surface: #0d1416;
  --text: #e6f4f1;
  --muted: #9fb3ad;
  --brand: #20794d;
  --brand-2: #a9a9a9;
  --warm: #c39a6a;
  --card: #0f1718;
  --glass: rgba(255, 255, 255, 0.03);
  --shadow: 0 12px 30px rgba(0, 0, 0, .45);
  --radius: 14px;
  --max-width: 1100px;
}

/* global */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(180deg, var(--bg), #000608);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(var(--max-width), 94vw);
  margin-inline: auto;
  padding: 0 0
}

/* Splash */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 350px at 50% 10%, rgba(47, 79, 79, 0.18), transparent 30%),
    linear-gradient(180deg, #082022 0%, #051014 100%);
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center
}

.splash-logo {
  width: 90px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.brand-en {
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--brand), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.brand-ar {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--muted)
}

.splash-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: .6rem
}

.shine {
  width: 220px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  animation: shimmer 1.9s linear infinite
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

.dots {
  display: flex;
  gap: .35rem
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  animation: dot 1.1s infinite
}

.dots span:nth-child(2) {
  animation-delay: .18s
}

.dots span:nth-child(3) {
  animation-delay: .36s
}

@keyframes dot {

  0%,
  80%,
  100% {
    transform: translateY(0)
  }

  40% {
    transform: translateY(-8px)
  }
}

.loading-text {
  color: var(--muted);
  font-size: 0.95rem
}

.skip {
  margin-top: .6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .06);
  padding: .45rem .7rem;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(4, 8, 10, 0.6), rgba(4, 8, 10, 0.3));
  backdrop-filter: blur(6px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .03)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0
}

.brand-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text)
}

.logo-small {
  width: 38px;
  height: auto;
  border-radius: 8px
}

.brand-title {
  font-weight: 800
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer
}

.nav-links {
  display: flex;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: .45rem .7rem;
  border-radius: 10px;
  opacity: .95
}

.nav-links a:hover {
  background: var(--glass)
}

/* Hero */
.hero {
  min-height: 10vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;

  padding: 2.6rem 0
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/6-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.hero-inner {
  text-align: center;
  z-index: 2;
  padding: 2rem 0
}

h1 {
  font-size: clamp(1.6rem, 2.4rem + .8vw, 2.6rem);
  margin: 0;
  font-weight: 800
}

.lede {
  color: black;
  max-width: 60ch;
  margin-inline: auto;
  margin-top: .6rem
}

.actions {
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
  justify-content: center
}

.btn {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .06)
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--warm));
  color: #071011;
  border: 0
}

.btn.ghost {
  color: var(--text);
  background: transparent
}

/* Sections */
.section {
  padding: 3.2rem 0
}

.alt {
  background: linear-gradient(180deg, #071213 0%, #051014 100%)
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
  align-items: center
}

.media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.bullets {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem
}

.bullets li {
  margin: 0.45rem 0;
  padding-right: 1rem;
  position: relative
}

.bullets li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--warm)
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem
}

.badges span {
  background: rgba(195, 154, 106, .09);
  padding: .4rem .6rem;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(195, 154, 106, .12)
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .04);
  box-shadow: var(--shadow)
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* desktop default: 3 per row */
  gap: 0.7rem;
  margin-top: 1rem;
}

.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img {
  transform: scale(1.03);
}

/* Tablet / small screens (500px and above): 2 per row */
@media (max-width: 980px) and (min-width: 500px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile screens below 500px: 1 per row */
@media (max-width: 499px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}



/* Categories */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: .9rem
}

.cat {
  background: rgba(255, 255, 255, .03);
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .02);
  color: var(--text)
}

/* Locations */
.locations {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: .8rem
}

.locations li {
  background: var(--warm);
  color: #071011;
  padding: .45rem .85rem;
  border-radius: 10px
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem
}

.contact-list a {
  color: #bfebe0;
  text-decoration: none
}

/* Footer */
.footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .03);
  margin-top: 2rem
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem
}

.to-top {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .04);
  padding: .25rem .5rem;
  border-radius: 8px
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in-view {
  opacity: 1;
  transform: none
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .78);
  z-index: 2200;
  padding: 1.6rem
}

#lightbox img {
  max-width: min(1080px, 94vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6)
}

/* Responsive */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 8px;
    background: rgba(3, 6, 8, .9);
    padding: 0.6rem;
    border-radius: 12px;
    flex-direction: column;
    min-width: 200px
  }

  .nav-links.show {
    display: flex
  }

  .burger {
    display: block
  }
}

@media (max-width:600px) {
  h1 {
    font-size: 1.35rem
  }

  .cards {
    grid-template-columns: 1fr
  }

  .gallery {
    grid-template-columns: 1fr
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

/* wpc-benefits  */
.wpc-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-family: 'Arial', sans-serif;
  direction: rtl;
  padding: 20px;
  background-color: #030303;
  border-radius: 8px;
  text-align: center;
}

.wpc-benefits h2 {
  grid-column: span 3;
  text-align: center;
  margin-bottom: 20px;
}

.benefit {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefit i {
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 10px;
}

.benefit h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 10px;
}

.benefit p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .wpc-benefits {
    grid-template-columns: 1fr;
  }

  .wpc-benefits h2 {
    grid-column: span 1;
  }
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
}

/* Center elements horizontally */
.center,
.section h2.center {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  /* shrink to content width */
}

/* Ensure headings inside sections are centered */
.section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {

  .center,
  .section h2.center {
    width: 100%;
    /* full width for mobile */
  }
}


@media (min-width: 1024px) {
  .hero {
    min-height: 70vh;

  }

}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  /* distance from bottom */
  right: 30px;
  /* distance from right */
  background-color: #25D366;
  /* WhatsApp green */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-size: 2rem;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(4, 8, 10, 0.9), rgba(4, 8, 10, 0.8));
  backdrop-filter: blur(6px);
  z-index: 9998;
  /* below WhatsApp icon */
  transition: top 0.3s ease;
}

/* Desktop view - your existing styles */
.reviews-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
  position: relative;
}

.review-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 300px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-card.show {
  opacity: 1;
  transform: translateY(0);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}

.review-name {
  font-weight: 600;
  color: black;
  font-size: 0.95rem;
}

.review-stars {
  color: #FFD700;
  /* gold stars */
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: black;
  line-height: 1.4;
}

/* Mobile view - show one by one with white background */
@media screen and (max-width: 600px) {
  .reviews-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: auto;
    padding-bottom: 1rem;
  }

  .review-card {
    background: #fff;
    color: #000;
    min-width: 80%;
    /* show one at a time */
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .review-name {
    color: #000;
  }

  .review-stars {
    color: #FFD700;
  }
}

/* Footer styles */
.footer {
  background: #101408;
  /* dark background */
  color: #e6f4f1;
  /* light text */
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer .developer a {
  color: #20794d;
  /* brand color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer .developer a:hover {
  color: #c39a6a;
  /* warm highlight on hover */
}

.footer .to-top {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #20794d;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer .to-top:hover {
  background: #c39a6a;
  transform: translateY(-3px);
}

/* Optional: responsive */
@media screen and (max-width: 600px) {
  .footer-inner {
    gap: 0.3rem;
  }

  .footer .to-top {
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
  }
}


/* الاستخدام */
.applications-section {
  padding: 3rem 1rem;
  background-color: #0c0c0c;
  text-align: center;
}

.applications-section .section-title {
  margin-bottom: 1rem;
  color: #20794d;
  font-size: 2rem;
}

.section-desc {
  margin-bottom: 2rem;
  color: #fdfcfc;
  line-height: 1.8;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.application-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.application-card:hover {
  transform: translateY(-5px);
}

.app-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.app-content {
  padding: 1rem;
}

.app-content h3 {
  margin-bottom: 0.5rem;
  color: #20794d;
  font-size: 1.2rem;
}

.app-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tablet: 2 cards per row */
@media (max-width: 1024px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card per row */
@media (max-width: 600px) {
  .applications-grid {
    grid-template-columns: 1fr;
  }
}
/*featurs  */
.features-section {
  padding: 60px 20px;
  background-color: #0c0c0c;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #fffefe;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex: 1 1 220px;
  max-width: 250px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  color: #6B432A;
  margin-bottom: 15px;
}

/* يمكنك استبدال هذه الأيقونات برموز FontAwesome أو أيقونات SVG */
.icon-delivery::before { content: "🚚"; }
.icon-guarantee::before { content: "🛡️"; }
.icon-support::before { content: "📞"; }
.icon-quality::before { content: "⭐"; }
.icon-durability::before { content: "🏗️"; }
.icon-eco::before { content: "🌱"; }

.feature-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
}
