/* Texas Pastors Conference — shared visual system */

@font-face {
  font-family: "Neue Haas Grotesk Display";
  src: url("../fonts/NHaasGroteskDSPro-65Md.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Display";
  src: url("../fonts/NHaasGroteskDSPro-75Bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Caslon Pro";
  src: url("../fonts/ACaslonPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #15202b;
  --ink-soft: #2a3644;
  --slate: #5c6b7a;
  --accent: #3a5f8a;
  --accent-hover: #2f4f75;
  --bg: #e9ecef;
  --bg-warm: #f2f1ed;
  --surface: #ffffff;
  --text: #1a2330;
  --text-muted: #5a6572;
  --border: #d4d9df;
  --hero-overlay: linear-gradient(180deg, rgba(12, 18, 28, 0.55) 0%, rgba(12, 18, 28, 0.78) 55%, rgba(12, 18, 28, 0.92) 100%);
  --font-display: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Adobe Caslon Pro", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(21, 32, 43, 0.12);
  --transition: 0.25s ease;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { font-size: 1.125rem; }

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

.section { padding: 88px 0; }
.section--sm { padding: 64px 0; }
.section--ink {
  background: var(--ink);
  color: #f4f6f8;
}
.section--ink h2,
.section--ink h3 { color: #fff; }
.section--warm { background: var(--bg-warm); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.section--ink .eyebrow { color: rgba(255, 255, 255, 0.65); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ——— Motion ——— */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-dark { display: none; }
.nav.is-scrolled .nav-logo-light { display: none; }
.nav.is-scrolled .nav-logo-dark { display: block; }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}
.nav.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--accent); }

.nav-hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background var(--transition);
}
.nav.is-scrolled .nav-hamburger span { background: var(--ink); }

@media (min-width: 800px) {
  .nav-inner { height: 88px; }
  .nav-logo img { height: 58px; }
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  padding: 28px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-mobile-close {
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: #f0f2f4; }
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-outline-dark {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent-hover); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade 1.2s ease both;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 140px 0 72px;
}
.hero-logo {
  width: min(320px, 72vw);
  height: auto;
  margin-bottom: 28px;
  animation: rise 0.9s ease both;
}
.hero h1 {
  color: #fff;
  max-width: 14ch;
  animation: rise 0.9s ease 0.1s both;
}
.hero-sub {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  animation: rise 0.9s ease 0.2s both;
}
.hero .cta-row { animation: rise 0.9s ease 0.3s both; }

/* ——— Mission ——— */
.mission {
  text-align: center;
}
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 24px;
}
.mission p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ——— Talks teaser ——— */
.talks-teaser-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .talks-teaser-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
}
.talks-teaser p { color: rgba(255, 255, 255, 0.78); max-width: 40ch; }
.talks-teaser-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.talks-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* ——— Stay connected ——— */
.connect-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 800px) {
  .connect-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}
.connect-copy p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 40ch;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mailchimp */
.mc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
}
.mc-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.mc-form input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  margin-bottom: 14px;
}
.mc-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.mc-form .btn { width: 100%; }
.mc-form .mc-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
#mce-responses { margin-top: 12px; font-size: 0.95rem; }
.response { display: none; }
#mce-error-response { color: #9b1c1c; }
#mce-success-response { color: #166534; }

/* ——— Sponsors / Footer ——— */
.sponsors {
  text-align: center;
}
.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  margin-top: 36px;
}
.sponsors-row img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
}
.sponsors-row img[alt="Crossway"] {
  height: 28px;
  max-width: 220px;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 40px;
}
.footer-closing {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 18ch;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.footer-links a:hover { color: #fff; }
.footer-meta {
  font-size: 0.95rem;
}
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ——— Page hero (inner) ——— */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 120px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
}

/* ——— Talks player ——— */
.talks-layout { padding: 56px 0 96px; }
.year-block { margin-bottom: 56px; }
.year-block h2 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.talk-list { display: flex; flex-direction: column; gap: 10px; }
.talk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.talk-row.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.talk-meta { min-width: 0; }
.talk-session {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.talk-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.talk-speaker {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 1rem;
}
.talk-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.talk-actions .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
}
.player-bar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}
.player-bar.is-visible { transform: translateY(0); }
.player-bar-inner {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .player-bar-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
  }
}
.player-now {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.player-now strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-controls audio { width: min(360px, 70vw); height: 36px; }

@media (max-width: 640px) {
  .talk-row {
    grid-template-columns: 1fr;
  }
  .talk-actions { width: 100%; }
  .talk-actions .btn { flex: 1; }
}

/* ——— Legal ——— */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}
.legal-wrap h1 { margin-bottom: 12px; }
.legal-updated {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
}
.legal-wrap h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
  margin-bottom: 14px;
}
.legal-wrap ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 16px;
}
.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  font-size: 0.98rem;
}

/* ——— Registration draft ——— */
.reg-hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #fff;
  background: var(--ink);
}
.reg-hero h1,
.reg-hero .hero-sub {
  color: #fff;
}
.reg-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.4) 0%, rgba(12, 18, 28, 0.88) 100%);
}
.reg-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.detail-block { max-width: 60ch; }
.detail-block + .detail-block { margin-top: 40px; }
.detail-block h2 { margin-bottom: 14px; }
.detail-block p,
.detail-block li { color: var(--text-muted); }
.detail-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Exhibitor packages ——— */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 28px;
  max-width: 860px;
}
.package {
  padding: 28px 0 8px;
  border-top: 2px solid var(--ink);
}
.package-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.package-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.package ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 16px;
}
.package li {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.package-note {
  font-size: 0.95rem;
  color: var(--slate);
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-time {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.speaker-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.panel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  max-width: 52ch;
}
.panel-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.panel-item p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.books-intro {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 12px 0 28px;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 720px;
}
.book-placeholder {
  text-align: center;
}
.book-cover {
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(145deg, rgba(58, 95, 138, 0.12), rgba(21, 32, 43, 0.08)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 6px,
      rgba(21, 32, 43, 0.04) 6px,
      rgba(21, 32, 43, 0.04) 7px
    );
  border: 1px dashed var(--border);
  margin-bottom: 10px;
}
.book-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

.draft-banner {
  background: #7c4a14;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--border);
}
.nav-solid .nav-logo-light { display: none; }
.nav-solid .nav-logo-dark { display: block; }
.nav-solid .nav-links a { color: var(--ink); }
.nav-solid .nav-hamburger span { background: var(--ink); }
