/* Custom styles for Colorado Home Leasing */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #7B2D3B;
  color: #F5E6E0;
}

/* Hero content animation */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7B2D3B;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: #7B2D3B;
}

/* Section headings */
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #4a1920;
}

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

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #7B2D3B;
  transition: width 0.4s ease;
}

.service-card:hover::after {
  width: 100%;
}

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

/* Process steps */
.process-step:hover .service-icon-wrap {
  transform: scale(1.05);
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  color: #fce4e8;
  line-height: 1;
  pointer-events: none;
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(250, 249, 247, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar-transparent {
  background: transparent;
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

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

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

/* Back to top button */
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Decorative grid pattern */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(123, 45, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 45, 59, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf9f7;
}

::-webkit-scrollbar-thumb {
  background: #c9bba5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.75rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .about-images {
    height: 350px !important;
  }
}
