/* ── Custom Properties ── */
:root {
  --burgundy: #7B2D3B;
  --burgundy-light: #F49AAD;
  --blush: #e8a0a0;
  --sand: #e0a850;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ── Geometric Background Shapes ── */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 154, 173, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  bottom: 5%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 45, 59, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-square-1 {
  top: 30%;
  right: 5%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(244, 154, 173, 0.3);
  border-radius: 16px;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
  bottom: 20%;
  left: 5%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(123, 45, 59, 0.15);
  border-radius: 12px;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle {
  top: 60%;
  right: 15%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(224, 168, 80, 0.15);
  animation: float-slow 6s ease-in-out infinite;
}

.geo-dot-group {
  top: 15%;
  left: 10%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0.4;
}

.geo-dot-group span {
  width: 6px;
  height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
  opacity: 0.3;
}

/* ── Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

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

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

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

@keyframes slide-up-delay-2 {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in 0.8s ease forwards; }
.animate-slide-up { animation: slide-up 0.8s ease forwards; }
.animate-slide-up-delay { animation: slide-up 0.8s ease 0.2s forwards; opacity: 0; }
.animate-slide-up-delay-2 { animation: slide-up 0.8s ease 0.4s forwards; opacity: 0; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Hero Animations ── */
.hero-element {
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.3s; }
.hero-element:nth-child(3) { animation-delay: 0.5s; }
.hero-element:nth-child(4) { animation-delay: 0.7s; }

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--burgundy), var(--blush));
  transition: height 0.5s ease;
  border-radius: 0 0 4px 0;
}

.service-card:hover::before {
  height: 100%;
}

/* ── Property Cards ── */
.property-card {
  cursor: pointer;
}

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Navbar Transition ── */
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ── Menu Lines Animation ── */
.menu-line {
  display: block;
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
}

/* ── Back to Top ── */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#backToTop:not(.visible) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

/* ── Form Focus States ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .geo-circle-1 { width: 300px; height: 300px; }
  .geo-circle-2 { width: 200px; height: 200px; }
  .geo-square-1 { width: 50px; height: 50px; }
  .geo-square-2 { width: 40px; height: 40px; }
  .geo-triangle { display: none; }
}

@media (max-width: 480px) {
  .geo-circle-1 { display: none; }
  .geo-circle-2 { display: none; }
}
