/* ==========================================================================
   Try A Little Kindness Inc (T.A.L.K.) - Modern Bootstrap 5 Revamp Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,600&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #611417;       /* Deep Maroon Brand Tone */
  --primary-dark: #430c0e;        /* Darker shade */
  --primary-light: #7c1a1e;       /* Lighter shade */
  --accent-color: #ee434e;        /* Energetic Coral Red */
  --accent-hover: #d7333e;
  --secondary-color: #212529;     /* Deep slate */
  --bg-light: #fbfbfd;
  --bg-subtle: #f4f5f8;
  --text-dark: #1f2428;
  --text-muted: #5e6670;
  --text-light: #ffffff;
  --border-color: #e9ecef;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 20px 40px rgba(97, 20, 23, 0.12);
  --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Base Setup */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-base);
}

.top-bar a:hover {
  color: var(--accent-color);
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 6px;
  font-size: 12px;
}

.top-bar-social a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-navbar {
  background: #ffffff;
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  z-index: 1030;
}

.main-navbar.sticky-top.scrolled {
  padding: 8px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 72px;
  transition: var(--transition-base);
  object-fit: contain;
}

.main-navbar.scrolled .navbar-brand img {
  height: 58px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  color: #333940 !important;
  padding: 10px 16px !important;
  text-transform: capitalize;
  position: relative;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-talk-primary {
  background: linear-gradient(135deg, var(--accent-color), #d62f3a);
  color: #ffffff !important;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 18px rgba(238, 67, 78, 0.35);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-talk-primary:hover {
  background: linear-gradient(135deg, #d62f3a, var(--primary-color));
  box-shadow: 0 10px 24px rgba(238, 67, 78, 0.45);
  transform: translateY(-2px);
}

.btn-talk-outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-talk-outline:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-talk-light {
  background: #ffffff;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-talk-light:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Hero Slider / Carousel
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: #0b0d10;
}

.hero-slider .carousel-item {
  height: 80vh;
  min-height: 560px;
  max-height: 720px;
  position: relative;
}

.hero-slider .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.48);
}

.hero-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 10;
  color: #ffffff;
}

.hero-caption .badge-pill {
  background: rgba(238, 67, 78, 0.9);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero-caption h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.hero-caption p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-bottom: 30px;
  font-weight: 300;
}

.carousel-control-prev,
.carousel-control-next {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  margin: 0 25px;
  transition: var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--accent-color);
  opacity: 1;
}

/* ==========================================================================
   Page Banner (Breadcrumb Header for internal pages)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, rgba(97, 20, 23, 0.93), rgba(30, 8, 10, 0.95)),
              url('https://tryalittlekindnessinc.org/wp-content/uploads/2021/05/banner.jpg') center/cover no-repeat;
  padding: 85px 0;
  color: #ffffff;
  position: relative;
  border-bottom: 4px solid var(--accent-color);
}

.page-banner h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.page-banner .breadcrumb-item.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* ==========================================================================
   Feature / Work Cards
   ========================================================================== */
.work-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 35px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: var(--transition-base);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.work-card:hover::before {
  height: 100%;
}

.work-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff2f2, #ffe4e6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-base);
}

.work-card:hover .work-icon-wrap {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.work-card:hover .work-icon-wrap img {
  filter: brightness(0) invert(1);
}

.work-card h4 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-tag {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  margin-bottom: 18px;
  line-height: 1.15;
}

.section-title span {
  color: var(--accent-color);
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 680px;
}

/* ==========================================================================
   Projects / Causes Cards
   ========================================================================== */
.project-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.project-card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(97, 20, 23, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.project-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-body h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.progress-box {
  margin: 18px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.custom-progress {
  height: 9px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.custom-progress-bar {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 10px;
}

.raised-info {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 13.5px;
}

.raised-info strong {
  color: var(--primary-color);
  font-size: 15px;
}

/* ==========================================================================
   CTA Strip / Volunteer Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  padding: 70px 0;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 12px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.service-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  height: 100%;
}

.service-box:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: var(--card-hover-shadow);
}

.service-box-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 20px;
}

.service-box h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* Detailed Service Item (Alternating rows) */
.service-detail-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 35px;
  transition: var(--transition-base);
}

.service-detail-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.service-detail-img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 26px;
  color: var(--accent-color);
  opacity: 0.35;
  margin-bottom: 10px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  object-fit: cover;
}

/* ==========================================================================
   Donation Component
   ========================================================================== */
.donate-widget {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.amount-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (max-width: 576px) {
  .amount-btn-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.amount-btn {
  background: var(--bg-subtle);
  border: 2px solid transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
  background: #fff0f1;
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.03);
}

.form-control-custom {
  background: var(--bg-subtle);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  transition: var(--transition-base);
}

.form-control-custom:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(238, 67, 78, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #180506;
  color: #adb5bd;
  padding-top: 70px;
  position: relative;
  border-top: 4px solid var(--accent-color);
}

.footer-logo {
  height: 65px;
  object-fit: contain;
  margin-bottom: 22px;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #adb5bd;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: #ced4da;
}

.footer-contact-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-top: 3px;
}

.footer-bottom {
  background: #0f0304;
  padding: 22px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(238, 67, 78, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-color);
  transform: translateY(-4px);
}
