/* ═══════════════════════════════════════════════
   RIVERVIEW CITY — "Magical Luxury" Masterpiece
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #947644; /* Deep Rich Gold */
  --primary-light: #B2915A;
  --heading: #0A111F; /* Midnight Charcoal */
  --text: #1A1D23; /* Darker for better contrast */
  --text-secondary: #4A4F5C; /* Darker grey */
  --text-muted: #717782; /* Darker muted grey */
  --background: #FDFCFB; /* Ivory Cream */
  --bg-offset: #F5F3F0; /* Soft Sandstone */
  --white: #FFFFFF;
  --border: rgba(10, 17, 31, 0.12);
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 15px 50px rgba(148, 118, 68, 0.1);
  --shadow-lg: 0 40px 100px rgba(10, 17, 31, 0.05);
  --transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ─── Global Styles ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .section-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--heading);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.1;
}

i, em { font-family: 'Cormorant Garamond', serif; font-style: italic; }

p { color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 40px; border-radius: 50px; font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; border: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--primary { background: var(--heading); color: var(--white); }
.btn--primary:hover { background: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow); }
.btn--outline { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--heading); transform: translateY(-5px); border-color: var(--white); }
.btn--rust { background: var(--primary); color: var(--white); }
.btn--rust:hover { background: var(--primary-light); transform: translateY(-5px); box-shadow: var(--shadow); }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(253, 252, 251, 0.98); /* Always solid for best visibility */
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition); padding: 8px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.header__logo img { height: 48px; transition: var(--transition); }
.header__nav { display: flex; align-items: center; gap: 15px; flex-wrap: nowrap; }
.header__nav a { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--heading); white-space: nowrap; opacity: 0.8; }
.header__nav a:hover { color: var(--primary); opacity: 1; }
.header__cta {
  background: var(--primary); color: #FFFFFF !important; padding: 10px 22px;
  border-radius: 4px; font-size: 0.85rem; font-weight: 700;
  white-space: nowrap; opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(148, 118, 68, 0.3);
}
.header__cta:hover { background: var(--heading); color: #FFFFFF !important; transform: translateY(-2px); }

/* ─── Hero ─── */
.hero--image {
  height: 100vh; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; position: relative;
  background-attachment: fixed; padding-top: 80px;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}
.hero__content { position: relative; z-index: 10; text-align: center; color: var(--white); max-width: 1000px; padding: 0 20px; }
.hero__content h1 { font-size: clamp(3rem, 10vw, 6.5rem); color: var(--white); margin-bottom: 24px; text-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.hero__projects-mention { 
  font-size: 2.5rem; letter-spacing: 2px; text-transform: uppercase; 
  font-weight: 800; margin-bottom: 48px; color: var(--primary-light);
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: inline-block; padding: 10px 0;
}
.hero__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ─── Sections ─── */
.section { padding: 140px 0; }
.section--offset { background: var(--bg-offset); }
.section-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 5px; margin-bottom: 16px; text-align: center; }
.section-title { font-size: clamp(2.8rem, 6vw, 4rem); margin-bottom: 24px; text-align: center; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 60px; font-size: 1.25rem; color: var(--text-secondary); font-family: 'Cormorant Garamond', serif; font-style: italic; line-height: 1.4; }

/* ─── Project Details ─── */
.project-detail { margin-bottom: 140px; }
.overview__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.overview__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.overview__image img { width: 100%; height: 500px; object-fit: cover; transition: transform 2s ease; }
.overview__image:hover img { transform: scale(1.08); }
.specs__list { margin: 30px 0; }
.specs__list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 15px; font-weight: 500; font-size: 0.9rem; }
.specs__list li::before { content: '—'; color: var(--primary); font-weight: 900; }

/* ─── Amenities (Elite Grid) ─── */
.amenities__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.amenity-card {
  background: var(--white); padding: 40px 20px; border-radius: var(--radius-sm);
  text-align: center; border: 1px solid var(--border); transition: var(--transition);
}
.amenity-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }
.amenity-card__icon { font-size: 30px; color: var(--primary); margin-bottom: 20px; display: block; }
.amenity-card__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--heading); }

