/* =====================================================
   ROOT VARIABLES – SOBHA / MAX LUXURY FEEL
===================================================== */
:root {
  --primary: #0b3b63;
  /* Blue */
  --accent: #fbb040;
  /* Orange */
  --accent-soft: #f5a623;
  /* Orange soft */
  --dark: #111;
  --text: #333;
  --light: #f6f7f5;
  --white: #ffffff;
}

/* =====================================================
   RESET
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brochure-header-btn {
  background: #fbb040;
  color: #0b3b63;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 15px;
}

.brochure-header-btn:hover {
  background: #f5a623;
}

.menu a {
  position: relative;
  padding: 6px 4px;
  color: #ddd;
  transition: 0.3s;
}

.menu a.active {
  color: #fbb040;
  font-weight: 600;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #fbb040;
  border-radius: 2px;
}

/* brochure button ko active se bachane ke liye */
.menu .brochure-header-btn::after {
  display: none;
}

section {
  scroll-margin-top: 90px;
}

/* ================= BROCHURE MODAL ================= */

.brochure-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  position: relative;
  background: #eaf2fa;
  padding: 30px 26px 26px;
  border-radius: 10px;
  width: 340px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ❌ CLOSE ICON */
.close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: #060606;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.close-modal:hover {
  color: #fbb040;
  transform: scale(1.1);
}

/* inputs */
.modal-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
}

/* button */
.modal-box button {
  width: 100%;
  padding: 12px;
  background: #fbb040;
  color: #0b0b0b;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.modal-box button:hover {
  background: #f5a623;
}

/* LOGO */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}

.logo-text .brand {
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 500;
}

.logo-text .project {
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 4px;
}

.logo-text .tagline {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: 0.85;
}

/* MENU */
.menu {
  display: flex;
}

.menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* =====================================================
   HERO – CLEAN SOBHA LOOK
===================================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 80px;
  color: #fff;
  overflow: hidden;
  padding-top: calc(80px + 72px);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}


.hero-content h1 {
  font-size: 52px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  margin: 14px 0 22px;
  opacity: .9;
}

.hero-highlights {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-highlights span {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.hero button {
  padding: 14px 36px;
  border-radius: 40px;
  border: none;
  background: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

/* =====================================================
   OVERVIEW SECTION
===================================================== */

.overview {
  background: var(--white);
  padding: 80px 20px;
}

.overview-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

/* ================= LEFT ================= */
.overview-text h2 {
  position: relative;
  padding-bottom: 10px;
  color: #0b3b63;
}

.overview-text h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.overview-text p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* ================= POINT CARDS ================= */

.overview-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
  margin: 32px 0;
}

.point-card {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
}

.point-card .highlight {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.point-card p {
  font-size: 13px;
  color: var(--text);
}

/* ================= EXTRA LIST ================= */

.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overview-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.overview-list strong {
  color: var(--primary);
}

/* ================= RIGHT IMAGE ================= */

.overview-image {
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= POINT CARD HOVER ================= */

.point-card {
  transition: all 0.35s ease;
  cursor: pointer;
}

.point-card:hover {
  background: rgba(251, 176, 64, 0.08);
  /* soft orange */
  border-left-color: var(--accent);
  /* orange */
  transform: translateY(-4px);
}

.point-card:hover .highlight {
  color: var(--accent);
  /* orange text */
}

.point-card:hover p {
  color: var(--text);
}

/* =====================================================
   RESIDENCES
===================================================== */

.residences {
  background: var(--white);
  padding: 80px 20px;
}

.residences-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

/* ================= CONTENT ================= */

.residences-content {
  margin-left: 70px;
  /* text right shift */
}

.residences-content h2 {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
}

/* orange line (same as Overview & Amenities) */
.residences-content h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.residences-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
}

.residences-list li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

/* subtle bullet */
.residences-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.residences-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  max-width: 520px;
}

/* ================= IMAGES ================= */

.residences-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: -24px;
  /* images left shift */
}

/* BIG IMAGE */
.residences-images img:first-child {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* SMALL IMAGE */
.residences-images img:last-child {
  width: 100%;
  height: 300px;
  margin-left: auto;
  /* right aligned */
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* HOVER */
.residences-images img {
  transition: transform 0.6s ease;
}

.residences-images img:hover {
  transform: scale(1.03);
}

/* =====================================================
   MASTER PLAN – MAX (SOBHA STYLE)
===================================================== */

#masterplan {
  background: var(--white);
  padding: 80px 20px;
}

.master-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

/* ================= LEFT IMAGE SLIDER ================= */

.master-image {
  position: relative;
  height: 480px;
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
}

.master-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: masterSlide 12s infinite;
}

/* slide timing */
.master-image img.mp1 {
  animation-delay: 0s;
}

.master-image img.mp2 {
  animation-delay: 6s;
}

/* ================= RIGHT CONTENT ================= */

.master-content .apex-title {
  font-size: 34px;
  color: var(--primary);
}

.master-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 16px 0;
}

