/* ================================================================
   PANTHEION — Homepage CSS (pantheion-home.css)
   ================================================================ */

/* ================================================================
   HERO — video background
   ================================================================ */
.hp-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Looping background video */
.hp-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Directional gradient: dark at bottom-left (text), transparent at top-right */
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.20) 70%,
    rgba(0,0,0,0.08) 100%
  );
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s 0.3s ease forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: none; }
}

.hp-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.hp-hero-logo-wrap {
  margin-bottom: 28px;
}
.hp-hero-logo-wrap img {
  height: 52px;
  width: auto;
  display: block;
}

.hp-hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(64px, 6vw, 94px);
  font-weight: 300;
  color: white;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.3);
}
.hp-hero-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hp-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Outline-light button scoped to hero to ensure visibility on dark bg */
.hp-hero-actions .btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: white;
  background: transparent;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.hp-hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* Scroll hint */
.hp-hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 6vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.6s 1.4s ease forwards;
}
.hp-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollPulse 2s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
.hp-hero-scroll-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ================================================================
   STRIP
   ================================================================ */
.hp-strip {
  background: var(--primary);
  padding: 28px 5vw;
  text-align: center;
}
.hp-strip-text {
  font-family: var(--ff-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

/* ================================================================
   PROJECT SECTIONS — Luminaara & Palmera
   ================================================================ */
.hp-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  align-items: center; /* vertically centres content col relative to image col */
}

.hp-project--luminaara { background: var(--bg); }
.hp-project--palmera   { background: #033029; }

/* Image column */
.hp-project-img-col {
  position: relative;
  overflow: hidden;
}
.hp-project-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Desktop: natural aspect ratio, no cropping */
.hp-project .hp-project-img-wrap img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  display: block;
  transition: transform 0.8s ease;
}
.hp-project-img-col:hover .hp-project-img-wrap img {
  transform: scale(1.04);
}

/* Blueprint image uses cover — not affected by the project rule above */
.hp-blueprint-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
  filter: brightness(0.85) saturate(0.9);
}
.hp-blueprint-img-col:hover img { transform: scale(1.04); }

/* MahaRERA badge overlay */
.hp-project-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
}
.hp-project-img-badge--right {
  left: auto;
  right: 24px;
}
.hp-project-img-badge img {
  height: 60px;
  width: auto;
}

/* Content column */
.hp-project-content-col {
  padding: 72px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-project-content-col--right {
  /* desktop: natural DOM order (content left, image right); mobile order:1 handles image-first */
}

.hp-project-logo {
  margin-bottom: 16px;
}
.hp-project-logo img {
  height: 64px;
  width: auto;
  display: block;
}
.hp-project-name-fallback {
  font-family: var(--ff-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hp-project-name-fallback--light { color: white; }

.hp-project-tagline {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 18px;
}
.hp-project-tagline--light { color: rgba(255,255,255,0.55); }

.hp-project-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 480px;
}
.hp-project-desc--light { color: rgba(255,255,255,0.55); }

.hp-project-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hp-project-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  min-width: 80px;
}
.hp-project-stats--light .hp-project-stat {
  border-bottom-color: rgba(255,255,255,0.12);
}
.hp-stat-val {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}
.hp-project-stats--light .hp-stat-val { color: white; }
.hp-stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
}
.hp-project-stats--light .hp-stat-label { color: rgba(255,255,255,0.4); }

