/* ==========================================================================
   Johnflies Fly Factory - shared premium shell for CMS pages
   Used by: delivery (1), privacy (2), terms (3), payment (5), custom (6)
   Scope:   body#cms #center_column .jf-cms
   Palette: ink #171a1f | body #4b5563 | muted #7b8390 | accent #f0486b
            accent-text #d81f49 (WCAG AA on white) | cream #fbf8f3
   Loaded from header.tpl only when $page_name == 'cms'.
   ========================================================================== */

@font-face {
  font-family: 'JF Slide Serif';
  src: url('../../fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ shell */
#cms #center_column .jf-cms {
  --jf-ink: #171a1f;
  --jf-body: #4b5563;
  --jf-muted: #7b8390;
  --jf-line: #e6e8ec;
  --jf-warm-line: #ece7de;
  --jf-cream: #fbf8f3;
  --jf-accent: #f0486b;
  --jf-accent-d: #d81f49;
  --jf-accent-txt: #d81f49;
  --jf-serif: 'JF Slide Serif', Georgia, 'Times New Roman', serif;
  --jf-sans: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  clear: both;
  color: var(--jf-body);
  font-family: var(--jf-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
#cms #center_column .jf-cms,
#cms #center_column .jf-cms * { box-sizing: border-box; }

#cms #center_column .jf-cms h1,
#cms #center_column .jf-cms h2 {
  font-family: var(--jf-serif);
  font-weight: 700;
  color: var(--jf-ink);
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
#cms #center_column .jf-cms h1 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -.018em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
#cms #center_column .jf-cms h2 {
  font-size: 31px;
  margin: 8px 0 14px;
  text-wrap: balance;
}
#cms #center_column .jf-cms h3 {
  font-family: var(--jf-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--jf-ink);
  margin: 0 0 7px;
}
#cms #center_column .jf-cms h4 {
  font-family: var(--jf-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5f6a78;
  margin: 0 0 8px;
}
#cms #center_column .jf-cms p { margin: 0 0 1em; }
#cms #center_column .jf-cms strong { color: #242a33; }
#cms #center_column .jf-cms img {
  display: block;
  margin: 0;
  max-width: 100%;
  height: auto;
}
#cms #center_column .jf-cms a { text-decoration: none; }
#cms #center_column .jf-cms ul,
#cms #center_column .jf-cms ol { list-style: none; margin: 0; padding: 0; }
#cms #center_column .jf-cms li { margin: 0; padding: 0; }

/* ---------------------------------------------------------------- eyebrow */
#cms #center_column .jf-cms .jf-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--jf-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jf-accent-txt);
}
#cms #center_column .jf-cms .jf-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: 0 0 22px;
}

/* ---------------------------------------------------------------- buttons */
#cms #center_column .jf-cms .jf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
#cms #center_column .jf-cms .jf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--jf-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease,
              color .18s ease, border-color .18s ease;
}
#cms #center_column .jf-cms .jf-btn--primary {
  background: var(--jf-accent-d);
  color: #fff;
  box-shadow: 0 10px 22px rgba(216, 31, 73, .26);
}
#cms #center_column .jf-cms .jf-btn--primary:hover {
  background: #bf183d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(191, 24, 61, .3);
}
#cms #center_column .jf-cms .jf-btn--ghost {
  background: #fff;
  border-color: #dfe3e9;
  color: var(--jf-ink);
}
#cms #center_column .jf-cms .jf-btn--ghost:hover {
  border-color: rgba(240, 72, 107, .55);
  color: var(--jf-accent);
  transform: translateY(-1px);
}
#cms #center_column .jf-cms .jf-btn--light { background: #fff; color: var(--jf-accent-d); }
#cms #center_column .jf-cms .jf-btn--light:hover { background: #fff; color: var(--jf-accent-d); transform: translateY(-1px); }
#cms #center_column .jf-cms .jf-btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
#cms #center_column .jf-cms .jf-btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

#cms #center_column .jf-cms .jf-btn:visited,
#cms #center_column .jf-cms .jf-btn--primary:visited,
#cms #center_column .jf-cms .jf-btn--outline:visited { color: #fff; }
#cms #center_column .jf-cms .jf-btn--ghost:visited { color: var(--jf-ink); }
#cms #center_column .jf-cms .jf-btn--light:visited { color: var(--jf-accent-d); }
#cms #center_column .jf-cms .jf-link:visited { color: var(--jf-accent-txt); }
#cms #center_column .jf-cms .jf-cta small a:visited { color: #fff; }

