/* Landing page styles for Pierrefonds phases */
:root {
  --bg-dark: #08101a;
  --bg-soft: rgba(255,255,255,0.92);
  --accent: #ff7b3d;
  --accent-soft: rgba(255,123,61,0.12);
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.78);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  background: #070c12;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-light);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  position: relative;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,28,.18) 0%, rgba(8,14,20,.82) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 48px));
  text-align: left;
  padding: 80px 0;
}

/* Hero overlay: transparent so slides are visible */
.hero-overlay {
  background: transparent;
  border-radius: 0;
  padding: 56px 24px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

.phase-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero-content p {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.cta-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
}

.cta-group .btn {
  min-width: 290px;
  flex: 1;
  white-space: nowrap;
}

.btn-primary {
  background: #47b4b7;
  color: #091014;
}

.btn-primary:hover {
  background: #161d2d;
  color: #ffffff;
}

.btn-secondary {
  background: #6b6361;
  color: var(--text-light);
  border-color: rgba(255,255,255,0.16);
}

.btn-secondary:hover {
  background: #161d2d;
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Arrow shown on hover inside buttons */
.btn .btn-arrow {
  margin-left: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: inline-block;
}

.btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Fallback: if fal class isn't available, show a simple arrow using pseudo-element */
.btn .btn-arrow:empty::before {
  content: '→';
  display: inline-block;
  font-weight: 700;
}

/* Tag badges inside buttons */
.btn-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

.btn-tag.sold {
  color: #ff3b3b;
  background: rgba(255,59,59,0.04);
  border: 1px solid rgba(255,59,59,0.12);
}

.btn-tag.sale {
  color: #29b84a;
  background: rgba(41,184,74,0.04);
  border: 1px solid rgba(41,184,74,0.12);
  /* flashing animation */
  animation: tag-pulse 1.2s ease-in-out infinite;
}

@keyframes tag-pulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(41,184,74,0.0); }
  50% { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 18px rgba(41,184,74,0.12); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(41,184,74,0.0); }
}

/* Ensure buttons are full width on small screens for better UX */
@media (max-width: 680px) {
  .cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .btn-tag { margin-bottom: 6px; }
  .hero-overlay { padding: 36px 16px; }
}

.status-note {
  max-width: 560px;
  padding: 20px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.section-preview {
  position: relative;
  padding: 64px 24px 96px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06));
}

.preview-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.preview-card {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.72) 100%);
}

.preview-card:hover {
  transform: translateY(-6px);
}

.preview-card-content {
  position: relative;
  z-index: 2;
}

.preview-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.preview-card p {
  max-width: 18rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
}

.preview-card.hover-link {
  cursor: pointer;
}

.preview-card.hover-link .hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: grid;
  place-items: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
}

.preview-card.hover-link:hover .hover-overlay {
  opacity: 1;
  background: rgba(0,0,0,0.42);
}

.preview-card.hover-link .hover-overlay span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 960px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 4.4rem);
  }
}

@media (max-width: 680px) {
  .hero-overlay {
    width: calc(100% - 32px);
    padding: 48px 0;
  }

  .btn {
    min-width: auto;
    width: 100%;
  }

  .phase-badge {
    top: 16px;
    right: 16px;
  }
}
