/* ==========================================================
   Captivo block styles
   Shared by the live site and the block editor, so pages look
   the same while you edit them. Every class starts with "cp-".
   ========================================================== */

.cp-section {
  --cp-teal: #006565;
  --cp-teal-mid: #2D7878;
  --cp-teal-dark: #005050;
  --cp-ink: #1a1c1e;
  --cp-body: #3e4949;
  --cp-brown: #815500;
  --cp-gold: #FABB5D;
  font-family: 'Inter', sans-serif;
  color: var(--cp-ink);
  padding: 4rem 0;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden;
}
.cp-section h1, .cp-section h2, .cp-section h3, .cp-section h4 { font-family: 'Manrope', sans-serif; margin: 0; }
.cp-section p { margin: 0; }
.cp-section .wp-block-buttons { margin: 0; }

/* Backgrounds and spacing */
.cp-bg-light { background-color: #F7F9FF; }
.cp-bg-blue  { background-color: #EDF4FF; }
.cp-bg-white { background-color: #ffffff; }
.cp-pad-lg   { padding-bottom: 6rem; }

.cp-container { max-width: 80rem !important; margin: 0 auto !important; padding: 0 1.5rem; }
@media (min-width: 1024px) { .cp-container { padding: 0 2.5rem; } }

/* Text */
.cp-badge {
  display: inline-block; margin-bottom: 1.5rem !important;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cp-teal); background: rgba(0,101,101,0.08); padding: 0.35rem 0.875rem; border-radius: 999px;
}
.cp-hero-heading {
  font-size: clamp(2rem,5vw,3.2rem) !important; font-weight: 800 !important; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--cp-ink); margin-bottom: 1.5rem !important;
}
.cp-section mark { background: none; color: var(--cp-teal); }
.cp-lead { font-size: 1rem; line-height: 1.75; color: var(--cp-body); max-width: 420px; margin-bottom: 2rem !important; }

.cp-section-head { margin-bottom: 2.5rem; }
.cp-section-head.cp-center { text-align: center; margin-bottom: 3.5rem; }
.cp-section-title {
  font-size: clamp(1.5rem,3vw,2rem) !important; font-weight: 800 !important; color: var(--cp-ink);
  line-height: 1.2; margin-bottom: 0.75rem !important;
}
.cp-title-bar { margin-bottom: 0 !important; }
.cp-title-bar::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--cp-brown);
  border-radius: 2px; margin: 0.75rem auto 0;
}
.cp-section-subtext { font-size: 0.9rem; color: var(--cp-body); max-width: 480px; line-height: 1.7; }
.cp-center .cp-section-subtext { margin-left: auto !important; margin-right: auto !important; }