/* ------------------------------------------------------------------- hero */
#cms #center_column .jf-cms .jf-hero {
  padding: 44px 44px 34px;
  border: 1px solid var(--jf-warm-line);
  border-radius: 26px;
  background:
    radial-gradient(120% 120% at 100% 0%, #fff1ed 0%, rgba(255, 241, 237, 0) 58%),
    var(--jf-cream);
}
#cms #center_column .jf-cms .jf-hero--split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
}
#cms #center_column .jf-cms .jf-hero-copy { min-width: 0; }
#cms #center_column .jf-cms .jf-hero .jf-lead {
  max-width: 40em;
  margin: 0;
  font-size: 16px;
  line-height: 1.66;
  color: #4a5260;
}
#cms #center_column .jf-cms .jf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #6b7683;
}
#cms #center_column .jf-cms .jf-meta span { display: inline-flex; align-items: center; gap: 7px; }
#cms #center_column .jf-cms .jf-meta i { color: var(--jf-accent); font-size: 12px; }

#cms #center_column .jf-cms .jf-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  padding: 18px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--jf-warm-line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(23, 26, 31, .06);
}
#cms #center_column .jf-cms .jf-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* quick facts row under the hero */
#cms #center_column .jf-cms .jf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 0;
  border-top: 1px solid var(--jf-line);
  border-bottom: 1px solid var(--jf-line);
}
#cms #center_column .jf-cms .jf-stats > div {
  padding: 22px 14px 20px;
  text-align: center;
  border-left: 1px solid var(--jf-line);
}
#cms #center_column .jf-cms .jf-stats > div:first-child { border-left: 0; }
#cms #center_column .jf-cms .jf-stats strong {
  display: block;
  font-family: var(--jf-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--jf-ink);
  letter-spacing: -.01em;
}
#cms #center_column .jf-cms .jf-stats span {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5b6573;
}

/* --------------------------------------------------------------- sections */
#cms #center_column .jf-cms .jf-sec { padding: 48px 0 8px; }
#cms #center_column .jf-cms .jf-head { max-width: 660px; margin: 0 0 26px; }
#cms #center_column .jf-cms .jf-head p:last-child { margin-bottom: 0; color: #56606e; }
#cms #center_column .jf-cms .jf-sec p:last-child { margin-bottom: 0; }

/* card grid */
#cms #center_column .jf-cms .jf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
#cms #center_column .jf-cms .jf-cards--four { grid-template-columns: repeat(4, 1fr); }
#cms #center_column .jf-cms .jf-cards--two { grid-template-columns: repeat(2, 1fr); }
#cms #center_column .jf-cms .jf-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid var(--jf-line);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#cms #center_column .jf-cms .jf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 72, 107, .42);
  box-shadow: 0 16px 34px rgba(23, 26, 31, .09);
}
#cms #center_column .jf-cms .jf-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 13px;
  background: rgba(240, 72, 107, .09);
  color: var(--jf-accent);
  font-size: 16px;
}
#cms #center_column .jf-cms .jf-card h3 { margin: 0 0 6px; }
#cms #center_column .jf-cms .jf-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #5b6573;
}
#cms #center_column .jf-cms .jf-card p + p { margin-top: 8px; }

/* numbered steps */
#cms #center_column .jf-cms .jf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
#cms #center_column .jf-cms .jf-step {
  position: relative;
  padding-top: 16px;
  border-top: 1px solid var(--jf-line);
}
#cms #center_column .jf-cms .jf-step .n {
  display: block;
  font-family: var(--jf-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--jf-accent);
}
#cms #center_column .jf-cms .jf-step h3 { margin: 12px 0 6px; }
#cms #center_column .jf-cms .jf-step p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #5b6573; }

/* callout box */
#cms #center_column .jf-cms .jf-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  margin: 22px 0 0;
  background: var(--jf-cream);
  border: 1px solid var(--jf-warm-line);
  border-radius: 16px;
}
#cms #center_column .jf-cms .jf-box--warn {
  background: #fff6f7;
  border-color: #f7d5dc;
}
#cms #center_column .jf-cms .jf-box > i {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--jf-warm-line);
  color: var(--jf-accent-txt);
  font-size: 14px;
}
#cms #center_column .jf-cms .jf-box--warn > i { border-color: #f7d5dc; }
#cms #center_column .jf-cms .jf-box h3 { margin: 0 0 4px; font-size: 13.5px; }
#cms #center_column .jf-cms .jf-box p { margin: 0; font-size: 13px; line-height: 1.62; color: #5b6573; }
#cms #center_column .jf-cms .jf-box p + p { margin-top: 6px; }

