/* ================================================
   PetCatanduva – Institutional Site Styles
   Extends style.css (same vars: --primary, etc.)
   ================================================ */

/* ── PAGE HERO (inner pages) ──────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #e86010 60%, #c85000 100%);
  color: #fff;
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.2); margin-bottom: 12px; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.95); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* ── STATS COUNTER BAR ───────────────────── */
.stats-bar { background: var(--primary); padding: 44px 0; color: #fff; }
.stat-counter-item { text-align: center; position: relative; }
.stat-counter-item:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 55%; width: 1px;
  background: rgba(255,255,255,.25);
}
.stat-counter-item .sc-icon { font-size: 1.5rem; opacity: .65; margin-bottom: 10px; display: block; }
.stat-counter-item .sc-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1; display: block;
}
.stat-counter-item .sc-label { font-size: .88rem; opacity: .9; margin-top: 6px; display: block; }

/* ── ANIMAL CARDS ────────────────────────── */
.animal-card {
  border: none; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
  background: #fff; height: 100%;
}
.animal-card:hover { transform: translateY(-6px); box-shadow: 0 10px 32px rgba(244,121,32,.2); }
.animal-card .ac-img {
  height: 250px; overflow: hidden;
  position: relative; background: var(--gray-soft);
}
.animal-card .ac-img img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.animal-card:hover .ac-img img { transform: scale(1.06); }
.animal-card .ac-img .ac-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.animal-card .ac-status {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 700;
}
.ac-available { background: #e8f5e9; color: #2e7d32; }
.ac-fostered  { background: #fff8e1; color: #f57f17; }
.ac-adopted   { background: #e8eaf6; color: #3949ab; }
.animal-card .ac-body { padding: 18px 20px 20px; }
.animal-card .ac-name { font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 10px; }
.animal-card .ac-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.animal-card .ac-attr {
  background: var(--gray-soft); border-radius: 50px;
  padding: 3px 10px; font-size: .77rem; color: #666;
  display: flex; align-items: center; gap: 4px;
}
.animal-card .ac-attr i { color: var(--primary); font-size: .68rem; }

/* ── GALLERY ─────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 12px; cursor: pointer;
  aspect-ratio: 4/3; background: var(--gray-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(244,121,32,.78);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; color: #fff;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; margin-bottom: 8px; }
.gallery-overlay span { font-size: .85rem; font-weight: 600; padding: 0 16px; text-align: center; }

/* ── TIMELINE ────────────────────────────── */
.inst-timeline { position: relative; padding-left: 42px; }
.inst-timeline::before {
  content: ''; position: absolute;
  left: 17px; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), rgba(244,121,32,.08));
  border-radius: 2px;
}
.inst-timeline-item { position: relative; margin-bottom: 34px; }
.inst-timeline-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -32px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(244,121,32,.3);
}
.tl-year { font-weight: 800; color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.tl-card {
  background: #fff; border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-left: 4px solid var(--primary);
}
.tl-card h6 { font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.tl-card p { color: #666; font-size: .93rem; margin: 0; line-height: 1.65; }

/* ── MISSION / VALUE CARDS ───────────────── */
.mission-card {
  border-radius: 16px; padding: 32px 24px;
  text-align: center; background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  height: 100%; border-top: 4px solid var(--primary);
}
.mission-card:hover { transform: translateY(-6px); box-shadow: 0 10px 32px rgba(244,121,32,.15); }
.mc-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e86010);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(244,121,32,.35);
}
.mc-icon i { font-size: 1.8rem; color: #fff; }
.mission-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 10px; font-size: 1.1rem; }
.mission-card p { color: #666; font-size: .93rem; line-height: 1.7; margin: 0; }

/* ── HOW TO HELP ─────────────────────────── */
.help-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: transform .25s; height: 100%;
  display: flex; flex-direction: column;
}
.help-card:hover { transform: translateY(-6px); }
.hc-top { padding: 38px 24px 28px; text-align: center; color: #fff; }
.hc-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hc-icon i { font-size: 1.9rem; }
.hc-top h5 { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.hc-top p { opacity: .9; font-size: .88rem; margin: 0; line-height: 1.6; }
.hc-bottom {
  background: #fff; padding: 20px 24px;
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
}
.hc-adopt  .hc-top { background: linear-gradient(135deg, #F47920, #c85000); }
.hc-rifas  .hc-top { background: linear-gradient(135deg, #9c27b0, #6a1b9a); }
.hc-volunteer .hc-top { background: linear-gradient(135deg, #1e88e5, #1565c0); }

/* ── FILTER TABS ─────────────────────────── */
.inst-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  border: 2px solid var(--border);
  background: #fff; color: #666;
  border-radius: 50px; padding: 8px 22px;
  font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── CONTACT ─────────────────────────────── */
.contact-info-card {
  border-radius: 16px; padding: 28px 20px;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-align: center; height: 100%; transition: transform .2s;
}
.contact-info-card:hover { transform: translateY(-4px); }
.ci-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.4rem;
}
.ci-wa   { background: #e8f5e9; color: #25d366; }
.ci-mail { background: #fff3e0; color: var(--primary); }
.ci-addr { background: #fce4ec; color: #e91e63; }
.ci-ig   { background: #f3e5f5; color: #9c27b0; }
.ci-fb   { background: #e3f2fd; color: #1565c0; }
.contact-info-card h6 { font-weight: 700; color: var(--dark); margin-bottom: 6px; font-size: .95rem; }
.contact-info-card p, .contact-info-card a { color: #666; font-size: .88rem; margin: 0; text-decoration: none; }
.contact-info-card a { color: var(--primary); font-weight: 600; }

/* ── ADOPT MODAL ─────────────────────────── */
#adoptModal .modal-header {
  background: linear-gradient(135deg, var(--primary), #e86010);
  color: #fff; border: none;
}
#adoptModal .modal-header .btn-close { filter: invert(1) brightness(2); }
#adoptModal .adopt-img {
  width: 100%; height: 240px;
  object-fit: cover; border-radius: 12px;
}
#adoptModal .adopt-placeholder {
  width: 100%; height: 240px;
  background: var(--gray-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ── LIGHTBOX ────────────────────────────── */
#lightboxModal .modal-dialog { max-width: 860px; }
#lightboxModal .modal-content { background: #111; border: none; border-radius: 12px; overflow: hidden; }
#lightboxModal .modal-body { padding: 0; line-height: 0; }
#lightboxModal .modal-body img { width: 100%; max-height: 78vh; object-fit: contain; display: block; }
#lightboxModal .modal-footer { background: #111; border-color: #333; padding: 12px 20px; }
#lightboxModal .lb-caption { color: rgba(255,255,255,.75); font-size: .88rem; }

/* ── TEAM CARD ───────────────────────────── */
.team-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-align: center; padding: 28px 20px;
  transition: transform .25s;
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--primary);
  margin: 0 auto 14px; display: block;
}
.team-avatar-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e86010);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 2rem; color: #fff;
}
.team-card h6 { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.team-card p { color: #888; font-size: .85rem; margin: 0; line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .stat-counter-item:not(:last-child)::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .inst-timeline { padding-left: 30px; }
  .inst-timeline::before { left: 11px; }
  .tl-dot { left: -26px; }
}
@media (max-width: 576px) {
  .page-hero { padding: 36px 0 28px; }
  .hc-top { padding: 28px 16px 20px; }
  .stats-bar { padding: 30px 0; }
}