/* Buttons */
.cp-btn-primary .wp-block-button__link, .cp-btn-gold .wp-block-button__link {
  display: inline-block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem; border-radius: 0.5rem; text-decoration: none; transition: transform .15s, background-color .15s;
}
.cp-btn-primary .wp-block-button__link { background-color: var(--cp-brown); color: #fff; box-shadow: 0 4px 14px rgba(129,85,0,0.3); }
.cp-btn-primary .wp-block-button__link:hover { background-color: #9a6600; color: #fff; transform: translateY(-1px); }
.cp-btn-gold .wp-block-button__link {
  background-color: var(--cp-gold); color: var(--cp-ink); font-family: 'Manrope', sans-serif; font-weight: 700;
  letter-spacing: 0; padding: 0.875rem 2rem;
}
.cp-btn-gold .wp-block-button__link:hover { background-color: #ffc56f; color: var(--cp-ink); transform: translateY(-1px); }

/* Hero: text + image */
.cp-hero { align-items: center !important; gap: 3rem !important; margin: 0 !important; }
@media (min-width: 1024px) { .cp-hero { gap: 4rem !important; } }
.cp-hero > .wp-block-column:first-child > * { max-width: 36rem; }
.cp-media { position: relative; }
.cp-media-image { margin: 0 !important; height: 420px; border-radius: 0.875rem; overflow: hidden; background: #e0ecf8; }
.cp-media-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.cp-float-card {
  position: absolute; bottom: 1.5rem; right: 1.5rem; max-width: 220px; margin: 0 !important;
  background: #fff; border-radius: 0.75rem; padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(26,28,30,0.14); border: 1px solid rgba(26,28,30,0.06);
}
.cp-float-card h4 { font-size: 0.825rem; font-weight: 700; color: var(--cp-ink); margin-bottom: 0.25rem !important; display: flex; align-items: center; gap: 0.5rem; }
.cp-float-card p { font-size: 0.75rem; color: var(--cp-body); line-height: 1.55; }

/* Card grids */
.cp-grid { gap: 1rem !important; margin: 0 0 1rem !important; }
.cp-grid:last-child { margin-bottom: 0 !important; }
.cp-card, .cp-card-dark { border-radius: 0.875rem; padding: 1.75rem; }
.cp-card { background: #fff; border: 1px solid rgba(26,28,30,0.07); box-shadow: 0 2px 16px rgba(26,28,30,0.05); }
.cp-card-dark { background: var(--cp-teal-dark); }
.cp-card-title { font-size: 1.05rem !important; font-weight: 700 !important; color: var(--cp-ink); margin-bottom: 0.625rem !important; }
.cp-card-dark .cp-card-title { color: #fff; }
.cp-card-text { font-size: 0.825rem; color: var(--cp-body); line-height: 1.7; }
.cp-card-dark .cp-card-text { color: rgba(255,255,255,0.7); }
.cp-card > .cp-card-text:not(:last-child), .cp-card-dark > .cp-card-text:not(:last-child) { margin-bottom: 1.25rem !important; }
.cp-card-row { display: flex; align-items: center; gap: 1.5rem; }

.cp-tiles { gap: 0.75rem !important; margin: 0 !important; }
.cp-tile { background: #F7F9FF; border-radius: 0.5rem; padding: 0.75rem 1rem; border: 1px solid rgba(26,28,30,0.07); }
.cp-tile h4 { font-size: 0.75rem; font-weight: 700; color: var(--cp-ink); margin-bottom: 0.2rem !important; }
.cp-tile p { font-size: 0.7rem; color: var(--cp-body); }

.cp-checklist { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 0.5rem; }
.cp-checklist li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.9); margin: 0; }
.cp-checklist li::before {
  content: ""; flex-shrink: 0; width: 15px; height: 15px; background: var(--cp-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cp-card .cp-checklist li { color: var(--cp-ink); }

.cp-stat { flex-shrink: 0; background: #F7F9FF; border-radius: 0.625rem; padding: 1rem 1.5rem; text-align: center; border: 1px solid rgba(26,28,30,0.06); }
.cp-stat-number { font-family: 'Manrope', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--cp-teal); line-height: 1; }
.cp-stat-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cp-body); margin-top: 0.4rem !important; }

/* Process steps */
.cp-steps { gap: 0 !important; margin: 0 !important; }
.cp-step { padding: 0 2rem; }
.cp-step + .cp-step { border-left: 1px solid rgba(0,101,101,0.15); }
.cp-step-number { font-family: 'Manrope', sans-serif; font-size: 2.5rem; font-weight: 800; color: rgba(0,101,101,0.12); line-height: 1; margin-bottom: 1rem !important; }
.cp-step-title { font-size: 1rem !important; font-weight: 700 !important; color: var(--cp-ink); margin-bottom: 0.5rem !important; }
@media (max-width: 781px) {
  .cp-step { padding: 0 0 2rem; }
  .cp-step + .cp-step { border-left: 0; border-top: 1px solid rgba(0,101,101,0.15); padding-top: 2rem; }
}

/* Call-to-action banner with tinted image */
.cp-cta { gap: 0 !important; margin: 0 !important; border-radius: 1rem; overflow: hidden; min-height: 300px; }
.cp-cta-body { background: var(--cp-teal-mid); padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.cp-cta-title {
  font-size: clamp(1.6rem,3.5vw,2.4rem) !important; font-weight: 800 !important; color: #A8DFDF;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem !important;
}
.cp-cta-text { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 480px; margin-bottom: 2rem !important; }
.cp-cta-media { position: relative; background-color: var(--cp-teal-mid); min-height: 220px; }
.cp-cta-media .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.cp-cta-media .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; mix-blend-mode: luminosity; display: block; }
.cp-cta-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #2D7878 0%, rgba(45,120,120,0.7) 35%, rgba(45,120,120,0.45) 100%);
}
@media (max-width: 781px) {
  .cp-cta-body { padding: 2.5rem 1.75rem; }
  .cp-card-row { flex-direction: column; align-items: flex-start; }
}

/* Page intro without an image (products and legal pages) */
.cp-page-intro { max-width: 46rem; margin-bottom: 2.5rem; }
.cp-lead-wide { max-width: 40rem; }
.cp-subtext-gap { margin-top: 1.25rem !important; }
.cp-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cp-btn-outline .wp-block-button__link, .cp-btn-ghost .wp-block-button__link {
  display: inline-block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem; border-radius: 0.5rem; text-decoration: none; background: transparent; transition: background-color .15s;
}
.cp-btn-outline .wp-block-button__link { color: var(--cp-teal); border: 1.5px solid rgba(0,101,101,0.35); }
.cp-btn-outline .wp-block-button__link:hover { background: rgba(0,101,101,0.06); color: var(--cp-teal); }
.cp-btn-ghost .wp-block-button__link { color: #fff; border: 1.5px solid rgba(255,255,255,0.45); padding: 0.875rem 2rem; }
.cp-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cp-trust { margin-top: 1.5rem !important; font-size: 0.8rem; color: var(--cp-body); max-width: 36rem; }
.cp-note { margin-top: 1.5rem !important; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--cp-ink); }
.cp-note a { color: var(--cp-teal); text-decoration: underline; }

/* Product cards */
.cp-product-card { display: flex; flex-direction: column; align-items: flex-start; }
.cp-product-card .cp-badge { margin-bottom: 1rem !important; }
.cp-product-card .cp-card-title { font-size: 1.4rem !important; }
.cp-product-card .wp-block-buttons { margin-top: auto; }

/* Tables */
.cp-table { margin: 0 !important; overflow-x: auto; }
.cp-table thead { border-bottom: 0 !important; }
.cp-table table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0.75rem; overflow: hidden; font-size: 0.85rem; }
.cp-table th, .cp-table td { text-align: left; vertical-align: top; padding: 0.875rem 1rem; border: 0; border-bottom: 1px solid rgba(26,28,30,0.07); line-height: 1.6; color: var(--cp-body); }
.cp-table thead th { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--cp-ink); background: #F7F9FF; }
.cp-table tbody th { font-weight: 600; color: var(--cp-ink); width: 22%; }
.cp-table tr:last-child th, .cp-table tr:last-child td { border-bottom: 0; }
.cp-table a { color: var(--cp-teal); font-weight: 600; }

/* Two columns of text, a list and FAQs */
.cp-split { gap: 3rem !important; margin: 0 !important; }
.cp-split .cp-section-title { margin-bottom: 1.25rem !important; }
.cp-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 1rem; }
.cp-list li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; line-height: 1.7; color: var(--cp-body); }
.cp-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cp-teal); }
.cp-list strong { color: var(--cp-ink); }
.cp-narrow { max-width: 48rem !important; }
.cp-faq { border-bottom: 1px solid rgba(26,28,30,0.1); padding: 1rem 0; margin: 0 !important; }
.cp-faq summary { cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--cp-ink); }
.cp-faq p { margin-top: 0.75rem !important; font-size: 0.9rem; line-height: 1.7; color: var(--cp-body); }

