/*==================================================
  واجهة عقارك - STYLE
==================================================*/

:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --white: #ffffff;
  --light: #F5F7FA;
  --text: #222222;
  --gray: #777777;
  --radius: 22px;
  --shadow: 0 15px 40px rgba(0, 0, 0, .08);
  --transition: .35s ease;
}


/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--light);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}


/* الأزرار العامة */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: #f1f1f1;
}


/*==================================================
  HERO
==================================================*/

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  background:
    linear-gradient(
      rgba(16, 35, 16, .72),
      rgba(46, 125, 50, .42)
    ),
    url("images/hero.jpg") center center / cover;

  animation: heroZoom 18s infinite alternate;
}

.overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.5;
  font-weight: 800;
  margin: 25px auto 30px;
}

.hero p {
  max-width: 850px;
  margin: 0 auto 40px;
  font-size: 21px;
  line-height: 2.1;
  opacity: .95;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.scroll {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 28px;
  animation: float 2s infinite;
}

@keyframes heroZoom {
  from {
    background-size: 100%;
  }

  to {
    background-size: 108%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}


/*==================================================
  عناوين الأقسام
==================================================*/

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title span {
  display: inline-block;
  padding: 8px 18px;
  background: #E8F5E9;
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.5;
}

.section-title p {
  color: var(--gray);
  font-size: 17px;
  margin-top: 20px;
  line-height: 2.2;
}


/*==================================================
  المقارنة بين العمائر والمستودعات والمصانع
==================================================*/

#details {
  padding: 130px 0;
  background: #F8FAF8;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  align-items: stretch;
}

.comparison-card {
  background: #fff;
  padding: 45px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .05);
  text-align: right;
  transition: var(--transition);
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(46, 125, 50, .16);
}

.comparison-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #E8F5E9;
  color: var(--primary);
  font-size: 26px;
}

.comparison-card h3 {
  text-align: center;
  color: var(--primary-dark);
  font-size: 27px;
  font-weight: 800;
  margin-bottom: 30px;
}

.comparison-card ol {
  margin: 0;
  padding-right: 28px;
}

.comparison-card li {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 2.2;
  margin-bottom: 12px;
}

.comparison-card li::marker {
  color: var(--primary);
  font-weight: 800;
}


/*==================================================
  قسم التواصل
==================================================*/

#contact {
  padding: 130px 0;
  background: #fff;
}

.contact-box {
  background: #fff;
  padding: 45px 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .05);
}

.contact-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

.contact-item {
  text-align: center;
}

.contact-item h3 {
  font-size: 22px;
  font-weight: 800;
  direction: ltr;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.contact-btn.whatsapp {
  background: #25D366;
}

.contact-btn.whatsapp:hover {
  background: #128C7E;
}


/*==================================================
  التذييل
==================================================*/

footer {
  padding: 70px 20px;
  background: #173C1C;
  color: #fff;
  text-align: center;
}

footer h2 {
  font-size: 32px;
  margin-bottom: 25px;
}

footer p {
  opacity: .8;
  margin-top: 12px;
  line-height: 2.2;
}


/*==================================================
  زر التواصل العائم
==================================================*/

.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 3s infinite;
  font-size: 14px;
}

.floating:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, .45);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}


/*==================================================
  RESPONSIVE
==================================================*/

@media (max-width: 992px) {

  .hero h1 {
    font-size: 50px;
  }

  .comparison-cards {
    grid-template-columns: 1fr;
  }

  .contact-numbers {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-item {
    padding: 10px 0;
  }

  .contact-actions {
    max-width: 330px;
    margin: auto;
  }

  .contact-btn {
    flex: 1;
  }
}


@media (max-width: 768px) {

  .hero {
    min-height: 100vh;
    text-align: center;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.7;
  }

  .hero p {
    font-size: 16px;
    line-height: 2;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    margin-bottom: 50px;
  }

  .section-title h2 {
    font-size: 30px;
    margin-bottom: 22px;
  }

  .section-title p {
    font-size: 15px;
    line-height: 2.2;
  }

  #details,
  #contact {
    padding: 90px 0;
  }

  .comparison-card {
    padding: 35px 25px;
  }

  .comparison-card h3 {
    font-size: 24px;
  }

  .comparison-card li {
    font-size: 15px;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .contact-item h3 {
    font-size: 20px;
  }

  .contact-actions {
    flex-direction: row;
  }

  .contact-btn {
    min-width: 115px;
  }

  .floating {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
  }

  .floating span {
    display: none;
  }
}


@media (max-width: 400px) {

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 15px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    max-width: 220px;
  }

}