/* ----------------------------------------------------
   CBCC Theme: Deep Teal, Warm Tan, Wave, Paws
   Fonts: Playfair Display (headings) + Inter (body)
-----------------------------------------------------*/

:root {
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15,118,110;
  --cbcc-body-bg: #faf8f4;
  --cbcc-hero: #f4e9d8;
  --cbcc-teal-600: #115e59;
  --cbcc-teal-800: #0b4b45;
  --cbcc-border: #e7e3db;
}

/* --- Base fonts --- */
html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--cbcc-body-bg);
  color: #222;
}

.font-headings,
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}

.shadow-xs { box-shadow: 0 4px 12px rgba(0,0,0,.05); }

/* --- HERO --- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    url("/static/img/paw-texture.png") repeat,
    linear-gradient(to bottom right, #f4e9d8 0%, #f8f5ee 100%);
  background-size: 160px auto, cover;
  border-radius: 1rem;
  border: 1px solid var(--cbcc-border);
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

/* NEW: Only fade behind text, not whole hero */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-textbox {
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,.05);
}

.text-teal-dark { color: var(--cbcc-teal-800); }

.hero-textbox h1 {
  color: var(--cbcc-teal-800);
  text-shadow: 0 1px 2px rgba(255,255,255,.7);
}

.hero-textbox p {
  color: #2c2c2c;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Buttons --- */
.hero-content .btn-primary {
  background-color: #0f766e;
  border-color: #0f766e;
  font-weight: 600;
  transition: all .2s ease-in-out;
}

.hero-content .btn-primary:hover {
  background-color: #115e59;
  border-color: #115e59;
  transform: translateY(-2px);
}

.hero-content .btn-outline-primary {
  color: #0f766e;
  border-color: #0f766e;
  font-weight: 600;
  transition: all .2s ease-in-out;
}

.hero-content .btn-outline-primary:hover {
  background-color: #0f766e;
  color: #fff;
  transform: translateY(-2px);
}

/* Hero kitten frame */
.hero-arch {
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  border: 1px solid var(--cbcc-border);
}

/* --- Wave divider --- */
.wave-sep {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 120px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'>\
<path fill='%23ffffff' d='M0,64L48,74.7C96,85,192,107,288,117.3C384,128,480,128,576,117.3C672,107,768,85,864,74.7C960,64,1056,64,1152,80C1248,96,1344,128,1392,144L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/></svg>")
    no-repeat bottom center;
  background-size: 100% 100%;
}

/* --- Cards --- */
.paw-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cbcc-border);
  border-radius: .8rem;
}

.paw-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 64px; height: 64px;
  opacity: .08;
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<circle cx='18' cy='20' r='6' fill='%230f766e'/>\
<circle cx='30' cy='16' r='6' fill='%230f766e'/>\
<circle cx='42' cy='20' r='6' fill='%230f766e'/>\
<circle cx='30' cy='34' r='10' fill='%230f766e'/>\
</svg>") no-repeat center/contain;
}

/* --- Image fit --- */
.img-fit-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f8f9fa;
}

.ratio > img,
.ratio > picture > img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Rounded top fix */
.ratio.rounded-top,
.ratio .rounded-top {
  overflow: hidden;
  border-top-left-radius: .375rem;
  border-top-right-radius: .375rem;
}

/* Meta info under cat cards */
.meta-list .meta-label {
  min-width: 52px;
  display: inline-block;
  font-weight: 500;
}
.meta-list .meta-value {
  opacity: .9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-wrap {
    text-align: center;
    padding: 3rem 1rem;
  }
  .hero-wrap .btn {
    width: 100%;
  }
}

/* General */
.bg-body { background: var(--cbcc-body-bg); }
.text-teal-dark { color: var(--cbcc-teal-800); }