.master-list {
  padding-left: 18px;
}

.master-list li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ================= SLIDER ANIMATION ================= */

@keyframes masterSlide {
  0% {
    opacity: 0
  }

  8% {
    opacity: 1
  }

  50% {
    opacity: 1
  }

  58% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

/* ================= PROJECT GALLERY ================= */

#gallery {
  padding: 60px 0;
  background-color: #f3f6f9;
}

#gallery h2 {
  font-size: 30px;
  color: #0b3b63;
}

#gallery .section-line {
  width: 55px;
  height: 3px;
  background: #fbb040;
  margin: 12px 0 28px;
}

/* ===== CONTAINER CONTROL ===== */
#gallery .container {
  max-width: 1100px;
  /* IMPORTANT */
  margin: 0 auto;
}

/* ===== GRID FIX ===== */
#gallery .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* FIX */
  gap: 20px;
}

/* ===== IMAGE FIX ===== */
#gallery .gallery img {
  width: 100%;
  height: 250px;
  /*  controlled size */
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ================= AMENITIES SECTION ================= */

.apex-amenities {
  padding: 55px 6%;
  background-color: #fbf9f9;
}

.apex-amenities-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: stretch;
  height: 100%;
}

/* ================= LEFT IMAGE ================= */

.amenities-image {
  position: relative;
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.amenities-image::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 85%;
  height: 85%;
  background: #f3f6f9;
  border-radius: 20px;
  z-index: -1;
}

.amenities-image img {
  width: 78%;
  max-width: 459px;
  max-height: none;
  object-fit: cover;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amenities-image img:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* ================= RIGHT CONTENT ================= */

.amenities-content {
  padding-left: 10px;
}

.apex-title {
  font-size: 38px;
  font-weight: 700;
  color: #0b3b63;
}

.apex-line {
  display: block;
  width: 60px;
  height: 3px;
  background: #fbb040;
  margin: 12px 0 35px;
}

/* ================= DIVIDER LIST ================= */
.amenities-divider-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-divider-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #cfcfcf;
  /* 🔥 REAL DIVIDER */
}

.amenities-divider-list li:last-child {
  border-bottom: none;
}

.amenities-divider-list .num {
  font-size: 15px;
  font-weight: 600;
  color: #b5b5b5;
}

.amenities-divider-list .text {
  font-size: 16px;
  color: #333;
}

/* Hover effect */
.amenities-divider-list li:hover {
  border-bottom-color: #fbb040;
}

/* TEXT */
.amenities-divider-list .text {
  font-size: 16px;
  color: #333;
  white-space: normal;
}

/* LINE */
.amenities-divider-list .line {
  display: block;
  width: 100%;
  /**/
  height: 1px;
  background: #dcdcdc;
}

/* Hover effect */
.amenities-divider-list li:hover .line {
  background: #fbb040;
}

/* =========================================
   APEX LANDBASE – FINAL POPUP CSS (SAFE)
========================================= */

/* Overlay – viewport locked */
.apex-popup-bg {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2147483647;
}

/* Active */
.apex-popup-bg.active {
  display: flex !important;
}

/* Popup card */
.apex-popup-box {
  background: #ffffff;
  width: 92%;
  max-width: 440px;
  padding: 36px 34px 38px;
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: apexFadeUp 0.35s ease;
}

/* Close */
.apex-popup-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.apex-popup-close:hover {
  opacity: 1;
}

/* Header */
.apex-popup-header {
  text-align: center;
  margin-bottom: 22px;
}

.apex-popup-header img {
  max-width: 150px;
  margin-bottom: 14px;
}

.apex-popup-header h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.apex-popup-header p {
  font-size: 14px;
  color: #777;
}

/* Form */
.apex-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apex-lead-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
  font-size: 14px;
}

.apex-lead-form input:focus {
  outline: none;
  background: #fff;
  border-color: #000;
}

/* Submit */
.apex-submit-btn {
  margin-top: 12px;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #000000, #1c1c1c);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.apex-submit-btn:hover {
  background: linear-gradient(135deg, #1c1c1c, #000000);
}

.apex-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Animation */
@keyframes apexFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .apex-popup-box {
    padding: 28px 22px 30px;
    border-radius: 16px;
  }

  .apex-popup-header h3 {
    font-size: 20px;
  }
}
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0b3b63;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 999999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.contact-section {
  background: #0b3b63;
  padding: 50px 20px;
  color: #fff;
}

