/* ==========================================================================
   P.O.I.S.E — Parents of Orinda in Special Education
   Shared stylesheet — warm, friendly, modern
   ========================================================================== */

:root {
  --teal-900: #14504c;
  --teal-700: #1c7d75;
  --teal-500: #2aa198;
  --teal-100: #d9f0ed;
  --coral:    #ef7d63;
  --coral-dark:#d95f45;
  --sun:      #f6b545;
  --cream:    #fdf8f1;
  --sand:     #f4ece0;
  --ink:      #2b2a28;
  --slate:    #5b5852;
  --white:    #ffffff;
  --shadow:   0 10px 30px rgba(20, 80, 76, 0.10);
  --shadow-sm:0 4px 14px rgba(20, 80, 76, 0.08);
  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1120px;
  --font: "Poppins", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--coral-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 68px 0; }
.section--tint { background: var(--sand); }
.section--teal { background: var(--teal-100); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,80,76,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.site-logo { height: 50px; width: auto; display: block; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
/* Header brand: show logo image, hide the fallback tagline text on small screens */
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tagline { font-size: .72rem; color: var(--slate); letter-spacing: .3px; margin-top: 2px; }

/* Hero logo (home page) */
.hero-logo { height: 128px; width: auto; margin-bottom: 22px; display: block; }

/* Footer logo on a soft white chip so the navy wordmark reads on dark teal */
.footer-logo {
  display: inline-flex; background: #fff; padding: 14px 18px; border-radius: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.footer-logo img { height: 58px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; color: var(--teal-900); font-size: 1.15rem; letter-spacing: .5px; }
.brand-sub { font-size: .72rem; color: var(--slate); letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--teal-100); color: var(--teal-900); }
.nav-links a.active { background: var(--teal-700); color: #fff; }
.nav-links a.cta { background: var(--coral); color: #fff; }
.nav-links a.cta:hover { background: var(--coral-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--teal-900); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--teal-100) 0%, var(--cream) 60%);
  padding: 82px 0 72px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; opacity: .5;
}
.hero::before { width: 320px; height: 320px; background: radial-gradient(circle, rgba(246,181,69,.35), transparent 70%); top: -80px; right: -60px; }
.hero::after  { width: 260px; height: 260px; background: radial-gradient(circle, rgba(239,125,99,.28), transparent 70%); bottom: -90px; left: -70px; }
.hero .container { position: relative; z-index: 1; }
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; max-height: 470px; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-photo .credit {
  position: absolute; bottom: 10px; right: 16px;
  font-size: .68rem; color: #fff; opacity: .82;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.hero-eyebrow {
  display: inline-block; background: var(--white); color: var(--teal-700);
  font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.18rem; color: var(--slate); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-secondary { background: var(--white); color: var(--teal-700); border-color: var(--teal-500); }
.btn-secondary:hover { background: var(--teal-100); color: var(--teal-900); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0e5fca; color: #fff; }

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

.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,80,76,0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { color: var(--teal-800, #185f59); margin-bottom: .4em; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--teal-100);
}

.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; color: var(--coral-dark); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}

/* ---------- Mission split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.mission-note {
  background: var(--white); border-left: 5px solid var(--sun); border-radius: var(--radius-sm);
  padding: 26px; box-shadow: var(--shadow-sm); font-size: 1.05rem;
}

/* ---------- Coffee chat / dates ---------- */
.dates { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.date-chip {
  background: var(--white); border-radius: var(--radius-sm); padding: 16px 22px;
  text-align: center; box-shadow: var(--shadow-sm); min-width: 96px;
  border-top: 4px solid var(--teal-500);
}
.date-chip .m { display: block; font-weight: 800; color: var(--teal-900); font-size: 1.05rem; }
.date-chip .d { display: block; color: var(--coral-dark); font-weight: 700; font-size: 1.4rem; }

/* ---------- Resources ---------- */
.res-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 14px; }
.search-box {
  flex: 1 1 320px; max-width: 460px; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--teal-100); border-radius: 999px; padding: 4px 6px 4px 18px;
  box-shadow: var(--shadow-sm);
}
.search-box input { flex: 1; border: 0; outline: 0; font-size: 1rem; font-family: var(--font); background: transparent; padding: 10px 0; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.chip {
  border: 2px solid var(--teal-100); background: var(--white); color: var(--teal-800, #185f59);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: .15s ease;
}
.chip:hover { border-color: var(--teal-500); }
.chip.active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

.res-group { margin-bottom: 40px; }
.res-group h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; color: var(--teal-900); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px dashed var(--teal-100);
}
.res-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.res-item {
  background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,80,76,0.05);
  transition: transform .12s ease, box-shadow .15s ease;
}
.res-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.res-item .name { font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.res-item .desc { font-size: .88rem; color: var(--slate); display: block; margin-bottom: 6px; }
.res-item a.link { font-size: .9rem; font-weight: 600; word-break: break-word; }
.no-results { text-align: center; color: var(--slate); padding: 40px; display: none; }

/* ---------- Liaisons ---------- */
.group-title {
  font-size: 1.5rem; color: var(--teal-900); margin: 0 0 22px;
  padding-bottom: 10px; border-bottom: 2px dashed var(--teal-100);
}

/* ---------- Rep profile cards ---------- */
.rep-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.rep-cover { height: 104px; overflow: hidden; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
.rep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-body { padding: 0 22px 24px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.rep-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 5px solid #fff; box-shadow: var(--shadow-sm); margin-top: -52px; background: #fff;
}
.rep-avatar.placeholder {
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--sun), var(--coral));
}
.rep-name { font-weight: 800; color: var(--teal-900); font-size: 1.15rem; margin-top: 12px; }
.rep-role { color: var(--coral-dark); font-weight: 700; font-size: .82rem; letter-spacing: .3px; margin-bottom: 10px; }
.rep-summary { color: var(--slate); font-size: .92rem; margin: 0 0 16px; }
.rep-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rep-actions .btn { padding: 9px 16px; font-size: .9rem; }

/* ---------- Bio pages ---------- */
.bio-wrap { max-width: 780px; margin: 0 auto; }
.bio-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.bio-photo { width: 190px; height: 190px; border-radius: 24px; object-fit: cover; object-position: center top; box-shadow: var(--shadow); flex: 0 0 auto; }
.bio-name { margin: 0 0 4px; }
.bio-role { color: var(--coral-dark); font-weight: 700; margin-bottom: 14px; }
.bio-body p { font-size: 1.06rem; color: var(--ink); }
.bio-back { display: inline-block; margin-bottom: 22px; font-weight: 600; }
@media (max-width: 560px) { .bio-photo { width: 150px; height: 150px; } .bio-head { gap: 18px; } }
.liaison-card { text-align: center; padding: 0; overflow: hidden; }
.liaison-photo { width: 100%; height: 158px; overflow: hidden; }
.liaison-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.liaison-photo.placeholder {
  display: grid; place-items: center; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; font-weight: 800; font-size: 2rem;
}
.liaison-body { padding: 22px 24px 28px; }
.liaison-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
}
.liaison-card .school { font-weight: 800; color: var(--teal-900); font-size: 1.15rem; }
.liaison-card .rep { color: var(--slate); margin-bottom: 12px; }
.liaison-card .rep-emails { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.liaison-card .rep-emails .btn { justify-content: center; }

/* ---------- Events timeline ---------- */
.event-card { border-left: 5px solid var(--teal-500); }
.event-card .when { color: var(--coral-dark); font-weight: 700; font-size: .92rem; letter-spacing: .3px; }
.event-year { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); font-weight: 700; margin: 36px 0 18px; }

/* Featured / special event */
.featured-event {
  background: #fff; border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow); border-top: 6px solid var(--sun);
}
.fe-tag {
  display: inline-block; background: var(--coral); color: #fff; font-weight: 700;
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.fe-meta { color: var(--coral-dark); font-weight: 700; margin-bottom: 14px; }
.featured-event p:last-child { margin-bottom: 0; }

/* Schedule list */
.sched { display: flex; flex-direction: column; gap: 12px; }
.sched-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow-sm); border-left: 5px solid var(--teal-500);
}
.sched-row.evening { border-left-color: var(--coral); }
.sched-date { font-weight: 800; color: var(--teal-900); min-width: 168px; }
.sched-loc { flex: 1 1 160px; color: var(--ink); font-weight: 600; }
.sched-time { color: var(--slate); font-size: .92rem; white-space: nowrap; }
.sched-badge {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-am { background: var(--teal-100); color: var(--teal-900); }
.badge-pm { background: #fde2da; color: var(--coral-dark); }

/* ---------- Contact ---------- */
.contact-methods { display: grid; gap: 18px; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-100); display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; }
.map-embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); min-height: 340px; }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff; border-radius: var(--radius); padding: 44px; text-align: center;
  box-shadow: var(--shadow);
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe9e5; padding: 48px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #a9dcd5; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 34px; padding-top: 20px;
  font-size: .82rem; color: #8fc4bd; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.disclaimer { font-size: .82rem; color: #8fc4bd; max-width: 60ch; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .res-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--white); border-radius: var(--radius); padding: 12px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .brand-tagline { display: none; }
  .site-logo { height: 42px; }
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo img { max-height: 320px; }
}
