/* ==========================================================================
   Commercial Fishing Flies — premium CMS design system
   --------------------------------------------------------------------------
   Own class namespace (.cff-cms / .cff-about) so it never collides with
   other fleet shops. Brand palette taken from the live "salmon" theme skin:
     coral #f0486b · amber #ffb921 · slate #2d3035 · cream #fdf9f6
   Fonts are self-hosted: Source Sans Pro (display) + Open Sans (body).
   Scoped to body#cms so storefront pages are untouched.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
body#cms {
  --cff-coral: #f0486b;
  --cff-coral-dk: #d81f49;
  --cff-amber: #ffb921;
  --cff-slate: #2d3035;
  --cff-ink: #1f2227;
  --cff-body: #4a5057;
  --cff-muted: #838a91;
  --cff-line: #f0e3e5;
  --cff-line-2: #f7eeef;
  --cff-cream: #fdf9f6;
  --cff-cream-2: #faf3f4;
  --cff-white: #fff;
  --cff-radius: 20px;
  --cff-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 26px 52px -30px rgba(45, 48, 53, .32);
  --cff-shadow-lg: 0 2px 6px rgba(16, 24, 40, .05), 0 38px 70px -34px rgba(45, 48, 53, .38);
  background: var(--cff-cream);
  color: var(--cff-body);
}

/* ---------------------------------------------------------- page shell */
body#cms #center_column {
  background: var(--cff-white);
  border: 1px solid var(--cff-line);
  border-radius: var(--cff-radius);
  box-shadow: var(--cff-shadow);
  padding: 0;
  margin: 26px 0;
  overflow: hidden;
}

body#cms .rte {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  color: var(--cff-body);
  margin: 0;
  padding: 0;
}

body#cms .rte p { margin: 0 0 18px; }
body#cms .rte strong { color: var(--cff-ink); font-weight: 700; }
body#cms .rte a {
  color: var(--cff-coral-dk);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 31, 73, .3);
  transition: color .18s ease, border-color .18s ease;
}
body#cms .rte a:hover { color: var(--cff-slate); border-color: var(--cff-slate); }
body#cms .rte ul,
body#cms .rte ol { padding-left: 22px; margin: 0 0 20px; }
body#cms .rte li { margin: 7px 0; }
body#cms .rte li::marker { color: var(--cff-coral); }
body#cms .rte hr {
  border: 0; height: 1px; margin: 34px 0;
  background: linear-gradient(90deg, transparent, var(--cff-line), transparent);
}

/* ------------------------------------------------------------- hero */
.cff-cms .cff-hero {
  position: relative;
  padding: 46px 48px 40px;
  background:
    radial-gradient(760px 260px at 92% -30%, rgba(255, 185, 33, .16), transparent 62%),
    linear-gradient(135deg, #2d3035 0%, #3a3f46 58%, #474d55 100%);
  overflow: hidden;
}
.cff-cms .cff-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--cff-coral), var(--cff-amber));
}
.cff-cms .cff-eyebrow {
  display: inline-block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cff-amber);
  margin: 0 0 14px;
}
.cff-cms .cff-hero h1,
.cff-cms .cff-hero .cff-h1 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
}
.cff-cms .cff-lead {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .84);
  margin: 0;
  max-width: 78ch;
}
.cff-cms .cff-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.cff-cms .cff-hero-meta li {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0;
}

/* ---------------------------------------------------------- sections */
.cff-cms .cff-section { padding: 40px 48px; }
.cff-cms .cff-section + .cff-section { border-top: 1px solid var(--cff-line-2); }
.cff-cms .cff-section--tint { background: var(--cff-cream-2); }

.cff-cms h2,
.cff-cms .cff-h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--cff-ink);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  letter-spacing: -.005em;
}
.cff-cms h3,
.cff-cms .cff-h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--cff-ink);
  margin: 30px 0 10px;
}
.cff-cms h4,
.cff-cms .cff-h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cff-ink);
  margin: 22px 0 8px;
}
.cff-cms .cff-kicker {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cff-coral-dk);
  margin: 0 0 10px;
}
.cff-cms h2 + p,
.cff-cms .cff-h2 + p { margin-top: 0; }

