/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy
Author: CreativeThemes
Template: blocksy
Version: 1.1.0
Text Domain: blocksy-child
*/

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  --mv-black: #0b0b0b;
  --mv-black-soft: #161616;
  --mv-gold: #b38b00;
  --mv-gold-light: #d6b55a;
  --mv-gold-pale: #fff3d6;
  --mv-ivory: #f7f4ef;
  --mv-ivory-dark: #e9e3d8;
  --mv-white: #ffffff;
  --mv-text: var(--mv-ivory);
  --mv-muted: #6f6f6f;
  --mv-border: #e2ddd6;
  --mv-radius: 14px;
  --mv-radius-lg: 18px;
  --mv-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  --mv-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   02. GLOBAL
   ========================================================= */

body {
  background-image: url('images/page_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.mv-page-pad,
.mv-container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.mv-archive-wrap {
  padding-top: 36px;
  padding-bottom: 64px;
}

.mv-page-title {
  margin: 0 0 6px;
  color:#f2d27a;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
}

.mv-page-subtitle {
  margin: 0;
  opacity: 0.85;
  color:#ffffff;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}

.mv-archive-head {
  margin-bottom: 20px;
}

.mv-panel {
  margin: 28px 0;
  padding: 32px;
  color: var(--mv-gold);
  background: var(--mv-black);
  border-radius: var(--mv-radius-lg);
  box-shadow: var(--mv-shadow);
}

.mv-head-panel {
  margin: 28px 0;
  padding: 32px;
  color: var(--mv-gold);
  background: var(--mv-black);
  border-radius: var(--mv-radius-lg);
  box-shadow: var(--mv-shadow);
}

.mv-panel-title {
  margin: 0 0 20px;
  color: var(--mv-gold);
}

.mv-panel-empty {
  margin: 0;
  opacity: 0.9;
}

.mv-card {
  width: 100%;
  color: var(--mv-text);
  background: var(--mv-black);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  box-shadow: var(--mv-shadow-card);
}

.mv-card-pad-16 {
  padding: 16px;
}

.mv-card-pad-20 {
  padding: 20px;
}

.mv-card-pad-24 {
  padding: 24px;
}

.mv-h1 {
  margin: 0 0 10px;
  line-height: 1.08;
}

.mv-meta {
  margin: 0 0 18px;
  color: var(--mv-text);
  opacity: 0.88;
}

.mv-note {
  margin: 0 0 18px;
  color: var(--mv-text);
}

.mv-note p:last-child {
  margin-bottom: 0;
}

.mv-section {
  margin: 0 0 18px;
}

.mv-section-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.mv-kv > div {
  margin: 3px 0;
}

.mv-linkrow {
  margin: 0 0 18px;
}

/* =========================================================
   03. BUTTONS AND LINKS
   ========================================================= */

.mv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--mv-white) !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  background: #8c5a4a;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.mv-btn:hover,
.mv-btn:focus-visible {
  color: var(--mv-black) !important;
  background: var(--mv-gold-light);
  transform: translateY(-1px);
}

.mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* =========================================================
   04. BADGES
   ========================================================= */

.mv-badge {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 5px 10px;
  color: #333333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f2f2f2;
  border-radius: 5px;
}

.mv-badge-available,
.mv-badge--available {
  color: #8c5a4a;
  background: var(--mv-gold-pale);
}

.mv-badge-reserved,
.mv-badge--reserved {
  color: #333333;
  background: #eeeeee;
}

.mv-badge-home,
.mv-badge-sold,
.mv-badge--home {
  color: #707070;
  background: #e9e9e9;
}

/* =========================================================
   05. HOMEPAGE HERO
   ========================================================= */

@font-face {
  font-family: 'MaivelienDisplay';
  src: url('fonts/BrockScript.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.site-title,
.site-title a,
.site-branding a {
  font-family: 'MaivelienDisplay', serif !important;
  font-weight: 400 !important;
}

.mv-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.mv-hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.mv-hero > * {
  position: relative;
  z-index: 2;
}

.mv-hero-title {
  color: var(--mv-white) !important;
  font-family: 'MaivelienDisplay', serif !important;
  font-size: clamp(48px, 6vw, 84px) !important;
  font-weight: 400 !important;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(0, 0, 0, 0.35);
}

.mv-hero-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--mv-gold-light),
    transparent
  );
}

.mv-hero-subtitle {
  max-width: 720px;
  margin-top: 12px;
  color: #eaeaea !important;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.70);
}

.mv-hero-cta .wp-element-button {
  color: var(--mv-black) !important;
  background: var(--mv-gold) !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.mv-hero-cta .wp-element-button:hover {
  color: var(--mv-black) !important;
  background: var(--mv-gold-light) !important;
}

/* =========================================================
   06. PROFILE DETAIL – KITTEN / ADULT
   ========================================================= */

.mv-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.mv-detail-grid > .mv-card {
  min-width: 0;
}

.mv-media-card,
.mv-info-card {
  min-height: 100%;
}

.mv-media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mv-media-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: var(--mv-black);
  border-radius: 12px;
}

.mv-empty-photo {
  margin: 0;
  padding: 24px;
  color: var(--mv-muted);
  background: var(--mv-white);
  border-radius: 12px;
}

.mv-profile-gallery .mv-open-gallery {
  position: static !important;
  align-self: center;
  width: auto !important;
  max-width: calc(100% - 32px);
  margin: 20px auto 0 !important;
  white-space: nowrap;
  transform: none !important;
}

.mv-hidden-gallery {
  position: fixed !important;
  top: 0 !important;
  left: -10000px !important;
  width: 600px !important;
  height: 600px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================================
   07. KITTEN ARCHIVE
   ========================================================= */

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  gap: 24px;
  justify-content: center;
  align-items: start;
}

.mv-kitten-list {
  display: grid;
  gap: 14px;
}

.mv-kitten-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 170px;
  overflow: hidden;
  color: var(--mv-text);
  background:var(--mv-black);
  border: 1px solid rgba(249, 208, 2, 0.546);
  border-radius: var(--mv-radius);
}

