/* ============================================
   Tracey Bartlett — Real Estate Website
   Premium Dark Luxury · Forest Green + Gold
   ============================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: #FAF8F4;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050d08;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.4);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideRight {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 48px;
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

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

/* ---------- Hero Elements ---------- */
.hero-elem {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.25s; }
.hero-elem:nth-child(3) { animation-delay: 0.4s; }
.hero-elem:nth-child(4) { animation-delay: 0.55s; }
.hero-elem:nth-child(5) { animation-delay: 0.7s; }

.hero-img {
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}

.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

/* ---------- About Section ---------- */
.about-img {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-img.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Services ---------- */
.services-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.services-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Areas ---------- */
.areas-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.areas-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.area-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.area-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.area-card:nth-child(1) { transition-delay: 0s; }
.area-card:nth-child(2) { transition-delay: 0.1s; }
.area-card:nth-child(3) { transition-delay: 0.2s; }
.area-card:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Testimonials ---------- */
.testimonials-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.testimonials-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonial-card:nth-child(2) { transition-delay: 0.12s; }
.testimonial-card:nth-child(3) { transition-delay: 0.24s; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.cta-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Contact ---------- */
.contact-info {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.7s ease;
}
.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-wrap {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.7s ease 0.1s;
}
.contact-form-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Hover Effects ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.5);
  outline-offset: 2px;
}

/* ---------- Logo Animation ---------- */
.logo-path {
  transition: stroke 0.3s ease;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-elem {
    animation-duration: 0.6s;
  }
  .hero-img {
    animation-delay: 0.2s;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-card,
  .testimonial-card {
    transition-delay: calc(var(--i, 0) * 0.1s);
  }
}

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

/* ---------- Print ---------- */
@media print {
  #site-header, #back-to-top, #mobile-menu {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
