/* Atlas Reserve — Editorial Architecture Magazine */

:root {
  --color-black: #111111;
  --color-navy: #163A70;
  --color-navy-dark: #0f2a52;
  --color-gold: #C9A962;
  --color-gold-light: #E8D5A3;
  --color-surface: #FAFAFA;
  --color-border: rgba(17, 17, 17, 0.08);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-black);
}

::selection {
  background-color: rgba(201, 169, 98, 0.2);
  color: var(--color-black);
}

/* Editorial typography */
.editorial-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.editorial-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.editorial-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.65);
}

/* Thin dividers — no glass */
.gold-line {
  width: 64px;
  height: 1px;
  background: var(--color-gold);
}

.section-divider {
  height: 1px;
  background: var(--color-border);
}

.thin-border {
  border: 1px solid var(--color-border);
}

/* Navbar — transparent on white hero, solid on scroll */
#navbar {
  background: transparent;
}

#navbar .nav-link {
  color: var(--color-black);
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

#navbar .nav-link:hover {
  color: var(--color-navy);
}

#navbar .logo-text {
  color: var(--color-black);
}

#navbar .hamburger-line {
  background-color: var(--color-black);
}

.navbar-scrolled {
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

.navbar-scrolled .nav-link {
  color: var(--color-black) !important;
}

.navbar-scrolled .nav-link:hover {
  color: var(--color-navy) !important;
}

.navbar-scrolled .logo-text {
  color: var(--color-black) !important;
}

.navbar-scrolled .hamburger-line {
  background-color: var(--color-black);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Asymmetric hero */
.hero-atlas {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-atlas {
    grid-template-columns: 55% 45%;
  }
}

.hero-atlas__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-atlas__content {
    padding: 0 4rem 0 4rem;
    padding-left: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem));
  }
}

.hero-atlas__title {
  font-size: clamp(3rem, 8vw, 7.5rem);
  max-width: 14ch;
}

.hero-atlas__image-wrap {
  position: relative;
  min-height: 50vh;
}

@media (min-width: 1024px) {
  .hero-atlas__image-wrap {
    min-height: 100vh;
    margin-top: -5rem;
    margin-right: -4rem;
  }
}

.hero-atlas__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 50vh;
}

@media (min-width: 1024px) {
  .hero-atlas__image {
    min-height: 110vh;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Inline search bar — clean lines, no glass */
.hero-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-black);
  margin-top: 3rem;
  max-width: 36rem;
}

.hero-search__field {
  flex: 1 1 auto;
  min-width: 120px;
  border-right: 1px solid var(--color-border);
  padding: 0.875rem 1rem;
}

.hero-search__field:last-of-type {
  border-right: none;
}

.hero-search__field label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
  margin-bottom: 0.25rem;
}

.hero-search__field select,
.hero-search__field input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  color: var(--color-black);
  outline: none;
}

.hero-search__btn {
  flex: 0 0 auto;
  padding: 0 1.75rem;
  background: var(--color-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-search__btn:hover {
  background: var(--color-navy);
}

/* Bento property grid */
.bento-grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .bento-grid .property-card--large {
    grid-row: span 2;
  }
}

.bento-grid .property-card {
  background: #fff;
}

/* Property card — editorial minimal */
.property-card {
  transition: transform 0.5s var(--ease-out-expo);
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-card .property-image {
  transition: transform 0.8s var(--ease-out-expo);
}

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

.property-card--large .property-image-wrap {
  aspect-ratio: 4 / 5;
}

.property-card:not(.property-card--large) .property-image-wrap {
  aspect-ratio: 16 / 10;
}

/* Feature cards — editorial articles */
.feature-card {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  transition: border-color 0.4s ease;
}

.feature-card:hover {
  border-top-color: var(--color-gold);
}

.feature-card .feature-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(17, 17, 17, 0.06);
  transition: color 0.4s ease;
}

.feature-card:hover .feature-number {
  color: rgba(201, 169, 98, 0.35);
}

.feature-icon {
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: translateX(4px);
}

/* Ripple */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Counter */
.counter-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

/* Stats — editorial strip */
.stats-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  border-right: 1px solid var(--color-border);
  padding: 3rem 2rem;
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

/* Carousel */
.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
}

.carousel-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

/* Testimonial slider */
.testimonial-track {
  display: flex;
  transition: transform 0.7s var(--ease-out-expo);
}

.testimonial-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  background: #fff;
  height: 100%;
}

/* Timeline */
.timeline-line {
  background: var(--color-border);
  height: 1px;
}

.timeline-step.active .timeline-icon {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.timeline-step.active .timeline-icon svg {
  color: #fff;
}

.timeline-icon {
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: all 0.5s var(--ease-out-expo);
}

/* Map */
.map-container {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.map-pin {
  animation: pin-bounce 2.5s ease-in-out infinite;
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  transform: translateX(0);
}

.hamburger-line {
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Form */
.form-input {
  border-radius: 0;
  border: 1px solid var(--color-border);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-border);
  border-bottom-color: var(--color-navy);
  box-shadow: none;
  outline: none;
}

/* Page loader */
.page-loader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

/* Buttons — editorial */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-black);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-editorial:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

.btn-solid {
  padding: 1rem 2rem;
  background: var(--color-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-black);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-solid:hover {
  background: transparent;
  color: var(--color-black);
}

.btn-outline {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-black);
}

/* Carousel controls */
.carousel-btn {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  border-color: var(--color-black);
  background: var(--color-black);
  color: #fff;
}

/* Footer */
.footer-atlas {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-atlas a:hover {
  color: var(--color-gold);
}

/* Project card */
.project-card {
  border: 1px solid var(--color-border);
  transition: border-color 0.4s ease;
}

.project-card:hover {
  border-color: var(--color-black);
}

.project-card img {
  transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover img {
  transform: scale(1.03);
}

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

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero-atlas__image {
    clip-path: none;
  }
}
