/* =========================================================
   NAVYA — Centre for Justice and Social Change
   Theme: White & Sky Blue (institutional, elegant, minimal)
   ========================================================= */

:root {
  --color-white: #ffffff;
  --color-offwhite: #f4f9fc;
  --color-sky: #4fb3e8;
  --color-sky-dark: #1f8fd6;
  --color-sky-deep: #0f6fae;
  --color-sky-pale: #e6f4fc;
  --color-charcoal: #22303a;
  --color-grey: #5b6b76;
  --color-border: #dde9f0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 111, 174, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 111, 174, 0.12);
  --transition: 220ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-sky-deep);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

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

a { color: var(--color-sky-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-sky-deep); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-sky-deep); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { font-family: var(--font-heading); font-weight: 700; color: var(--color-sky-deep); font-size: 1.15rem; line-height: 1.1; }
.brand .brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--color-grey); text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--color-charcoal); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--color-sky-dark); }

.btn-donate {
  background: var(--color-sky-dark); color: #fff !important; padding: 10px 22px;
  border-radius: 999px; font-weight: 600; transition: background var(--transition), transform var(--transition);
}
.btn-donate:hover { background: var(--color-sky-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-sky-deep); margin: 5px 0; transition: var(--transition); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; transition: all var(--transition); cursor: pointer; font-size: 0.95rem;
}
.btn-primary { background: var(--color-sky-dark); color: #fff; }
.btn-primary:hover { background: var(--color-sky-deep); color: #fff; }
.btn-outline { border-color: var(--color-sky-dark); color: var(--color-sky-dark); background: transparent; }
.btn-outline:hover { background: var(--color-sky-pale); }
.btn-light { background: #fff; color: var(--color-sky-deep); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-sky-pale) 0%, var(--color-white) 100%);
  padding: 110px 0 90px;
  text-align: center;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--color-sky-dark); font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.3em 0 0.2em; }
.hero .tagline { font-size: 1.15rem; color: var(--color-sky-dark); font-weight: 600; margin-bottom: 0.8em; }
.hero .lead { max-width: 720px; margin: 0 auto 2em; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-offwhite); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; color: var(--color-sky-dark); font-weight: 700; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--color-sky-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--color-sky-deep); font-size: 1.4rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.card p { font-size: 0.94rem; }
.card .learn-more { font-weight: 600; font-size: 0.9rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--color-sky-deep); color: #fff; text-align: center; padding: 70px 0;
}
.quote-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 780px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--color-charcoal); }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.96rem; background: #fff; transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-sky-dark); box-shadow: 0 0 0 3px var(--color-sky-pale); }
.field-error { color: #c0392b; font-size: 0.85rem; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }
.alert-success { background: #e7f7ee; color: #1e7a45; border: 1px solid #bfe9d1; }
.alert-error { background: #fdecec; color: #c0392b; border: 1px solid #f6c6c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-charcoal); color: #cfe0ea; padding: 60px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: #b7cbd8; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; color: #93a9b6; text-align: center; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--color-sky-dark); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border);
    transform: translateY(-140%); transition: transform var(--transition); box-shadow: var(--shadow-md); }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 20px 24px; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: block; }
  .hero { padding: 80px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Hero justice-scale emblem */
.hero-emblem { margin-bottom: 18px; }
.hero-image-band {
  margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-image-band img { width: 100%; height: auto; display: block; }
.content-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin: 32px 0; }
.content-image img { width: 100%; height: auto; display: block; }
.content-image figcaption { font-size: .82rem; color: var(--color-grey); padding: 10px 4px 0; text-align: center; }
.two-col-media { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 800px) { .two-col-media { grid-template-columns: 1fr; } }

/* News / latest-update band */
.news-band { background: linear-gradient(120deg, var(--color-sky-deep), var(--color-sky-dark)); padding: 34px 0; }
.news-band-inner { display: flex; align-items: center; gap: 24px; }
.news-band-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.news-band-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #d7ecf9; font-weight: 700; margin: 0 0 4px; }
.news-band h2 { color: #fff; font-size: 1.3rem; margin: 0 0 8px; }
.news-band p { color: #e4f2fa; margin: 0 0 14px; max-width: 720px; }
@media (max-width: 700px) { .news-band-inner { flex-direction: column; align-items: flex-start; } }

/* Donate page */
.donate-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 32px 36px;
}
.donate-card-title { margin: 0 0 20px; color: var(--color-sky-deep); }
.donate-details { margin: 0; }
.donate-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.donate-row:last-child { border-bottom: none; }
.donate-row dt { font-weight: 600; color: var(--color-charcoal); margin: 0; }
.donate-row dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.donate-value { color: var(--color-grey); font-weight: 500; text-align: right; }
.copy-btn {
  border: 1px solid var(--color-sky-dark); background: transparent; color: var(--color-sky-dark);
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.copy-btn:hover { background: var(--color-sky-pale); }
.copy-btn.copied { background: var(--color-sky-dark); color: #fff; border-color: var(--color-sky-dark); }
.donate-note { margin-top: 24px; font-size: 0.9rem; }
@media (max-width: 560px) {
  .donate-card { padding: 24px 20px; }
  .donate-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .donate-row dd { width: 100%; justify-content: space-between; }
  .donate-value { text-align: left; }
}
