:root {
  --kp-green-700: #285f3c;
  --kp-green-600: #34865a;
  --kp-green-500: #55a872;
  --kp-warm-100: #faf8f3;
  --kp-warm-200: #f3efe7;
  --kp-amber-400: #e0a14a;
  --kp-sage-100: #eaf1e4;
  --kp-ink-900: #2b3224;
  --kp-ink-700: #48563e;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--kp-ink-900);
  line-height: 1.7;
  background:
    radial-gradient(circle at 0% 0%, rgba(224, 161, 74, 0.07), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(85, 168, 114, 0.10), transparent 34%),
    linear-gradient(180deg, var(--kp-warm-100) 0%, #ffffff 46%, var(--kp-warm-200) 100%);
}

h1,
h2,
h3,
h4,
.font-bold {
  font-family: "Lora", "Georgia", serif;
  letter-spacing: -0.01em;
  font-weight: 700;
}

a {
  color: var(--kp-green-700);
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4d2c;
}

/* ── Buttons ── */
.kp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9999px;
  padding: 0.78rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.kp-btn:hover {
  transform: translateY(-2px);
}

.kp-btn:active {
  transform: translateY(0);
}

.kp-btn-primary {
  background: linear-gradient(135deg, #38955e, #2a6e42 55%, #1f5233);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(32, 80, 56, 0.32);
}

.kp-btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #3da366, #2e7848 55%, #235b39);
  box-shadow: 0 14px 28px rgba(26, 64, 44, 0.38);
}

.kp-btn-donate {
  background: linear-gradient(135deg, #f5c96a, #e8a84e 55%, #d48e36);
  color: #2b2000;
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: 0 8px 20px rgba(140, 88, 24, 0.24);
  font-weight: 800;
}

.kp-btn-donate:hover {
  color: #1e1600;
  background: linear-gradient(135deg, #f7d07a, #ecb458 55%, #d8943e);
  box-shadow: 0 14px 26px rgba(120, 72, 14, 0.32);
}

.kp-btn-light {
  background: #ffffff;
  color: #1d5a3a;
  border-color: rgba(40, 95, 60, 0.22);
  box-shadow: 0 8px 18px rgba(20, 57, 36, 0.14);
}

.kp-btn-light:hover {
  color: #164c30;
  background: #f8fff9;
  box-shadow: 0 12px 22px rgba(20, 57, 36, 0.20);
}

/* ── Nav ── */
nav[x-data] {
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(40, 95, 60, 0.11);
  transition: box-shadow 0.25s ease;
}

nav[x-data].nav-scrolled {
  box-shadow: 0 4px 20px rgba(28, 52, 36, 0.11);
}

/* Desktop nav links — animated underline */
.kp-nav-link {
  position: relative;
  padding-bottom: 3px;
  color: var(--kp-ink-900);
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.kp-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--kp-green-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.kp-nav-link:hover {
  color: var(--kp-green-700);
}

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

.kp-nav-link.kp-nav-active {
  color: var(--kp-green-700);
  font-weight: 600;
}

/* Dropdown */
.kp-nav-dropdown {
  background: #fffdf8;
  border: 1px solid rgba(40, 95, 60, 0.14);
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgba(24, 44, 30, 0.13);
  overflow: hidden;
  min-width: 14rem;
}

.kp-nav-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--kp-ink-900);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.kp-nav-dropdown a:hover {
  background: rgba(40, 95, 60, 0.07);
  color: var(--kp-green-700);
  padding-left: 1.25rem;
}

/* Mobile menu */
.kp-mobile-menu {
  background: linear-gradient(160deg, #1c3823 0%, #285f3c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kp-mobile-link {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6rem 0;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.kp-mobile-link:hover {
  color: #ffffff;
  padding-left: 0.375rem;
}

.kp-mobile-link.kp-nav-active {
  color: #b6f0ce;
  font-weight: 700;
}

.kp-mobile-giving-label {
  color: var(--kp-amber-400);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

/* Hamburger button */
.kp-hamburger {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: background 0.18s ease;
  color: var(--kp-ink-900);
}

.kp-hamburger:hover {
  background: rgba(40, 95, 60, 0.08);
}

/* Giving chevron */
.kp-giving-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--kp-ink-900);
  font-weight: 500;
  font-size: 0.925rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.kp-giving-btn:hover {
  color: var(--kp-green-700);
}

.kp-giving-chevron {
  transition: transform 0.2s ease;
}

.kp-giving-chevron.open {
  transform: rotate(180deg);
}

/* ── Hero ── */
.kp-home-hero {
  min-height: 72vh;
  background-size: cover;
  background-position: center;
}

.kp-page-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(40, 95, 60, 0.15);
}

.kp-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 46, 28, 0.72), rgba(20, 46, 28, 0.36) 50%, rgba(20, 46, 28, 0.20));
}

.kp-page-hero > div {
  position: relative;
  z-index: 2;
}