/* ─── Compact Amenities ─── */
.amenities__grid--compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.amenities__grid--compact .amenity-card {
  padding: 12px 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.amenities__grid--compact .amenity-card i {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 0;
  width: 24px;
  text-align: center;
}
.amenities__grid--compact .amenity-card p {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--heading);
  line-height: 1.2;
  margin: 0;
}
@media (max-width: 1200px) {
  .amenities__grid--compact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .amenities__grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .amenities__grid--compact { grid-template-columns: 1fr; }
}

/* ─── Pricing ─── */
.floorplans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.plan-card {
  background: var(--white); border-radius: var(--radius); padding: 60px 40px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.plan-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.plan-card__type { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.plan-card__area { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 30px; font-weight: 600; }
.plan-card__price { font-size: 3rem; font-weight: 600; margin-bottom: 40px; font-family: 'Cormorant Garamond', serif; line-height: 1; color: var(--heading); }

/* ─── Masterplan ─── */
.masterplan__stacked { max-width: 900px; margin: 0 auto; }
.masterplan__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); transition: var(--transition); }
.masterplan__image:hover { transform: scale(1.02); border-color: var(--primary); }

/* ─── Walkthrough ─── */
.video-section__wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; max-width: 1100px; margin: 0 auto; border: 1px solid var(--border); }
.video-section__wrap iframe { width: 100% !important; height: 100% !important; border: none; }

/* ─── Connectivity ─── */
.connectivity__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.connectivity__list li { padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 20px; font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.connectivity__list i { color: var(--primary); width: 24px; text-align: center; font-size: 1.1rem; }
.connectivity__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); filter: grayscale(20%) brightness(95%); height: 500px; }
.connectivity__map iframe { width: 100% !important; height: 100% !important; border: none; }

/* ─── RERA ─── */
.rera-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.rera-card {
  background: var(--white); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 40px; box-shadow: var(--shadow);
}
.rera-card__qr-box { width: 140px; height: 140px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; flex-shrink: 0; }
.rera-card__content h4 { font-size: 2rem; margin-bottom: 8px; }
.rera-id { color: var(--primary); font-weight: 700; margin-bottom: 15px; display: block; font-size: 0.9rem; }
.rera-link { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); text-decoration: underline; }

/* ─── Contact ─── */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact__info h2 { font-size: 4.5rem; line-height: 1; margin-bottom: 30px; }
.contact__phone { font-size: 2.6rem; font-weight: 500; color: var(--primary); font-family: 'Cormorant Garamond', serif; margin-bottom: 40px; display: block; }
.contact__form { background: var(--white); padding: 60px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 20px; background: #F8F9FA; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.form-group input:focus { border-color: var(--primary); background: var(--white); outline: none; }
@media (min-width: 769px) {
  .iti { width: 100%; }
}

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border); padding: 30px 0; }
.faq-item__q { 
  font-size: 1.2rem; font-weight: 600; color: var(--heading); cursor: pointer; 
  display: flex; justify-content: space-between; align-items: center; 
  font-family: 'Cormorant Garamond', serif; transition: var(--transition);
}
.faq-item__q::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-item__q::after { content: '−'; transform: rotate(180deg); }
.faq-item.active .faq-item__q { color: var(--primary); }
.faq-item__a { 
  margin-top: 20px; max-height: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0;
}
.faq-item.active .faq-item__a { max-height: 500px; opacity: 1; margin-top: 20px; }
.faq-item__a p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Article Cards ─── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; margin-top: 60px; }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }
.article-card__image { height: 240px; overflow: hidden; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s ease; }
.article-card:hover .article-card__image img { transform: scale(1.1); }
.article-card__content { padding: 40px; flex-grow: 1; display: flex; flex-direction: column; }
.article-card__tag { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.article-card__title { font-size: 1.8rem; margin-bottom: 20px; line-height: 1.2; font-family: 'Cormorant Garamond', serif; }
.article-card__link { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--heading); margin-top: auto; display: flex; align-items: center; gap: 10px; }
.article-card__link::after { content: '→'; transition: transform 0.3s ease; }
.article-card:hover .article-card__link::after { transform: translateX(5px); }

