:root{
  /* Business card palette */
  --stripe-a: #cfcada;   /* soft lavender-gray */
  --stripe-b: #bdb6cd;   /* deeper lavender */
  --cream:    #fbf4e6;   /* warm cream */
  --ink:      #2b2b33;   /* soft ink */
  --plum:     #7a5b69;   /* muted mauve/plum */

  /* Optional soft accent pastels */
  --peach:    #f3c7c1;
  --mint:     #9ddfcf;
  --sky:      #9fc7e8;

  /* Structure */
  --radius: 18px;
  --radius-lg: 26px;
  --line: rgba(43,43,51,.14);
  --muted: rgba(43,43,51,.72);

  --shadow: 0 18px 50px rgba(43,43,51,.16);
  --shadow-soft: 0 10px 28px rgba(43,43,51,.12);

  --max: 1120px;
}

/* Base */
*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }

body{
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;

  background:
    repeating-linear-gradient(
      90deg,
      var(--stripe-a) 0px,
      var(--stripe-a) 34px,
      var(--stripe-b) 34px,
      var(--stripe-b) 68px
    ),
    radial-gradient(700px 380px at 16% 4%, rgba(224,176,90,.22), transparent 62%),
    radial-gradient(900px 520px at 85% 10%, rgba(40,109,176,.18), transparent 62%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  text-decoration:none;
  transition: transform .12s ease;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }

.btn.primary{
  background: linear-gradient(180deg, rgba(122,91,105,.92), rgba(122,91,105,.78));
  color: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.20);
}

.btn.gold{
  background: rgba(251,244,230,.96);
  color: rgba(122,91,105,.98);
  border: 2px solid rgba(122,91,105,.22);
  box-shadow: var(--shadow-soft);
}

.btn.ghost{
  background: rgba(255,255,255,.42);
  border-color: rgba(43,43,51,.14);
  box-shadow: none;
  color: rgba(43,43,51,.90);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

/* =========================================
   Typography helpers
   ========================================= */
.h1{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  margin: 10px 0 10px;
}
.h2{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 26px;
  margin: 0;
  text-align: center; /* centers all H2s */
}
.lede{
  font-size: 18px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 16px;
}
.muted{
  color: var(--muted);
}

/* =========================================
   Header / Nav
   ========================================= */
.site-header{
  background: linear-gradient(180deg, rgba(122,91,105,.55), rgba(122,91,105,0));
  position: relative;
  z-index: 50;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: contain;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.brand{
  color: rgba(255,255,255,.96);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.brand-name{
  font-weight: 900;
}

.brand-tag{
  font-size: 14px;
  opacity: .95;
}

.nav{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 14px;
}
.nav a{
  color: rgba(255,255,255,.92);
  font-weight: 850;
  padding: 7px 9px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
}
.nav a:hover{
  text-decoration:none;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.16);
}
.nav a.active{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}
.nav a.nav-urgent,
.nav a.nav-cta{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.24);
}

.menu-btn{
  display:none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(2,46,99,.22);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
}

@media (max-width: 920px){
  .menu-btn{ display:block; }

  .nav{
    display:none;
    position:absolute;
    right: 4vw;
    top: 68px;
    width: min(380px, 92vw);
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(2,46,99,.34);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: var(--shadow);
  }

  .nav.open{ display:flex; }
  .nav a{ background: rgba(255,255,255,.10); }
}

/* =========================================
   Hero
   ========================================= */
.hero{
  position: relative;
  min-height: 28vh;
  display:flex;
  align-items:center;
  padding: 66px 0 30px;
  overflow:hidden;
  border-bottom: 1px solid rgba(2,46,99,.12);
}

.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,46,99,.62), rgba(2,46,99,.18)),
    radial-gradient(900px 520px at 80% 20%, rgba(224,176,90,.35), transparent 60%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
}
.hero::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(2,46,99,.52));
}

.hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-card{
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.hero-title{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.hero-sub{
  color: rgba(255,255,255,.92);
  font-weight: 650;
  font-size: 18px;
  margin: 0 0 14px;
}

/* Inner pages */
.hero--inner::before{ content: none !important; }
.hero--inner{
  background: transparent !important;
  min-height: 26vh;
  padding: 62px 0 26px;
}
.hero--inner .hero-card{
  max-width: 980px;
  padding: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
}
.hero--inner .hero-title{
  font-size: 56px;
  line-height: 1.02;
  margin-bottom: 8px;
}
@media (max-width: 720px){
  .hero--inner .hero-title{ font-size: 42px; }
}

/* =========================================
   Sections / Dividers
   ========================================= */
.section{
  padding: 26px 0;
}

.divider{
  display:flex;
  align-items:center;
  justify-content:center; /* THIS centers it */
  margin: 12px 0 8px;
}
.divider span{
  width: 90px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum), rgba(122,91,105,.35));
}

.divider-img{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 0;
}
.divider-img img{
  height: 22px;
  width: auto;
  opacity: .9;
}

.section-head{
  display:block;
  text-align:center;
}

.section-head p{
  text-align: center;
  margin: 12px auto 0;
  max-width: 700px;
}
.section-head > p{
  margin: 12px auto 0;
  color: var(--muted);
  font-weight: 650;
  max-width: 760px;
  text-align: center;
}
.center-text .section-head,
.center-text.section-head,
.section-head[style*="text-align:center"]{
  text-align:center;
}
.center-text .section-head p,
.center-text.section-head p{
  margin-left:auto;
  margin-right:auto;
  max-width:600px;
}

/* =========================================
   Global card surfaces
   ========================================= */
.card,
.panel,
.video-embed,
.supporter-note{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  padding: 22px 20px;
}


.panel p,
.card p{
  text-align: left;
}

/* BUT allow section-head to override it */
.section-head p{
  text-align: center;
}

.panel{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.panel h2,
.card h3{
  margin-bottom: 10px;
}

.panel p{
  margin: 0 0 12px;
}

.panel .btn-row{
  margin-top: 14px;
}

/* Banner blocks are special */
.banner-block{
  display: flex;
  justify-content: center !important;
  align-items: center;
  margin: 6px 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.banner-block img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.container.banner-block{
  margin-left: auto !important;
  margin-right: auto !important;
}
.banner-block--hero{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Generic grid
   ========================================= */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 4;
  overflow:hidden;
}
.card .pad{ padding: 14px; }
.card h3{
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-weight: 650;
}
.card .thumb{
  height: 110px;
  background: #e9eef6;
}
.card .thumb img{
  width:100%;
  height:100%;
  object-fit: contain;
}

@media (max-width: 980px){ .card{ grid-column: span 6; } }
@media (max-width: 640px){ .card{ grid-column: span 12; } }

/* =========================================
   Donation Impact Grid
   ========================================= */
.impact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.impact-grid .card{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-column: auto;
  height: auto;
}

.impact-card .pad{
  padding: 18px 16px;
}
.impact-card h3{
  font-size: 24px;
  margin-bottom: 6px;
}
.impact-card p{
  font-size: 14px;
  line-height: 1.45;
}

/* =========================================
   Panel grid layout
   ========================================= */
.panel-grid{
  display: grid;
  gap: 22px;
  align-items: start;
}
.panel-grid--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.panel-grid--2 > *{
  align-self: start;
}
@media (max-width: 900px){
  .panel-grid--2{ grid-template-columns: 1fr; }
}

/* =========================================
   Footer
   ========================================= */
.site-footer{
  padding: 18px 0 28px;
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-title{
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.footer-bottom{
  margin-top: 18px;
}

.footer-social{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-social:hover{ opacity: .9; }

.fb-icon{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  background: rgba(24,119,242,.95);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

.footer-cta-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  background: rgba(207,202,218,.55);
  border: 1px solid rgba(0,0,0,.10);
  color: var(--plum);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  transition: transform .12s ease;
}
.footer-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.86);
}
.footer-pill--gold{
  background: rgba(255,255,255,.72) !important;
  color: var(--plum) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.08) !important;
}
.footer-pill--small{
  padding: 8px 12px;
  font-weight: 750;
  font-size: 14px;
}

/* =========================================
   Floating bubble
   ========================================= */
.float-bubble{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}
.float-bubble__btn{
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(122,91,105,.78);
  color: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(43,43,51,.22);
}
.float-bubble__panel{
  width: min(320px, 86vw);
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,46,99,.14);
  box-shadow: 0 18px 50px rgba(2,46,99,.18);
  display:none;
}
@media (max-width: 520px){
  .float-bubble{ right: 12px; bottom: 12px; }
  .float-bubble__label{ display:none; }
}

/* =========================================
   Adopt page shell
   ========================================= */
.page{
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.page > h1{
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
}
.page > .sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
}

/* =========================================
   Adopt page hard fix
   ========================================= */
#catsGrid.grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 6px;
  align-items: start;
}

