/*
Theme Name: Friends in Need Health Center
Theme URI: https://friendsinneed.us
Author: Friends in Need Health Center
Description: Official WordPress theme for Friends in Need Health Center – a 501(c)(3) charitable clinic serving Northeast Tennessee and Southwest Virginia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: friends-in-need
Tags: health, nonprofit, one-column, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options

Color Palette:
  Primary Dark:   #28384B
  Primary Navy:   #1E2B3A
  Accent Teal:    #129AAE
  Accent Cyan:    #2BC4DB
  Warm Cream:     #F6F2EB
  Border Warm:    #EDE8DF
  Text Body:      #4A5666
*/

/* ===== Reset & Base ===== */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Source Sans 3', sans-serif; color: #28384B; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: #129AAE; }
::selection { background: #129AAE; color: #fff; }

/* ===== Keyframe Animations ===== */
@keyframes fin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fin-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(43, 196, 219, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(43, 196, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 196, 219, 0); }
}
@keyframes fin-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fin-count-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fin-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Float & Pulse helpers ===== */
.fin-float { animation: fin-float 5s ease-in-out infinite; }
.fin-pulse { animation: fin-pulse-ring 2.4s cubic-bezier(.36,.07,.19,.97) infinite; }

/* ===== Utility bar ===== */
.fin-topbar { background: #1E2B3A; color: #C7D2DE; font-size: 14px; }
.fin-topbar__inner { max-width: 1200px; margin: 0 auto; padding: 9px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.fin-topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.fin-topbar__contact span { display: inline-flex; align-items: center; gap: 8px; }
.fin-topbar__label { color: #2BC4DB; font-weight: 700; }

/* ===== Navigation ===== */
.fin-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid #EDE8DF; }
.fin-header__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fin-logo img { height: 52px; width: auto; display: block; }
.fin-nav { display: flex; align-items: center; gap: 30px; }
.fin-nav a { color: #3C4A5A; text-decoration: none; font-weight: 600; font-size: 15.5px; position: relative; transition: color .2s; }
.fin-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: #129AAE; transition: width .25s ease; }
.fin-nav a:hover { color: #129AAE; }
.fin-nav a:hover::after { width: 100%; }
.fin-nav a.current-menu-item,
.fin-nav a.active { color: #129AAE; font-weight: 700; }
.fin-nav .fin-btn-donate { background: #129AAE; color: #fff !important; padding: 11px 22px; border-radius: 999px; box-shadow: 0 6px 16px rgba(18,154,174,0.28); transition: transform .18s ease, box-shadow .25s ease, background .2s ease; }
.fin-nav .fin-btn-donate::after { display: none; }
.fin-nav .fin-btn-donate:hover { background: #0E8092; transform: translateY(-2px); }

/* Hamburger */
.fin-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: #28384B; }
.fin-mobile-nav { display: none; background: #fff; border-top: 1px solid #EDE8DF; padding: 16px 24px 24px; }
.fin-mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #EDE8DF; color: #3C4A5A; text-decoration: none; font-weight: 600; font-size: 16px; }
.fin-mobile-nav a:last-child { border-bottom: none; }
.fin-mobile-nav .fin-btn-donate { display: block; margin-top: 14px; text-align: center; background: #129AAE; color: #fff !important; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity,transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* Stagger delays */
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }
[data-reveal][data-delay="5"] { transition-delay: .5s; }
[data-reveal][data-delay="6"] { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fin-float, .fin-pulse { animation: none !important; }
}

/* ===== Lift cards ===== */
.lift { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s cubic-bezier(.22,.61,.36,1); }
.lift:hover { transform: translateY(-7px); box-shadow: 0 26px 56px rgba(40,56,75,0.16); }

/* ===== Buttons ===== */
.fin-btn { display: inline-flex; align-items: center; justify-content: center; transition: transform .18s ease, box-shadow .25s ease, background .2s ease; text-decoration: none; font-weight: 700; border-radius: 999px; }
.fin-btn:hover { transform: translateY(-2px); }
.fin-btn:active { transform: translateY(0); }
.fin-btn--primary { background: #129AAE; color: #fff; box-shadow: 0 10px 26px rgba(18,154,174,0.36); }
.fin-btn--primary:hover { background: #0E8092; color: #fff; }
.fin-btn--ghost { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.fin-btn--ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
.fin-btn--white { background: #fff; color: #0E7C8D; }
.fin-btn--white:hover { background: #EAFBFD; color: #0E7C8D; }
.fin-btn--dark { background: #28384B; color: #fff; }
.fin-btn--dark:hover { background: #1E2B3A; color: #fff; }

/* ===== Eyebrow labels ===== */
.fin-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #129AAE;
  margin-bottom: 14px;
}
.fin-eyebrow::before {
  content: ""; display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, #129AAE, #2BC4DB);
  border-radius: 2px; flex-shrink: 0;
}

/* Dark-background eyebrow variant */
.fin-eyebrow--light { color: #2BC4DB; }
.fin-eyebrow--light::before { background: linear-gradient(90deg, #2BC4DB, rgba(255,255,255,0.4)); }

/* ===== Stat icon badge (for Stats Band & Impact section) ===== */
.fin-stat-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 196, 219, 0.15);
  transition: transform .25s ease, background .25s ease;
}
.fin-stat-icon svg { width: 28px; height: 28px; }

/* Stats band item hover */
.fin-stat-item:hover .fin-stat-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(43, 196, 219, 0.26);
}

/* ===== Impact stat row (icon + number + label) ===== */
.fin-impact-stat {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fin-impact-stat:last-child { border-bottom: none; }
.fin-impact-stat__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43,196,219,0.18);
}
.fin-impact-stat__icon svg { width: 24px; height: 24px; }
.fin-impact-stat__body { flex: 1; min-width: 0; }
.fin-impact-stat__num {
  font-family: 'Rubik', sans-serif; font-size: 28px; font-weight: 800;
  line-height: 1; color: #fff; letter-spacing: -.02em;
}
.fin-impact-stat__label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; line-height: 1.4; }

/* ===== Step number badge ===== */
.fin-step-num {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #129AAE 0%, #2BC4DB 100%);
  box-shadow: 0 8px 20px rgba(18,154,174,0.38);
  font-family: 'Rubik', sans-serif; font-size: 18px; font-weight: 800; color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fin-step-card:hover .fin-step-num {
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(18,154,174,0.5);
}

/* ===== Partner logos ===== */
.plogo { background: #fff; border: 1px solid #EDE8DF; border-radius: 14px; height: 130px; display: flex; align-items: center; justify-content: center; padding: 20px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.plogo:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(40,56,75,0.12); }
.plogo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== FAQ ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); color: #129AAE; }
.faq-plus { color: #28384B; font-size: 26px; font-weight: 300; transition: transform .25s ease, color .2s ease; line-height: 1; }
details { border-bottom: 1px solid #EDE8DF; }
details[open] { border-bottom-color: #129AAE; }
details summary:hover { color: #129AAE; cursor: pointer; }

/* ===== Nav links inline ===== */
.nav-link { position: relative; transition: color .2s; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: #129AAE; transition: width .25s ease; }
.nav-link:hover { color: #129AAE !important; }
.nav-link:hover::after { width: 100%; }

/* ===== Count-up number ===== */
.fin-count { display: inline-block; }
.fin-count.counted { animation: fin-count-in .4s ease both; }

/* ===== Generic page content ===== */
.fin-page-content { max-width: 900px; margin: 0 auto; padding: 80px 24px; }
.fin-page-content h1, .fin-page-content h2, .fin-page-content h3 { font-family: 'Rubik', sans-serif; color: #28384B; }
.fin-page-content p { font-size: 18px; color: #4A5666; margin-bottom: 18px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .fin-nav { display: none; }
  .fin-hamburger { display: flex; }
  .hero-grid,
  .two-col { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .three-col { grid-template-columns: 1fr !important; }
  .partner-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .fin-stat-icon { width: 48px; height: 48px; border-radius: 14px; }
  .fin-stat-icon svg { width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-grid { grid-template-columns: 1fr !important; }
}
