/* --- SERVICES PAGE SPECIFIC STYLES --- */

.services-hero {
  position: relative;
  background-image: url("../images/hero3.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: calc(100vh - 93px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 93px;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--rgba-darker-teal-8),
    var(--rgba-primary-3)
  );
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.services-hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 4px 10px var(--rgba-black-5);
}

.services-hero-content p {
  font-size: 1.2rem;
  color: var(--rgba-white-9);
  line-height: 1.8;
}

/* --- PREMIUM PRICING CATALOG --- */
.pricing-catalog {
  background: var(--bg-main);
  padding: 80px 5%;
}

.pricing-list {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  transition: var(--transition);
  border: 1px solid var(--rgba-primary-1);
}

.pricing-card:last-child {
  margin-bottom: 0;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--rgba-primary-3);
}

.pricing-img {
  flex: 0 0 350px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.pricing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-card:hover .pricing-img img {
  transform: scale(1.05);
}

.pricing-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--rgba-primary-3);
  padding-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-title-group h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 5px;
  word-break: break-word;
}

.pricing-title-group {
  flex: 1;
  min-width: 200px;
}

.pricing-badge {
  background: linear-gradient(135deg, var(--primary-light), var(--rgba-primary-2));
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--rgba-primary-3);
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 10px var(--rgba-primary-1);
  flex-shrink: 0;
}

.pricing-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.pricing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
}

.pricing-feature i {
  color: var(--primary-color);
}

.pricing-content .btn {
  display: inline-block;
  width: auto;
}

.pricing-content .btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-dark);
}

.pricing-content .btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--rgba-white-9);
}

.cta-banner .btn {
  background: var(--text-main);
  color: var(--white);
  border: none;
}

.cta-banner .btn:hover {
  background: var(--white);
  color: var(--text-main);
}

/* --- BREED PRICING LIST --- */
.pet-sale-card .pricing-content {
  padding: 35px 40px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 4px;
}

.pricing-img-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rgba-darker-teal-85);
  backdrop-filter: blur(10px);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--rgba-primary-4);
  letter-spacing: 0.5px;
}

/* Pulse animation on 'See Pricing' badge */
@keyframes pulseBadge {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--rgba-primary-4);
  }

  50% {
    box-shadow: 0 0 0 8px var(--rgba-primary-0);
  }
}

.pulse-badge {
  animation: pulseBadge 2.5s ease-in-out infinite;
}