/* ─── Article Page (Specific) ─── */
.article-page { padding-top: 180px; }
.article-page__content { max-width: 800px; margin: 0 auto; }
.article-page__content h1 { font-size: 4rem; margin-bottom: 30px; }
.article-page__content h3 { font-size: 2rem; margin-top: 40px; margin-bottom: 20px; }
.article-page__content p { margin-bottom: 24px; font-size: 1.1rem; line-height: 1.8; }


/* ─── Footer ─── */
.footer { background: #0A111F; color: rgba(255,255,255,0.7); padding: 120px 0 60px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; }
.footer__brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 25px; }
.footer h4 { color: var(--white); margin-bottom: 25px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a:hover { color: var(--primary); }
.footer__bottom { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* ─── Mobile ─── */
@media (max-width: 1024px) {
  .amenities__grid { grid-template-columns: repeat(4, 1fr); }
  .overview__grid, .contact__grid, .rera-grid, .connectivity__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .header__nav { 
    position: fixed; top: 75px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 40px; transform: translateY(-150%);
  }
  .header__nav.open { transform: translateY(0); }
  .hamburger { 
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
    width: 30px; height: 20px; justify-content: space-between;
  }
  .hamburger span { width: 100%; height: 2px; background: var(--heading); transition: var(--transition); }
  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .hero__content h1 { font-size: 3.5rem; }
  .text-center-mobile { text-align: center !important; }
  .overview__text, .contact__info { text-align: center !important; }
  .specs__list { display: inline-block; text-align: left; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__projects-mention { font-size: 1.2rem; letter-spacing: 1px; padding: 5px 0; }

  .footer { padding: 80px 0 40px; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { max-width: 100%; }
  .footer h4 { margin-bottom: 15px; margin-top: 10px; }
  .footer__bottom { margin-top: 40px; }
}

/* ─── Popup & Lightbox ─── */
.lead-popup, .lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 17, 31, 0.9); backdrop-filter: blur(15px);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 30px;
}
.lead-popup.active, .lightbox.active { display: flex; }

.lead-popup__card {
  background: var(--white); width: 100%; max-width: 500px;
  padding: 60px 40px; border-radius: var(--radius); position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.lead-popup__close, .lightbox__close {
  position: absolute; top: 20px; right: 20px;
  font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--heading);
}
.lightbox__close { color: var(--white); top: 30px; right: 40px; }
.lead-popup h3 { font-size: 2.5rem; color: var(--heading); text-align: center; margin-bottom: 10px; }
.lead-popup p { color: var(--text-muted); margin-bottom: 30px; text-align: center; }

.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* Toast */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--heading); color: var(--white); padding: 15px 30px;
  border-radius: 50px; z-index: 3000; font-weight: 600; transition: var(--transition); opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* ─── Floating CTA ─── */
.floating-cta {
  position: fixed; bottom: 30px; right: 30px;
  display: flex; flex-direction: column; gap: 15px; z-index: 1000;
}
.floating-cta__phone, .floating-cta__whatsapp {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--white);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.floating-cta__phone { background: var(--primary); }
.floating-cta__whatsapp { background: #25D366; }
.floating-cta__phone:hover, .floating-cta__whatsapp:hover { transform: scale(1.1) rotate(5deg); }

@media (max-width: 768px) {
  .floating-cta { bottom: 20px; right: 20px; gap: 10px; }
  .floating-cta__phone, .floating-cta__whatsapp { width: 50px; height: 50px; font-size: 20px; }
}

/* ═══════════════════════════════════════════════
   SECURITY LAYER: Content & Asset Protection
   ═══════════════════════════════════════════════ */
body, html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* Disables mobile touch-and-hold saving popup on iOS */
}

/* Full exception for form and editable fields to prevent UX disruptions */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Secure CSS Background Image Container and Overlay rules */
.secure-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit; /* Matches parent border-radius */
}

.secure-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none; /* Prevent direct cursor targetting */
}

.secure-image-container:hover .secure-image {
  transform: scale(1.08); /* Replicate existing elegant hover zoom */
}

.secure-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 10;
  cursor: default;
  pointer-events: auto; /* Acts as a physical mouse intercept shield */
}