/* ------------------------------------------------------------- cards */
.cff-cms .cff-grid {
  display: grid;
  gap: 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.cff-cms .cff-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cff-cms .cff-grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cff-cms .cff-grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cff-cms .cff-grid li { margin: 0; }

.cff-cms .cff-card {
  background: var(--cff-white);
  border: 1px solid var(--cff-line);
  border-radius: 16px;
  padding: 24px 22px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cff-cms .cff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 72, 107, .45);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 22px 40px -26px rgba(45, 48, 53, .4);
}
.cff-cms .cff-card h3,
.cff-cms .cff-card .cff-h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cff-ink);
  margin: 0 0 8px;
}
.cff-cms .cff-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.cff-cms .cff-card p + p { margin-top: 10px; }
.cff-cms .cff-card .cff-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cff-coral), var(--cff-amber));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin: 0 0 14px;
}
.cff-cms .cff-card .cff-icon i { color: #fff; }

/* ---------------------------------------------------------- numbered steps */
.cff-cms .cff-steps {
  list-style: none;
  counter-reset: cffstep;
  margin: 0 0 24px;
  padding: 0;
}
.cff-cms .cff-steps li {
  counter-increment: cffstep;
  position: relative;
  padding: 0 0 26px 58px;
  margin: 0;
}
.cff-cms .cff-steps li::before {
  content: counter(cffstep);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cff-slate);
  color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cff-cms .cff-steps li::after {
  content: "";
  position: absolute; left: 18px; top: 40px; bottom: 4px;
  width: 2px;
  background: var(--cff-line);
}
.cff-cms .cff-steps li:last-child { padding-bottom: 0; }
.cff-cms .cff-steps li:last-child::after { display: none; }
.cff-cms .cff-steps strong {
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  color: var(--cff-ink);
  margin: 4px 0 4px;
}
.cff-cms .cff-steps p { margin: 0; font-size: 15px; }

/* --------------------------------------------------------------- stats */
.cff-cms .cff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.cff-cms .cff-stats li {
  margin: 0;
  background: var(--cff-white);
  border: 1px solid var(--cff-line);
  border-left: 3px solid var(--cff-coral);
  border-radius: 12px;
  padding: 16px 18px;
}
.cff-cms .cff-stats .cff-stat-num {
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--cff-ink);
  line-height: 1.1;
}
.cff-cms .cff-stats .cff-stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cff-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------- table */
.cff-cms .cff-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.cff-cms table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--cff-line);
  border-radius: 12px;
  overflow: hidden;
}
.cff-cms table th {
  background: var(--cff-slate);
  color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
  border: 0;
}
.cff-cms table td {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--cff-line-2);
  vertical-align: top;
}
.cff-cms table tr:last-child td { border-bottom: 0; }
.cff-cms table tbody tr:nth-child(even) { background: var(--cff-cream); }

