/*
Theme Name: Aurora
Theme URI: https://homepage.studio
Author: HomePage.Studio
Author URI: https://homepage.studio
Description: Luxury real estate template - Cinematic, sophisticated, innovative
Version: 1.0.0
License: GPL v2 or later
Text Domain: aurora
*/

/* ============================================
   AURORA DESIGN SYSTEM
   ============================================ */

:root {
  /* Primary Palette - Navy Dominant */
  --color-primary: #0A1628;
  --color-primary-light: #1a2744;
  --color-primary-dark: #050d18;
  
  /* Accent - Gold */
  --color-accent: #B5985A;
  --color-accent-light: #c9ab6e;
  --color-accent-dark: #9a7d4a;
  
  /* Neutrals */
  --color-cream: #F5F5F0;
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  
  /* Text */
  --color-text: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-text-muted: #7a7a7a;
  --color-text-white: #FFFFFF;
  --color-text-white-muted: rgba(255, 255, 255, 0.8);
  
  /* Borders */
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.2);
  --color-border-gold: rgba(181, 152, 90, 0.5);
  
  /* Overlays */
  --overlay-dark: rgba(10, 22, 40, 0.6);
  --overlay-darker: rgba(10, 22, 40, 0.85);
  --overlay-gradient: linear-gradient(to bottom, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.8) 100%);
  
  /* Header States */
  --color-header-scrolled: rgba(10, 22, 40, 0.98);
  
  /* Typography Scale */
  --font-heading: 'Italiana', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 60px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  font-size: 1rem;
  line-height: 1.8;
}

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

/* Utility Classes */
.text-gold { color: var(--color-accent); }
.text-white { color: var(--color-text-white); }
.text-muted { color: var(--color-text-muted); }

.bg-navy { background-color: var(--color-primary); }
.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: var(--color-white); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  transition: var(--transition-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: var(--color-header-scrolled);
  backdrop-filter: blur(20px);
  padding: 15px 40px;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-white);
  letter-spacing: 0.1em;
}

.logo span {
  color: var(--color-accent);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 28px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
}

/* ============================================
   SECTION 1: CINEMATIC HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-text-white);
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.hero-headline .accent-line {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--color-accent);
  margin: 24px auto 0;
}

.hero-subhead {
  font-size: 1.125rem;
  color: var(--color-text-white-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

.btn-primary {
  padding: 16px 40px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(181, 152, 90, 0.3);
}

.btn-secondary {
  padding: 16px 40px;
  background: transparent;
  color: var(--color-text-white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-white);
}

/* Floating Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 60px;
  padding: 30px 60px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.1s;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-white-muted);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.3s;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-white-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-stats {
    gap: 30px;
    padding: 20px 30px;
    bottom: 80px;
  }
  
  .stat-item:not(:last-child)::after {
    right: -15px;
    height: 30px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px 40px;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

/* ============================================
   SECTION 2: LEGACY/STORY
   ============================================ */

.story-section {
  padding: var(--section-padding) 40px;
  background: var(--color-white);
  position: relative;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.story-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.story-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.story-text {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.story-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
  margin-top: 32px;
}

.story-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  font-style: italic;
}

.story-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: normal;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-image::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -30px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-accent);
  z-index: -1;
}

/* Responsive Story */
@media (max-width: 968px) {
  .story-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .story-image::before {
    display: none;
  }
}

/* ============================================
   SECTION 3: PARALLAX BREAK
   ============================================ */

.parallax-section {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.7);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
}

.parallax-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-text-white);
  margin-bottom: 16px;
}

.parallax-text {
  font-size: 1.125rem;
  color: var(--color-text-white-muted);
}

/* ============================================
   SECTION 4: SERVICES GRID
   ============================================ */

.services-section {
  padding: var(--section-padding) 40px;
  background: var(--color-cream);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.section-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtext {
  color: var(--color-text-light);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 8px;
  opacity: 0.5;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.service-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Services */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   SECTION 5: FEATURED PROPERTIES
   ============================================ */

.properties-section {
  padding: var(--section-padding) 40px;
  background: var(--color-primary);
}

.properties-section .section-headline {
  color: var(--color-text-white);
}

.properties-section .section-subtext {
  color: var(--color-text-white-muted);
}

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

.property-card {
  background: var(--color-primary-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-content {
  padding: 24px;
}

.property-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.property-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.property-location {
  font-size: 0.875rem;
  color: var(--color-text-white-muted);
  margin-bottom: 16px;
}

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

/* Responsive Properties */
@media (max-width: 968px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   SECTION 6: TRUST/LOGOS
   ============================================ */

.trust-section {
  padding: 80px 40px;
  background: var(--color-cream);
  text-align: center;
}

.trust-headline {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.logos-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-light);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
}

/* ============================================
   SECTION 7: MARKETS/MAP
   ============================================ */

.markets-section {
  padding: var(--section-padding) 40px;
  background: var(--color-primary);
}

.markets-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.markets-content .section-headline {
  color: var(--color-text-white);
  margin-bottom: 40px;
}

.markets-list {
  list-style: none;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.market-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.market-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-white);
  margin-bottom: 4px;
}

.market-info p {
  font-size: 0.875rem;
  color: var(--color-text-white-muted);
}

.markets-map {
  background: var(--color-primary-light);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder {
  text-align: center;
  color: var(--color-text-white-muted);
}

.map-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--color-accent);
  margin-bottom: 16px;
}

/* Responsive Markets */
@media (max-width: 968px) {
  .markets-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ============================================
   SECTION 8: CINEMATIC CTA
   ============================================ */

.cta-section {
  position: relative;
  padding: var(--section-padding) 40px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.8);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-text-white);
  margin-bottom: 24px;
}

.cta-text {
  font-size: 1.125rem;
  color: var(--color-text-white-muted);
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 20px 48px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(181, 152, 90, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 60px 40px;
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-white);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-white-muted);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }

/* Progressive Blur Effect */
.progressive-blur {
  position: relative;
}

.progressive-blur::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--color-primary) 0%, transparent 100%);
  pointer-events: none;
}

/* Noise Texture for Depth */
.noise-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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");
  opacity: 0.03;
  pointer-events: none;
}

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