/* Style direct feed items as cards */
#catsGrid.grid > *{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  overflow: hidden;
  padding: 0;
  min-width: 0;
  grid-column: auto !important;
}

/* If wrapper uses adopt-card */
#catsGrid.grid .adopt-card{
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Images */
#catsGrid.grid img,
#catsGrid.grid .adopt-card__photo,
#catsGrid.grid .adopt-card__photo--placeholder{
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: rgba(0,0,0,.05);
}

/* Generic inner spacing */
#catsGrid.grid > * > :not(img),
#catsGrid.grid .adopt-card__body{
  padding-left: 14px;
  padding-right: 14px;
}

/* Titles */
#catsGrid.grid h3,
#catsGrid.grid .adopt-card__name{
  margin: 12px 14px 8px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
}

/* Supporting text */
#catsGrid.grid p,
#catsGrid.grid .adopt-card__desc,
#catsGrid.grid .adopt-card__meta{
  margin-left: 14px;
  margin-right: 14px;
  color: rgba(43,43,51,.80);
  font-weight: 650;
  line-height: 1.45;
}

/* Meta badges */
#catsGrid.grid .adopt-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
#catsGrid.grid .adopt-card__meta span{
  background: rgba(0,0,0,.04);
  padding: 4px 8px;
  border-radius: 10px;
}

/* Action links/buttons */
#catsGrid.grid a,
#catsGrid.grid .adopt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 14px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  font-weight: 900;
  text-decoration: none;
  transition: transform .12s ease;
}

#catsGrid.grid a:hover,
#catsGrid.grid .adopt-btn:hover{
  text-decoration: none;
  transform: translateY(-1px);
}

#catsGrid.grid .adopt-card__actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 0 14px 14px;
}
#catsGrid.grid .adopt-card__actions .adopt-btn{
  margin: 0;
  flex: 1;
}

/* Long descriptions */
#catsGrid.grid .adopt-card__desc{
  max-height: 130px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Scrollbar styling */
#catsGrid.grid::-webkit-scrollbar{ width: 8px; }
#catsGrid.grid::-webkit-scrollbar-track{ background: transparent; }
#catsGrid.grid::-webkit-scrollbar-thumb{
  background: rgba(122,91,105,.35);
  border-radius: 999px;
}
#catsGrid.grid .adopt-card__desc::-webkit-scrollbar{ width: 8px; }
#catsGrid.grid .adopt-card__desc::-webkit-scrollbar-track{ background: transparent; }
#catsGrid.grid .adopt-card__desc::-webkit-scrollbar-thumb{
  background: rgba(122,91,105,.30);
  border-radius: 999px;
}

@media (max-width: 1000px){
  #catsGrid.grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px){
  #catsGrid.grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 680px;
  }
}
@media (max-width: 480px){
  #catsGrid.grid{
    grid-template-columns: 1fr !important;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}