/* ---------------------------------------------------------- callouts */
.cff-cms .cff-note {
  border-left: 4px solid var(--cff-coral);
  background: var(--cff-cream-2);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 0 0 24px;
}
.cff-cms .cff-note p { margin: 0 0 10px; }
.cff-cms .cff-note p:last-child { margin-bottom: 0; }
.cff-cms .cff-note strong {
  font-family: 'Source Sans Pro', sans-serif;
  display: block;
  color: var(--cff-ink);
  margin-bottom: 4px;
}
.cff-cms .cff-note--ok { border-left-color: #1f9d63; }
.cff-cms .cff-note--amber { border-left-color: var(--cff-amber); }

/* ---------------------------------------------------------------- faq */
.cff-cms .cff-faq { margin: 0 0 24px; padding: 0; border: 0; }
.cff-cms .cff-faq details {
  border: 1px solid var(--cff-line);
  border-radius: 12px;
  background: var(--cff-white);
  margin: 0 0 10px;
  overflow: hidden;
}
.cff-cms .cff-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 20px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cff-ink);
  position: relative;
}
.cff-cms .cff-faq summary::-webkit-details-marker { display: none; }
.cff-cms .cff-faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cff-cream-2);
  color: var(--cff-coral-dk);
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cff-cms .cff-faq details[open] summary::after { content: "\2013"; }
.cff-cms .cff-faq details[open] { border-color: rgba(240, 72, 107, .4); }
.cff-cms .cff-faq .cff-faq-body { padding: 0 20px 18px; }
.cff-cms .cff-faq .cff-faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- cta */
.cff-cms .cff-cta {
  background: linear-gradient(135deg, var(--cff-slate) 0%, #3f454d 100%);
  border-radius: 16px;
  padding: 32px 34px;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cff-cms .cff-cta h3,
.cff-cms .cff-cta .cff-h3 {
  color: #fff;
  margin: 0 0 6px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 21px;
  font-weight: 700;
}
.cff-cms .cff-cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.cff-cms .cff-cta .cff-cta-text { flex: 1 1 320px; }
.cff-cms .cff-btn {
  display: inline-block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cff-coral), #e8557a);
  color: #fff;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cff-cms .cff-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(240, 72, 107, .85);
  background: linear-gradient(135deg, #d81f49, var(--cff-coral));
}
.cff-cms .cff-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
}
.cff-cms .cff-btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

/* -------------------------------------------------------------- media */
.cff-cms .cff-figure { margin: 0 0 26px; }
.cff-cms .cff-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--cff-line);
  box-shadow: 0 20px 44px -28px rgba(45, 48, 53, .45);
}
.cff-cms .cff-figure figcaption {
  font-size: 13.5px;
  color: var(--cff-muted);
  margin-top: 10px;
  text-align: center;
}
.cff-cms .cff-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
  margin: 0 0 26px;
}
.cff-cms .cff-split--rev .cff-split-media { order: 2; }

/* ---------------------------------------------------------- logo strip */
.cff-cms .cff-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 20px 24px;
  background: var(--cff-white);
  border: 1px solid var(--cff-line);
  border-radius: 16px;
  margin: 0 0 24px;
}
.cff-cms .cff-brands img { max-height: 42px; width: auto; opacity: .82; }
.cff-cms .cff-brands-label {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cff-muted);
  width: 100%;
  margin: 0 0 2px;
}

/* ------------------------------------------------------------- badges */
.cff-cms .cff-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.cff-cms .cff-badges li { margin: 0; text-align: center; }
.cff-cms .cff-badges img { max-height: 92px; width: auto; margin: 0 auto 8px; }
.cff-cms .cff-badges span {
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--cff-body);
}

/* ---------------------------------------------------- legacy page tidy */
body#cms .rte > h1.page-heading,
body#cms .rte > h1:first-child {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--cff-ink);
  margin: 0 0 18px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid var(--cff-line);
  background: none;
  text-align: left;
}
body#cms .rte > h1.page-heading::after,
body#cms .rte > h1:first-child::after { content: none; }
body#cms .rte h3.page-subheading {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 19px; font-weight: 700;
  color: var(--cff-ink);
  margin: 0 0 10px;
}
body#cms .rte .cms-block { margin: 0 0 22px; }
body#cms .rte .row { margin-left: 0; margin-right: 0; }
body#cms .rte .col-xs-12 { padding-left: 0; padding-right: 0; }
body#cms .rte img {
  max-width: 100%; height: auto;
  border-radius: 14px;
  margin: 10px 0 18px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 991px) {
  .cff-cms .cff-split { grid-template-columns: 1fr; gap: 22px; }
  .cff-cms .cff-split--rev .cff-split-media { order: 0; }
}
@media (max-width: 767px) {
  body#cms #center_column { border-radius: 14px; margin: 14px 0; }
  .cff-cms .cff-hero { padding: 32px 22px 28px; }
  .cff-cms .cff-hero h1 { font-size: 27px; }
  .cff-cms .cff-lead { font-size: 16px; }
  .cff-cms .cff-section { padding: 28px 22px; }
  .cff-cms h2 { font-size: 22px; }
  .cff-cms .cff-cta { padding: 24px 22px; }
  .cff-cms .cff-btn { width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------- print */
@media print {
  body#cms { background: #fff; }
  body#cms #center_column { box-shadow: none; border: 0; }
  .cff-cms .cff-cta { background: none; color: #000; }
}
