/* =============================================
   KENNEL TAPIARAS – Dog profile styles
   dogs.css – loaded on vara-hundar.html
   ============================================= */

/* ---------- DOG SECTION ---------- */
.dog-section {
  padding: 5rem 1.5rem;
  scroll-margin-top: 80px;
}
.spets-section {
  background: var(--clr-cream);
}
.lapphund-section {
  background: #f4efe6;
}

.dog-section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 4rem;
  align-items: center;
}

.dog-section-reverse {
  grid-template-columns: 1fr 460px;
}

/* ---------- PHOTO FRAME ---------- */
.dog-photo-col {
  display: flex;
  justify-content: center;
}

.dog-photo-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background: var(--clr-sand);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dog-photo-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.spets-frame {
  border: 4px solid #d48b48;
}

.lapphund-frame {
  border: 4px solid var(--clr-moss);
}

.dog-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
  aspect-ratio: 2 / 3;
}

/* ---------- INFO COLUMN ---------- */
.dog-info-col {
  display: flex;
  flex-direction: column;
}

.dog-ras-badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.spets-badge {
  background: #ecd5bf;
  color: #8c4e16;
}
.lapphund-badge {
  background: #d8e2dc;
  color: #2d5a3c;
}

.dog-name {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--clr-bark);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.dog-regnr-line {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-earth);
  margin-bottom: 1.5rem;
}

/* ---------- FACT CHIPS ---------- */
.dog-fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fact-chip {
  background: var(--clr-white);
  border: 1px solid var(--clr-sand);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.fact-chip span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-muted);
}

.fact-chip strong {
  font-size: 0.95rem;
  color: var(--clr-bark);
}

/* ---------- TEXT DETAILS ---------- */
.dog-subtitle {
  font-family: var(--ff-heading);
  font-size: 1.45rem;
  color: var(--clr-bark);
  margin-bottom: 0.75rem;
}

.dog-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

/* ---------- TRAITS ROW ---------- */
.dog-traits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem 0;
}

.dog-traits-row .trait-tag {
  background: var(--clr-white);
  border: 1px solid var(--clr-sand);
  color: var(--clr-bark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

/* ---------- HEALTH BADGES ---------- */
.dog-health-row {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--clr-sand);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.health-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.health-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.health-badge.ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

/* ---------- CTA BUTTON ---------- */
.dog-cta {
  align-self: flex-start;
  padding: 0.85rem 2.2rem;
}

/* ---------- DIVIDER ---------- */
.dog-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  background: var(--clr-cream);
}

.dog-divider::before,
.dog-divider::after {
  content: '';
  flex: 1;
  max-width: 250px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-sage));
  margin: 0 1.5rem;
}

.dog-divider::after {
  background: linear-gradient(to left, transparent, var(--clr-sage));
}

.dog-divider-rune {
  font-size: 1.8rem;
  color: var(--clr-forest);
  opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .dog-section-inner,
  .dog-section-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .dog-photo-frame {
    max-width: 380px;
  }
  
  .dog-section-reverse .dog-photo-col {
    order: -1; /* Image always on top on mobile/tablet */
  }
}

@media (max-width: 560px) {
  .dog-section {
    padding: 3.5rem 1rem;
  }
  .dog-fact-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  .dog-photo-frame {
    max-width: 100%;
  }
}
