/* ============================
   Global Reset & Base
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #333; background: #fff; line-height: 1.6; }
img { width: 100%; display: block; border-radius: 10px; }
a { text-decoration: none; }

html {
  scroll-behavior: smooth;
}

/* ============================
   Headings (SEO Optimized)
   ============================ */
/* Main Heading (H1 in Hero) */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff; /* White for hero */
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.logo a {
  color: #c9a34e;   /* keep gold color */
  text-decoration: none;
  font-weight: 700;
}
.logo a:hover {
  color: #b0893f;   /* darker gold on hover */
}

/* Hero Subheading (H2) */
.hero h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f5f5f5; /* lighter white for contrast */
  margin: 10px 0 20px;
  letter-spacing: 0.5px;
  text-transform: none; /* keep natural casing */
  line-height: 1.3;
}

/* Mobile scaling */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.2rem;
    margin: 8px 0 16px;
  }
}

/* Section Titles (H2) */
.section-title, h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #c9a34e; /* gold underline */
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Subheadings (H3) */
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c9a34e; /* gold for category headers */
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Highlight Section Titles (override for readability) */
.highlight h3 {
  color: #222;
}

/* Optional H4 (e.g. unit details) */
h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

/* Responsive heading scaling */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .section-title, h2 { font-size: 1.6rem; }
  h3 { font-size: 1.05rem; }
}

/* ============================
   Navbar
   ============================ */
.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: fixed; width: 100%; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; max-width: 1200px; margin: auto; }
.logo { font-weight: 700; font-size: 1.5rem; color: #c9a34e; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: #333; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: #c9a34e; }
.btn-nav { background: #c9a34e; padding: 10px 20px; border-radius: 6px; color: #fff; }

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
  background: center / cover no-repeat url('images/M-Aurora-Background-169.png');
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero p { font-size: 1.1rem; margin-bottom: 25px; }

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-image: url('images/M-Aurora-Background-34.png');
  }
  h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* ============================
   Hero Animations
   ============================ */
.hero h1,
.hero h2,
.hero p,
.hero .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

/* Sequence timing */
.hero h1 { animation-delay: 0.2s; }
.hero h2 { animation-delay: 0.4s; }
.hero p  { animation-delay: 0.6s; }
.hero .btn-primary { animation-delay: 0.8s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   Sections
   ============================ */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center; /* ensures the title stays in center */
}

/* ============================
   Section Title Animation (Scroll Triggered)
   ============================ */
/* Section Titles Centered with Animation */
.section-title {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  margin: 0 auto 50px;   /* extra bottom margin before next section */
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  background: #c9a34e;
  margin: 16px auto 0;   /* more space below the text */
  border-radius: 2px;
  transition: width 0.6s ease 0.2s;
}

/* When active (JS adds this class) */
.section-title.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title.active::after {
  width: 60px;
}

/* ============================
   Overview
   ============================ */
.flex { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.overview-text { flex: 1 1 400px; }
.overview-img { flex: 1 1 400px; }
.overview-text p {
  text-align: justify;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #444;
}

/* ============================
   Highlights
   ============================ */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  text-align: center;
}

.highlight {
  background: #fff;
  padding: 35px 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  border-top: 5px solid #c9a34e;
}

.highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.highlight .icon { font-size: 2rem; margin-bottom: 15px; }
.highlight p { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* ============================
   Unit Section
   ============================ */
.units {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.unit-tabs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.unit-action {
  margin-top: 20px;
  text-align: center;
}

.btn-whatsapp {
  display: inline-block;
  background: #c9a34e; /* Aurora gold */
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-whatsapp:hover {
  background: #b0893f; /* darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.tab-btn {
  padding: 12px 22px;
  border: 2px solid #c9a34e;
  background: #fff;
  color: #333;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn.active,
.tab-btn:hover {
  background: #c9a34e;
  color: #fff;
}

/* Layout Preview (smaller) */
.unit-layout img {
  max-width: 500px;  /* smaller size */
  width: 100%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: opacity 0.4s ease, transform 0.3s ease;
  cursor: zoom-in;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#caption {
  text-align: center;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
}

/* Close button */
.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover { color: #c9a34e; }

/* Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -30px;
  color: #fff;
  font-weight: bold;
  font-size: 2rem;
  transition: 0.3s;
  user-select: none;
}
.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { color: #c9a34e; }

/* ============================
   Location & Amenities
   ============================ */
.location-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.location-map { flex: 0 0 45%; }
.location-map img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.amenities-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.amenity-group h3 {
  font-size: 1.15rem;
  color: #c9a34e;
  margin-bottom: 10px;
}

.amenity-group ul { list-style: none; padding: 0; margin: 0; }
.amenity-group li {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
  padding-left: 1.2em;
  position: relative;
}

.amenity-group li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c9a34e;
  font-size: 1.2rem;
  line-height: 1;
  top: 0;
}

@media (max-width: 992px) {
  .location-container { flex-direction: column; }
  .location-map, .amenities-columns { flex: 1 1 100%; }
}

/* ============================
   CTA
   ============================ */
.cta {
  background: #f5f5f5;
  text-align: center;
  border-radius: 12px;
  padding: 60px 20px;
}
.cta h2 { margin-bottom: 20px; }
.cta form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}
.cta input, .cta select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.cta button {
  padding: 15px;
  background: #c9a34e;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background: #c9a34e;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #b0893f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ============================
   Footer
   ============================ */
footer {
  background: #222;
  color: #aaa;
  padding: 30px 20px;
  text-align: center;
}

/* ============================
   Responsive Navbar & Layout
   ============================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .flex { flex-direction: column; }
}

/* Floating WhatsApp Button (Premium Style) */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #c9a34e; /* gold theme */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: #b0893f; /* darker gold hover */
  transform: scale(1.1);
}

/* WhatsApp Logo inside */
.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* makes logo white */
}

/* Mobile toggle button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #c9a34e;
  z-index: 1001;
}

/* Mobile nav menu */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 180px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1000;

    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .nav-links.show {
    max-height: 400px; 
    padding: 15px 0;
  }

  .nav-links li {
    margin: 0;
    padding: 12px 0;
    text-align: center; /* ✅ center the menu text */
  }

  .nav-links a {
    font-weight: 600;
    color: #333;
    display: inline-block; /* ✅ prevents full width stretch */
    text-align: center;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: #c9a34e;
  }

  /* Special style for Register button */
  .nav-links .btn-nav {
    background: #c9a34e;
    color: #fff;
    padding: 8px 16px; /* ✅ smaller than before */
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s;
  }

  .nav-links .btn-nav:hover {
    background: #b0893f;
  }
}