.mv-kitten-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  background: var(--mv-black);
}

.mv-kitten-photo img {
  display: block;
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mv-kitten-photo--empty {
  display: block;
  width: 100%;
  height: 170px;
  background: #eeeeee;
}

.mv-kitten-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
}

.mv-kitten-topline {
  margin-bottom: 2px;
}

.mv-kitten-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mv-kitten-name a {
  color: var(--mv-text);
  text-decoration: none;
}

.mv-kitten-name a:hover {
  text-decoration: underline;
}

.mv-kitten-meta {
  font-size: 14px;
  opacity: 0.85;
}

.mv-kitten-cta {
  margin-top: 4px;
  color: var(--mv-gold);
  font-weight: 700;
  text-decoration: none;
}

.mv-kitten-cta:hover {
  text-decoration: underline;
}

.mv-litter-stack {
  display: grid;
  gap: 22px;
}

.mv-litter-block {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mv-radius);
}

.mv-litter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mv-litter-title {
  margin: 0;
  color: var(--mv-white);
}

.mv-litter-title a {
  color: var(--mv-white);
  text-decoration: none;
}

.mv-litter-title a:hover {
  text-decoration: underline;
}

.mv-litter-code {
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.65;
}

.mv-litter-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.mv-litter-sub a,
.mv-litter-link a {
  color: var(--mv-gold-light);
  text-decoration: none;
}

.mv-litter-sub a:hover,
.mv-litter-link a:hover {
  text-decoration: underline;
}

.mv-litter-link a {
  white-space: nowrap;
}

/* =========================================================
   08. SINGLE LITTER
   ========================================================= */

.mv-litter-panel {
  padding: 40px;
  color: #e6e6e6;
  background: transparent;
  border-radius: var(--mv-radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.mv-litter-panel > .mv-litter-title {
  margin: 0 0 22px;
}

.mv-litter-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.mv-litter-box {
  padding: 22px 24px;
  color: var(--mv-text);
  background: var(--mv-black);
  border-radius: var(--mv-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.mv-litter-box h2,
.mv-litter-box h3 {
  margin: 0 0 10px;
  color: var(--mv-gold);
}

.mv-litter-box p {
  margin-bottom: 0;
}

.mv-litter-panel a {
  color: var(--mv-gold-light);
  text-decoration: none;
}

.mv-litter-panel a:hover {
  color: #f0d48a;
  text-decoration: underline;
}

.mv-table-wrap {
  overflow-x: auto;
  color: var(--mv-text);
  background: var(--mv-black);
  border-radius: var(--mv-radius);
}

.mv-table {
  width: 100%;
  min-width: 650px;
  color: var(--mv-text);
  border: 0px;
  border-collapse: collapse;
}

.mv-table thead tr {
  background: var(--mv-black-soft);
}

.mv-table th,
.mv-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  border-bottom: 0px solid #d4cec3;
}

.mv-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}

.mv-table tbody tr:last-child td {
  border-bottom: 0;
}

.mv-table td:first-child img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border: 0px solid #d7d7d7 !important;
  border-radius: 12px !important;
}

.mv-cta {
  padding-top: 26px;
}

.mv-cta-text {
  margin: 0 0 12px;
  color: var(--mv-white);
}

/* =========================================================
   09. CONTACT
   ========================================================= */

.mv-contact-panel {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.mv-contact-card {
  max-width: 720px;
  margin: 0 auto;
}

.mv-contact-form {
  display: grid;
  gap: 18px;
}

.mv-form-field {
  display: grid;
  gap: 7px;
}

.mv-form-field label {
  color: var(--mv-text);
  font-weight: 700;
}

.mv-form-field input,
.mv-form-field textarea {
  width: 100%;
  color: var(--mv-text);
  background: var(--mv-white);
  border: 1px solid #cfc8bf;
  border-radius: 9px;
}

.mv-form-field input {
  min-height: 44px;
  padding: 9px 12px;
}

.mv-form-field textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
}

.mv-form-field input:focus,
.mv-form-field textarea:focus {
  border-color: var(--mv-gold);
  outline: 2px solid rgba(179, 139, 0, 0.18);
  outline-offset: 1px;
}

.mv-form-field input[readonly] {
  color: #555555;
  background: #ece8e2;
  cursor: default;
}

.mv-success,
.mv-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 9px;
}