.hp-project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Outline button scoped to Palmera dark bg */
.hp-project--palmera .btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: white;
  background: transparent;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s;
}
.hp-project--palmera .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.hp-project-rera {
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.hp-project-rera--light { color: rgba(255,255,255,0.3); }

/* ================================================================
   SOCIETY REDEVELOPMENT — centred, simplified
   ================================================================ */
.hp-rdev {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.15) 100%),
    url("/assets/images/pantheion-home-redevelopment-bg-01.jpg") center/cover no-repeat;
  padding: 100px 5vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.hp-rdev-centered-inner {
  max-width: 800px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hp-rdev-centered-inner .section-label,
.hp-rdev-centered-inner .section-title {
  text-align: left;
  color: #fff;
}
.hp-rdev-body {
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 600px;
  text-align: left;
}
/* Know More button — moved to CSS from inline margin */
.hp-rdev-centered-inner .btn-outline-primary {
  margin-top: 8px;
  border-color: #ffffff;
  color: #ffffff;
}
.hp-rdev-centered-inner .btn-outline-primary:hover {
  background: #ffffff;
  color: var(--primary);
}

/* ================================================================
   BOMBAY BLUEPRINT
   ================================================================ */
.hp-blueprint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background-color: #30304a;
  background-image: url('../images/pantheion-pattern-09.svg');
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-bottom: 4px solid #ffffff;
}
.hp-blueprint-img-col {
  overflow: hidden;
}
.hp-blueprint-content {
  padding: 80px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-blueprint-sub {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hp-blueprint-body {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 460px;
}
.hp-blueprint-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Popup submit button top margin — from CSS not inline */
.hp-popup-submit {
  margin-top: 8px;
}

/* Section title margin in rdev — from CSS not inline */
.hp-rdev-centered-inner .section-title {
  margin-bottom: 20px;
}

/* Footer address list item */
.site-footer-address {
  margin-top: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  line-height: 1.6;
}

/* Footer logo fallback text */
.hp-footer-logo-fallback {
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  /* Project sections stack vertically on tablet */
  .hp-project {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hp-project-img-col {
    height: auto;
  }
  /* Mobile: square crop for project images */
  .hp-project .hp-project-img-wrap img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .hp-project--palmera .hp-project-img-col--padded .hp-project-img-wrap img {
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  .hp-project-content-col--right { order: 1; }
  .hp-project-content-col { padding: 24px 5vw 32px; }
  .hp-project-img-col--padded { padding: 24px 5vw 0; }

  /* Blueprint stacks vertically */
  .hp-blueprint {
    grid-template-columns: 1fr;
    min-height: auto;
    background-attachment: scroll; /* fixed attachment doesn't work well on mobile */
  }
  .hp-blueprint-img-col {
    height: auto;       /* don't force a fixed height */
  }
  .hp-blueprint-img-col img {
    height: auto;
    max-height: none;
    object-fit: contain; /* show full image, no cropping */
    object-position: center;
    background: #30304a; /* matches section bg so letterbox areas blend */
  }
  .hp-blueprint-content { padding: 56px 6vw; }
}

@media (max-width: 640px) {
  .hp-hero-actions    { flex-direction: column; align-items: flex-start; }
  .hp-project-stats   { gap: 20px; }
  .hp-project-actions { flex-direction: column; }
  .hp-blueprint-actions { flex-direction: column; }
  .hp-project-name-fallback { font-size: clamp(30px, 10vw, 48px); letter-spacing: 2px; word-break: break-word; }
  .hp-project-logo img { max-width: 80vw; height: auto; }
  .hp-project-actions .btn-primary,
  .hp-project-actions .btn-outline-primary,
  .hp-project-actions .btn-outline-light,
  .hp-project-actions a,
  .hp-project-actions button { width: 100%; max-width: 100%; box-sizing: border-box; text-align: center; }
}


/* Padded image columns — image sits inset with padding on all sides */
.hp-project-img-col--padded {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: visible; /* override base overflow:hidden so padding area shows */
  position: static;  /* remove relative positioning so badge doesn't interfere */
}
/* Explicit backgrounds so padding shows in correct section colour */
.hp-project--luminaara .hp-project-img-col--padded {
  background: var(--bg);
  padding-left: 5vw;
}
.hp-project--palmera .hp-project-img-col--padded {
  background: #033029;
  padding-right: 5vw;
}
/* Cap Palmera image height on desktop — building shot is portrait/tall */
.hp-project--palmera .hp-project-img-col--padded .hp-project-img-wrap img {
  max-height: 720px;
  object-fit: cover;
  object-position: center top; /* keep top of building visible */
}
/* Image fills its wrapper but no longer fills the full column */
.hp-project-img-col--padded .hp-project-img-wrap {
  width: 100%;
  height: auto;
}
.hp-project-img-col--padded .hp-project-img-wrap img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  display: block;
  border-radius: 2px;
}