/*
 Theme Name: GeneratePress Child (Campfire)
 Template: generatepress
 Version: 1.0
*/

/* TEST FOR FOOTER START */

/* ===== Pre-footer CTA (your current HTML structure) ===== */
.prefooter-cta{
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 1.75rem 1rem;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--cp-bg-warm) 80%, black 20%) 0%,
      var(--cp-bg-warm) 100%
  );
  color: var(--cp-text);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 -1px 0 rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* thin ember divider below the band */
.prefooter-cta::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px; height:10px;
  background: radial-gradient(60% 80% at 50% 150%, rgba(229,138,36,0.20), transparent 70%);
  pointer-events:none;
}

/* neutralize any theme spacing inside */
.prefooter-cta .campfire-footer{ background: transparent; margin: 0; }
.prefooter-cta .cfb-inner{
  max-width: min(1000px, 92vw);
  margin: 0 auto;
}

/* text */
.prefooter-cta h2{
  margin: 0 0 .5rem;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--cp-text);
  text-shadow: 0 0 10px rgba(229,138,36,0.10);
}
.prefooter-cta p{
  margin: 0 0 .95rem;
  color: var(--cp-text-dm);
  line-height: 1.6;
}

/* button (your .cfb-btn) */
.prefooter-cta .cfb-btn{
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cp-ember2) 25%, var(--cp-ember)) 0%, var(--cp-ember) 100%);
  color: #241307;
  box-shadow: 0 6px 18px rgba(229,138,36,.30), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.prefooter-cta .cfb-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(229,138,36,.36), inset 0 1px 0 rgba(255,255,255,.35);
}

/* mobile nudge */
@media (max-width: 768px){
  .prefooter-cta{ padding: 1.25rem .9rem; }
}


/*  END FOOTER TEST */

.cf-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem; }
.cf-card {
  background:#fffdf7; border:1px solid #eadfcd; border-radius:16px;
  box-shadow:0 10px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cf-card:hover { transform:translateY(-2px); border-color:#ddd; }
.cf-card .cf-title { font-weight:700; color:#2a2a2a; margin:0 0 .25rem; }
.cf-card .cf-sub { color:#6b5b4b; font-size:.92rem; margin:0 0 .5rem; }
.cf-card .cf-actions { display:flex; gap:.5rem; padding:.75rem 1rem 1rem; margin-top:auto; flex-wrap:wrap; }
.cf-btn { border:1px solid #ff8c00; color:#ff5a00; border-radius:999px; padding:.45rem .75rem; font-weight:600; }
.cf-btn:hover { background:#ff8c00; color:#fff; border-color:#ff8c00; }
@media (max-width:640px){ .cf-grid{grid-template-columns:1fr; gap:.85rem} .cf-card .cf-actions{padding:.6rem .85rem .85rem} }

/* === Timeline Card Accent System (overrides base card styling) === */

.cf-grid .cf-ms-card,
.cf-ms-card.cf-card {
  position: relative;
  border-radius: 14px;
  border-left: 5px solid var(--accent, #cc7a00);
  background: linear-gradient(
    to bottom right,
    rgba(255, 245, 230, 0.9),
    rgba(255, 238, 210, 0.85)
  );
  padding: 24px 20px 18px 20px;
  margin-bottom: 20px;
  overflow: visible;  /* let the icon hang over the top */
}

/* Icon badge for the timeline */
.cf-ms-card-icon {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #cc7a00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.cf-ms-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill circle fully */
  border-radius: 50%;  /* keep circular */
}

/* === Timeline Header Bar === */

.cf-timeline-wrapper {
  margin-bottom: 24px;
}

/* Header container */
.cf-timeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border-radius: 14px;
  border-left: 5px solid var(--accent, #cc7a00);
  background: linear-gradient(
    to right,
    rgba(255, 245, 230, 0.95),
    rgba(255, 238, 210, 0.92)
  );
}

/* Icon badge in header (slightly bigger than card icons) */
.cf-timeline-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #cc7a00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  overflow: hidden;
}

.cf-timeline-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Title + summary */
.cf-timeline-header-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-timeline-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.cf-timeline-summary {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* === Milestone Events Section (themed to timeline) === */

.cf-ms-events {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 3px solid var(--accent, #cc7a00);
}

.cf-ms-events-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 10px 0;
}

.cf-ms-events-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #cc7a00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  overflow: hidden;
}

.cf-ms-events-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cf-ms-events-header-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-ms-events-title {
  margin: 0;
  font-size: 1.25rem;
}

.cf-ms-events-subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Event list itself */
.cf-ms-events-list {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
  border-left: 3px solid rgba(0,0,0,0.04);
}

.cf-ms-events-list .cf-ms-event-item {
  position: relative;
  padding: 8px 0 8px 16px;
}

.cf-ms-events-list .cf-ms-event-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #cc7a00);
}

/* Event title/date */
.cf-ms-event-title {
  margin: 0;
  font-weight: 600;
}

.cf-ms-event-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}
/* === Vertical Timeline View (clean version) === */

.cf-vtimeline {
  position: relative;
  margin: 24px 0;
  padding-left: 32px;
  border-left: 3px solid var(--accent, #cc7a00);
}

/* each milestone node */
.cf-vtimeline .cf-vline-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

/* marker (dot) */
.cf-vline-marker {
  position: absolute;
  left: -10px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #cc7a00);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* connector from this node to the next */
.cf-vtimeline .cf-vline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 22px;
  width: 3px;
  height: calc(100% - 22px);
  background: var(--accent, #cc7a00);
  opacity: 0.25;
}

/* main content next to the dot */
.cf-vline-content {
  margin-left: 8px;           /* pulls content slightly right of the main line */
  padding-left: 14px;         /* room for the inner ribbon */
  border-left: 2px dashed rgba(0,0,0,0.20);  /* the “ribbon” accent */
}

/* date, title, caption */
.cf-vline-date {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.cf-vline-title {
  margin: 0;
  font-size: 1rem;
}

/* vline caption */
.cf-vline-caption {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 2px;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* hover glow on marker */
.cf-vline-item:hover .cf-vline-marker {
  box-shadow: 0 0 6px var(--accent, #cc7a00);
  transform: scale(1.1);
  transition: 0.15s ease-out;
}