/* Breed list wrapper */
.breed-pricing-wrapper {
  background: linear-gradient(135deg, var(--bg-alt), var(--rgba-primary-05));
  border: 1px solid var(--rgba-primary-15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.breed-pricing-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-pricing-label i {
  color: var(--primary-color);
}

/* Grid of breed cards */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.breed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rgba-primary-1);
  transition: all 0.3s ease;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.breed-item:hover {
  border-color: var(--primary-color);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

/* Hidden breeds — collapsed by default */
.breed-hidden {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

/* When revealed */
.breed-hidden.breed-visible {
  display: flex;
  animation: breedReveal 0.4s ease forwards;
}

@keyframes breedReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Premium breed highlight */
.breed-item.breed-premium {
  background: linear-gradient(
    135deg,
    var(--bg-service-start),
    var(--primary-light)
  );
  border-color: var(--rgba-primary-35);
}

.breed-item.breed-premium .breed-name i {
  color: var(--primary-color);
}

.breed-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.breed-name i {
  color: var(--text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.breed-name br {
  display: none;
}

.breed-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* Toggle Button */
.breed-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 24px;
  background: var(--white);
  border: 1.5px dashed var(--rgba-primary-5);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.breed-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  border-style: solid;
  color: var(--primary-dark);
}

.breed-toggle-btn i {
  transition: transform 0.4s ease;
  color: var(--primary-color);
}

/* ============================================
   RESPONSIVE FIXES - ENHANCED SPACING
   ============================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .pricing-img {
    flex: 0 0 280px;
    min-height: 220px;
  }

  .pricing-content {
    padding: 30px 28px;
  }

  .pricing-title-group h3 {
    font-size: 1.7rem;
  }

  .pricing-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
}

@media (max-width: 992px) {
  .pricing-card {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .pricing-img {
    flex: 0 0 280px;
    min-height: 220px;
    width: 100%;
  }

  .pricing-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .pricing-content {
    padding: 30px 28px;
  }

  .pricing-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .pricing-title-group {
    min-width: unset;
  }

  .pricing-title-group h3 {
    font-size: 1.6rem;
  }

  .pricing-badge {
    margin-left: 0;
    white-space: normal;
    text-align: center;
  }

  .breed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .breed-name br {
    display: none;
  }
}

@media (max-width: 768px) {
  /* --- HERO SPACING FIX --- */
  .services-hero {
    min-height: 480px;
    height: 65vh;
    margin-top: 75px; /* Increased spacing from navbar */
    background-attachment: scroll;
    padding-top: 20px; /* Extra top padding */
  }

  .services-hero-content {
    padding: 30px 24px 20px; /* More top padding */
    margin-top: 20px; /* Additional spacing from top */
  }

  .services-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 18px;
  }

  .services-hero-content p {
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 10px;
  }

  .services-hero-content .hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px !important;
  }

  .services-hero-content .hero-buttons .btn {
    padding: 12px 32px;
    font-size: 0.95rem;
  }

  /* Pricing Section */
  .pricing-catalog {
    padding: 60px 4%;
  }

  .pricing-card {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .pricing-img {
    flex: 0 0 240px;
    min-height: 200px;
    width: 100%;
  }

  .pricing-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .pricing-content {
    padding: 28px 24px;
  }

  .pricing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .pricing-title-group h3 {
    font-size: 1.5rem;
  }

  .pricing-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
    white-space: normal;
    word-break: break-word;
  }

  .pricing-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
  }

  .pricing-features {
    gap: 10px;
    margin-bottom: 20px;
  }

  .pricing-feature {
    font-size: 0.8rem;
    padding: 6px 14px;
    white-space: nowrap;
  }

  .pricing-content .btn {
    font-size: 0.9rem;
    padding: 10px 26px;
  }

  .pricing-img-badge {
    font-size: 0.75rem;
    padding: 5px 14px;
    bottom: 12px;
  }

  /* Breed section */
  .pet-sale-card .pricing-content {
    padding: 24px 22px;
  }

  .breed-pricing-wrapper {
    padding: 16px 14px;
    overflow: hidden;
  }

  .breed-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .breed-item {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
  }

  .breed-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }

  .breed-name br {
    display: none;
  }

  .breed-price {
    font-size: 0.75rem;
    padding: 3px 10px;
    flex-shrink: 0;
  }

  .breed-toggle-btn {
    font-size: 0.8rem;
    padding: 10px 18px;
    gap: 8px;
  }

  .cta-banner {
    padding: 60px 20px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* --- HERO SPACING FIX - MOBILE --- */
  .services-hero {
    min-height: 400px;
    height: 60vh;
    margin-top: 65px; /* More spacing from navbar */
    background-attachment: scroll;
    padding-top: 25px;
  }

  .services-hero-content {
    padding: 35px 18px 20px;
    margin-top: 25px; /* Extra spacing from top */
  }

  .services-hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .services-hero-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 0 8px;
    margin-bottom: 8px;
  }

  .services-hero-content .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px !important;
    width: 100%;
  }

  .services-hero-content .hero-buttons .btn {
    width: 85%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  /* Pricing Section */
  .pricing-catalog {
    padding: 40px 3%;
  }

  .pricing-card {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .pricing-img {
    flex: 0 0 180px;
    min-height: 160px;
    width: 100%;
  }

  .pricing-content {
    padding: 20px 18px;
  }

  .pricing-title-group h3 {
    font-size: 1.2rem;
  }

  .pricing-badge {
    font-size: 0.7rem;
    padding: 4px 14px;
    white-space: normal;
    word-break: break-word;
  }

  .pricing-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .pricing-features {
    gap: 8px;
    margin-bottom: 16px;
  }

  .pricing-feature {
    font-size: 0.7rem;
    padding: 5px 12px;
    white-space: nowrap;
  }

  .pricing-content .btn {
    font-size: 0.8rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .pricing-img-badge {
    font-size: 0.65rem;
    padding: 4px 14px;
    bottom: 10px;
    white-space: nowrap;
  }

  /* Breed section - mobile */
  .pet-sale-card .pricing-content {
    padding: 18px 16px;
  }

  .breed-pricing-wrapper {
    padding: 14px 12px;
    overflow: hidden;
  }

  .breed-pricing-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  .breed-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .breed-item {
    padding: 8px 12px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .breed-name {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }

  .breed-name i {
    font-size: 0.65rem;
  }

  .breed-price {
    font-size: 0.7rem;
    padding: 2px 10px;
    flex-shrink: 0;
  }

  .breed-toggle-btn {
    font-size: 0.75rem;
    padding: 10px 14px;
    gap: 8px;
    margin-top: 12px;
  }

  .cta-banner {
    padding: 45px 16px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 0.9rem;
  }

  .cta-banner .btn {
    font-size: 0.85rem;
    padding: 12px 28px;
  }

  .breed-name br {
    display: none;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .services-hero {
    min-height: 350px;
    height: 55vh;
    margin-top: 60px;
    padding-top: 20px;
  }

  .services-hero-content {
    padding: 30px 14px 16px;
    margin-top: 20px;
  }

  .services-hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .services-hero-content p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .services-hero-content .hero-buttons {
    margin-top: 22px !important;
    gap: 10px;
  }

  .services-hero-content .hero-buttons .btn {
    width: 92%;
    padding: 12px 18px;
    font-size: 0.8rem;
  }

  .pricing-content {
    padding: 16px 14px;
  }

  .pricing-title-group h3 {
    font-size: 1.1rem;
  }

  .pricing-badge {
    font-size: 0.6rem;
    padding: 3px 10px;
  }

  .pricing-desc {
    font-size: 0.78rem;
  }

  .pricing-feature {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .breed-item {
    padding: 6px 10px;
  }

  .breed-name {
    font-size: 0.7rem;
  }

  .breed-price {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
}
