/* Rare Breeds Academy - Custom styles */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  padding-top: 5rem; /* account for fixed header */
}

/* Navigation */
.nav-link {
  color: #1a1a1a;
  position: relative;
}

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

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

/* Hero slider */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 800ms ease-in-out, transform 6s linear;
  transform: scale(1);
}

.slide.active {
  opacity: 1;
  z-index: 10;
  transform: scale(1.03);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out 300ms, transform 600ms ease-out 300ms;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Slider indicators */
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s, border-color 0.25s;
}

.indicator.active {
  background-color: #C62828;
  border-color: #fff;
  transform: scale(1.2);
}

/* Section headings */
section span.uppercase {
  letter-spacing: 0.1em;
}

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(26, 86, 166, 0.15);
}

/* Mobile nav */
#mobile-nav.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide h1 {
    font-size: 2rem;
  }

  .slide p {
    font-size: 1rem;
  }
}
