/* Aurora Property — shared styles & animations */
:root {
  --bg-deep: #0a0e17;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --accent-glow: rgba(201, 169, 98, 0.35);
  --gradient-hero: linear-gradient(
    135deg,
    #0a0e17 0%,
    #121a2e 40%,
    #1a1428 70%,
    #0d1520 100%
  );
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: #e4d4a8;
}

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

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--gradient-hero);
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float-orb 18s ease-in-out infinite;
}

.ambient__orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: radial-gradient(circle, #3d4f7c 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.ambient__orb--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, #5c3d6b 0%, transparent 70%);
  bottom: 10%;
  left: -8%;
  animation-delay: -6s;
}

.ambient__orb--3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  background: radial-gradient(circle, #2d4a3e 0%, transparent 70%);
  top: 45%;
  left: 35%;
  animation-delay: -12s;
  opacity: 0.3;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, -3%) scale(1.05);
  }
  66% {
    transform: translate(-3%, 4%) scale(0.98);
  }
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--accent);
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 24px 2px var(--accent-glow);
  }
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #a88b4a 100%);
  color: var(--bg-deep) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 169, 98, 0.35);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    background: rgba(10, 14, 23, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__cta {
    margin-left: 0;
    text-align: center;
  }

  .burger {
    display: flex;
  }
}

/* Main */
main {
  padding-top: var(--header-h);
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.section__label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section__lead {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.is-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;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

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

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fade-in-down 1s var(--ease-out) both;
}

.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  animation: line-grow 1.2s var(--ease-out) 0.3s both;
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-12deg);
  animation: word-in 0.9s var(--ease-out) forwards;
}

.hero__title .word:nth-child(1) {
  animation-delay: 0.15s;
}

.hero__title .word:nth-child(2) {
  animation-delay: 0.28s;
}

.hero__title .word:nth-child(3) {
  animation-delay: 0.41s;
}

.hero__title .word:nth-child(4) {
  animation-delay: 0.54s;
}

.hero__title .word:nth-child(5) {
  animation-delay: 0.67s;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 0%, var(--accent) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0 0 2rem;
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 0.8s both;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a88b4a 100%);
  color: var(--bg-deep);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201, 169, 98, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero__visual {
  position: relative;
  perspective: 1200px;
}

.hero__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  animation: card-enter 1.2s var(--ease-out) 0.4s both,
    card-float 8s ease-in-out 2s infinite;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: rotateY(-18deg) translateX(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: rotateY(0) translateX(0) scale(1);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.hero__card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero__card:hover img {
  transform: scale(1.06);
}

.hero__card-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slide-up-badge 0.8s var(--ease-out) 1.2s both;
}

@keyframes slide-up-badge {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.hero__card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat__num[data-count] {
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Property cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.property-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.property-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 14, 23, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.property-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.property-card:hover .property-card__img {
  transform: scale(1.08);
}

.property-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.25rem 1.35rem 1.5rem;
}

.property-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.property-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.property-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.property-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}

/* About page */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.split__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.split__visual:hover img {
  transform: scale(1.04);
}

.split__accent {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  bottom: -20px;
  right: -20px;
  animation: rotate-slow 24s linear infinite;
  opacity: 0.5;
}

@keyframes rotate-slow {
  to {
    transform: rotate(360deg);
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.value-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  transition: transform 0.4s var(--ease-out), background 0.35s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  background: rgba(201, 169, 98, 0.06);
}

.value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.25rem;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

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

.contact-info {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

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

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-form {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(18, 24, 38, 0.5);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer__brand {
  max-width: 280px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.footer__links {
  display: flex;
  gap: 2.5rem;
}

.footer__col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer__col a {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.page-hero .section__title {
  max-width: none;
  margin-inline: auto;
}

.page-hero .section__lead {
  margin-inline: auto;
}

/* Magnetic subtle cursor glow — optional enhancement via JS class */
.magnetic-wrap {
  position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