/* Call-to-action banner without an image */
.cp-cta-solid { background: var(--cp-teal-mid); border-radius: 1rem; padding: 3rem 3.5rem; }
.cp-cta-solid .cp-cta-small { margin: 1.5rem 0 0 !important; font-size: 0.8rem; }
.cp-cta-solid a:not(.wp-block-button__link) { color: #fff; }
@media (max-width: 781px) { .cp-cta-solid { padding: 2.5rem 1.75rem; } }

/* Legal pages */
.cp-prose { max-width: 48rem !important; }
.cp-prose .cp-hero-heading { margin-bottom: 0.5rem !important; }
.cp-updated { font-size: 0.8rem; color: var(--cp-body); margin-bottom: 1rem !important; }
.cp-prose h2 { font-size: 1.15rem; font-weight: 700; color: var(--cp-ink); margin: 2rem 0 0.75rem !important; }
.cp-prose p, .cp-prose li { font-size: 0.925rem; line-height: 1.75; color: var(--cp-body); }
.cp-prose p + p { margin-top: 0.75rem !important; }
.cp-prose ul { padding-left: 1.25rem; margin: 0; }
.cp-prose li + li { margin-top: 0.4rem; }
.cp-prose a { color: var(--cp-teal); }

/* Heading icons — pick one in the editor under Styles */
[class*="is-style-icon-"]::before {
  content: ""; display: block; width: 22px; height: 22px; margin-bottom: 1rem;
  background-color: var(--cp-teal);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
}
.cp-card-dark [class*="is-style-icon-"]::before { background-color: rgba(255,255,255,0.75); }
.is-style-icon-shield-solid::before { background-color: #c0392b; }
.cp-float-card [class*="is-style-icon-"]::before { display: inline-block; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.is-style-icon-shield::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.is-style-icon-shield-solid::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.is-style-icon-layers::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3Crect x='8' y='8' width='14' height='14' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3Crect x='8' y='8' width='14' height='14' rx='2'/%3E%3C/svg%3E"); }
.is-style-icon-stack::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 22 9.5 12 17 2 9.5'/%3E%3Cpolygon points='12 7 22 14.5 12 22 2 14.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 22 9.5 12 17 2 9.5'/%3E%3Cpolygon points='12 7 22 14.5 12 22 2 14.5'/%3E%3C/svg%3E"); }

/* Editor only: let sections use the full width like on the live site */
.editor-styles-wrapper .cp-section .wp-block-group,
.editor-styles-wrapper .cp-section .wp-block-columns,
.editor-styles-wrapper .cp-section .wp-block-column { max-width: none !important; }
.editor-styles-wrapper .cp-section > .cp-container { max-width: 80rem !important; }
.editor-styles-wrapper .cp-section .cp-float-card { max-width: 220px !important; }
.editor-styles-wrapper .cp-section .cp-lead { max-width: 420px; }
.editor-styles-wrapper .cp-section .cp-section-subtext,
.editor-styles-wrapper .cp-section .cp-cta-text { max-width: 480px; }

/* Classic themes wrap group contents in an inner container — apply row layout to it too */
.cp-card-row > .wp-block-group__inner-container { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.cp-card-row > .wp-block-group__inner-container > .wp-block-group:first-child,
.cp-card-row > .wp-block-group:first-child { flex: 1; }
@media (max-width: 781px) {
  .cp-card-row > .wp-block-group__inner-container { flex-direction: column; align-items: flex-start; }
}

/* Editor only: page title in the site's heading font */
.editor-styles-wrapper .editor-post-title { font-family: 'Manrope', sans-serif; font-weight: 800; color: #1a1c1e; }