/* definition list of facts */
#cms #center_column .jf-cms .jf-facts {
  padding: 22px 26px 12px;
  background: var(--jf-cream);
  border: 1px solid var(--jf-warm-line);
  border-radius: 18px;
}
#cms #center_column .jf-cms .jf-facts dl { margin: 0; }
#cms #center_column .jf-cms .jf-facts h3 {
  margin: 0 0 10px;
  font-family: var(--jf-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5f6a78;
}
#cms #center_column .jf-cms .jf-facts dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--jf-warm-line);
  font-size: 13px;
  line-height: 1.5;
}
#cms #center_column .jf-cms .jf-facts dl > div:first-child { border-top: 0; }
#cms #center_column .jf-cms .jf-facts dt { color: #5f6a78; font-weight: 400; }
#cms #center_column .jf-cms .jf-facts dd {
  margin: 0;
  max-width: 62%;
  color: #242a33;
  font-weight: 700;
  text-align: right;
}

/* two column split: prose + side panel */
#cms #center_column .jf-cms .jf-split {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 44px;
  align-items: start;
}

/* payment logos */
#cms #center_column .jf-cms .jf-pays {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 640px;
  margin: 26px 0 0;
}
#cms #center_column .jf-cms .jf-pays > li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 38px;
  padding: 7px 12px 7px 10px;
  background: #fff;
  border: 1px solid var(--jf-line);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(23, 26, 31, .05);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #3c4450;
}
#cms #center_column .jf-cms .jf-pays img {
  height: 16px;
  width: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

/* table of contents (legal pages) */
#cms #center_column .jf-cms .jf-toc-title {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5f6a78;
}
#cms #center_column .jf-cms .jf-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 34px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--jf-line);
  border-radius: 18px;
}
#cms #center_column .jf-cms .jf-toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #3c4450;
}
#cms #center_column .jf-cms .jf-toc a:hover { color: var(--jf-accent-txt); }
#cms #center_column .jf-cms .jf-toc a:visited { color: #3c4450; }
#cms #center_column .jf-cms .jf-toc a:visited:hover { color: var(--jf-accent-txt); }
#cms #center_column .jf-cms .jf-toc .n {
  flex: 0 0 18px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.85;
  color: var(--jf-accent-txt);
}

/* ---------------------------------------------------------- legal prose */
#cms #center_column .jf-cms .jf-legal { max-width: 74ch; }
#cms #center_column .jf-cms .jf-legal h2 {
  padding-top: 34px;
  margin: 34px 0 14px;
  font-size: 25px;
  line-height: 1.2;
  border-top: 1px solid var(--jf-line);
  scroll-margin-top: 90px;
}
#cms #center_column .jf-cms .jf-legal h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
#cms #center_column .jf-cms .jf-legal h3 {
  margin: 26px 0 10px;
  font-size: 15px;
  scroll-margin-top: 90px;
}
#cms #center_column .jf-cms .jf-legal h4 { margin: 18px 0 6px; }
#cms #center_column .jf-cms .jf-legal p { line-height: 1.72; }
#cms #center_column .jf-cms .jf-legal a {
  color: var(--jf-accent-txt);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cms #center_column .jf-cms .jf-legal a:hover { color: #bf183d; }
#cms #center_column .jf-cms .jf-legal ul,
#cms #center_column .jf-cms .jf-legal ol {
  margin: 0 0 1.1em;
  padding-left: 2px;
}
#cms #center_column .jf-cms .jf-legal ul > li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 7px;
}
#cms #center_column .jf-cms .jf-legal ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 72, 107, .75);
}
#cms #center_column .jf-cms .jf-legal ol {
  list-style: decimal;
  padding-left: 22px;
}
#cms #center_column .jf-cms .jf-legal ol > li { margin: 0 0 7px; }
#cms #center_column .jf-cms .jf-legal li > p { margin: 0 0 4px; }
#cms #center_column .jf-cms .jf-legal li > ul { margin-top: 7px; }

