/* 
   Dupree Plaza - Modern Style System 
   Aesthetic: Upscale Commercial / Museumcore
*/

:root {
  /* Color Palette */
  --bg-primary: #131110;
  --bg-secondary: #1e1c1a;
  --bg-tertiary: #2a2825;

  --text-primary: #fcfffd;
  --text-secondary: #cdc8c2;
  --text-muted: #8a8178;

  --accent-primary: #c9ad8a; /* Building beige */
  --accent-primary-hover: #b89a78;
  --accent-gold: #c9ad8a;
  --accent-subtle: #c9ad8a;

  --glass-bg: rgba(255, 248, 240, 0.04);
  --glass-border: rgba(255, 248, 240, 0.1);
  
  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 5rem; /* Offset for fixed navbar */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Global grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: var(--spacing-xs);
}

.logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--spacing-xl) 0;
}

/* Components */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: #fff;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-small {
  padding: 0.5rem 1.25rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 173, 138, 0.25);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  background: transparent;
  transition: padding var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
}

nav.scrolled {
  background: rgba(19, 17, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
}

nav.scrolled .logo {
  font-size: 0.95rem;
}

nav.scrolled .nav-links a:not(.btn) {
  font-size: 0.8rem;
}

nav.scrolled .btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.logo,
.nav-links a,
.btn-small {
  transition: font-size var(--transition-normal), padding var(--transition-normal);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  align-self: stretch;
}

.hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-primary);
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 120px
    );
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-card {
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--glass-border);
}

.stat-number, .stat-plus {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-divider {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent-gold);
  margin: 1rem auto;
  opacity: 0.5;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: var(--spacing-lg);
}

.section-header .section-title {
  margin-bottom: 0;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
}

@media (max-width: 768px) {
  .section-header {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-section {
  background-color: #2a292b;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Units Section */
.units-section {
  background-color: var(--bg-primary);
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
}

.unit-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.unit-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.unit-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(201, 173, 138, 0.1);
  color: var(--accent-primary);
  border-radius: 99px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.unit-status.waitlist {
  background-color: rgba(201, 173, 138, 0.1);
  color: var(--accent-gold);
}

.unit-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.unit-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.detail-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.detail-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.waitlist-content {
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  min-height: 140px; /* Align with other card */
  display: flex;
  align-items: center;
}

.waitlist-content p {
  color: var(--text-secondary);
  font-style: italic;
}

/* Location Section */
.location-section {
  background-color: #2a292b;
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location-desc {
  color: var(--text-secondary);
  margin: 1.5rem 0;
}

.mt-4 { margin-top: 1rem; }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-color: var(--bg-tertiary);
  height: 100%;
  min-height: 280px;
}

.google-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* Apply Section */
/* Apply CTA Section */
.apply-cta-section {
  background-color: #d4cbbf;
  position: relative;
  overflow: hidden;
}

.apply-cta-section .apply-cta-eyebrow {
  color: #6c645f;
}

.apply-cta-section h2 {
  color: #1e1c1a;
}

.apply-cta-section .apply-cta-inner p {
  color: #5a5048;
}

.apply-cta-section .cta-gold-line {
  background-color: #6c645f;
}

.apply-cta-section .apply-cta-inner .apply-cta-feature span {
  color: #4a4038;
}

.apply-cta-section .apply-cta-inner .cta-feature-icon {
  color: #6c645f;
}

.apply-cta-section .btn-primary {
  background-color: #2a292b;
  color: #d4cbbf;
}

.apply-cta-section .btn-primary:hover {
  background-color: #1e1c1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.apply-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin: 0 auto 2rem;
}

.apply-cta-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.apply-cta-inner h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.apply-cta-inner p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.apply-cta-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.apply-cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cta-feature-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.form-status.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-status.error {
  background-color: rgba(201, 173, 138, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.site-footer .footer-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-row .logo {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.site-footer .footer-row a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.site-footer .footer-row a:hover {
  color: var(--text-primary);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(30, 28, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background var(--transition-fast);
  z-index: 40;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(42, 40, 37, 0.95);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger container — children animate with delay set by JS */
.stagger-children .fade-in-up {
  transition-delay: 0ms;
}

/* Plaza Facts Row */
.plaza-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.plaza-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
}

.plaza-fact svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.plaza-fact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.plaza-fact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}


/* Location Highlights */
.location-highlights {
  list-style: none;
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.location-highlights li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.location-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* Media Queries */
@media (max-width: 900px) {
  .plaza-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat-card + .stat-card::before {
    left: 20%;
    right: 20%;
    top: 0;
    bottom: auto;
    height: 1px;
    width: 60%;
  }
}

@media (max-width: 768px) {
  /* Container: add horizontal padding so content never hugs the edge */
  .container {
    width: 100%;
    padding: 0 1.25rem;
  }

  /* Sections: reduce vertical breathing room on mobile */
  section {
    padding: 4rem 0;
  }

  /* Nav: show logo, show hamburger, hide desktop links */
  .hidden-mobile {
    display: block; /* show logo on mobile */
  }

  nav {
    padding: 1rem 0;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    z-index: 90;
    gap: 2rem;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.5rem !important;
  }

  /* Plaza Facts */
  .plaza-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Apply CTA */
  .apply-cta-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .apply-cta-feature {
    font-size: 0.875rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.25rem 0;
  }

  .site-footer .footer-row {
    font-size: 0.75rem;
  }

  /* Scroll top mobile */
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}
