/* =============================================
   Trauma & Contemplative Practice — Main Styles
   Matching original Word-based design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

:root {
  --teal:      #0A7A8C;
  --teal-dark: #075f6d;
  --rust:      #C3723B;
  --gold-nav:  #c8a828;
  --cream:     #e8e0cc;
  --red:       #cc0000;
  --border:    #c8b88a;
  --nav-h:     48px;
  --max-w:     720px;
  --font:      Carlito, Calibri, 'Trebuchet MS', Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--teal);
  line-height: 1.3;
  font-weight: 700;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: underline; }
a:hover { color: var(--rust); }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip Link ──────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--teal); color: #fff;
  padding: 8px 16px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Site Header / Nav ──────────────────────── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 1rem;
  height: var(--nav-h);
}

.site-title { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold-nav);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.main-nav { display: flex; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
  display: block;
  padding: 5px 14px;
  background: var(--gold-nav);
  color: #2a1f00;
  text-decoration: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid #a88a10;
  border-radius: 2px;
  transition: background .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #daba30;
  color: #1a1000;
}

/* ── Page Layout ────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  text-align: center;
}

/* ── Hero Block ─────────────────────────────── */
.hero { margin-bottom: .5rem; }

.hero .org-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .05rem;
}

.hero .sym-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .05rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1.1;
  margin-bottom: .05rem;
}

.hero .subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: .3rem;
}

/* ── Past-event notice ──────────────────────── */
.notice-banner {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--red);
  margin: .3rem 0;
  line-height: 1.25;
}

/* ── Video / mailing action links ───────────── */
.action-links {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin: .5rem 0;
  line-height: 1.7;
}
.action-links a { color: var(--teal); }
.action-links a:hover { color: var(--rust); }

/* ── Topics ─────────────────────────────────── */
.topics-band {
  margin: .5rem 0;
}
.topics-band p {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1.55;
}

/* ── Speakers ────────────────────────────────── */
.speakers-intro {
  font-size: .875rem;
  font-weight: 700;
  color: var(--rust);
  margin: .5rem 0 .1rem;
}

.speakers-list {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1.65;
}
.speakers-list a { color: var(--rust); text-decoration: none; }
.speakers-list a:hover { text-decoration: underline; }

.moderators {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: .25rem;
}
.moderators a { color: var(--teal); text-decoration: none; }
.moderators a:hover { text-decoration: underline; }

/* ── Sponsors ────────────────────────────────── */
.sponsors {
  margin: .5rem 0;
}
.sponsors h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 0;
}
.sponsors ul {
  list-style: none;
  font-size: 1rem;
  color: var(--teal);
  line-height: 1.6;
}

/* ── Publication line ───────────────────────── */
.publication {
  font-size: .875rem;
  color: var(--teal);
  margin: .5rem 0 .25rem;
}
.publication a { color: var(--teal); }

.book-img {
  margin: .4rem auto;
  width: 187px;
}

/* ── Mailing / Facebook links (bottom, not bold) */
.mailing-links {
  font-size: 1rem;
  font-weight: 400;
  color: var(--teal);
  margin: .6rem 0 .4rem;
  line-height: 1.7;
}
.mailing-links a { color: var(--teal); }
.mailing-links a:hover { color: var(--rust); }

/* ── Footer links ───────────────────────────── */
.footer-links {
  font-size: .75rem;
  color: var(--teal);
  margin-top: .4rem;
}
.footer-links a { color: var(--teal); }

/* ── Generic page content ─────────────────── */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rust);
  border-bottom: 2px solid var(--border);
  padding-bottom: .4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  margin: 1.5rem 0 .5rem;
}
p { margin-bottom: .75rem; }