.contact-wrap {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-text h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.contact-text p {
  opacity: 0.9;
  margin-bottom: 18px;
  max-width: 420px;
}

.contact-text ul {
  list-style: none;
  padding: 0;
}

.contact-text li {
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form button {
  margin-top: 8px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #fbb040;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #f5a623;
}

/* =====================================================
   FOOTER
===================================================== */
.footer-divider {
  max-width: 1100px;
  height: 1px;
  margin: 40px auto 25px;
  background: linear-gradient(to right,
      transparent,
      #fbb040,
      transparent);
}

.lp-footer {
  background: #0b3b63;
  padding: 20px;
  text-align: center;
}

.lp-footer p {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
  opacity: 0.85;
}
/* =====================================================
   MOBILE + TABLET MEDIA CSS (WITH HAMBURGER)
===================================================== */

/* ================== TABLET ================== */
@media (max-width: 1024px) {

  .nav {
    padding: 0 16px;
  }

  .menu a {
    margin-left: 16px;
    font-size: 13px;
  }

  .hero {
    padding: 60px 40px;
    padding-top: calc(60px + 72px);
  }

  .overview-wrap,
  .residences-wrap,
  .apex-amenities-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .residences-content {
    margin-left: 0;
  }

  .residences-images {
    margin-left: 0;
  }
  .overview-image{
    height: 320px;
    margin: 0 auto;
  }
}
/* ================== MOBILE (FINAL FIXED) ================== */
@media (max-width: 768px) {

  /* ================= GLOBAL FIX ================= */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ================= HEADER ================= */
  .site-header {
    height: 64px;
  }

  .nav {
    height: 64px;
    padding: 0 14px;
  }

  /* ================= LOGO ================= */
  .logo-text {
    align-items: flex-start;
  }

  .logo-text .brand {
    font-size: 13px;
    letter-spacing: 2.5px;
  }

  .logo-text .project {
    font-size: 19px;
    letter-spacing: 1.8px;
  }

  .logo-text .tagline {
    font-size: 9px;
  }

  /* ================= HAMBURGER ================= */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
  }

  /* ================= MENU ================= */
  .menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;   /* 🔥 LEFT ALIGN */
    gap: 18px;
    padding: 28px 20px 36px;
    transform: translateY(-120%);
    transition: 0.4s ease;
    z-index: 9998;
  }

  .menu.active {
    transform: translateY(0);
  }

  .menu a {
    font-size: 15px;
    margin: 0;
  }

  .brochure-header-btn {
    margin-top: 12px;
  }

  /* ================= HERO ================= */
  .hero {
    min-height: 100vh;
    padding: 26px 16px;
    padding-top: calc(26px + 64px);
    align-items: flex-end;      /* 🔥 bottom */
    text-align: left;           /* 🔥 LEFT */
  }

  .hero-content {
    max-width: 92%;
    margin: 0;
  }

  .hero-content h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 14px;
    margin: 10px 0 18px;
  }

  .hero-highlights {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-highlights span {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* ================= OVERVIEW ================= */
  .overview {
    padding: 56px 16px;
  }

  .overview-wrap {
    grid-template-columns: 1fr;
  }

  .overview-image {
    height: 260px;
    max-width: 100%;
    margin: 0;
  }

  /* ================= RESIDENCES ================= */
  .residences {
    padding: 56px 16px;
  }

  .residences-images img {
    height: 230px;
  }

  /* ================= MASTER PLAN ================= */
  .master-wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .master-image {
    align-items: flex-start;
  }

  /* ================= FLOOR PLAN ================= */
  .floorplan-wrap {
    grid-template-columns: 1fr;
  }

  .floorplan-images img {
    max-width: 100%;
  }
#gallery {
    padding: 40px 0;
    width: 100%;
  }
  #gallery .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 14px;  
    padding-right: 14px;
    margin: 0;
  }

  /* Grid */
  #gallery .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Images */
  #gallery .gallery img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    display: block;
    object-fit: cover;
  }

  /* ================= AMENITIES ================= */
  .apex-amenities {
    padding: 50px 16px;
  }

  .apex-amenities-wrap {
    grid-template-columns: 1fr;
  }

  .amenities-image img {
    width: 100%;
  }

  /* ================= CONTACT ================= */
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-text h2 {
    font-size: 26px;
  }

  /* ================= FOOTER ================= */
  .lp-footer p {
    font-size: 10px;
  }
}