/* ============================================================
   Paws & Hearts Rescue — warm, cute, trustworthy
   Palette: cream / peach / terracotta / sage / warm brown
   ============================================================ */
:root {
  --cream:      #FBF7F0;
  --beige:      #F3EBDD;
  --peach:      #FDE8D7;
  --terracotta: #C96F4A;
  --terracotta-dark: #A85535;
  --sage:       #8BA88E;
  --sage-dark:  #6C8A6F;
  --brown:      #6B4F3A;
  --charcoal:   #2E2A26;
  --muted:      #7A6F63;
  --white:      #FFFFFF;
  --radius:     20px;
  --shadow-soft: 0 6px 24px rgba(107, 79, 58, .10);
  --shadow-lift: 0 14px 36px rgba(107, 79, 58, .16);
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
}
h1, h2, h3, h4, h5, .navbar-brand, .footer-brand, .display-hero {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  color: var(--charcoal);
}
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .55rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-primary:focus {
  background: var(--terracotta); border-color: var(--terracotta); color: #fff;
}
.btn-primary:hover, .btn-primary:active { background: var(--terracotta-dark) !important; border-color: var(--terracotta-dark) !important; }
.btn-success, .btn-sage {
  background: var(--sage); border-color: var(--sage); color: #fff;
}
.btn-success:hover, .btn-sage:hover { background: var(--sage-dark); border-color: var(--sage-dark); color:#fff; }
.btn-outline-primary { color: var(--terracotta); border-color: var(--terracotta); }
.btn-outline-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-lg { padding: .8rem 2rem; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 79, 58, .08);
}
.site-nav .navbar-brand { font-weight: 700; font-size: 1.3rem; color: var(--brown); line-height: 1.05; }
.brand-logo { transition: transform .3s; }
.navbar-brand:hover .brand-logo { transform: rotate(-14deg) scale(1.1); }
.brand-sub {
  display: block; font-family: 'Nunito', sans-serif; font-size: .68rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta);
}
.site-nav .nav-link { color: var(--charcoal); font-weight: 600; border-radius: 999px; padding: .4rem .85rem; }
.site-nav .nav-link:hover { background: var(--peach); color: var(--terracotta-dark); }
.nav-search input { border-radius: 999px; border: 1px solid rgba(107,79,58,.2); background: var(--white); min-width: 130px; }
.btn-adopt { box-shadow: var(--shadow-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--peach) 0%, var(--cream) 55%, var(--beige) 100%);
  border-radius: 0 0 42px 42px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.15; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-img-wrap { position: relative; }
.hero-img {
  width: 100%; max-height: 440px; object-fit: cover;
  border-radius: 32px; box-shadow: var(--shadow-lift);
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.paw-deco { position: absolute; font-size: 2rem; opacity: .18; user-select: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }

/* ---------- Stats strip ---------- */
.stats-strip { margin-top: -34px; position: relative; z-index: 3; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.4rem 1rem; text-align: center; height: 100%;
}
.stat-number { font-family: 'Baloo 2', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; }
.stat-icon { font-size: 1.5rem; }

/* ---------- Section headings ---------- */
.section-title { font-weight: 700; }
.section-kicker {
  display: inline-block; background: var(--peach); color: var(--terracotta-dark);
  border-radius: 999px; font-weight: 700; font-size: .85rem;
  padding: .3rem 1rem; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Dog cards ---------- */
.dog-card {
  background: var(--white); border: none; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.dog-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.dog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dog-card:hover .dog-card-img img { transform: scale(1.05); }
.dog-card .card-body { padding: 1.1rem 1.25rem 1.35rem; }
.dog-name { font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: .1rem; }
.dog-meta { color: var(--muted); font-size: .92rem; font-weight: 600; }
.dog-quote { font-style: italic; color: var(--muted); font-size: .95rem; }

.fav-btn {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 1.2rem; line-height: 1;
  box-shadow: var(--shadow-soft); transition: transform .15s ease;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.faved { animation: heartPop .35s ease; }
@keyframes heartPop { 0% { transform: scale(1) } 50% { transform: scale(1.45) } 100% { transform: scale(1) } }

/* ---------- Badges ---------- */
.paw-badge {
  display: inline-block; border-radius: 999px; font-size: .78rem; font-weight: 700;
  padding: .28rem .8rem; letter-spacing: .02em;
}
.badge-available { background: #E4F0E5; color: var(--sage-dark); }
.badge-pending   { background: #FDF0D5; color: #9A7B24; }
.badge-adopted   { background: var(--peach); color: var(--terracotta-dark); }
.badge-treatment { background: #FBE3E0; color: #A54B42; }
.badge-foster    { background: #E3ECF6; color: #4A6FA5; }
.badge-neutral   { background: var(--beige); color: var(--muted); }
.badge-special   { background: #F3E3F6; color: #8A4AA5; }
.badge-puppy     { background: #FFF3C9; color: #97742A; }

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.1rem 1.25rem;
}
.filter-bar select, .filter-bar input { border-radius: 12px; border-color: rgba(107,79,58,.18); }

/* ---------- Dog profile ---------- */
.profile-gallery-main {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-soft); background: var(--beige);
}
.profile-thumb {
  width: 84px; height: 66px; object-fit: cover; border-radius: 12px;
  cursor: pointer; opacity: .75; border: 2px solid transparent; transition: all .15s;
}
.profile-thumb:hover, .profile-thumb.active { opacity: 1; border-color: var(--terracotta); }
.trait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.trait-cell { background: var(--white); border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--shadow-soft); }
.trait-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.trait-value { font-weight: 700; }
.story-panel {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.8rem 2rem;
}

/* ---------- Process steps ---------- */
.step-card { text-align: center; padding: 1.4rem 1rem; }
.step-num {
  font-family: 'Baloo 2', sans-serif; font-size: .95rem; font-weight: 700;
  color: var(--terracotta); letter-spacing: .1em;
}
.step-emoji { font-size: 2.4rem; display: block; margin: .4rem 0; }

/* ---------- Story cards ---------- */
.story-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); height: 100%; transition: transform .2s, box-shadow .2s;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.story-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--beige); }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; }
.before-after img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-soft); }
.before-after .arrow { font-size: 1.6rem; color: var(--terracotta); }
.ba-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align:center; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 2rem;
}
.form-panel .form-control, .form-panel .form-select {
  border-radius: 12px; border-color: rgba(107,79,58,.18); padding: .6rem .9rem;
}
.form-panel .form-control:focus, .form-panel .form-select:focus {
  border-color: var(--terracotta); box-shadow: 0 0 0 .2rem rgba(201,111,74,.15);
}
.form-label { font-weight: 700; }
.invalid-feedback { display: block; }