/* ── Speaker Cards ───────────────────────────── */
.speaker-card {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.speaker-card:last-child { border-bottom: none; }
.speaker-photo {
  width: 100px; height: 100px; flex-shrink: 0;
  object-fit: cover; border-radius: 2px;
  border: 1px solid var(--border);
}
.speaker-initials {
  width: 100px; height: 100px; flex-shrink: 0;
  background: var(--teal);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem; font-weight: 700;
}
.speaker-info h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--rust); margin-bottom: .15rem;
}
.speaker-info .speaker-role {
  font-size: .85rem; color: var(--teal);
  font-weight: 700; margin-bottom: .4rem;
}
.speaker-info p { font-size: .9rem; color: #444; margin-bottom: .3rem; }

/* ── Video page ──────────────────────────────── */
.video-section { margin-bottom: 2rem; }
.video-session-header {
  background: var(--teal);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: .5rem 1rem;
}
.video-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
  border: 1px solid var(--border);
  border-top: none;
  background: #f0ebe0;
}
.video-table td {
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.video-table tr:last-child td { border-bottom: none; }
.video-table .vt-topic { font-weight: 700; color: var(--rust); }
.video-table .vt-speaker { color: var(--teal); font-size: .85rem; }
.video-table .vt-links { white-space: nowrap; width: 1%; }
.video-table .vt-links a {
  display: inline-block; margin: 1px 2px;
  background: var(--teal); color: #fff;
  text-decoration: none; padding: .2rem .65rem;
  border-radius: 2px; font-size: .78rem; font-weight: 700;
  transition: background .15s;
}
.video-table .vt-links a:hover { background: var(--rust); }

/* ── Schedule ────────────────────────────────── */
.schedule-glance {
  background: #f0ebe0;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.schedule-glance table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.schedule-glance th {
  background: var(--teal); color: #fff;
  padding: .5rem 1rem; text-align: left; font-size: 1rem;
}
.schedule-glance td {
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-glance tr:last-child td { border-bottom: none; }
.schedule-glance td:first-child { font-weight: 700; color: var(--teal); width: 100px; }

.table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.schedule-table th {
  background: var(--teal); color: #fff;
  padding: .5rem 1rem; text-align: left;
}
.schedule-table td {
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-table tr:nth-child(even) td { background: #f0ebe0; }
.schedule-table tr.session-header td {
  background: #d8ceb4; font-weight: 700;
  color: var(--teal); font-size: 1rem;
}

/* ── Book page ───────────────────────────────── */
.book-hero {
  display: flex; gap: 2rem; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 1.5rem; text-align: left;
}
.book-cover {
  flex-shrink: 0; width: 160px;
  box-shadow: 4px 8px 24px rgba(0,0,0,.2);
}
.book-meta h1 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--rust); line-height: 1.2; margin-bottom: .3rem;
}
.book-meta .book-subtitle {
  font-style: italic; color: var(--teal);
  font-size: 1.05rem; margin-bottom: .6rem;
}
.book-meta p { font-size: .9rem; color: #444; margin-bottom: .3rem; }
.buy-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.buy-links a {
  display: inline-block;
  background: var(--teal); color: #fff;
  text-decoration: none; padding: .4rem 1rem;
  border-radius: 2px; font-size: .85rem; font-weight: 700;
  transition: background .15s;
}
.buy-links a:hover { background: var(--rust); }

/* ── Register page ───────────────────────────── */
.connect-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 1.25rem;
}
.connect-card {
  background: #f0ebe0; border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  padding: 1.1rem 1.3rem; text-align: center;
}
.connect-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--rust); margin-bottom: .4rem; }
.connect-card p { font-size: .88rem; color: #444; margin-bottom: .6rem; }
.connect-card .btn {
  display: inline-block;
  background: var(--teal); color: #fff;
  text-decoration: none; padding: .4rem 1.1rem;
  border-radius: 2px; font-size: .85rem; font-weight: 700;
  transition: background .15s;
}
.connect-card .btn:hover { background: var(--rust); }

/* ── Site Footer ─────────────────────────────── */
.site-footer {
  background: #d4c8aa;
  color: var(--teal);
  text-align: center;
  font-size: .85rem;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════ */
@media (max-width: 620px) {
  :root { --nav-h: 44px; }

  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }

  .main-nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
  }
  .main-nav.open { max-height: 300px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem; }
  .main-nav a { font-size: .95rem; }

  main { padding: 1rem 1rem 2.5rem; }

  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1.35rem; }

  .connect-cards { grid-template-columns: 1fr; }
  .speaker-card { flex-direction: column; }
  .book-hero { flex-direction: column; }
  .book-cover { width: 130px; }
  .video-table .vt-links { white-space: normal; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .topics-band p { font-size: 1rem; }
}