/* ------------------------------------------------------------------- FAQ */
#cms #center_column .jf-cms .jf-faq { max-width: 820px; }
#cms #center_column .jf-cms .jf-faq details {
  border-top: 1px solid var(--jf-line);
  padding: 4px 0;
}
#cms #center_column .jf-cms .jf-faq details:last-of-type { border-bottom: 1px solid var(--jf-line); }
#cms #center_column .jf-cms .jf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--jf-ink);
  list-style: none;
}
#cms #center_column .jf-cms .jf-faq summary::-webkit-details-marker { display: none; }
#cms #center_column .jf-cms .jf-faq summary::after {
  content: '+';
  flex: 0 0 auto;
  font-family: var(--jf-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--jf-accent);
}
#cms #center_column .jf-cms .jf-faq details[open] summary::after { content: '\2013'; }
#cms #center_column .jf-cms .jf-faq details p {
  margin: 0 0 18px;
  padding-right: 40px;
  font-size: 13.5px;
  line-height: 1.68;
  color: #5b6573;
}

/* ------------------------------------------------------------------- CTA */
#cms #center_column .jf-cms .jf-cta {
  margin: 44px 0 10px;
  padding: 52px 44px 38px;
  border-radius: 26px;
  background: linear-gradient(135deg, #d92a52 0%, #be1a3d 100%);
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 50px rgba(190, 26, 61, .22);
}
#cms #center_column .jf-cms .jf-cta h2 { color: #fff; font-size: 32px; margin: 0 0 12px; }
#cms #center_column .jf-cms .jf-cta p {
  max-width: 36em;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}
#cms #center_column .jf-cms .jf-cta .jf-actions { justify-content: center; margin-top: 24px; }
#cms #center_column .jf-cms .jf-cta small {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}
#cms #center_column .jf-cms .jf-cta small a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  #cms #center_column .jf-cms .jf-cards,
  #cms #center_column .jf-cms .jf-cards--four { grid-template-columns: 1fr 1fr; }
  #cms #center_column .jf-cms .jf-steps { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
}

@media (max-width: 991px) {
  #cms #center_column .jf-cms h1 { font-size: 38px; }
  #cms #center_column .jf-cms h2 { font-size: 27px; }
  #cms #center_column .jf-cms .jf-hero { padding: 32px 28px 26px; }
  #cms #center_column .jf-cms .jf-hero--split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  #cms #center_column .jf-cms .jf-media { max-width: 360px; margin: 0 auto; }
  #cms #center_column .jf-cms .jf-split { grid-template-columns: 1fr; gap: 28px; }
  #cms #center_column .jf-cms .jf-cta { padding: 38px 26px 30px; }
  #cms #center_column .jf-cms .jf-cta h2 { font-size: 28px; }
  #cms #center_column .jf-cms .jf-toc { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #cms #center_column .jf-cms h1 { font-size: 31px; }
  #cms #center_column .jf-cms h2 { font-size: 24px; }
  #cms #center_column .jf-cms .jf-hero { padding: 26px 20px 22px; border-radius: 20px; }
  #cms #center_column .jf-cms .jf-hero .jf-lead { font-size: 14.5px; }
  #cms #center_column .jf-cms .jf-stats { grid-template-columns: 1fr 1fr; }
  #cms #center_column .jf-cms .jf-stats > div { padding: 16px 8px 14px; }
  #cms #center_column .jf-cms .jf-pays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cms #center_column .jf-cms .jf-stats > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--jf-line); }
  #cms #center_column .jf-cms .jf-stats > div:nth-child(4) { border-top: 1px solid var(--jf-line); }
  #cms #center_column .jf-cms .jf-cards,
  #cms #center_column .jf-cms .jf-cards--four,
  #cms #center_column .jf-cms .jf-cards--two,
  #cms #center_column .jf-cms .jf-steps { grid-template-columns: 1fr; }
  #cms #center_column .jf-cms .jf-facts { padding: 4px 18px 6px; }
  #cms #center_column .jf-cms .jf-facts dl > div { flex-direction: column; gap: 2px; }
  #cms #center_column .jf-cms .jf-facts dd { max-width: none; text-align: left; }
  #cms #center_column .jf-cms .jf-toc { padding: 18px 20px; }
  #cms #center_column .jf-cms .jf-cta { padding: 32px 20px 26px; border-radius: 20px; }
  #cms #center_column .jf-cms .jf-actions { flex-direction: column; align-items: stretch; }
  #cms #center_column .jf-cms .jf-actions .jf-btn { width: 100%; }
}

