/* ==========================================================================
   FLOPYS PROPIEDADES - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Elegant, Minimalist, Formal, Luxury Real Estate
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@200;300;400;500;600&display=swap');

/* Design Tokens (CSS Variables) */
:root {
  /* Colors */
  --color-bg-pure: #ffffff;
  --color-bg-soft: #fcfbfa;
  --color-bg-card: #f9f8f6;
  --color-text-primary: #111111;
  --color-text-muted: #555555;
  --color-text-light: #888888;
  --color-gold: #bfa37a;
  --color-gold-dark: #9e825b;
  --color-gold-light: rgba(191, 163, 122, 0.15);
  --color-gold-border: rgba(191, 163, 122, 0.3);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;

  /* Spacing */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-pure);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Custom Selection & Scrollbar */
::selection {
  background-color: var(--color-gold-light);
  color: var(--color-text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-pure);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Common Typography & Layout Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--color-gold-border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  transition: var(--transition-smooth);
}

.header--scrolled .nav {
  height: 80px;
}

.nav__logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__logo {
  height: 75px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header--scrolled .nav__logo {
  height: 63px;
}

.nav__list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

@media (max-width: 768px) {
  .nav__list {
    display: none; /* Keep it minimal on mobile */
  }
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  border: 1px solid var(--color-text-primary);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav__cta:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg-pure);
  border-color: var(--color-text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 60px;
  background-color: var(--color-bg-pure);
  position: relative;
}

.hero__background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(191, 163, 122, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 163, 122, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Elegant gold tag above the main heading */
.hero__badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

.hero__title span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

/* Video Showcase Container */
.hero__video-wrapper {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: var(--transition-smooth);
}

.hero__video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(191, 163, 122, 0.12);
  border-color: var(--color-gold);
}

/* Minimal decorative corners to represent high-end real estate */
.hero__video-wrapper::before,
.hero__video-wrapper::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid var(--color-gold);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.hero__video-wrapper::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.hero__video-wrapper::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coming Soon Text */
.hero__status {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

@media (max-width: 768px) {
  .hero__status {
    font-size: 1.4rem;
  }
}

.hero__substatus {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Line separator */
.hero__divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0.5rem auto 2.5rem;
  opacity: 0;
  transform: scaleX(0);
  animation: scaleInX 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}


/* ==========================================================================
   INSTAGRAM / CONNECT SECTION
   ========================================================================== */
.social-section {
  width: 100%;
  max-width: 600px;
  background-color: var(--color-bg-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
  transition: var(--transition-smooth);
}

.social-section:hover {
  border-color: var(--color-gold-border);
  box-shadow: 0 15px 40px rgba(191, 163, 122, 0.06);
}

.social-section__title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-pure);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 1.1rem 1.4rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: var(--color-gold-border);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(191, 163, 122, 0.05);
}

.contact-item__icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.contact-item:hover .contact-item__icon-wrapper {
  color: var(--color-gold);
  border-color: var(--color-gold-border);
  background-color: var(--color-bg-pure);
}

.contact-item__details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.contact-item__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: var(--transition-fast);
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
}

.contact-item__value:hover {
  color: var(--color-gold);
}

.contact-item__emails {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-item__separator {
  color: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
}

.contact-item__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.contact-item:hover .contact-item__action {
  color: var(--color-gold);
  background-color: var(--color-gold-light);
  transform: translateX(3px);
}

.contact-item__value--highlight {
  font-weight: 600;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 480px) {
  .contact-item__emails {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .contact-item__separator {
    display: none;
  }
  .contact-item {
    padding: 0.9rem 1.1rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  background-color: var(--color-bg-pure);
  text-align: center;
  z-index: 2;
  margin-top: auto;
}

.footer__text {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__text span {
  color: var(--color-gold);
}


/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInX {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Media Queries for fine tuning */
@media (max-height: 800px) {
  .hero {
    padding-top: 120px;
  }
  .hero__video-wrapper {
    margin-bottom: 2rem;
    max-width: 460px;
  }
  .social-section {
    padding: 1.8rem;
  }
}
