@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --ink: #0A1C2E;
  --ink-soft: #3E5C77;
  --paper: #fdfdfc;
  --paper-alt: #f3f2ee;
  --line: #e2ddd2;
  --accent: #C6A45A;
  --accent-dark: #87651D;
  --success-bg: #eaf3ea;
  --success-text: #2f5d34;
  --error-bg: #fbeceb;
  --error-text: #8a2e28;
  --radius: 6px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* The public site's navy/gold/Playfair palette is applied via the :root
   custom properties above. Admin pages also load this file, so this block
   pins the admin panel back to its original palette/font to keep it
   visually unchanged. */
body.admin-body {
  --ink: #1b2027;
  --ink-soft: #4a5160;
  --paper: #faf9f6;
  --paper-alt: #f0eee8;
  --accent: #9a6b3c;
  --accent-dark: #7a5330;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--ink-soft); }

/* Header */
body:not(.admin-body) .site-header {
  border-bottom: 1px solid rgba(198, 164, 90, 0.2);
  background: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.main-nav a.active, .main-nav a:hover { color: var(--accent-dark); }
body:not(.admin-body) .main-nav a { color: rgba(255, 255, 255, 0.85); }
body:not(.admin-body) .main-nav a.active,
body:not(.admin-body) .main-nav a:hover { color: var(--accent); }
.header-cta { margin-left: 24px; white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  color: var(--paper);
  font-size: 42px;
  margin: 0 0 16px;
}
.hero h1.hero-tagline {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.hero-logo { display: block; width: 100%; max-width: 480px; margin: 0 auto 8px; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #cfcac0;
  font-size: 17px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm { padding: 8px 16px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
/* New --accent is a lighter gold than the old brown-tan; white text on it
   no longer reads at a safe contrast on the public site. Scoped to the
   public site only — admin keeps its original (darker) --accent, where
   white text was already fine. */
body:not(.admin-body) .btn-primary,
body:not(.admin-body) .step-num { color: var(--ink); }
.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.hero .btn-secondary { color: var(--paper); border-color: #6e6a63; }
.hero .btn-secondary:hover { border-color: var(--paper); }
section.section .btn-secondary { color: var(--ink); border-color: var(--line); }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.btn-link-danger { color: var(--error-text); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-alt); }
.narrow { max-width: 640px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card-headline { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.card-topics { font-size: 12px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }

/* Steps */
.steps { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.step { flex: 1; min-width: 200px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Speaker detail */
.speaker-detail .bio { max-width: 680px; margin: 16px 0; }
.speaker-detail .fee { font-weight: 600; }
.speaker-detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .speaker-detail-layout { grid-template-columns: 1fr; } }
.speaker-photo {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 48px;
}

/* Forms */
.stacked-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.stacked-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.stacked-form input[type="text"],
.stacked-form input[type="email"],
.stacked-form input[type="tel"],
.stacked-form input[type="date"],
.stacked-form input[type="password"],
.stacked-form textarea,
.stacked-form select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: normal;
  color: var(--ink);
  background: #fff;
}
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.input-with-link { display: flex; align-items: center; gap: 10px; }
.input-with-link input { flex: 1; }

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
.filter-bar input[type="text"], .filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.filter-bar a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
}
.filter-bar a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0;
}
.footer-inner { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }

/* Badges shared with admin */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.badge-active, .badge-confirmed, .badge-won, .badge-signed, .badge-executed, .badge-admin { background: var(--success-bg); color: var(--success-text); }
.badge-new, .badge-pending, .badge-draft, .badge-applicant { background: #fdf3e3; color: #8a5a12; }
.badge-inactive, .badge-lost, .badge-cancelled { background: var(--error-bg); color: var(--error-text); }
.badge-contacted, .badge-qualified, .badge-sent { background: #e8eef7; color: #2b4e7a; }

/* ===== Public site branding pass - navy/gold/Playfair, ported from the
   BeSpoken Figma mockup. Scoped to public pages only (admin keeps its own
   palette via the .admin-body override at the top of this file). ===== */

.logo-img { height: 44px; width: auto; display: block; }

/* Photo speaker cards - Home "Featured Speakers" + full roster */
.card { padding: 0; overflow: hidden; }
.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 32px;
}
.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 4px; font-size: 19px; }
.card-topics-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(198, 164, 90, 0.14);
  color: var(--accent-dark);
}

/* Two-column split layout - Request a Speaker / Become a Speaker */
.section-navy { background: var(--ink); color: var(--paper); }
.section-navy h1, .section-navy h2 { color: var(--paper); }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .split-section { grid-template-columns: 1fr; }
}
.split-info .info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.split-info .info-label { font-size: 13px; color: #b9c3cd; margin: 0 0 2px; }
.split-info .info-value { font-size: 16px; margin: 0; }
.split-info .info-value a { color: var(--paper); }
.split-info .info-value a:hover { color: var(--accent); }
.split-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(10, 28, 46, 0.18);
  color: var(--ink);
}
.split-card h2, .split-card h3 { color: var(--ink); }
.split-card .stacked-form { max-width: none; }

/* Benefits / requirements - Become a Speaker */
.benefit-list { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-item h4 { margin: 0 0 4px; font-size: 16px; }
.benefit-item p { margin: 0; color: var(--ink-soft); }
.requirement-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.requirement-list li { display: flex; gap: 10px; align-items: baseline; }
.requirement-list li::before { content: "\2713"; color: var(--accent-dark); font-weight: bold; }

/* About page team grid */
.rule-gold { width: 64px; height: 3px; background: var(--accent); border: none; margin: 16px auto 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.team-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 16px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { margin: 0 0 4px; font-size: 20px; }
.team-title { margin: 0 0 10px; color: var(--accent-dark); font-weight: 600; }
.team-bio { color: var(--ink-soft); }
.team-placeholder-note { color: var(--ink-soft); font-style: italic; }
