/* ============================================================
   RethinkOnline — style.css
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --color-brand:        #1a5f8a;   /* trustworthy blue */
  --color-brand-dark:   #134568;
  --color-brand-light:  #e8f3fb;
  --color-accent:       #2b8a4e;   /* optimistic green */
  --color-accent-dark:  #1f6438;
  --color-text:         #1c2b36;
  --color-text-muted:   #4e6272;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f5f8fb;
  --color-border:       #d4e2ec;
  --color-white:        #ffffff;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.65;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 18px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --nav-height: 68px;
  --transition: 200ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

p { color: var(--color-text-muted); }

/* ---------- Container ---------- */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}
.btn--primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--outline:hover {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-accent-dark);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: #f0faf4;
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: .85rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: .75rem;
}
.eyebrow--light { color: rgba(255,255,255,.75); }

/* ---------- NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-height);
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -.02em;
  margin-right: auto;
  text-decoration: none;
}
.nav__logo:hover { color: var(--color-brand-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__links a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover {
  background: var(--color-bg-alt);
  color: var(--color-brand);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  order: 3;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0e3a55 0%, var(--color-brand) 55%, #1c7ab5 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(43,138,78,.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero .eyebrow { color: rgba(255,255,255,.7); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__actions .btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.hero__actions .btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.hero__actions .btn--outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,.55);
}
.hero__actions .btn--outline:hover {
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,.8);
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }

.section--accent {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
}
.section--accent h2,
.section--accent h3 { color: var(--color-white); }
.section--accent p { color: rgba(255,255,255,.85); }

.section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.section__text p { margin-bottom: 1rem; }
.section__text p:last-child { margin-bottom: 0; }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: .75rem;
}
.section__header--light h2 { color: var(--color-white); }
.section__intro { font-size: 1.05rem; }

/* ---------- PROBLEM LIST ---------- */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 1rem 0;
}
.problem-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--color-text-muted);
}
.problem-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-brand);
}
.problem-closing {
  margin-top: .25rem;
  font-style: italic;
}

/* ---------- CALLOUT BOXES ---------- */
.section__callout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: .5rem;
}
.callout {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  box-shadow: var(--shadow-sm);
}
.callout--mission {
  border-left-color: var(--color-accent);
}
.callout__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: .6rem;
}
.callout--mission .callout__label {
  color: var(--color-accent);
}
.callout__text {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- MISSION PILLARS ---------- */
.mission-pillars {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.mission-pillars__label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
}
.pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 2rem;
  list-style: disc;
  padding-left: 1.25rem;
}
.pillars-list li {
  font-size: .92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- TEAM CARDS ---------- */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card__photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-brand-light);
  background: var(--color-bg-alt);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-card__body {
  width: 100%;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .25rem;
}

.team-card__title {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: .85rem;
}

.team-card__bio {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  color: var(--color-brand);
}
.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
}

.card p { font-size: .92rem; }

/* ---------- AUDIENCE ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.audience__item {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.audience__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: .6rem;
}

.audience__item p { font-size: .92rem; }

/* ---------- WAYS (GET INVOLVED) ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.way {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.way:hover { background: rgba(255,255,255,.18); }

.way h3 { font-size: 1.1rem; color: var(--color-white); }
.way p { font-size: .92rem; flex-grow: 1; }
.way .btn { align-self: flex-start; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,.8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer__logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.footer__tagline {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

.footer__tax {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__contact p {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
}
.contact-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand);
  flex-shrink: 0;
}
.contact-list a {
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--color-white); }

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer__nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}
.footer__nav a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
}
.footer__bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .team {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root { --nav-height: 60px; }

  .nav__cta { display: none; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    width: 100%;
    padding: .65rem 1rem;
  }

  .nav__toggle { display: flex; }

  .hero { padding: 4rem 0 3.5rem; }

  .section { padding: 3.5rem 0; }

  .cards, .audience, .ways { grid-template-columns: 1fr; }

  .team { grid-template-columns: 1fr; }

  .pillars-list { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3rem 0 2rem;
  }

  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .btn--lg { padding: .75rem 1.5rem; font-size: 1rem; }
}

/* ---------- Focus / accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  z-index: 9999;
}
