/* ==========================================================================
   NeuroCare Kits — shared stylesheet
   ========================================================================== */

:root {
  --grad-1: #8EC2F3;
  --grad-2: #A5B7F6;
  --grad-3: #C1AAFA;
  --grad-4: #D99FFD;
  --grad-5: #EA98FE;

  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #1F2937;
  --text-secondary: #6B7280;

  --btn-primary: #8EC2F3;
  --btn-hover: #A5B7F6;

  --radius: 20px;
  --shadow-soft: 0 10px 30px rgba(142, 194, 243, 0.18);
  --shadow-card: 0 4px 20px rgba(31, 41, 55, 0.06);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grad-4);
  background: linear-gradient(90deg, rgba(142,194,243,0.12), rgba(234,152,254,0.12));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
}

.section--light { background: var(--bg-light); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { font-size: 1.05rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--grad-1);
  outline-offset: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--btn-hover); }

.btn-gradient {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-5));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-gradient:hover { box-shadow: 0 14px 34px rgba(217, 159, 253, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--grad-2); background: var(--bg-light); }

.btn-white {
  background: #fff;
  color: var(--grad-4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-white:hover { transform: translateY(-2px) scale(1.02); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  gap: 12px;
  list-style: none;
  margin: 0 28px;
  padding: 0;
  min-width: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--grad-4);
  border-bottom-color: var(--grad-4);
}

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

@media (max-width: 1180px) and (min-width: 921px) {
  .nav-links { font-size: 0.9rem; margin: 0 16px; gap: 8px; }
  .nav-links a { font-size: 0.8rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; font-size: 0.98rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-5));
  background-size: 300% 300%;
  animation: heroShift 16s ease infinite;
  padding: 120px 0 100px;
}
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255,255,255,0.94);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { width: 62%; }

.float-icon {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  animation: floaty 6s ease-in-out infinite;
}
.float-icon svg { width: 50%; height: 50%; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------------- Cards ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(142,194,243,0.22);
}

.card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-4));
  margin-bottom: 18px;
}
.card .icon-wrap svg { width: 26px; height: 26px; color: #fff; }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------------- Stats ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, var(--grad-1), var(--grad-5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat .label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ---------------- Testimonials ---------------- */
.testimonial {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--border);
}
.testimonial .stars { color: var(--grad-4); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p.quote { font-style: italic; color: var(--text); font-size: 1.02rem; }
.testimonial .who { font-weight: 600; font-family: var(--font-heading); font-size: 0.9rem; color: var(--text-secondary); }

/* ---------------- Donate section ---------------- */
.donate-band {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-3), var(--grad-5));
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.donate-band h2 { color: #fff; }
.donate-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin-left: auto; margin-right: auto; }
.donate-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.trust-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.trust-badges span { display: flex; align-items: center; gap: 6px; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,41,55,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-light);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.modal h3 { margin-bottom: 6px; }
.modal p { font-size: 0.92rem; }
.modal-options { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.modal-options .btn { width: 100%; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #1F2937;
  color: #E5E7EB;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer p { color: #9CA3AF; font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #D1D5DB; font-size: 0.92rem; }
.footer-links a:hover { color: var(--grad-3); }

.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--grad-4); }
.social-row svg { width: 18px; height: 18px; }

.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #111827;
  color: #fff;
  font-size: 0.88rem;
}
.newsletter-form button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--grad-4);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #9CA3AF;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #fff; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------- Page header (inner pages) ---------------- */
.page-hero {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-3), var(--grad-5));
  padding: 80px 0 70px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto; }

/* ---------------- Forms ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text);
}
.form-field input,
.form-field textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--grad-2);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 56px; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pill {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------------- Kit Contents Table ---------------- */
.kit-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.kit-table thead th {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-4));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 16px 24px;
  font-size: 0.95rem;
}
.kit-table tbody td {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: top;
}
.kit-table tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  width: 42%;
}
.kit-table tbody td:last-child { color: var(--text-secondary); }
.kit-table tbody tr:nth-child(even) { background: var(--bg-light); }

@media (max-width: 700px) {
  .kit-table thead { display: none; }
  .kit-table, .kit-table tbody, .kit-table tr, .kit-table td { display: block; width: 100%; }
  .kit-table tr { border-top: 1px solid var(--border); padding: 16px 0; }
  .kit-table tbody tr:nth-child(even) { background: transparent; }
  .kit-table td { padding: 4px 4px; border-top: none; }
  .kit-table td:first-child::before { content: "Item: "; color: var(--grad-4); }
  .kit-table td:last-child::before { content: "Purpose: "; color: var(--grad-4); font-weight: 600; font-family: var(--font-heading); }
}

/* ---------------- How It Helps ---------------- */
.helps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.helps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.helps-list .icon-wrap { flex-shrink: 0; width: 44px; height: 44px; }
.helps-list .icon-wrap svg { width: 22px; height: 22px; }
.helps-list p { margin: 0; }
.helps-list strong { color: var(--text); font-family: var(--font-heading); font-weight: 600; }

/* ---------------- Photo Gallery ---------------- */
.album-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.album-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
}
.album-nav a:hover { border-color: var(--grad-2); color: var(--grad-4); }

.album {
  margin-bottom: 88px;
  scroll-margin-top: 100px;
}
.album-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.album-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.photo-grid button:hover img { transform: scale(1.06); }

.album-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .donate-band { padding: 44px 22px; }
}
