/* =========================================
   SUMAN CONSTRUCTION – SHARED STYLESHEET
   shared.css
========================================= */

/* CSS VARIABLES & RESET */
:root {
  --navy: #0d1b2a;
  --navy-light: #1a2f45;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e6b8;
  --white: #ffffff;
  --off-white: #faf8f4;
  --beige: #f0ebe0;
  --warm-grey: #8a8070;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a5a;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(201,168,76,0.2);
  --shadow-gold: 0 8px 40px rgba(201,168,76,0.15);
  --shadow-dark: 0 20px 60px rgba(13,27,42,0.3);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }

/* Gold Divider */
.gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 24px;
}
.gold-line.left { margin-left: 0; }

/* Section Label */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
}

/* Section Title */
.section-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600; color: var(--navy); line-height: 1.15;
}
.section-title.light { color: var(--white); }

/* Buttons */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-gold::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn-gold:hover::after { transform: translateX(0); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 36px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.5); cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold); color: var(--gold);
}

/* =========================================
   NAVBAR
========================================= */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 10px; transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#navbar.solid {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo { display: flex; flex-direction: column; }
.nav-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: 1px;
}
.nav-logo-main span { color: var(--gold); }
.nav-logo-sub {
  font-size: 9px; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  transition: color 0.3s ease; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
/* Active page / section — same gold look as hover, but persistent */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy);
  background: var(--gold); padding: 10px 24px; border-radius: 2px;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Image logos (left: Suman Construction, right: Shree Balaji Infrastructure)
   Drop suman_construction.png / shree_balaji_infrastructure.png in the site
   folder and they auto-fit by height while keeping aspect ratio. Until the
   images exist, the text fallback inside each block is shown instead. */
.nav-logo-img {
  height: 77px; width: auto; max-width: 220px;
  object-fit: contain; display: block;
}
.nav-logo-right { display: flex; align-items: center; margin-left: 40px;}
.nav-logo-right .nav-logo-img { max-width: 200px; }
/* When an image fails to load (not uploaded yet), hide the broken icon and
   reveal the text fallback that sits next to it. */
.nav-logo-img.is-missing { display: none; }
.nav-logo-fallback { display: none; }
.nav-logo-img.is-missing + .nav-logo-fallback,
.nav-logo-fallback.show { display: block; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: var(--navy); padding: 24px;
  flex-direction: column; gap: 20px; z-index: 999;
}
.mobile-menu a {
  color: var(--white); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu.active { display: flex; }

/* =========================================
   FOOTER
========================================= */
footer {
  background: #07111c;
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.footer-brand .logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700; color: var(--white);
}
.footer-brand .logo-main span { color: var(--gold); }
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 16px;
  line-height: 1.8; max-width: 260px;
}
.footer-col h5 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 60px; padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 1px;
}
.footer-bottom-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 1px; }
.footer-credit {
  font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 1px;
}
.footer-credit a {
  color: var(--gold); font-weight: 600; transition: color 0.3s;
  text-decoration: none;
}
.footer-credit a:hover { color: var(--gold-light); }

/* =========================================
   FLOATING WHATSAPP
========================================= */
.float-whatsapp {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--white);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse 2s ease infinite;
}
.float-whatsapp:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.6); }
@keyframes pulse {
  0%,100% { box-shadow: 0 8px 32px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,0.7); }
}

/* =========================================
   LIGHTBOX
========================================= */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 32px; color: var(--white); cursor: pointer; transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   PROJECT DETAIL MODAL (More Details)
========================================= */
.project-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 8888;
  background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  padding: 24px;
}
.project-modal-overlay.active { display: flex; }
.project-modal {
  background: var(--white); border-radius: 4px;
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-dark);
  animation: fadeInUp 0.35s ease both;
}
.project-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #e8e0d0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.project-modal-header h3 {
  font-size: 26px; color: var(--navy); line-height: 1.2;
}
.project-modal-close {
  font-size: 26px; color: var(--warm-grey); cursor: pointer;
  line-height: 1; flex-shrink: 0; transition: color 0.3s;
  background: none; border: none;
}
.project-modal-close:hover { color: var(--navy); }
.project-modal-body { padding: 24px 32px; }
.project-modal-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.1);
  padding: 5px 12px; border-radius: 1px; margin-bottom: 16px;
}
.project-modal-desc {
  font-size: 14px; color: var(--text-mid); line-height: 1.85; margin-bottom: 20px;
}
.project-modal-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.modal-spec-item {
  background: var(--off-white); padding: 12px 16px; border-radius: 2px;
  border-left: 2px solid var(--gold);
}
.modal-spec-item .label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--warm-grey); display: block; margin-bottom: 4px;
}
.modal-spec-item .val {
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.project-modal-map-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--warm-grey); margin-bottom: 10px;
}
.project-modal-map iframe {
  width: 100%; height: 240px; border: none; border-radius: 2px;
}
.project-modal-map-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  transition: color 0.3s;
}
.project-modal-map-link:hover { color: var(--navy); }
.project-modal-map-link i { font-size: 16px; }

/* =========================================
   PROJECT ACTION BUTTONS
========================================= */
.project-action-btns {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px;
}

/* Shared base for both pill-style action buttons */
.btn-floorplan,
.btn-more-details {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 9px 18px; border-radius: 20px;
  cursor: pointer; transition: all 0.35s ease;
  white-space: nowrap;
}

/* Floor Plan — understated gold ghost pill */
.btn-floorplan {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.45);
}
.btn-floorplan i { font-size: 11px; opacity: 0.85; }
.btn-floorplan:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}

/* More Details — light warm ghost pill */
.btn-more-details {
  background: transparent;
  color: var(--warm-grey);
  border: 1px solid rgba(138,128,112,0.3);
}
.btn-more-details i { font-size: 11px; opacity: 0.75; }
.btn-more-details:hover {
  background: rgba(138,128,112,0.07);
  border-color: rgba(138,128,112,0.6);
  color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(138,128,112,0.06);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .project-modal-specs { grid-template-columns: 1fr; }
  .project-modal-body { padding: 20px; }
  .project-modal-header { padding: 20px; }
}
