:root {
  --primary-color: #c4a488;
  --primary-dark: #a68b6d;
  --primary-light: #d9c4af;
  --secondary-color: #656565;
  --accent-color: #bf8c6f;
  --text-color: #252525;
  --text-muted: #5a5c69;
  --light-color: #f8f9fa;
  --dark-color: #2e384d;
  --focus-color: #4a90d9;
}

html,
body {
  height: 100%;
  line-height: 1.6;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

@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;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
}

/* Push the footer to the bottom */
.main-content {
  flex: 1;
}

.nav-bg {
  position: relative;
}

.nav-bg::before {
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  background-color: #c4a488;
  opacity: 0.15;
  background-size: 14px 14px;
  background-image: repeating-linear-gradient(45deg, #252525 0, #252525 0.5px, #c4a488 0, #c4a488 50%);
  z-index: -1;
}

.navbar {
  position: relative;
  z-index: 1;
}
.navbar.sticky-top {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar .navbar-brand {
  font-weight: bold;
}
.navbar .nav-link {
  transition: color 0.3s ease;
  position: relative;
}
.navbar .nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar .nav-link:hover:after {
  width: 80%;
}

.btn {
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0);
}

.hero-section {
  padding: 5rem 0;
}
.hero-section h1 {
  margin-bottom: 1.5rem;
}
.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.hero-section img {
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}
.hero-section img:hover {
  transform: scale(1.02);
}

.card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.card .card-img-wrapper {
  overflow: hidden;
}
.card .card-img-wrapper img {
  transition: transform 0.5s ease;
}
.card .card-img-wrapper:hover img {
  transform: scale(1.05);
}
.card .card-body {
  padding: 1.5rem;
}
.card .badge {
  padding: 0.5rem 1rem;
  font-weight: normal;
  border-radius: 50px;
}

.contact-card {
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  color: var(--text-color);
}
.section-heading:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 70px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.section-heading.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
  border-radius: 0.75rem !important;
}

.my-9 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

footer {
  background-color: var(--dark-color);
  color: white;
}
footer a {
  transition: opacity 0.3s ease;
}
footer a:hover {
  opacity: 0.8;
}

#puppyCarousel {
  max-height: 700px;
  background-color: #fff;
}
#puppyCarousel .carousel-item img {
  width: 100%;
  height: 700px;
  object-fit: contain;
}
#puppyCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  opacity: 0.7;
  background-color: transparent;
}
#puppyCarousel .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--primary-color);
}
#puppyCarousel .carousel-control-prev-icon,
#puppyCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50%;
  transition: background-color 0.3s ease;
}
#puppyCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#puppyCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
}

.puppy-thumbnails .puppy-thumb {
  cursor: pointer;
  height: 80px;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}
.puppy-thumbnails .puppy-thumb:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.puppy-thumbnails .puppy-thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(196, 164, 136, 0.45);
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 1.5rem 0 !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  .section-heading {
    font-size: 1.5rem;
  }
  .lead {
    font-size: 1rem;
  }
  .my-9 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .p-5 {
    padding: 1rem !important;
  }
  .p-4 {
    padding: 0.75rem !important;
  }
  #puppyCarousel {
    max-height: 400px;
  }
  #puppyCarousel .carousel-item img {
    height: 400px;
  }
  .puppy-thumbnails .puppy-thumb {
    height: 75px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 2rem 0 !important;
    margin-bottom: 2rem !important;
  }
  .hero-section .display-4 {
    font-size: 2rem;
  }
  .section-heading {
    font-size: 1.75rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .my-9 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .p-5 {
    padding: 1.5rem !important;
  }
  .p-4 {
    padding: 1rem !important;
  }
  #puppyCarousel {
    max-height: 500px;
  }
  #puppyCarousel .carousel-item img {
    height: 500px;
  }
  .puppy-thumbnails .puppy-thumb {
    height: 60px;
  }
}
@media print {
  .navbar,
  .hero-section .btn,
  #puppyCarousel,
  .puppy-thumbnails {
    display: none !important;
  }
  .card {
    break-inside: avoid;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
