/*
Theme Name: CaFEC Forum
Theme URI: https://fourm.cafecsc.com/
Author: Capital Financial Excellence Center (CaFEC) SC
Author URI: https://cafecsc.com/
Description: Executive forum theme for CaFEC's AI, Digital Transformation, and the Boardroom forum serving Ethiopian financial institutions.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cafec-forum
*/

:root {
  --cafec-red: #e31d1a;
  --cafec-green: #00a65a;
  --cafec-yellow: #f4b400;
  --cafec-blue: #0b6aa2;
  --cafec-navy: #071b2b;
  --cafec-ink: #17202a;
  --cafec-muted: #637083;
  --cafec-surface: #f6f8fb;
  --cafec-white: #ffffff;
  --cafec-border: #dce3eb;
  --cafec-shadow: 0 18px 55px rgba(7, 27, 43, .12);
  --cafec-radius: 22px;
  --cafec-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cafec-ink);
  background: var(--cafec-white);
  line-height: 1.65;
}
a { color: var(--cafec-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 36px), var(--cafec-max)); margin: 0 auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--cafec-surface); }
.section--dark { background: var(--cafec-navy); color: var(--cafec-white); }
.section__eyebrow {
  margin: 0 0 10px;
  color: var(--cafec-blue);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.section--dark .section__eyebrow { color: #7ed4ff; }
.section__title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section__lead {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: 1.08rem;
  color: var(--cafec-muted);
}
.section--dark .section__lead { color: #d2deea; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,227,235,.9);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.site-branding { display: flex; align-items: center; gap: 14px; color: var(--cafec-navy); }
.site-branding:hover { text-decoration: none; }
.site-logo { width: 94px; height: auto; display: block; flex: 0 0 auto; }
.site-branding__text { display: flex; flex-direction: column; line-height: 1.12; }
.site-branding__text strong { font-size: .98rem; }
.site-branding__text span { font-size: .76rem; color: var(--cafec-muted); }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; }
.primary-nav a { color: var(--cafec-ink); font-size: .93rem; font-weight: 650; }
.primary-nav a:hover { color: var(--cafec-blue); text-decoration: none; }
.menu-toggle {
  display: none;
  border: 1px solid var(--cafec-border);
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--cafec-navy);
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cafec-red); color: #fff !important; box-shadow: 0 10px 24px rgba(227,29,26,.23); }
.btn--secondary { background: #fff; color: var(--cafec-navy) !important; border-color: var(--cafec-border); }
.btn--dark { background: var(--cafec-navy); color: #fff !important; }
.btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 68px;
  background:
    radial-gradient(circle at 82% 16%, rgba(0,166,90,.16), transparent 28%),
    radial-gradient(circle at 14% 4%, rgba(244,180,0,.16), transparent 24%),
    linear-gradient(135deg, #f9fbfd 0%, #ffffff 56%, #eef7fb 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 40px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 1px solid rgba(11,106,162,.13);
  box-shadow: 0 0 0 44px rgba(11,106,162,.03), 0 0 0 88px rgba(0,166,90,.025);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid #d9e5ed;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--cafec-blue);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cafec-green); }
.hero h1 {
  margin: 22px 0 18px;
  max-width: 850px;
  color: var(--cafec-navy);
  font-size: clamp(2.7rem, 6vw, 5.55rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--cafec-blue); }
.hero-subtitle { max-width: 760px; font-size: 1.18rem; color: #4e5d6c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.event-card {
  background: rgba(255,255,255,.94);
  border: 1px solid #dfe8ef;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--cafec-shadow);
}
.event-card__title { margin: 0 0 18px; font-size: 1.15rem; color: var(--cafec-navy); }
.event-fact { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid #e8edf2; }
.event-fact:first-of-type { border-top: 0; padding-top: 0; }
.event-fact__icon { width: 38px; height: 38px; border-radius: 12px; background: #eef6fb; color: var(--cafec-blue); display: grid; place-items: center; font-weight: 900; }
.event-fact strong { display: block; color: var(--cafec-navy); }
.event-fact span { color: var(--cafec-muted); font-size: .92rem; }
.countdown { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown__item { padding: 10px 6px; border-radius: 12px; background: var(--cafec-navy); color: #fff; text-align: center; }
.countdown__item strong { display: block; font-size: 1.18rem; line-height: 1.1; }
.countdown__item span { font-size: .67rem; opacity: .72; text-transform: uppercase; letter-spacing: .06em; }

.stats { margin-top: -1px; background: var(--cafec-navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat span { color: #b8c7d4; font-size: .9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.proposition {
  padding: 28px;
  border-radius: var(--cafec-radius);
  color: #fff;
  background: linear-gradient(145deg, var(--cafec-blue), #06456a);
  box-shadow: var(--cafec-shadow);
}
.proposition strong { display: block; margin-bottom: 10px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #bce5ff; }
.proposition p { margin: 0; font-size: 1.35rem; line-height: 1.42; font-weight: 750; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: #e6f6ef; color: var(--cafec-green); display: grid; place-items: center; font-size: .78rem; font-weight: 900; }

.card-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--cafec-border);
  border-radius: var(--cafec-radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7,27,43,.05);
}
.card__num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--cafec-blue); font-weight: 900; }
.card h3 { margin: 18px 0 8px; font-size: 1.16rem; color: var(--cafec-navy); }
.card p { margin: 0; color: var(--cafec-muted); font-size: .95rem; }
.card:nth-child(2) .card__num { background: var(--cafec-green); }
.card:nth-child(3) .card__num { background: #b57e00; }
.card:nth-child(4) .card__num { background: var(--cafec-red); }
.card:nth-child(5) .card__num { background: #744fc6; }
.card:nth-child(6) .card__num { background: #4d697d; }

.agenda { margin-top: 34px; border: 1px solid var(--cafec-border); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(7,27,43,.06); }
.agenda-row { display: grid; grid-template-columns: 155px 235px 1fr; gap: 22px; padding: 20px 24px; border-bottom: 1px solid #e9eef3; align-items: center; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row__time { color: var(--cafec-blue); font-weight: 850; }
.agenda-row__session { font-weight: 800; color: var(--cafec-navy); }
.agenda-row__focus { color: var(--cafec-muted); }

.audience-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.audience-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid #e0e7ee; border-radius: 18px; background: #fff; }
.audience-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eef6fb; color: var(--cafec-blue); font-weight: 900; }
.audience-item strong { color: var(--cafec-navy); }
.audience-item p { margin: 4px 0 0; color: var(--cafec-muted); font-size: .93rem; }

.output-list { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.output-item { border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.045); }
.output-item strong { display: block; margin-bottom: 6px; }
.output-item span { color: #c4d2dd; }

.registration-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 40px; align-items: start; }
.registration-aside { position: sticky; top: 104px; }
.registration-aside .event-card { box-shadow: none; }
.cafec-form { display: grid; gap: 17px; }
.cafec-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cafec-field label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 800; color: var(--cafec-navy); }
.cafec-field input, .cafec-field select, .cafec-field textarea {
  width: 100%;
  border: 1px solid #cfd9e2;
  border-radius: 13px;
  background: #fff;
  padding: 12px 13px;
  color: var(--cafec-ink);
  outline: none;
}
.cafec-field input:focus, .cafec-field select:focus, .cafec-field textarea:focus { border-color: var(--cafec-blue); box-shadow: 0 0 0 3px rgba(11,106,162,.09); }
.cafec-field textarea { min-height: 110px; resize: vertical; }
.cafec-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--cafec-muted); font-size: .9rem; }
.cafec-consent input { margin-top: 4px; }
.cafec-form-status { padding: 12px 14px; border-radius: 12px; display: none; }
.cafec-form-status.is-success { display: block; background: #eaf8f1; color: #14784a; }
.cafec-form-status.is-error { display: block; background: #fff0ef; color: #9f2522; }

.contact-card { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.contact-person { border: 1px solid var(--cafec-border); border-radius: 18px; padding: 20px; background: #fff; }
.contact-person strong { display: block; color: var(--cafec-navy); }
.contact-person small { display: block; color: var(--cafec-muted); margin-bottom: 8px; }
.contact-person a { display: block; font-size: .9rem; }

.site-footer { background: #04121e; color: #c4d1db; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer-logo { width: 132px; margin-bottom: 16px; padding: 8px; border-radius: 14px; background: #fff; display: block; }
.site-footer h4 { margin: 0 0 12px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c4d1db; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); font-size: .82rem; color: #8fa0ad; display: flex; justify-content: space-between; gap: 20px; }

.content-shell { width: min(calc(100% - 36px), 900px); margin: 0 auto; padding: 70px 0; }
.entry-title { color: var(--cafec-navy); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.06; letter-spacing: -.04em; }
.entry-content { font-size: 1.04rem; }
.entry-content h2, .entry-content h3 { color: var(--cafec-navy); }

@media (max-width: 980px) {
  .hero-grid, .two-col, .registration-wrap { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .agenda-row { grid-template-columns: 130px 210px 1fr; }
  .registration-aside { position: static; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-logo { width: 82px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 18px; right: 18px; top: 72px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--cafec-border); box-shadow: var(--cafec-shadow); align-items: stretch; flex-direction: column; }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 12px; }
  .primary-nav .btn { width: 100%; }
  .hero { padding-top: 58px; }
  .event-card { padding: 22px; }
  .agenda-row { grid-template-columns: 1fr; gap: 5px; padding: 18px; }
  .audience-grid, .output-list, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-logo { width: 76px; }
  .site-branding__text { display: none; }
  .section { padding: 64px 0; }
  .card-grid, .cafec-form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:last-child { border-bottom: 0; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3.15rem; }
}


/* v1.1: executive hero slider + private details access */
.hero-slider { padding: 0; min-height: 640px; }
.hero-slide { display: none; position: relative; min-height: 640px; padding: 84px 0 106px; animation: cafecSlideIn .42s ease both; }
.hero-slide.is-active { display: block; }
.hero-slide--value {
  background:
    radial-gradient(circle at 78% 14%, rgba(0,166,90,.12), transparent 31%),
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(236,247,243,.56));
}
.hero-slide--trust {
  background:
    radial-gradient(circle at 82% 12%, rgba(11,106,162,.14), transparent 30%),
    radial-gradient(circle at 14% 88%, rgba(227,29,26,.08), transparent 28%);
}
@keyframes cafecSlideIn {
  from { opacity: .18; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-card__kicker,
.hero-insight-card__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cafec-blue);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.hero-insight-card {
  background: rgba(7,27,43,.97);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--cafec-shadow);
}
.hero-insight-card__label { color: #8bd6ff; }
.hero-insight { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-insight:first-of-type { border-top: 0; padding-top: 4px; }
.hero-insight strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.hero-insight span { display: block; color: #bdcbd5; font-size: .92rem; }
.hero-date-panel {
  min-height: 390px;
  border-radius: 30px;
  padding: 32px;
  color: #fff;
  background: linear-gradient(150deg, #0b6aa2 0%, #07507a 55%, #071b2b 100%);
  box-shadow: var(--cafec-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-date-panel__month { color: #a8dcf7; font-weight: 900; letter-spacing: .16em; }
.hero-date-panel__day { font-size: 7rem; line-height: .88; letter-spacing: -.07em; }
.hero-date-panel__year { font-size: 1.35rem; font-weight: 850; letter-spacing: .08em; }
.hero-date-panel__rule { width: 72px; height: 4px; margin: 22px 0; border-radius: 999px; background: var(--cafec-yellow); }
.hero-date-panel p { margin: 0; color: #d8e5ee; }
.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.slider-controls > * { pointer-events: auto; }
.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(7,27,43,.16);
  background: rgba(255,255,255,.9);
  color: var(--cafec-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 7px 20px rgba(7,27,43,.08);
}
.slider-arrow:hover { background: #fff; transform: translateY(-1px); }
.slider-arrow:focus-visible,
.slider-dot:focus-visible { outline: 3px solid rgba(11,106,162,.28); outline-offset: 3px; }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #aebbc5;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.slider-dot.is-active { width: 30px; background: var(--cafec-blue); }

.access-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(244,180,0,.10), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(0,166,90,.10), transparent 28%),
    var(--cafec-surface);
}
.cafec-access-gate {
  max-width: 850px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--cafec-border);
  box-shadow: var(--cafec-shadow);
  text-align: center;
}
.cafec-access-gate .section__title,
.cafec-access-gate .section__lead { margin-left: auto; margin-right: auto; }
.cafec-access-gate__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #eef6fb;
  color: var(--cafec-blue);
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 1px #dbe9f2;
}
.cafec-access-form { max-width: 620px; margin: 28px auto 0; text-align: left; }
.cafec-access-form label { display: block; margin-bottom: 8px; color: var(--cafec-navy); font-weight: 800; }
.cafec-access-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.cafec-access-input-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd7e0;
  border-radius: 999px;
  padding: 11px 17px;
  outline: none;
}
.cafec-access-input-row input:focus { border-color: var(--cafec-blue); box-shadow: 0 0 0 3px rgba(11,106,162,.09); }
.cafec-access-message {
  max-width: 620px;
  margin: 20px auto 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: #fff0ef;
  color: #972b28;
  border: 1px solid #f4cdca;
  text-align: left;
}
.cafec-access-message--info { background: #eef6fb; border-color: #d8e8f2; color: #215c7b; }
.cafec-access-note { margin: 10px 4px 0; color: var(--cafec-muted); font-size: .82rem; }
.details-unlocked__bar { background: #eaf8f1; border-bottom: 1px solid #cbe9da; color: #2a5e45; }
.details-unlocked__inner { min-height: 48px; display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.details-unlocked__status { padding: 4px 9px; border-radius: 999px; background: #14784a; color: #fff; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 980px) {
  .hero-slider, .hero-slide { min-height: 0; }
  .hero-slide { padding: 68px 0 106px; }
  .hero-date-panel { min-height: 300px; }
}

@media (max-width: 800px) {
  .hero-slide { padding-top: 56px; }
  .slider-controls { bottom: 22px; }
  .cafec-access-gate { padding: 30px 22px; }
  .cafec-access-input-row { grid-template-columns: 1fr; }
  .cafec-access-input-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .hero-slide { padding-bottom: 100px; }
  .hero-date-panel { min-height: 270px; }
  .hero-date-panel__day { font-size: 5.7rem; }
  .details-unlocked__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; }
  .btn, .slider-dot { transition: none; }
}
.details-unlocked__lock { margin-left: auto; color: #1e5e43; font-weight: 800; font-size: .82rem; }
.details-unlocked__lock:hover { color: #103b29; }
@media (max-width: 560px) { .details-unlocked__lock { margin-left: 0; } }
