/* ==========================================================================
   PRAISEVILLE GARDEN ESTATE — PAGE-SPECIFIC STYLES & LAYOUTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION (HOMEPAGE)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(540px, 80vh, 760px);
  display: flex;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 52px;
  overflow: hidden;
  background-color: var(--cathedral);
  color: #FBFAF7;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-still {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 800ms var(--ease);
}

.hero.video-ready .hero-still {
  opacity: 0;
}

.scrim1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 30, 43, 0.72) 0%, rgba(36, 30, 43, 0.45) 50%, rgba(36, 30, 43, 0.85) 100%);
  z-index: 1;
}

.scrim2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(81, 55, 118, 0.4) 0%, transparent 70%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

@media (min-width: 960px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-copy {
    flex: 1 1 58%;
    max-width: 640px;
  }
  .hero-panel {
    flex: 1 1 38%;
    max-width: 440px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(251, 250, 247, 0.12);
  border: 1px solid rgba(251, 250, 247, 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FBFAF7;
  margin-bottom: var(--sp-4);
  backdrop-filter: blur(8px);
}

.badge .dot {
  width: 7px;
  height: 7px;
  background-color: var(--meadow);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--meadow);
}

.hero-copy h1 {
  color: #FBFAF7;
  margin-bottom: var(--sp-3);
}

.hero-copy .lead {
  color: rgba(251, 250, 247, 0.88);
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.stat-panel {
  background: rgba(43, 31, 58, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 250, 247, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-4);
  margin: var(--sp-3) 0;
}

.stat-grid .n {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  color: #FBFAF7;
  line-height: 1;
}

.stat-grid .l {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(251, 250, 247, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0.7;
}

.scroll-cue span {
  display: block;
  width: 20px;
  height: 32px;
  border: 2px solid rgba(251, 250, 247, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-cue span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 6px;
  margin-left: -2px;
  background-color: var(--meadow);
  border-radius: 2px;
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   INNER PAGE HERO
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: 104px;
  padding-bottom: 46px;
  background-color: var(--cathedral);
  color: #FBFAF7;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.page-hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 30, 43, 0.6) 0%, rgba(36, 30, 43, 0.85) 100%);
  z-index: 1;
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.crumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.7);
  margin-bottom: var(--sp-2);
}

.crumb a {
  color: var(--meadow);
}

.crumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  color: #FBFAF7;
  margin-bottom: var(--sp-2);
}

.page-hero .lead {
  color: rgba(251, 250, 247, 0.85);
}

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--fern) 0%, #202D12 100%);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.5vw, 44px) clamp(20px, 4vw, 36px);
  color: #FBFAF7;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 190, 122, 0.25), transparent 70%);
  pointer-events: none;
}

@media (min-width: 880px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-content {
    flex: 1 1 65%;
  }
  .cta-actions {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.cta-band h2 {
  color: #FBFAF7;
  margin-bottom: var(--sp-2);
}

.cta-band p {
  color: rgba(251, 250, 247, 0.85);
  font-size: 15.5px;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   PHASE TIMELINE & GRID
   -------------------------------------------------------------------------- */
.phase-board {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  margin-top: var(--sp-6);
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.phase-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.phase-item:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.pdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.phase-item.wip .pdot {
  background: var(--purple);
}

[data-theme="dark"] .phase-item.wip .pdot {
  background: #A788D4;
}

.phase-item .pn {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.2;
}

.phase-item .ps {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

.phase-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phase-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Architectural Project Card */
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

.proj-media {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.proj-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.proj-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-body h3 {
  font-size: 20px;
  margin-bottom: var(--sp-2);
}

.proj-body .spec {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--sp-3);
}

.proj-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   TEAM & LEADERSHIP (ABOUT PAGE)
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.team-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cathedral);
  color: #FBFAF7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(59, 40, 90, 0.25);
}

.team-info h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: var(--sp-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.faq-q {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  gap: 16px;
  transition: color var(--dur-fast) var(--ease);
}

.faq-q:hover {
  color: var(--green);
}

.faq-icon {
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--green);
  border-radius: 2px;
}

.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease);
}

.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}

.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CONTACT PAGE & MAP
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.25fr;
  }
}

.contact-meta-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
}

.contact-meta-item {
  display: flex;
  gap: 14px;
  margin-bottom: var(--sp-4);
}

.contact-meta-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(94, 125, 52, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-meta-text .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-meta-text .v {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
}

.contact-meta-text .v a:hover {
  color: var(--green);
  text-decoration: underline;
}

.map-container {
  margin-top: var(--sp-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-2);
  height: 340px;
  position: relative;
  background: var(--bg-tint);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
