/* Casa Noble — Warm Mediterranean Premium */

:root {
  --color-cream: #FBF7F0;
  --color-cream-dark: #F3EBD9;
  --color-terracotta: #B8734A;
  --color-terracotta-light: #D4956E;
  --color-terracotta-dark: #9A5E38;
  --color-navy: #163A70;
  --color-navy-dark: #0f2a52;
  --color-gold: #C9A962;
  --color-gold-light: #E8D5A3;
  --color-warm-shadow: rgba(154, 94, 56, 0.12);
  --color-warm-border: rgba(184, 115, 74, 0.15);
  --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;
  background-color: var(--color-cream);
}

::selection {
  background-color: rgba(184, 115, 74, 0.2);
  color: var(--color-navy);
}

/* Warm search card — solid surface, soft shadow (no glass) */
.search-card {
  background: var(--color-cream);
  border: 1px solid var(--color-warm-border);
  box-shadow:
    0 4px 6px -1px rgba(154, 94, 56, 0.06),
    0 20px 50px -12px rgba(154, 94, 56, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.search-card select,
.search-card input[type="text"],
.search-card input[type="number"] {
  background: #fff;
  border: 1px solid rgba(184, 115, 74, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-card select:focus,
.search-card input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 115, 74, 0.12);
  outline: none;
}

/* Organic decorative blobs */
.blob-organic {
  position: absolute;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
}

.blob-organic-1 {
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  background: radial-gradient(circle, rgba(184, 115, 74, 0.35) 0%, rgba(201, 169, 98, 0.15) 70%);
  animation: blob-float 12s ease-in-out infinite;
}

.blob-organic-2 {
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.3) 0%, rgba(184, 115, 74, 0.1) 70%);
  animation: blob-float 15s ease-in-out infinite reverse;
}

.blob-organic-3 {
  border-radius: 50% 50% 45% 55% / 40% 60% 50% 50%;
  background: radial-gradient(circle, rgba(22, 58, 112, 0.12) 0%, rgba(184, 115, 74, 0.08) 70%);
  animation: blob-float 18s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -18px) rotate(3deg); }
  66% { transform: translate(-8px, 10px) rotate(-2deg); }
}

/* Warm hero overlay */
.hero-warm-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 42, 82, 0.72) 0%,
    rgba(154, 94, 56, 0.45) 45%,
    rgba(22, 58, 112, 0.55) 100%
  );
}

/* Navbar scroll state — warm cream surface */
.navbar-scrolled {
  background: rgba(251, 247, 240, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-warm-border);
  box-shadow: 0 4px 24px rgba(154, 94, 56, 0.08);
}

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

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

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

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

/* Terracotta accent line */
.terracotta-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  border-radius: 2px;
}

/* Section separator — warm tone */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 115, 74, 0.2), transparent);
}

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

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

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

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

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

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s 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; }

/* Property card — warm hover */
.property-card {
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  background: #fff;
  border: 1px solid var(--color-warm-border);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px var(--color-warm-shadow);
}

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

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

/* Feature card */
.feature-card {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  background: #fff;
  border: 1px solid var(--color-warm-border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px var(--color-warm-shadow);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  background: rgba(184, 115, 74, 0.12);
}

.feature-icon {
  transition: transform 0.4s var(--ease-spring), background 0.4s ease;
  background: rgba(184, 115, 74, 0.08);
}

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

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  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-variant-numeric: tabular-nums;
}

/* 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%;
  }
}

/* Timeline — terracotta accent */
.timeline-line {
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold), var(--color-terracotta));
  height: 2px;
}

.timeline-step.active .timeline-icon {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: white;
  box-shadow: 0 0 0 4px rgba(184, 115, 74, 0.18);
}

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

/* Map placeholder — warm tones */
.map-container {
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, #E8DFC8 100%);
  position: relative;
  overflow: hidden;
}

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

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

/* 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 focus — terracotta glow */
.form-input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 115, 74, 0.12);
  outline: none;
}

/* Hero parallax */
.hero-bg {
  will-change: transform;
}

/* Page loader */
.page-loader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background: var(--color-cream);
}

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

/* Button hover glows — warm */
.btn-terracotta-glow:hover {
  box-shadow: 0 8px 32px rgba(184, 115, 74, 0.35);
}

.btn-gold-glow:hover {
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.35);
}

.btn-navy-glow:hover {
  box-shadow: 0 8px 32px rgba(22, 58, 112, 0.25);
}

/* Warm surface cards */
.warm-surface {
  background: #fff;
  border: 1px solid var(--color-warm-border);
  box-shadow: 0 4px 20px -4px var(--color-warm-shadow);
}

/* Testimonial warm card */
.testimonial-warm-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 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;
  }

  .blob-organic {
    animation: none;
  }
}
