/* ============================================
   JUBILEE NEW PROJECTS - Custom Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --dark: #1A1A1A;
  --charcoal: #2D2D2D;
  --cream: #FAF8F4;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #888888;
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

/* Nav links default (on dark hero) */
#navbar .nav-link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease;
  color: white;
}

/* Nav links when scrolled (on white bg) */
#navbar.scrolled .nav-link {
  color: #1a1a1a !important;
}

#navbar.scrolled .nav-link:hover {
  color: #A07830 !important;
}

/* Enquire Now button — always visible */
#navbar.scrolled .border-yellow-400 {
  border-color: #A07830 !important;
  color: #A07830 !important;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

#navbar .nav-link:hover::after {
  width: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-top: 2px solid var(--gold);
  z-index: 1000;
  animation: dropDown 0.25s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--gold-dark);
  padding-left: 28px;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,20,0.75) 0%, rgba(10,10,20,0.3) 60%, rgba(10,10,20,0.6) 100%);
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}

/* ============================================
   ENQUIRY FORM
   ============================================ */
.enquiry-form {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  background: white;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 2px;
  width: 100%;
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

/* ============================================
   MODAL
   ============================================ */
#popup-modal {
  animation: fadeInModal 0.5s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  animation: slideUpModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
}

.section-title span {
  color: var(--gold-dark);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  background: white;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.project-card img {
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

/* ============================================
   AMENITIES
   ============================================ */
.amenity-item {
  transition: all 0.3s ease;
}

.amenity-item:hover {
  transform: translateY(-4px);
}

.amenity-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cream), white);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: all 0.3s ease;
}

.amenity-item:hover .amenity-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
}

.amenity-item:hover .amenity-icon svg {
  color: white;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ============================================
   STICKY BOTTOM CTA BAR
   ============================================ */
.sticky-cta-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  height: 56px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-cta-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #fff !important;
  transition: filter 0.2s ease;
  border: none !important;
  outline: none;
}

.sticky-cta-btn:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

.sticky-cta-call {
  background: #A07830 !important;
  border-right: 1px solid rgba(255,255,255,0.2) !important;
}

.sticky-cta-whatsapp {
  background: #25D366 !important;
}

.sticky-cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Push page content up so footer isn't hidden behind bar */
body {
  padding-bottom: 56px !important;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.whatsapp-btn { background: #25D366; }
.call-btn     { background: var(--gold); }
.scroll-top   { background: var(--dark); }

/* ============================================
   SCROLL ANIMATIONS
   — Default: visible. JS adds js-loaded to body
     which re-enables the animation states.
   ============================================ */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is active, start hidden and animate in */
.js-loaded .fade-up   { opacity: 0; transform: translateY(40px); }
.js-loaded .fade-left  { opacity: 0; transform: translateX(-40px); }
.js-loaded .fade-right { opacity: 0; transform: translateX(40px); }

.js-loaded .fade-up.visible,
.js-loaded .fade-left.visible,
.js-loaded .fade-right.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

/* ============================================
   CERTIFICATE SECTION
   ============================================ */
.cert-card {
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
}

.cert-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-link {
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--gold-light);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
  display: none;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-msg {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 1px solid #b8dacc;
  color: #155724;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: white;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-left: 3px solid var(--gold);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

/* ============================================
   LOCATION ADVANTAGES
   ============================================ */
.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.location-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 80px;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* ============================================
   SCROLL BAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================
   GOLD DIVIDER
   ============================================ */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.gold-divider-left {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}