/* Multi-step */
.step-progress { display: flex; gap: .4rem; margin-bottom: 1.6rem; }
.step-progress span { flex: 1; height: 8px; border-radius: 999px; background: var(--beige); transition: background .3s; }
.step-progress span.done { background: var(--sage); }
.step-progress span.current { background: var(--terracotta); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.step-heading { font-family:'Baloo 2',sans-serif; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 3rem 2rem;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .paw-deco { opacity: .15; color: #fff; }

/* ---------- Donation ---------- */
.amount-pill {
  border: 2px solid var(--beige); background: var(--white); border-radius: 16px;
  padding: .8rem 1.4rem; font-weight: 800; font-size: 1.1rem; cursor: pointer;
  transition: all .15s;
}
.amount-pill:hover { border-color: var(--terracotta); }
.amount-pill.selected { background: var(--peach); border-color: var(--terracotta); color: var(--terracotta-dark); }

/* ---------- Events ---------- */
.event-card { display: flex; gap: 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.3rem; }
.event-date-chip {
  min-width: 74px; text-align: center; background: var(--peach); border-radius: 16px; padding: .7rem .4rem;
  font-family: 'Baloo 2', sans-serif;
}
.event-date-chip .d { font-size: 1.6rem; font-weight: 700; color: var(--terracotta-dark); line-height: 1; }
.event-date-chip .m { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }

/* ---------- Gallery / lightbox ---------- */
.lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(46,42,38,.9); z-index: 1080;
  display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out;
}
.lightbox-backdrop img { max-width: 100%; max-height: 90vh; border-radius: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #F3EBDD; }
.site-footer h5, .site-footer h6 { color: #fff; font-family: 'Baloo 2', sans-serif; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #F3EBDD; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.social-links a { color: #F3EBDD; text-decoration: none; margin-right: 1rem; font-weight: 600; }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 2rem 0 1.2rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  display: flex; background: var(--white); box-shadow: 0 -4px 20px rgba(107,79,58,.15);
  border-radius: 18px 18px 0 0; overflow: hidden;
}
.mobile-cta a {
  flex: 1; text-align: center; padding: .55rem 0 .5rem; text-decoration: none;
  color: var(--charcoal); font-size: 1.15rem; font-weight: 700; line-height: 1.1;
}
.mobile-cta a span { display: block; font-size: .68rem; color: var(--muted); }
.mobile-cta a:active { background: var(--peach); }
@media (max-width: 991px) { body { padding-bottom: 64px; } }

/* ---------- Misc ---------- */
.rounded-4 { border-radius: 16px !important; }
.img-soft { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.text-muted-warm { color: var(--muted) !important; }
.page-hero { background: linear-gradient(135deg, var(--peach), var(--cream)); border-radius: 0 0 36px 36px; }
.pagination .page-link { border-radius: 12px !important; margin: 0 3px; color: var(--terracotta); border-color: var(--beige); }
.pagination .active .page-link { background: var(--terracotta); border-color: var(--terracotta); }
.fade-in-up { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-in-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1; transform: none; transition: none; }
  .btn:hover, .dog-card:hover, .story-card:hover { transform: none; }
}
