/* ============================================================
   Anugrah Homes — Custom Stylesheet
   Font: Poppins (Google Fonts)
   ============================================================ */

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B1F4A; }
::-webkit-scrollbar-thumb { background: #0EA5E9; border-radius: 3px; }

/* ── Gold divider line ─────────────────────────────────────── */
.gold-line {
  background: linear-gradient(90deg, transparent, #0EA5E9, transparent);
  height: 2px;
}

/* ── Amenity card hover ────────────────────────────────────── */
.amenity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 31, 74, 0.15);
}

/* ── CTA pulse animation ───────────────────────────────────── */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 150, 44, 0.4); }
  50%       { box-shadow: 0 0 0 14px rgba(201, 150, 44, 0); }
}
.btn-pulse { animation: pulse-gold 2s infinite; }

/* ── WhatsApp float bounce ─────────────────────────────────── */
@keyframes bounce-wa {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.wa-float { animation: bounce-wa 2.4s ease-in-out infinite; }

/* ── Ticker ────────────────────────────────────────────────── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-inner {
  display: flex;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}

/* ── Stat card left border ─────────────────────────────────── */
.stat-card { border-left: 4px solid #0EA5E9; }

/* ── Ribbon badge ──────────────────────────────────────────── */
.ribbon {
  position: absolute;
  top: 16px;
  right: -8px;
  background: #C62828;
  color: #fff;
  padding: 4px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 50%);
}

/* ── Progress bar fill ─────────────────────────────────────── */
.progress-fill { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Focus ring ────────────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
  outline: 2px solid #0EA5E9;
  outline-offset: 0;
  border-color: #0EA5E9 !important;
}

/* ── Form inputs ───────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
  background: #f8fafc;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus { background: #fff; }
.form-input::placeholder { color: #9ca3af; }

/* ── Generic modal backdrop ────────────────────────────────── */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(5, 15, 40, 0.82);
}

/* ── Slide-up animation ────────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================
   HERO SLIDER
   ============================================================= */
.hero-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slider track */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

/* Slide image with Ken-Burns zoom */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 8s ease;
}
.hero-slide.active img { transform: scale(1.08); }

/* Gradient overlay — keeps text readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,15,40,0.82) 0%, rgba(5,15,40,0.55) 60%, rgba(5,15,40,0.25) 100%),
    linear-gradient(0deg,  rgba(5,15,40,0.55) 0%, transparent 60%);
  z-index: 1;
}

/* Content sits above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 0 4rem;
}

/* ── Slider dots ───────────────────────────────────────────── */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.slider-dot.active {
  background: #0EA5E9;
  transform: scale(1.4);
}

/* ── Slider arrows ─────────────────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14,165,233,0.25);
  border: 1.5px solid rgba(14,165,233,0.5);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.slider-arrow:hover {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #0B1F4A;
}
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

/* =============================================================
   GALLERY SECTION
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #0B1F4A;
  min-height: 200px;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.7);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(to top, rgba(11,31,74,0.85) 0%, transparent 60%);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
  width: 48px;
  height: 48px;
  background: rgba(14,165,233,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B1F4A;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transform: scale(0.75);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay-icon { transform: scale(1); }

.gallery-overlay-label {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.active { display: flex; animation: fadeIn 0.2s ease; }

#lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,165,233,0.85);
  color: #0B1F4A;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: #0EA5E9; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11,31,74,0.9);
  color: #fff;
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* =============================================================
   MAP — click-to-popup
   ============================================================= */
.map-trigger-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 340px;
  background: #0B1F4A;
  box-shadow: 0 10px 40px rgba(11,31,74,0.2);
}

.map-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11,31,74,0.52);
  backdrop-filter: blur(3px);
  transition: background 0.3s;
}
.map-trigger-wrapper:hover .map-overlay { background: rgba(11,31,74,0.42); }

.map-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0EA5E9;
  color: #0B1F4A;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(14,165,233,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.map-trigger-btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(14,165,233,0.55); }

.map-trigger-label {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  margin-top: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

/* ── Map modal ─────────────────────────────────────────────── */
#mapModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#mapModal.active { display: flex; }

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,15,40,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #0B1F4A;
}

.map-modal-title {
  color: #0EA5E9;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-modal-close {
  color: rgba(255,255,255,0.65);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.map-modal-close:hover { color: #fff; }

.map-modal-iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* =============================================================
   LEAD MODAL — clean compact
   ============================================================= */
#leadModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5,15,40,0.78);
}
#leadModal.open { display: flex; }

/* Card */
.lm-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: slideUp 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* Header */
.lm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0B1F4A;
  padding: 1rem 1.25rem;
  position: relative;
}
.lm-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.lm-header-text { flex: 1; }
.lm-title {
  color: #0EA5E9;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.lm-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}
.lm-sub strong { color: #fff; font-weight: 600; }
.lm-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.lm-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Trust pills */
.lm-trust {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.lm-trust span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.67rem;
  font-weight: 600;
  color: #0B1F4A;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.lm-trust span i { color: #0EA5E9; font-size: 0.6rem; }

/* Form */
.lm-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lm-field {
  position: relative;
}
.lm-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0EA5E9;
  font-size: 0.78rem;
  pointer-events: none;
}
.lm-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.4rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lm-input:focus {
  border-color: #0EA5E9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
  outline: none;
}
.lm-input::placeholder { color: #b0bec5; }
.lm-select { appearance: none; cursor: pointer; }

/* Submit */
.lm-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
  color: #0B1F4A;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.2rem;
}
.lm-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.45); }
.lm-submit:active { transform: translateY(0); }

/* Or divider */
.lm-or {
  text-align: center;
  font-size: 0.68rem;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}

/* Quick contact */
.lm-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.lm-wa, .lm-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.lm-wa {
  background: #f0fdf4;
  color: #2E7D32;
  border: 1.5px solid #bbf7d0;
}
.lm-wa:hover { background: #dcfce7; }
.lm-call {
  background: #f0f4ff;
  color: #0B1F4A;
  border: 1.5px solid #c7d2fe;
}
.lm-call:hover { background: #e0e7ff; }

/* Privacy */
.lm-privacy {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: -0.1rem;
}

/* =============================================================
   SUCCESS MODAL
   ============================================================= */
#successModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(5,15,40,0.82);
}
#successModal.open { display: flex; }

/* =============================================================
   RESPONSIVE — collapse left panel on mobile
   ============================================================= */
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .map-modal-iframe { height: 320px; }
  .slider-arrow { display: none; }
}

/* =============================================================
   PROJECT AMENITIES — IMAGE GRID
   ============================================================= */
.amenity-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.amenity-img-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0B1F4A;
  box-shadow: 0 4px 20px rgba(11,31,74,0.1);
  cursor: default;
}

.amenity-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.amenity-img-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.amenity-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(11,31,74,0.9) 0%, rgba(11,31,74,0.1) 50%, transparent 100%);
}

.amenity-img-icon {
  color: #0EA5E9;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.amenity-img-card:hover .amenity-img-icon {
  opacity: 1;
  transform: translateY(0);
}

.amenity-img-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .amenity-img-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Mobile: 2 columns (smaller) */
@media (max-width: 480px) {
  .amenity-img-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .amenity-img-label { font-size: 0.7rem; }
  .amenity-img-icon { font-size: 1rem; }
}
