/* =====================================================
   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;
}

/* ================= 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;
}


/* =====================================================
   OVERVIEW
===================================================== */
.overview {
  padding: 80px 20px;
}

.overview-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
}

.overview-text h2 {
  font-size: 32px;
  color: var(--primary);
  position: relative;
  padding-bottom: 8px;
}

.overview-text h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--accent);
  display: block;
  margin-top: 8px;
}

.overview-points {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.point-card {
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.point-card:hover {
  background: rgba(251, 176, 64, 0.08);
  border-color: var(--accent);
}

.overview-image img {
  width: 92%;
  height: 330px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   RESIDENCES & LEARNING HUB
===================================================== */
.residences {
  padding: 80px 20px;
}

.residences-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.residences-content h2 {
  font-size: 32px;
  color: var(--primary);
}

.residences-content h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}

.residences-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.residences-images img:first-child {
  width: 90%;
  height: 270px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}

.residences-images img:last-child {
  width: 65%;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
  margin-left: auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   AMENITIES
===================================================== */
.apex-amenities {
  padding: 60px 6%;
  background: #fbf9f9;
}

.apex-amenities-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.amenities-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amenities-images img:first-child {
  width: 88%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  margin: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.amenities-images img:last-child {
  width: 62%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  margin-left: auto;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.amenities-content h2 {
  font-size: 34px;
  color: var(--primary);
}

.amenities-divider-list {
  list-style: none;
  margin-top: 25px;
}

.amenities-divider-list li {
  padding: 14px 0;
  border-bottom: 1px solid #d3d3d3;
  font-size: 15px;
}
.section-heading {
  font-size: 32px;
  font-weight: 600;
  color: #1d3e5e; 
  position: relative;
  margin-bottom: 22px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #f5a623; 
  margin-top: 8px;
}

/* ================= MASTER PLAN SECTION ================= */
.apex-masterplan {
  padding: 90px 0;
  background: #fff;
}

.master-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* IMAGE */
.master-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.master-thumb {
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  cursor: zoom-in;
}

.click-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

/* CONTENT */
.master-heading {
  font-size: 42px;
  font-weight: 700;
  color: #0f1f2d; /* same blue */
  margin-bottom: 10px;
}

.master-line {
  display: block;
  width: 55px;
  height: 4px;
  background: #d4a13a; /* golden line */
  margin-bottom: 22px;
}

.master-text {
  max-width: 520px;
  margin-bottom: 22px;
  color: #333;
}

.master-list {
  padding-left: 18px;
}

.master-list li {
  margin-bottom: 10px;
  color: #333;
}

/* =========================================
   MASTER PLAN MODAL (FULL IMAGE VIEW)
========================================= */
.master-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

/* FULL IMAGE */
.master-full {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* CLOSE BUTTON */
.master-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.master-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
/* ================= 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;
}


/* =========================================
   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: 9999;
}

.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;
}

.lp-footer p a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: underline;
  display: inline-block;
}

.lp-footer a:focus-visible {
  outline: 2px solid #fbb040;
  outline-offset: 3px;
}
/* =====================================================
   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: 60px 20px;
  }

  .residences-images img:first-child {
    height: 240px;
  }

  .residences-images img:last-child {
    width: 85%;
    height: 150px;
  }

  /* AMENITIES */
  .amenities-images img:first-child {
    height: 220px;
  }

  .amenities-images img:last-child {
    width: 80%;
  }
  /* ================= MASTER PLAN ================= */
  .master-wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .master-image {
    align-items: flex-start;
  }
  
  /* GALLERY */
  #gallery .gallery {
    grid-template-columns: 1fr;
  }

  #gallery .gallery img {
    height: 220px;
  }

  /* CONTACT */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-text p {
    max-width: 100%;
  }
}


/* =====================================================
   SMALL MOBILE (max-width: 480px)
===================================================== */
@media (max-width: 480px) {

  /* HERO */
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  /* MODALS */
  .modal-box,
  .apex-popup-box {
    width: 92%;
    padding: 24px 20px;
  }

  /* TEXT SIZES */
  p,
  li {
    font-size: 13px;
  }

  /* FOOTER */
  .lp-footer p {
    font-size: 10px;
  }

  /* TOAST */
  .toast {
    right: 16px;
    bottom: 20px;
    font-size: 13px;
  }
}