/* =========================================================
   Greatfy — Elementor bridge CSS
   Loaded only on pages flagged _gf_site (body.gf-site).
   Layout, colours and typography live in native Elementor
   settings; this file covers what Elementor Free can't:
   sticky header, hover states, chips, modal, HTML widgets.
   ========================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body.gf-site {
  margin: 0;
  background: #fff8f0;
  color: #1e3a35;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.gf-site.gf-no-scroll { overflow: hidden; }

.gf-site .elementor-widget-text-editor > :first-child { margin-top: 0; }
.gf-site .elementor-widget-text-editor > :last-child { margin-bottom: 0; }
.gf-site .elementor-widget-text-editor a { color: #cf2f22; text-underline-offset: 3px; }
.gf-site :focus-visible { outline: 3px solid #cf2f22; outline-offset: 3px; border-radius: 4px; }
.gf-site .gf-mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: -0.01em; }
.gf-site .gf-accent { color: #cf2f22; }

/* ---------- Header ---------- */
.gf-site .gf-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.gf-site .gf-header.is-scrolled { border-bottom-color: #e8e0d8; box-shadow: 0 1px 2px rgba(30, 58, 53, .06); }

.gf-site .gf-brand .elementor-heading-title a,
.gf-site .gf-brand .elementor-heading-title { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gf-site .gf-brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: #cf2f22; color: #fff;
  font: 700 22px/1 'Space Grotesk', sans-serif;
}
.gf-site .gf-brand-text { display: flex; flex-direction: column; line-height: 1; }
.gf-site .gf-brand-word { font: 700 24px/1 'Space Grotesk', sans-serif; letter-spacing: -0.03em; color: #1e3a35; }
.gf-site .gf-dot { color: #cf2f22; }
.gf-site .gf-brand-sub { margin-top: 4px; font: 600 10px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #1e3a35; }
.gf-site .gf-brand-light .gf-brand-word,
.gf-site .gf-brand-light .gf-brand-sub { color: #fff; }

/* Nav (HTML widget) */
.gf-site .gf-nav { display: flex; align-items: center; gap: 28px; }
.gf-site .gf-nav-list { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.gf-site .gf-nav-list a {
  color: #1e3a35; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .18s;
}
.gf-site .gf-nav-list a:hover,
.gf-site .gf-nav-list a.is-current { border-bottom-color: #cf2f22; }
.gf-site .gf-nav-cta { display: flex; gap: 10px; }

.gf-site button.gf-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin: 0; padding: 11px 10px;
  background: #fff; border: 1px solid #e8e0d8; border-radius: 10px; box-shadow: none; cursor: pointer;
}
.gf-site .gf-nav-toggle span { display: block; height: 2px; width: 100%; background: #1e3a35; border-radius: 2px; transition: transform .25s, opacity .2s; }
.gf-site .gf-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gf-site .gf-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gf-site .gf-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HTML-widget buttons (native button widgets are styled in Elementor) */
.gf-site .gf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 15px/1.2 'Inter', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.gf-site .gf-btn-lg { padding: 15px 26px; font-size: 16px; }
.gf-site .gf-btn-block { width: 100%; }
.gf-site .gf-btn-primary { background: #cf2f22; color: #fff; box-shadow: 0 6px 16px -6px rgba(207, 47, 34, .55); }
.gf-site .gf-btn-primary:hover { background: #b92215; color: #fff; }
.gf-site .gf-btn-outline { background: transparent; color: #1e3a35; border-color: #e8e0d8; }
.gf-site .gf-btn-outline:hover { border-color: #1e3a35; color: #1e3a35; }

/* Native button polish */
.gf-site .gf-btn-shadow .elementor-button { box-shadow: 0 6px 16px -6px rgba(207, 47, 34, .55); transition: all .18s; }
.gf-site .gf-btn-shadow .elementor-button:hover { box-shadow: 0 10px 22px -8px rgba(207, 47, 34, .6); }

/* ---------- Hero ---------- */
.gf-site .gf-badge .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; background: #fff; border: 1px solid #e8e0d8; border-radius: 999px;
}
.gf-site .gf-badge .elementor-heading-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #cf2f22; box-shadow: 0 0 0 4px rgba(207, 47, 34, .15);
}
.gf-site .gf-trust { width: 100%; padding-top: 18px; border-top: 1px solid #e8e0d8; }
.gf-site .gf-trust .elementor-icon-list-icon svg { padding: 3px; border-radius: 50%; background: rgba(207, 47, 34, .1); box-sizing: content-box; }

/* Pipeline card (HTML widget) */
.gf-site .gf-pipeline { width: 100%; max-width: 480px; margin-left: auto; display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e0d8; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(30, 58, 53, .30); overflow: hidden; }
.gf-site .gf-pipeline-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e8e0d8; background: #fff8f0; }
.gf-site .gf-pipeline-title { font: 500 13px 'JetBrains Mono', monospace; color: #1e3a35; }
.gf-site .gf-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(31, 138, 76, .1); color: #17693a; font-size: 12px; font-weight: 600; }
.gf-site .gf-live-dot, .gf-site .gf-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #1f8a4c; animation: gf-pulse 2s infinite; }
@keyframes gf-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, .55); } 70% { box-shadow: 0 0 0 7px rgba(31, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); } }
.gf-site .gf-steps { display: flex; flex-direction: column; margin: 0; padding: 8px 20px; list-style: none; }
.gf-site .gf-step { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #e8e0d8; transition: opacity .4s, transform .4s; }
.gf-site .gf-step:last-child { border-bottom: 0; }
.gf-site .gf-step-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: rgba(30, 58, 53, .06); border: 1px solid #e8e0d8; color: #1e3a35; }
.gf-site .gf-step-icon svg { width: 20px; height: 20px; }
.gf-site .gf-step.is-active .gf-step-icon { background: #cf2f22; border-color: #cf2f22; color: #fff; }
.gf-site .gf-step-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gf-site .gf-step-name { font-size: 14px; font-weight: 600; color: #1e3a35; line-height: 1.4; }
.gf-site .gf-step-meta { font-size: 12.5px; color: #4a5f5b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.gf-site .gf-step-time { font: 500 12px 'JetBrains Mono', monospace; color: #4a5f5b; }
.gf-site .gf-pipeline.is-animating .gf-step { opacity: .25; transform: translateX(-6px); }
.gf-site .gf-pipeline.is-animating .gf-step.is-shown { opacity: 1; transform: none; }
.gf-site .gf-pipeline-foot { display: flex; background: #1e3a35; color: #fff; }
.gf-site .gf-mini { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid rgba(255, 255, 255, .12); line-height: 1.3; }
.gf-site .gf-mini:last-child { border-right: 0; }
.gf-site .gf-mini .gf-mono { font-size: 18px; color: #fff; }
.gf-site .gf-mini .gf-mono.gf-soft { color: #ff7a6b; }
.gf-site .gf-mini span:last-child { font-size: 12px; color: rgba(255, 255, 255, .78); }

/* ---------- Proof counters ---------- */
.gf-site .gf-proof .gf-counter { border-right: 1px solid rgba(255, 255, 255, .14); }
.gf-site .gf-proof .gf-counter:last-child { border-right: 0; }

/* ---------- Column rows ---------- */
.gf-site .gf-cols-4 > .e-con,
.gf-site .gf-cols-3 > .e-con { width: auto; max-width: none; min-width: 0; }
.gf-site .gf-cols-4 > .e-con { flex: 1 1 calc(25% - 18px); }
/* Elementor child containers default to width:100%; these rows share space instead */
.gf-site .gf-row-auto > .e-con { width: auto; flex: 1 1 0; min-width: 0; }
.gf-site .gf-footer-cols > .e-con { flex: 1 1 140px; }
.gf-site .gf-footer-cols > .e-con:first-child { flex: 2 1 320px; }
.gf-site .gf-auto { width: auto; flex: 0 0 auto; }
.gf-site .gf-cols-3 > .e-con { flex: 1 1 calc(33.333% - 16px); }

/* ---------- Cards ---------- */
.gf-site .gf-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.gf-site .gf-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px -12px rgba(30, 58, 53, .18); border-color: #d9cec3; }
.gf-site .gf-card .elementor-widget-icon-box { flex-grow: 1; }
.gf-site .gf-card .elementor-icon-box-wrapper { text-align: left; }
.gf-site .gf-card .elementor-icon-box-icon { display: flex; justify-content: flex-start; }

.gf-site .gf-tags, .gf-site .gf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gf-site .gf-tags li { padding: 3px 10px; border-radius: 999px; background: #fff8f0; border: 1px solid #e8e0d8; font: 500 11.5px/1.5 'JetBrains Mono', monospace; color: #1e3a35; }
.gf-site .gf-chips { gap: 8px; }
.gf-site .gf-chips li { padding: 6px 12px; border-radius: 8px; background: #1e3a35; color: #fff; font: 500 12.5px/1.4 'JetBrains Mono', monospace; }

/* Case study stats: left-aligned counters */
.gf-site .gf-stat .elementor-counter { align-items: flex-start; }
.gf-site .gf-stat .elementor-counter-number-wrapper { justify-content: flex-start; }
.gf-site .gf-stat .elementor-counter-number-prefix { flex-grow: 0; }
.gf-site .gf-stat .elementor-counter-number-suffix { flex-grow: 1; }
.gf-site .gf-stat .elementor-counter-title { text-align: left; justify-content: flex-start; }
.gf-site .gf-ba .elementor-progress-wrapper { border-radius: 999px; overflow: hidden; }
.gf-site .gf-ba .elementor-title { display: block; margin-bottom: 4px; }
.gf-site .gf-ba .elementor-progress-text { display: none; }

/* ---------- Security / sticky column ---------- */
@media (min-width: 1025px) {
  .gf-site .gf-sticky { position: sticky; top: 108px; align-self: flex-start; }
}

/* ---------- Accordions ---------- */
.gf-site .gf-acc .elementor-accordion { display: flex; flex-direction: column; gap: 12px; }
.gf-site .gf-acc .elementor-accordion .elementor-accordion-item {
  background: #fff; border: 1px solid #e8e0d8; border-radius: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.gf-site .gf-acc .elementor-accordion .elementor-accordion-item + .elementor-accordion-item { border-top: 1px solid #e8e0d8; }
.gf-site .gf-acc .elementor-accordion .elementor-accordion-item:has(.elementor-active) { border-color: #d3c7bb; box-shadow: 0 1px 2px rgba(30, 58, 53, .06); }
.gf-site .gf-acc .elementor-accordion .elementor-tab-title {
  display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 16px;
  padding: 20px 22px; border: 0; line-height: 1.35;
}
.gf-site .gf-acc .elementor-accordion .elementor-tab-title a { color: inherit; text-decoration: none; flex: 1; }
.gf-site .gf-acc .elementor-accordion .elementor-accordion-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; background: #fff8f0; border: 1px solid #e8e0d8;
  float: none; text-align: center; transition: background-color .2s;
}
.gf-site .gf-acc .elementor-accordion .elementor-accordion-icon svg { width: 12px; height: 12px; }
.gf-site .gf-acc .elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon { background: #cf2f22; border-color: #cf2f22; }
.gf-site .gf-acc .elementor-accordion .elementor-tab-content { padding: 0 22px 22px; border: 0; }
.gf-site .gf-acc .elementor-accordion .elementor-tab-content p { margin: 0; max-width: 70ch; }

/* ---------- Calculator (HTML widget) ---------- */
.gf-site .gf-calc { display: flex; align-items: stretch; gap: 32px; width: 100%; text-align: left; }
.gf-site .gf-calc-inputs { flex: 1 1 55%; display: flex; flex-direction: column; gap: 30px; padding: 36px; background: #fff; border: 1px solid #e8e0d8; border-radius: 20px; min-width: 0; }
.gf-site .gf-range { display: flex; flex-direction: column; gap: 12px; }
.gf-site .gf-range-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gf-site .gf-range-row label { font-weight: 500; color: #1e3a35; }
.gf-site .gf-range-val { min-width: 64px; padding: 4px 10px; text-align: center; border-radius: 8px; background: #fff8f0; border: 1px solid #e8e0d8; font: 700 17px 'JetBrains Mono', monospace; color: #1e3a35; }
.gf-site .gf-range-scale { display: flex; justify-content: space-between; font: 500 12px 'JetBrains Mono', monospace; color: #4a5f5b; }
.gf-site input[type="range"].gf-slider {
  --fill: 50%; -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; box-shadow: none;
}
.gf-site input.gf-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, #cf2f22 0%, #cf2f22 var(--fill), #e8e0d8 var(--fill), #e8e0d8 100%); }
.gf-site input.gf-slider::-moz-range-track { height: 8px; border-radius: 999px; background: #e8e0d8; }
.gf-site input.gf-slider::-moz-range-progress { height: 8px; border-radius: 999px; background: #cf2f22; }
.gf-site input.gf-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid #cf2f22; box-shadow: 0 2px 6px rgba(30, 58, 53, .25); }
.gf-site input.gf-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #cf2f22; }
.gf-site input.gf-slider:focus-visible { outline: none; }
.gf-site input.gf-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(207, 47, 34, .3); }
.gf-site .gf-calc-note { margin: 0; font-size: 13px; color: #4a5f5b; padding-top: 18px; border-top: 1px solid #e8e0d8; }
.gf-site .gf-calc-results { flex: 1 1 45%; display: flex; flex-direction: column; gap: 18px; padding: 36px; background: #1e3a35; color: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(30, 58, 53, .30); min-width: 0; }
.gf-site .gf-calc-results p { margin: 0; }
.gf-site .gf-res-label { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.gf-site .gf-res-big { font: 700 clamp(44px, 5.5vw, 64px)/1 'JetBrains Mono', monospace; color: #fff; }
.gf-site .gf-res-split { display: flex; gap: 12px; }
.gf-site .gf-res-item { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.gf-site .gf-res-num { font: 700 22px 'JetBrains Mono', monospace; color: #fff; }
.gf-site .gf-res-cap { font-size: 13px; color: rgba(255, 255, 255, .78); }
.gf-site .gf-res-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gf-site .gf-res-bar span { display: block; height: 100%; width: 20%; background: #ff7a6b; border-radius: inherit; transition: width .3s ease; }
.gf-site .gf-res-fte { font-size: 15px; color: rgba(255, 255, 255, .88); flex-grow: 1; }
.gf-site .gf-res-fte .gf-mono { color: #ff7a6b; }

/* ---------- Footer ---------- */
.gf-site .gf-links ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gf-site .gf-links a, .gf-site .gf-footer-bottom a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.gf-site .gf-links a:hover { color: #ff7a6b; }
.gf-site .gf-footer :focus-visible { outline-color: #ff7a6b; }
.gf-site .gf-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; color: #fff; }
.gf-site .gf-status .gf-status-dot { background: #3ecf7a; }

/* ---------- Modal ---------- */
.gf-site .gf-modal { display: none; }
.gf-site .gf-modal.is-open {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(21, 42, 38, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
}
.gf-site .gf-modal.is-open .gf-modal-panel { animation: gf-modal-in .22s ease-out; }
@keyframes gf-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.gf-site .gf-modal-panel { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(30, 58, 53, .30); }
body.elementor-editor-active .gf-modal { display: flex; position: static; background: #e8e0d8; }

.gf-site button.gf-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #e8e0d8; background: #fff8f0; color: #1e3a35; box-shadow: none; cursor: pointer;
}
.gf-site button.gf-modal-close:hover { background: #1e3a35; color: #fff; }
.gf-site .gf-modal-close svg { width: 18px; height: 18px; }
.gf-site .gf-modal-estimate { margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(207, 47, 34, .07); border: 1px solid rgba(207, 47, 34, .2); font-size: 14px; color: #1e3a35; }
.gf-site .gf-modal-estimate strong { font-family: 'JetBrains Mono', monospace; color: #cf2f22; }

/* WPForms inside modal */
.gf-site .gf-modal .wpforms-container {
  --wpforms-field-border-radius: 10px;
  --wpforms-field-border-color: #cfc5bb;
  --wpforms-field-text-color: #1e3a35;
  --wpforms-label-color: #1e3a35;
  --wpforms-label-sublabel-color: #4a5f5b;
  --wpforms-label-error-color: #b92215;
  --wpforms-button-border-radius: 10px;
  --wpforms-button-background-color: #cf2f22;
  --wpforms-button-text-color: #ffffff;
  --wpforms-button-size-height: 52px;
  --wpforms-button-size-font-size: 16px;
  --wpforms-field-size-input-height: 46px;
  --wpforms-page-break-color: #cf2f22;
  margin: 8px 0 0;
}
.gf-site .gf-modal .wpforms-container .wpforms-field-label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; }
.gf-site .gf-modal .wpforms-container .wpforms-field { padding: 8px 0; }
.gf-site .gf-modal .wpforms-container .wpforms-submit-container { padding-top: 12px; }
.gf-site .gf-modal .wpforms-container button[type="submit"] { width: 100%; font-family: 'Inter', sans-serif; font-weight: 600; }
.gf-site .gf-modal .wpforms-container button[type="submit"]:hover { background-color: #b92215; }
.gf-site .gf-modal .wpforms-confirmation-container-full { background: rgba(31, 138, 76, .1); border-color: rgba(31, 138, 76, .35); color: #1e3a35; border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .gf-site .gf-nav, .gf-site .gf-nav-list { gap: 20px; }
  .gf-site .gf-nav-cta .gf-btn-outline { display: none; }
}

@media (max-width: 1160px) {
  .gf-site button.gf-nav-toggle { display: flex; }
  .gf-site .gf-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--gf-nav-top, 76px); z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 24px 18px 40px; background: #fff8f0; border-top: 1px solid #e8e0d8; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .gf-site .gf-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .gf-site .gf-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .gf-site .gf-nav-list a { display: block; padding: 16px 4px; font: 600 22px/1.3 'Space Grotesk', sans-serif; border-bottom: 1px solid #e8e0d8; }
  .gf-site .gf-nav-cta { flex-direction: column; }
  .gf-site .gf-nav-cta .gf-btn { padding: 15px; font-size: 16px; }
  .gf-site .gf-nav-cta .gf-btn-outline { display: inline-flex; }
}

@media (max-width: 1024px) {
  .gf-site .gf-pipeline { margin-inline: auto; max-width: 560px; }
  .gf-site .gf-cols-4 > .e-con, .gf-site .gf-cols-3 > .e-con { flex-basis: calc(50% - 12px); }
  .gf-site .gf-calc { flex-direction: column; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 84px; }
  .gf-site .gf-brand-word { font-size: 21px; }
  .gf-site .gf-cols-4 > .e-con, .gf-site .gf-cols-3 > .e-con { flex-basis: 100%; }
  .gf-site .gf-footer-cols > .e-con, .gf-site .gf-footer-cols > .e-con:first-child { flex: 1 1 auto; width: 100%; }
  .gf-site .gf-auto { width: 100%; }
  .gf-site .gf-proof .gf-counter { border-right: 0; }
  .gf-site .gf-proof .gf-counter:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .14); }
  .gf-site .gf-proof .gf-counter:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .gf-site .gf-calc-inputs, .gf-site .gf-calc-results { padding: 24px 20px; }
  .gf-site .gf-res-split { flex-direction: column; }
  .gf-site .gf-steps { padding: 4px 16px; }
  .gf-site .gf-mini { padding: 12px 10px; }
  .gf-site .gf-mini .gf-mono { font-size: 15px; }
  .gf-site .gf-mini span:last-child { font-size: 11px; }
  .gf-site .gf-acc .elementor-accordion .elementor-tab-title { padding: 18px; }
  .gf-site .gf-acc .elementor-accordion .elementor-tab-content { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gf-site *, .gf-site *::before, .gf-site *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Legal pages ---------- */
.gf-site .gf-legal { color: #4a5f5b; font-size: 16px; line-height: 1.75; }
.gf-site .gf-legal h2 { font: 700 24px/1.25 'Space Grotesk', sans-serif; letter-spacing: -0.02em; color: #1e3a35; margin: 44px 0 12px; }
.gf-site .gf-legal h3 { font: 600 18px/1.3 'Space Grotesk', sans-serif; color: #1e3a35; margin: 26px 0 8px; }
.gf-site .gf-legal p { margin: 0 0 14px; }
.gf-site .gf-legal ul { margin: 0 0 18px; padding-left: 22px; }
.gf-site .gf-legal li { margin-bottom: 6px; }
.gf-site .gf-legal li::marker { color: #cf2f22; }
.gf-site .gf-legal strong { color: #1e3a35; font-weight: 600; }
.gf-site .gf-legal .gf-legal-meta { display: inline-block; margin-bottom: 22px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e8e0d8; font: 500 12.5px/1.5 'JetBrains Mono', monospace; color: #1e3a35; }
@media (max-width: 767px) { .gf-site .gf-legal h2 { font-size: 21px; margin-top: 36px; } }

.gf-site .gf-brand { flex-shrink: 0; }
.gf-site .gf-brand-sub { white-space: nowrap; }

/* ---------- CTA card ---------- */
.gf-site .gf-cta-card { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 40px 80px -40px rgba(30, 58, 53, .55); }
.gf-site .gf-cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 360px at 100% 0%, rgba(207, 47, 34, .35), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(255, 122, 107, .10), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px;
}
.gf-site .gf-btn-full .elementor-button { display: flex; width: 100%; justify-content: center; }
.gf-site .gf-cta-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gf-site .gf-cta-mail a:hover { color: #ff7a6b; }

/* ---------- Footer refresh ---------- */
.gf-site .gf-footer-cols > .e-con { flex: 1 1 200px; }
.gf-site .gf-footer-cols > .e-con:first-child { flex: 2 1 360px; max-width: 460px; }
.gf-site .gf-contact .gf-footer-email { font: 600 18px/1.3 'Space Grotesk', sans-serif; color: #fff; }
.gf-site .gf-contact .gf-muted { color: rgba(255, 255, 255, .6); }
.gf-site .gf-contact .gf-footer-cta { display: inline-flex; gap: 6px; color: #ff7a6b; font-weight: 600; }
.gf-site .gf-contact .gf-footer-cta:hover { color: #fff; }
.gf-site .gf-footer-legal ul { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.gf-site .gf-footer-legal a { color: rgba(255, 255, 255, .6); }
.gf-site .gf-footer-legal a:hover { color: #fff; }

/* ---------- Header: frosted on desktop, solid on mobile (keeps fixed nav panel working) ---------- */
@media (min-width: 1161px) {
  .gf-site .gf-header { backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
}
@media (max-width: 1160px) {
  .gf-site .gf-header { background-color: #fff8f0 !important; }
}

/* Astra's scroll-to-top button is unstyled on canvas pages */
.gf-site #ast-scroll-top, .gf-site .ast-scroll-top-icon { display: none !important; }

@media (max-width: 767px) {
  .gf-site .gf-footer-cols > .e-con:first-child { max-width: none; }
  .gf-site .gf-cta-checks .elementor-icon-list-items { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 767px) {
  .gf-site .gf-footer-cols > .e-con,
  .gf-site .gf-footer-cols > .e-con:first-child { flex: 0 0 auto; width: 100%; max-width: none; }
}

/* =========================================================
   Full-screen sections (desktop/laptop)
   Each nav target fills the viewport under the sticky header,
   content vertically centred, anchors land flush under header.
   ========================================================= */
html { scroll-padding-top: calc(var(--gf-header-h, 76px) + var(--wp-admin--admin-bar--height, 0px)); }
.gf-site .elementor-heading-title { text-wrap: balance; }

@media (min-width: 1025px) and (min-height: 700px) {
  .gf-site #capabilities.e-con,
  .gf-site #calculator.e-con,
  .gf-site #process.e-con,
  .gf-site #case-studies.e-con,
  .gf-site #security.e-con,
  .gf-site #faq.e-con {
    min-height: calc(100vh - var(--gf-header-h, 76px) - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  /* Hero + results strip share the first screen */
  .gf-site #top.e-con {
    min-height: calc(100vh - var(--gf-header-h, 76px) - var(--gf-proof-h, 132px) - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .gf-site #security > .e-con-inner { align-items: center; }
  .gf-site #security .gf-sticky { position: static; }

  /* Tighter rhythm so each section fits a laptop screen */
  .gf-site .e-con > .e-con-inner > .e-con:has(> .elementor-widget-heading h2) { margin-bottom: 40px; }
  .gf-site .gf-calc-inputs { gap: 22px; padding: 30px 32px; }
  .gf-site .gf-calc-results { gap: 14px; padding: 30px 32px; }
  .gf-site .gf-res-big { font-size: 56px; }
}
@media (min-width: 1025px) and (min-height: 700px) {
  /* Boxed containers carry Elementor's padding on .e-con-inner too; drop it so the section padding above is the only spacing */
  .gf-site #top > .e-con-inner,
  .gf-site #capabilities > .e-con-inner,
  .gf-site #calculator > .e-con-inner,
  .gf-site #process > .e-con-inner,
  .gf-site #case-studies > .e-con-inner,
  .gf-site #security > .e-con-inner,
  .gf-site #faq > .e-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
  .gf-site #top.e-con { padding-top: 20px !important; padding-bottom: 20px !important; }
  .gf-site #faq .e-con > .e-con-inner > .e-con:has(> .elementor-widget-heading h2),
  .gf-site #faq > .e-con-inner > .e-con:first-child { margin-bottom: 32px; }
  .gf-site #faq .gf-acc .elementor-accordion { gap: 10px; }
  .gf-site #faq .gf-acc .elementor-accordion .elementor-tab-title { padding-top: 16px; padding-bottom: 16px; }
}
@media (min-width: 1025px) and (min-height: 700px) {
  .gf-site #top > .e-con-inner,
  .gf-site #capabilities > .e-con-inner,
  .gf-site #calculator > .e-con-inner,
  .gf-site #process > .e-con-inner,
  .gf-site #case-studies > .e-con-inner,
  .gf-site #faq > .e-con-inner { justify-content: center; }
}
@media (min-width: 1025px) and (min-height: 700px) {
  .gf-site #security .gf-sticky { align-self: center; }
}

/* ---------- Full-screen sections on tablet & mobile ---------- */
@media (max-width: 1024px) {
  .gf-site #top.e-con,
  .gf-site #capabilities.e-con,
  .gf-site #calculator.e-con,
  .gf-site #process.e-con,
  .gf-site #case-studies.e-con,
  .gf-site #security.e-con,
  .gf-site #faq.e-con {
    /* svh = height with the browser toolbar showing, so sections don't jump as it hides */
    min-height: calc(100vh - var(--gf-header-h, 68px) - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100svh - var(--gf-header-h, 68px) - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  .gf-site #top > .e-con-inner,
  .gf-site #capabilities > .e-con-inner,
  .gf-site #calculator > .e-con-inner,
  .gf-site #process > .e-con-inner,
  .gf-site #case-studies > .e-con-inner,
  .gf-site #security > .e-con-inner,
  .gf-site #faq > .e-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; justify-content: center; }
  .gf-site #top.e-con { padding-top: 32px !important; padding-bottom: 40px !important; }
}

/* ---------- Mobile swipe carousels (Capabilities, How it works, Case Studies) ---------- */
.gf-site .gf-swipe-dots { display: none; }
@media (max-width: 767px) {
  .gf-site #capabilities .gf-cols-4,
  .gf-site #process .gf-cols-4,
  .gf-site #case-studies .gf-cols-3 {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px !important;
    width: calc(100% + 36px) !important;
    max-width: none !important;
    margin-inline: -18px;
    padding: 6px 18px 10px !important;
    align-items: stretch;
  }
  .gf-site #capabilities .gf-cols-4::-webkit-scrollbar,
  .gf-site #process .gf-cols-4::-webkit-scrollbar,
  .gf-site #case-studies .gf-cols-3::-webkit-scrollbar { display: none; }
  .gf-site #capabilities .gf-cols-4 > .e-con,
  .gf-site #process .gf-cols-4 > .e-con,
  .gf-site #case-studies .gf-cols-3 > .e-con {
    flex: 0 0 84% !important;
    width: 84% !important;
    scroll-snap-align: start;
  }
  .gf-site #capabilities .gf-card:hover,
  .gf-site #case-studies .gf-card:hover { transform: none; }
  .gf-site .gf-cols-4:focus-visible, .gf-site .gf-cols-3:focus-visible { outline-offset: -3px; }

  .gf-site .gf-swipe-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
  .gf-site button.gf-swipe-dot {
    width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px;
    background: #d9cec3; box-shadow: none; cursor: pointer; transition: width .2s, background-color .2s;
  }
  .gf-site button.gf-swipe-dot.is-active { width: 22px; background: #cf2f22; }
  /* 44px touch target without changing the visual size */
  .gf-site button.gf-swipe-dot { position: relative; }
  .gf-site button.gf-swipe-dot::after { content: ""; position: absolute; inset: -18px -6px; }
}
@media (max-width: 767px) {
  .gf-site #capabilities.e-con, .gf-site #process.e-con, .gf-site #case-studies.e-con { padding-top: 30px !important; padding-bottom: 30px !important; }
  .gf-site #capabilities > .e-con-inner > .e-con:first-child,
  .gf-site #process > .e-con-inner > .e-con:first-child,
  .gf-site #case-studies > .e-con-inner > .e-con:first-child { margin-bottom: 22px !important; }
  .gf-site #capabilities > .e-con-inner > .e-con:first-child .elementor-widget-text-editor { line-height: 1.5; font-size: 15px; }
  .gf-site #capabilities .gf-card { padding-top: 22px !important; padding-bottom: 22px !important; }
  .gf-site #case-studies .gf-card { padding-top: 24px !important; padding-bottom: 24px !important; }
  .gf-site #capabilities .gf-swipe-dots, .gf-site #process .gf-swipe-dots, .gf-site #case-studies .gf-swipe-dots { margin-top: 12px; }
}
@media (max-width: 767px) {
  /* Hero pipeline card is desktop/tablet only */
  .gf-site #top .gf-hero-visual { display: none !important; }
}

/* ---------- Compact calculator & FAQ on phones (one screen each) ---------- */
@media (max-width: 767px) {
  .gf-site #calculator.e-con, .gf-site #faq.e-con { padding-top: 26px !important; padding-bottom: 26px !important; }
  .gf-site #calculator > .e-con-inner > .e-con:first-child,
  .gf-site #faq > .e-con-inner > .e-con:first-child { margin-bottom: 18px !important; row-gap: 8px; gap: 8px; }
  .gf-site #calculator > .e-con-inner > .e-con:first-child h2,
  .gf-site #faq > .e-con-inner > .e-con:first-child h2 { font-size: 26px !important; }
  .gf-site #calculator > .e-con-inner > .e-con:first-child .elementor-widget-text-editor { font-size: 14px; line-height: 1.45; }

  /* Sliders */
  .gf-site .gf-calc { gap: 12px; }
  .gf-site .gf-calc-inputs { gap: 12px; padding: 16px 18px; border-radius: 16px; }
  .gf-site .gf-range { gap: 2px; }
  .gf-site .gf-range-row label { font-size: 14px; line-height: 1.3; }
  .gf-site .gf-range-val { min-width: 52px; padding: 2px 8px; font-size: 15px; }
  .gf-site .gf-range-scale { display: none; }
  .gf-site .gf-calc-note { padding-top: 10px; font-size: 11.5px; line-height: 1.4; }

  /* Results */
  .gf-site .gf-calc-results { gap: 10px; padding: 16px 18px; border-radius: 16px; }
  .gf-site .gf-res-label { font-size: 12px; }
  .gf-site .gf-res-big { font-size: 40px; }
  .gf-site .gf-res-split { flex-direction: row; gap: 8px; }
  .gf-site .gf-res-item { padding: 8px 12px; border-radius: 10px; }
  .gf-site .gf-res-num { font-size: 17px; }
  .gf-site .gf-res-cap { font-size: 12px; }
  .gf-site .gf-res-bar, .gf-site .gf-res-fte { display: none; }
  .gf-site .gf-calc-results .gf-btn-lg { padding: 13px 16px; font-size: 15px; }

  /* FAQ */
  .gf-site #faq .gf-acc .elementor-accordion { gap: 8px; }
  .gf-site #faq .gf-acc .elementor-accordion .elementor-tab-title { padding: 13px 14px 13px 16px; font-size: 15px; }
  .gf-site #faq .gf-acc .elementor-accordion .elementor-tab-content { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; }
  .gf-site #faq .gf-acc .elementor-accordion .elementor-accordion-icon { width: 24px; height: 24px; }
}

/* ---------- Compact Security on phones ---------- */
@media (max-width: 767px) {
  .gf-site #security.e-con { padding-top: 26px !important; padding-bottom: 26px !important; }
  .gf-site #security > .e-con-inner { gap: 18px !important; row-gap: 18px !important; }
  .gf-site #security .gf-sticky { gap: 10px !important; row-gap: 10px !important; }
  .gf-site #security .gf-sticky h2 { font-size: 26px !important; }
  .gf-site #security .gf-sticky .elementor-widget-text-editor { font-size: 14.5px !important; line-height: 1.5 !important; }
  .gf-site #security .gf-sticky .elementor-widget-text-editor p,
  .gf-site #security .gf-sticky .elementor-widget-text-editor { color: #4a5f5b; }
  .gf-site #security .gf-chips { gap: 6px; }
  .gf-site #security .gf-chips li { padding: 4px 9px; font-size: 11.5px; }
  .gf-site #security .gf-acc .elementor-accordion { gap: 8px; }
  .gf-site #security .gf-acc .elementor-accordion .elementor-tab-title { padding: 13px 14px 13px 16px; font-size: 15px; }
  .gf-site #security .gf-acc .elementor-accordion .elementor-tab-content { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; }
  .gf-site #security .gf-acc .elementor-accordion .elementor-accordion-icon { width: 24px; height: 24px; }
}
@media (max-width: 1024px) {
  /* Accordion column is flex-grow on desktop; stacked, it would swallow the spare height and break centring */
  .gf-site #security > .e-con-inner > .e-con { flex-grow: 0 !important; }
}

/* ---------- Compact Case Studies on phones ---------- */
@media (max-width: 767px) {
  .gf-site #case-studies.e-con { padding-top: 26px !important; padding-bottom: 26px !important; }
  .gf-site #case-studies > .e-con-inner > .e-con:first-child { margin-bottom: 14px !important; gap: 8px !important; row-gap: 8px !important; }
  .gf-site #case-studies > .e-con-inner > .e-con:first-child h2 { font-size: 26px !important; }
  .gf-site #case-studies .gf-card { padding: 20px 20px !important; gap: 10px !important; row-gap: 10px !important; }
  .gf-site #case-studies .gf-card > .elementor-widget-heading h3,
  .gf-site #case-studies .gf-card > .elementor-widget-heading:nth-child(2) .elementor-heading-title { font-size: 19px !important; }
  .gf-site #case-studies .gf-card > .elementor-widget-text-editor { font-size: 14px !important; line-height: 1.5 !important; }
  .gf-site #case-studies .gf-row-auto { gap: 10px !important; }
  .gf-site #case-studies .gf-stat { padding: 10px 12px !important; }
  .gf-site #case-studies .gf-stat .elementor-counter-number-wrapper,
  .gf-site #case-studies .gf-stat .elementor-counter-number-wrapper span { font-size: 23px !important; }
  .gf-site #case-studies .gf-stat .elementor-counter-title { font-size: 12px !important; line-height: 1.3 !important; }
  .gf-site #case-studies .gf-ba { padding-top: 10px !important; gap: 6px !important; row-gap: 6px !important; }
  .gf-site #case-studies .gf-ba .elementor-title { font-size: 14px !important; }
  .gf-site #case-studies .gf-ba .elementor-progress-wrapper { height: 7px !important; }
  .gf-site #case-studies .gf-ba > .elementor-widget-text-editor { font-size: 12px !important; }
}

/* ---------- Compact Capabilities & How it works on phones ---------- */
@media (max-width: 767px) {
  .gf-site #capabilities.e-con, .gf-site #process.e-con { padding-top: 26px !important; padding-bottom: 26px !important; }
  .gf-site #capabilities > .e-con-inner > .e-con:first-child,
  .gf-site #process > .e-con-inner > .e-con:first-child { margin-bottom: 14px !important; gap: 8px !important; row-gap: 8px !important; }
  .gf-site #capabilities > .e-con-inner > .e-con:first-child h2,
  .gf-site #process > .e-con-inner > .e-con:first-child h2 { font-size: 26px !important; }
  .gf-site #capabilities > .e-con-inner > .e-con:first-child .elementor-widget-text-editor { font-size: 14px !important; line-height: 1.45 !important; }

  /* Capability cards */
  .gf-site #capabilities .gf-card { padding: 18px 20px !important; }
  .gf-site #capabilities .elementor-icon-box-wrapper { gap: 12px !important; }
  .gf-site #capabilities .elementor-icon-box-icon { margin-bottom: 0 !important; }
  .gf-site #capabilities .elementor-icon-box-icon .elementor-icon { width: 42px !important; height: 42px !important; font-size: 19px !important; }
  .gf-site #capabilities .elementor-icon-box-title { font-size: 18px !important; margin-bottom: 8px !important; }
  .gf-site #capabilities .elementor-icon-box-description { font-size: 14px !important; line-height: 1.5 !important; }

  /* Process steps */
  .gf-site #process .gf-step-box { padding: 20px 20px !important; gap: 8px !important; row-gap: 8px !important; }
  .gf-site #process .gf-step-box .elementor-widget-heading:nth-child(2) .elementor-heading-title { font-size: 18px !important; }
  .gf-site #process .gf-step-box > .elementor-widget-text-editor { font-size: 14px !important; line-height: 1.5 !important; }
}

/* ---------- Footer social links ---------- */
.gf-site .gf-social { display: flex; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.gf-site .gf-social li { margin: 0; }
.gf-site .gf-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.18);
  transition: background-color .2s, border-color .2s, color .2s;
}
.gf-site .gf-social a:hover, .gf-site .gf-social a:focus-visible { background: #cf2f22; border-color: #cf2f22; color: #fff; }
.gf-site .gf-social svg { display: block; }