.mv-success {
  color: #1d5828;
  background: #e9f7ec;
  border: 1px solid #b8dfc0;
}

.mv-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.mv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}



/* =========================================================
   08A. BREEDING CATS ARCHIVE
   ========================================================= */

.mv-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.mv-cat-card {
  height: 100%;
  overflow: hidden;
  background: var(--mv-black);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  box-shadow: var(--mv-shadow-card);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.mv-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.mv-cat-card-linkwrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  color: var(--mv-text);
  text-decoration: none;
}

.mv-cat-card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  background: var(--mv-black);
  border-radius: 10px;
}

.mv-cat-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.mv-cat-card:hover .mv-cat-card-photo img {
  transform: scale(1.015);
}

.mv-cat-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 22px;
}

.mv-cat-card-title {
  margin: 0 0 12px;
  color: var(--mv-gold-light);
  font-size: 28px;
  line-height: 1.15;
}

.mv-cat-card-meta,
.mv-cat-card-birth {
  margin: 0;
  color: var(--mv-ivory-dark);
  font-size: 17px;
  line-height: 1.5;
}

.mv-cat-card-birth {
  margin-top: 2px;
}

.mv-cat-card-cta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--mv-gold);
  font-weight: 700;
}

.mv-cat-card-linkwrap:hover .mv-cat-card-cta {
  text-decoration: underline;
}

/* =========================================================
   10. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .mv-page-pad,
  .mv-container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .mv-panel,
  .mv-litter-panel {
    padding: 22px;
  }

  .mv-detail-grid,
  .mv-litter-top {
    grid-template-columns: 1fr;
  }

  .mv-media-img {
    height: auto;
    max-height: 520px;
  }

  .mv-kitten-row {
    grid-template-columns: 1fr;
  }

  .mv-kitten-photo,
  .mv-kitten-photo--empty {
    min-height: 220px;
    height: 220px;
  }

  .mv-kitten-photo img {
    max-height: 220px;
  }

  .mv-litter-head {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .mv-page-pad,
  .mv-container,
  .mv-archive-wrap {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .mv-panel,
  .mv-litter-panel {
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
  }

  .mv-card-pad-24 {
    padding: 16px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .mv-kitten-name {
    font-size: 24px;
  }

  .mv-profile-gallery .mv-open-gallery {
    width: 100% !important;
    max-width: 100%;
    white-space: normal;
  }

  .mv-table-wrap {
    margin-right: -4px;
    margin-left: -4px;
  }
}

/* BREEDING CAT DETAIL – PARENTS AND PAWPEDS */
.mv-parent-section{margin:0 0 22px;}
.mv-parent-section-title{margin:0 0 10px;color:var(--mv-text);font-size:20px;}
.mv-parent-list{display:grid;gap:9px;}
.mv-parent-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;color:var(--mv-text);}
.mv-parent{position:relative;display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:7px;}
.mv-parent-name{color:var(--mv-gold);font-weight:600;text-decoration:none;}
a.mv-parent-name:hover{text-decoration:underline;}
.mv-parent-color{color:var(--mv-muted);font-size:.92em;}
.mv-parent-preview{position:absolute;z-index:50;left:50%;bottom:calc(100% + 12px);width:min(260px,72vw);padding:8px;visibility:hidden;opacity:0;pointer-events:none;background:var(--mv-white);border:1px solid var(--mv-border);border-radius:12px;box-shadow:0 16px 42px rgba(0,0,0,.28);transform:translate(-50%,8px);transition:opacity .18s ease,visibility .18s ease,transform .18s ease;}
.mv-parent-preview img{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:8px;}
.mv-parent:hover .mv-parent-preview,.mv-parent:focus-within .mv-parent-preview{visibility:visible;opacity:1;transform:translate(-50%,0);}
@media(max-width:700px){.mv-parent-preview{left:0;transform:translate(0,8px)}.mv-parent:hover .mv-parent-preview,.mv-parent:focus-within .mv-parent-preview{transform:translate(0,0)}}

.page-id-24 .entry-content {
    padding-top: -40px;
}

.mv-archive-head {
    margin-bottom: 32px;
}

.mv-archive-head.mv-panel {
    padding: 32px 40px;
}

.mv-page-title {
    margin: 0 0 12px;
}

.mv-page-subtitle {
    margin: 0;
}

.mv-page-header {
    margin-bottom: 32px;
}

.mv-page-header h1 {
    margin: 0 0 12px;
}

.mv-page-header p {
    margin: 0;
}