/* =========================
   SIDEBAR CONTAINER
========================= */

.sidebar {
  width: 260px;
  height: 100vh;

  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;

  padding: 20px;

  overflow: hidden;

  background: linear-gradient(
    160deg,
    rgba(31, 63, 110, 0.98) 0%,
    rgba(43, 79, 134, 0.98) 50%,
    rgba(49, 90, 153, 0.98) 100%
  );

  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

/* =========================
   SCROLL AREA
========================= */

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding-right: 5px;
}

/* scrollbar styling */
.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

/* =========================
   LINKS + ACCORDION BUTTONS
========================= */

.sidebar a,
.accordion {
  color: white;
  background: none;
  border: none;

  text-align: left;
  padding: 10px;

  cursor: pointer;

  text-decoration: none;
  font-size: 16px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.2;

  border-radius: 8px;

  transition: background 0.2s ease;
}

.sidebar a:hover,
.accordion:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* active link state */
.sidebar a.active {
  background: #FFA500;
  color: #111;
  font-weight: bold;
}

/* =========================
   ACCORDION PANEL (DROPDOWNS)
========================= */

.panel {
  display: none;
  flex-direction: column;
  padding-left: 12px;
}

.panel.open {
  display: flex;
}

.panel a {
  font-size: 14px;
  opacity: 0.9;
  padding: 6px 10px;
}

/* =========================
   MOBILE HEADER
========================= */

.mobile-header {
  display: none;
}

/* =========================
   MOBILE BEHAVIOR
========================= */

@media (max-width: 768px) {

  .mobile-header {
    display: block;
    background: #111;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 2000;
  }

  #menu-toggle {
    background: #FFA500;
    border: none;
    padding: 12px 18px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 80%;
    z-index: 2000;
    transition: transform 0.3s ease;
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

/* =========================
   GLOBAL RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: white;

  background: linear-gradient(135deg, #315a99 0%, #1f3f73 100%);
  overflow-x: hidden;
  position: relative;
}

/* glow overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 55% 40%, rgba(255,165,0,0.22), transparent 60%),
    radial-gradient(circle at 50% 70%, rgba(255,165,0,0.10), transparent 65%);
}

/* =========================
   MAIN LAYOUT
========================= */

.main {
  margin-left: 260px;
  padding: 60px 30px 30px; /* extra top space fixes “cut off top” */
  position: relative;
  z-index: 1;
}

.content-section {
  background: rgba(0,0,0,0.18);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   TYPOGRAPHY
========================= */

h1 { font-size: 42px; margin-bottom: 10px; }
h2 { font-size: 28px; margin-bottom: 15px; }
p { line-height: 1.6; }

/* =========================
   HERO (HOME PAGE TEXT HERO)
========================= */

.hero {
  padding: 80px 20px 40px; /* reduce top-heavy spacing */
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* THIS keeps it at the top */
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* =========================
   HERO IMAGE WRAPPER (DOG PAGES)
========================= */

.hero-wrapper {
  width: 100%;
  height: 500px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background: #fff;
  border-radius: 20px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.hero-wrapper img.hero {
  width: 100%;
  height: 100%;

  object-fit: contain;   /* keeps full dog visible (like your original) */
  object-position: center;
}

/* =========================
   THUMBNAIL STRIP
========================= */

.thumbs {
  display: flex;
  gap: 10px;

  margin-top: 10px;

  overflow-x: auto;
  padding-bottom: 5px;
}

/* thumbnail images */
.thumb {
  width: 80px;
  height: 80px;

  object-fit: cover;

  cursor: pointer;

  opacity: 0.7;
  border-radius: 10px;

  transition: 0.2s ease;
}

.thumb:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* active thumbnail */
.thumb.active {
  opacity: 1;
  outline: 2px solid #FFA500;
}

/* =========================
   OPTIONAL: GALLERY LAYOUT WRAPPER
========================= */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.primary {
  background: #FFA500;
  color: #111;
}

.primary:hover {
  transform: translateY(-2px);
  background: #ffb733;
}

.secondary {
  border: 2px solid white;
  color: white;
}

.secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   TRUST BAR
========================= */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 20px;
  font-weight: bold;
  opacity: 0.9;
}

/* =========================
   BREED SECTION (IMPORTANT FIX)
========================= */

.breed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* CARD BASE */
.breed-card {
  background: rgba(255,255,255,0.08);
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.2s ease;
}

.breed-card:hover {
  transform: translateY(-4px);
}

/* ✅ THIS FIX RESTORES YOUR ORIGINAL IMAGE BEHAVIOR */
.breed-card img {
  width: 100%;
  height: 400px;          /* keeps consistent look like before */
  object-fit: cover;      /* IMPORTANT: restores cropped clean look */
  object-position:center 20%;
  border-radius: 10px;
  display: block;
}

/* =========================
   DOG GRID (HOME PAGE / OTHER PAGES)
========================= */

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 12vw, 220px), 1fr));
  gap: 18px;
  margin-top: 20px;
  justify-items: center;
}

.dog-card {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  width: 100%;
  max-width: 220px;
  transition: 0.2s ease;
}

.dog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================
   LITTER CARDS (ADD THIS)
========================= */

.litter-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;

  padding: 18px;
  margin-bottom: 18px;

  backdrop-filter: blur(6px);

  transition: 0.25s ease;
}

.litter-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,165,0,0.35);
}

/* title */
.litter-card h2 {
  margin-top: 10px;
  font-size: 24px;
}

/* due date */
.litter-card .due-date {
  opacity: 0.9;
  margin: 6px 0 12px;
}

/* description spacing */
.litter-card p {
  margin-bottom: 10px;
}

/* traits list */
.litter-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.litter-card li {
  margin-bottom: 5px;
  opacity: 0.95;
}

/* actions area */
.litter-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

/* STATUS BADGE */
.litter-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: bold;

  margin-bottom: 10px;
}

/* status colors */
.litter-status.born {
  background: #FFA500;
  color: #111;
}

.litter-status.planned {
  background: rgba(255,255,255,0.15);
}

.litter-status.confirmed {
  background: #4CAF50;
  color: white;
}

.litter-status.reserved {
  background: #f44336;
  color: white;
}

.litter-parents {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;

    margin: 1rem 0;
    padding: 1rem;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.parent {
    flex: 1;
    text-align: center;
}

.parent-image-link {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0.5rem auto;

    border-radius: 12px;
    overflow: hidden;

    background: rgba(0,0,0,0.2);
}

.parent-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.parent-name {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    text-decoration: none;
    color: white;
}

.parent-name:hover {
    opacity: 0.8;
}

.parent-cross {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
}

   CONTACT CARDS
========================= */


.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* FULL CARD IS NOW CLICKABLE */
.contact-card {
  display: block;
  background: rgba(255,255,255,0.08);
  padding: 18px;
  border-radius: 14px;
  text-decoration: none;
  color: white;

  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.2s ease;
}

/* hover effect */
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,165,0,0.4);
}

/* text styling inside cards */
.contact-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 4px 0;
  opacity: 0.9;
}

/* optional: make primary info stand out */
.contact-card p:first-of-type {
  font-weight: bold;
  color: #FFA500;
}
/* =========================
   FORM
========================= */

#contact-form {
  display: grid;
  gap: 12px;
  max-width: 650px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
}


#contact-form select {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* THIS fixes the dropdown list visibility */
#contact-form option {
  background: #1f3f73;
  color: white;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .main {
    margin-left: 0;
  }
}