/* ── Cards / Shells ── */
.kp-section-shell {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(40, 95, 60, 0.13);
  border-radius: 1.25rem;
  box-shadow: 0 14px 30px rgba(28, 52, 38, 0.07);
}

.kp-card {
  background: #ffffff;
  border: 1px solid rgba(40, 95, 60, 0.13);
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(24, 44, 30, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.kp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(24, 44, 30, 0.14);
}

.kp-grid-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.9rem 0.9rem 0 0;
}

/* ── Service media tile ── */
.kp-service-media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, #1d3d28, #285f40 58%, #307560);
}

.kp-service-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  background-size: 8px 8px, auto;
  opacity: 0.45;
  animation: kpTextureDrift 12s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.kp-service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(52, 190, 140, 0.20), rgba(40, 90, 56, 0.26)),
    linear-gradient(180deg, rgba(16, 36, 28, 0.04), rgba(16, 36, 28, 0.30));
  z-index: 1;
  pointer-events: none;
}

.kp-service-media .kp-grid-photo {
  filter: grayscale(1) contrast(1.45) saturate(1.45) brightness(1.02);
  transform: scale(1.02);
  mix-blend-mode: luminosity;
  opacity: 0.86;
  transition: transform 0.55s ease, filter 0.35s ease, opacity 0.35s ease;
}

.kp-card:hover .kp-service-media .kp-grid-photo {
  transform: scale(1.07);
  filter: grayscale(0.9) contrast(1.5) saturate(1.55) brightness(1.04);
  opacity: 0.9;
}

@keyframes kpTextureDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 32px 24px, 0 0;
  }
}

/* ── Content ── */
.kp-content p {
  color: var(--kp-ink-700);
}

.kp-content h2 {
  color: var(--kp-green-700);
  margin-bottom: 0.7rem;
}

.kp-feature-pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  color: #285f3c;
  background: #e7f2e1;
  border: 1px solid rgba(40, 95, 60, 0.22);
  font-family: "Manrope", sans-serif;
}

.kp-form-panel {
  background: linear-gradient(160deg, #2a6d46, #2f8750 54%, #28593b);
  border: 1px solid rgba(248, 251, 240, 0.28);
  box-shadow: 0 20px 35px rgba(15, 35, 23, 0.22);
}

.kp-text-balance {
  text-wrap: balance;
}

/* ── Hero overlay ── */
.kp-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(18, 42, 26, 0.68), rgba(18, 42, 26, 0.22) 52%, rgba(224, 161, 74, 0.06));
}

.kp-hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

/* ── Tailwind color overrides ── */
.bg-teal-600 {
  background-color: var(--kp-green-600) !important;
}

.bg-teal-700 {
  background-color: var(--kp-green-700) !important;
}

.bg-teal-50 {
  background-color: var(--kp-sage-100) !important;
}

.text-teal-900,
.text-teal-800,
.text-teal-700,
.text-teal-600 {
  color: var(--kp-green-700) !important;
}

.border-teal-600,
.border-teal-500,
.border-teal-300 {
  border-color: rgba(40, 95, 60, 0.40) !important;
}

/* ── Images ── */
main img {
  filter: saturate(1.04) contrast(1.02);
}

main .rounded-2xl img,
main .shadow img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

main .rounded-2xl:hover img,
main .shadow:hover img {
  transform: scale(1.035);
  filter: saturate(1.1) contrast(1.05);
}

/* ── Footer ── */
footer {
  background: linear-gradient(130deg, #1d3a26 0%, #2a5638 48%, #306840 100%) !important;
  color: #f8fdf5 !important;
}

footer h3 {
  color: #c8f0d8 !important;
  letter-spacing: 0.01em;
}

footer a {
  color: #d8f0e2;
}

footer a:hover {
  color: #ffffff;
}

/* ── News cards (Bootstrap override) ── */
.news-section {
  background: var(--kp-warm-200) !important;
}

.news-section .card {
  border: 1px solid rgba(40, 95, 60, 0.12) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 22px rgba(24, 44, 30, 0.08) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease !important;
  background: #ffffff !important;
}

.news-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(24, 44, 30, 0.13) !important;
}

.news-section .card-title {
  font-family: "Lora", Georgia, serif;
  color: var(--kp-ink-900) !important;
}

.news-section .btn-outline-primary {
  background: linear-gradient(135deg, #38955e, #285f3c) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.45rem 1.2rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 6px 16px rgba(32, 80, 56, 0.26) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.news-section .btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(26, 64, 44, 0.32) !important;
  color: #ffffff !important;
}

/* ── Insurance / Announcement sections ── */
#insurance-accepted .kp-section-shell,
.kp-section-shell {
  background: rgba(255, 253, 248, 0.92);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  h1 {
    line-height: 1.15;
  }

  .kp-home-hero {
    min-height: 62vh;
  }

  .kp-grid-photo {
    height: 200px;
  }
}
