:root{
  --white:#ffffff;
  --mist:#f1eef6;
  --stone:#cecfc7;
  --muted:#a6abcd;
  --primary:#4d2a6e;

  --text:#1a1522;
  --shadow: 0 12px 30px rgba(26,21,34,.08);
  --shadow-lg: 0 18px 44px rgba(26,21,34,.12);
  --radius: 18px;
  --radius-sm: 12px;
   /* Gradients (experiment-friendly) */
  --grad-primary: linear-gradient(135deg, #4d2a6e 0%, #6a3fa0 45%, #4b2a7a 100%);
  --grad-mist: linear-gradient(180deg, #f6f2fa 0%, #fbf9fd 100%);
  --grad-transition: linear-gradient(180deg, #ffffff 0%, #f4eef9 45%, #f6f2fa 100%);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.55;
}
html, body { overflow-x: hidden; }

/* ---------- Layout: sticky footer (keep) ---------- */
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main{ flex: 1 0 auto; }
.site-footer{ margin-top: auto; }

/* ---------- Header: use FIXED instead of STICKY ---------- */
/* Admin bar height variable */
:root{ --wpadminbar-h: 0px; }

body.admin-bar{ --wpadminbar-h: 32px; }
@media (max-width: 782px){
  body.admin-bar{ --wpadminbar-h: 46px; }
}

.site-header{
  position: fixed !important;
  top: var(--wpadminbar-h) !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100000 !important;
}

/* Push page content down by header height (+ admin bar if present) */
body{
  padding-top: calc(var(--header-h, 72px) + var(--wpadminbar-h)) !important;
}

img{ max-width:100%; height:auto; }
a{ color:inherit; }

.container{ width:min(1200px, 92vw) !important; max-width:none !important; margin:0 auto !important; padding-left:0 !important; padding-right:0 !important; }

/* -------------------------
   HEADER + NAV
-------------------------- */

.site-header{
  z-index:100000;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(206,207,199,.6);
  overflow:visible;
}


.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  overflow:visible;
}

.site-title{
  font-weight:800;
  text-decoration:none;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:14px;
  overflow:visible;
}

/* Reset ALL menu lists everywhere */
.site-nav ul,
.site-nav li{
  margin:0;
  padding:0;
}
.site-nav ul{
  list-style:none;
}

/* Top level menu layout */
.site-nav .menu{
  display:flex;
  align-items:center;
  gap:18px;
}

.site-nav .menu > li{
  position:relative;
}

.site-nav .menu > li > a{
  display:inline-flex;
  align-items:center;
  padding:10px 2px;
  font-weight:650;
  color:rgba(26,21,34,.85);
  text-decoration:none;
  white-space:nowrap;
}

.site-nav .menu > li > a:hover{
  color:var(--primary);
}

/* CTA button area */
.header-cta { margin-left: 10px; }

/* Hamburger */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  padding:10px;
}
.nav-toggle span{
  display:block;
  width:26px; height:2px;
  background:var(--text);
  margin:5px 0;
  border-radius:2px;
}

/* -------------------------
   DROPDOWNS (base)
-------------------------- */

/* Hide all dropdowns by default */
.site-nav .sub-menu{
  display:none;
  padding:14px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  background:#fff;
  border:1px solid rgba(206,207,199,.85);
}
.site-nav .menu-desc{
  display:block;
  margin-top:6px;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  color:rgba(26,21,34,.65);
}

/* Normal dropdown box styling (for Products, etc.) */
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu{
  display:block;
}

.site-nav .menu > li > .sub-menu{
  position:absolute;
  top:100%;
  left:0;
  margin-top:10px;
  min-width:280px;
  padding:10px;
  border-radius:16px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(206,207,199,.85);
  box-shadow:var(--shadow-lg);
  z-index:99999;
}

/* Fix “dropdown disappears” hover gap */
.site-nav .menu > li.menu-item-has-children::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:16px;
}

/* Dropdown item links */
.site-nav .menu > li > .sub-menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:650;
  color:rgba(26,21,34,.85);
}
.site-nav .menu > li > .sub-menu a:hover{
  background:var(--mist);
  color:var(--primary);
}

/* -------------------------
   MEGA MENU (AI Adoption Services)
   Add class "qezaro-mega" to the LI for AI Adoption Services
   Section headings: "Section I/II/III" have classes "mm-heading mm-break"
   The "Business Central Agent Adoption" item has class "mm-subheading"
-------------------------- */

.site-nav .menu > li.qezaro-mega > .sub-menu{
  width:min(920px, 92vw);
  padding:16px;
  border-radius:18px;
  columns:3;
  column-gap:16px;
}

.site-nav .menu > li.qezaro-mega > .sub-menu > li{
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  margin:0 0 14px;
}

/* Section heading label */
.site-nav .menu > li.qezaro-mega .mm-heading > a{
  pointer-events:none;
  cursor:default;
  display:block;
  padding:0;
  margin:0 0 10px;
  background:transparent;
  border:0;
  font-weight:850;
  color:var(--primary);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
}

/* Force a new column */
.site-nav .menu > li.qezaro-mega .mm-break{
  break-before:column;
  -webkit-column-break-before:always;
}

/* Mega menu cards */
.site-nav .menu > li.qezaro-mega .sub-menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:650;
  color:rgba(26,21,34,.85);
  background: rgba(241,238,246,.55);
  border:1px solid rgba(206,207,199,.65);
}

.site-nav .menu > li.qezaro-mega .sub-menu a:hover{
  background:#fff;
  color:var(--primary);
  border-color: rgba(77,42,110,.25);
}

/* Subheading (Business Central Agent Adoption) */
.site-nav .menu > li.qezaro-mega .mm-subheading > a{
  font-weight:850;
  background:#fff;
  border-color: rgba(77,42,110,.22);
}

/* Nested list under Business Central Agent Adoption:
   show it INSIDE the mega column (not as a floating dropdown)
*/
.site-nav .menu > li.qezaro-mega .mm-subheading > .sub-menu{
  display:block;
  position:static;
  margin-top:8px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

/* Nested links: simpler list look */
.site-nav .menu > li.qezaro-mega .mm-subheading > .sub-menu a{
  background:transparent;
  border:0;
  padding:8px 10px 8px 14px;
  font-weight:650;
  color:rgba(26,21,34,.78);
}

.site-nav .menu > li.qezaro-mega .mm-subheading > .sub-menu a:hover{
  background:var(--mist);
  color:var(--primary);
  border-radius:10px;
}

/* Mega menu container (Walker outputs <div class="mega">) */
.site-nav .menu > li > .mega{
  display: none;
}


/* -------------------------
   SECTIONS + TYPOGRAPHY
-------------------------- */

.section{ padding:72px 0; }
.section-mist{ background: var(--grad-mist); }
.section-primary{ background: var(--grad-primary); }

h1,h2,h3{ line-height:1.15; letter-spacing:-0.02em; margin:0 0 12px; }
h1{ font-size:clamp(34px, 4.2vw, 56px); color:var(--primary); }
h2{ font-size:clamp(26px, 3vw, 38px); }
h3{ font-size:20px; }

.lead{ font-size:clamp(16px, 1.4vw, 19px); margin:0 0 18px; }
.muted{ color:rgba(26,21,34,.70); }
.bridge{ margin-top:22px; font-weight:650; }
.eyebrow{ text-transform:uppercase; letter-spacing:.14em; font-weight:800; color:var(--primary); margin-bottom:10px; }

.hero{ padding:84px 0 52px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:42px;
  align-items:center;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:18px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:750;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary{ background:var(--primary); color:var(--white); }
.btn-primary:hover{ background:#3f215c; }

.btn-link{
  background:transparent;
  border-color: rgba(206,207,199,.75);
  color:rgba(26,21,34,.9);
}
.btn-link:hover{ border-color: rgba(77,42,110,.35); }

.btn-invert{
  background:var(--white);
  color:var(--primary);
}
.btn-invert:hover{ background:#f8f6fb; }

.hero-media{
  background: transparent;
  border: 0;
  padding: 0;
}

.hero-img{
  border-radius: var(--radius);
}

/* Cards */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top:28px;
}
.cards-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  background:var(--white);
  border:1px solid rgba(206,207,199,.85);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 1px 0 rgba(26,21,34,.04);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(77,42,110,.25);
}
.card-lg{ padding:22px; }

.icon-wrap{
  width:44px; height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(77,42,110,.10);
  border:1px solid rgba(77,42,110,.18);
  margin-bottom:12px;
}
.icon-wrap img{ width:22px; height:22px; object-fit:contain; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:24px;
}
.step-card{
  background:var(--white);
  border:1px solid rgba(206,207,199,.85);
  border-radius: var(--radius);
  padding:18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Highlighted card - stands out */
.step-card-highlight{
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(77, 42, 110, 0.15);
  transform: scale(1.02);
  position: relative;
  z-index: 1;
}
.step-card-highlight::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(135deg, rgba(77, 42, 110, 0.03) 0%, rgba(106, 63, 160, 0.06) 100%);
  pointer-events: none;
}

/* Highlighted card on primary background */
.section-primary .step-card-highlight{
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.section-primary .step-card-highlight::before{
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.step-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.step-num{
  width:34px; height:34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--primary);
  color:var(--white);
  font-weight:850;
}
.badge{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(206,207,199,.9);
  background: rgba(241,238,246,.65);
}

/* -------------------------
   HIGHLIGHT TILES
-------------------------- */
.highlight-tiles-intro{
  max-width: 720px;
  margin-bottom: 28px;
}

.highlight-tiles{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.highlight-tile{
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(77, 42, 110, 0.08);
}

.highlight-tile:hover .highlight-tile-text{
  color: var(--primary);
}

.highlight-tile-num{
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  min-width: 20px;
}

.highlight-tile-text{
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.15s ease;
}

/* Highlight tiles on mist background */
.section-mist .highlight-tile{
  border-bottom-color: rgba(77, 42, 110, 0.06);
}

/* Highlight tiles on primary background */
.section-primary .highlight-tile{
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.section-primary .highlight-tile-num{
  color: rgba(255, 255, 255, 0.7);
}
.section-primary .highlight-tile-text{
  color: var(--white);
}
.section-primary .highlight-tile:hover .highlight-tile-text{
  color: rgba(255, 255, 255, 0.85);
}

/* Highlight tiles responsive */
@media (max-width: 768px){
  .highlight-tiles{
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* -------------------------
   FEATURE CALLOUT
-------------------------- */
.feature-callout{
  max-width: 100%;
}

.feature-callout-title{
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.section-primary .feature-callout-title{
  color: var(--white);
}

.feature-callout-intro{
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 24px;
  max-width: 720px;
}
.feature-callout-intro p{
  margin: 0 0 12px;
}
.feature-callout-intro p:last-child{
  margin-bottom: 0;
}
.feature-callout-intro strong{
  color: var(--text);
  font-weight: 600;
}

.section-primary .feature-callout-intro{
  color: rgba(255, 255, 255, 0.7);
}
.section-primary .feature-callout-intro strong{
  color: var(--white);
}

.feature-callout-lead{
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 28px 0 16px;
}

.section-primary .feature-callout-lead{
  color: var(--white);
}

.feature-callout-list{
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-callout-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.section-primary .feature-callout-list li{
  color: rgba(255, 255, 255, 0.9);
}

.feature-callout-icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 1px;
}

.section-primary .feature-callout-icon{
  color: rgba(255, 255, 255, 0.8);
}

.feature-callout-closing{
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(77, 42, 110, 0.08);
}
.feature-callout-closing p{
  margin: 0;
}
.feature-callout-closing strong{
  color: var(--text);
  font-weight: 600;
}

.section-primary .feature-callout-closing{
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.15);
}
.section-primary .feature-callout-closing strong{
  color: var(--white);
}

.feature-callout-cta{
  margin-top: 28px;
}

/* Feature callout responsive */
@media (max-width: 768px){
  .feature-callout-title{
    font-size: 26px;
  }
}

/* -------------------------
   FLOW SECTION
-------------------------- */
.flow-section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
  align-items: start;
}

.flow-content{
  grid-column: 1;
}

.flow-title{
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  position: relative;
}
.flow-title::after{
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 18px;
}

.section-primary .flow-title{
  color: var(--white);
}
.section-primary .flow-title::after{
  background: rgba(255, 255, 255, 0.5);
}

.flow-intro{
  font-size: 16px;
  line-height: 1.75;
  color: #64748b;
}
.flow-intro p{
  margin: 0 0 16px;
}
.flow-intro p:last-child{
  margin-bottom: 0;
}
.flow-intro strong{
  color: var(--text);
  font-weight: 600;
}

.section-primary .flow-intro{
  color: rgba(255, 255, 255, 0.7);
}
.section-primary .flow-intro strong{
  color: var(--white);
}

.flow-lead{
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  margin: 20px 0 0;
}

.section-primary .flow-lead{
  color: rgba(255, 255, 255, 0.7);
}

.flow-steps{
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
  padding-top: 8px;
}

.flow-steps::before{
  content: "";
  position: absolute;
  left: 13px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(77, 42, 110, 0.15) 100%);
  border-radius: 1px;
}

.section-primary .flow-steps::before{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.flow-step{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}

.flow-step-marker{
  position: absolute;
  left: -40px;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1;
}
.flow-step-marker svg{
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.section-mist .flow-step-marker{
  background: var(--mist);
}

.section-primary .flow-step-marker{
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.5);
}
.section-primary .flow-step-marker svg{
  color: var(--white);
}

.flow-step-text{
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  padding-top: 3px;
}

.section-primary .flow-step-text{
  color: var(--white);
}

.flow-conclusion{
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.flow-conclusion-icon{
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.flow-conclusion-icon svg{
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.flow-conclusion p{
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
}

.section-primary .flow-conclusion-icon svg{
  color: rgba(255, 255, 255, 0.8);
}
.section-primary .flow-conclusion p{
  color: rgba(255, 255, 255, 0.7);
}

.flow-cta{
  grid-column: 1 / -1;
  margin-top: 12px;
}

/* Flow section responsive */
@media (max-width: 900px){
  .flow-section{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-content{
    grid-column: 1;
  }
  .flow-steps{
    grid-column: 1;
    grid-row: auto;
  }
  .flow-conclusion{
    grid-column: 1;
  }
  .flow-cta{
    grid-column: 1;
  }
  .flow-title{
    font-size: 28px;
  }
}

/* Checklists */
.checklist{
  list-style:none;
  padding:0;
  margin:14px 0 0;
}
.checklist li{
  position:relative;
  padding-left:26px;
  margin:10px 0;
}
.checklist li:before{
  content:"";
  position:absolute;
  left:0; top:4px;
  width:16px; height:16px;
  border-radius:6px;
  background: rgba(77,42,110,.18);
  border: 1px solid rgba(77,42,110,.28);
}
.checklist li:after{
  content:"";
  position:absolute;
  left:5px; top:8px;
  width:7px; height:4px;
  border-left:2px solid var(--primary);
  border-bottom:2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Split Toolkit (two-column with icons) */
.split-toolkit{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}
.split-toolkit-label{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.split-toolkit-left h2{
  margin: 0 0 16px;
  font-size: 28px;
}
.split-toolkit-lead{
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.split-toolkit-cta{
  margin-top: 0;
}
.split-toolkit-right{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.toolkit-feature{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.toolkit-feature-icon{
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(77,42,110,.08);
}
.toolkit-feature-icon svg{
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.toolkit-feature-content h4{
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.toolkit-feature-content p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Split Toolkit on mist background */
.section-mist .split-toolkit{
  background: var(--white);
}

/* Split Toolkit responsive */
@media (max-width: 768px){
  .split-toolkit{
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
}

/* -------------------------
   OUTCOME GRID (2x2)
-------------------------- */
.outcome-grid-title{
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 48px;
  text-align: center;
}
.outcome-grid-title.on-primary{
  color: var(--white);
}

.outcome-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.outcome-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(77, 42, 110, 0.06);
  display: flex;
  flex-direction: column;
}

.section-primary .outcome-card{
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.outcome-card-title{
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.section-primary .outcome-card-title{
  color: var(--white);
}

.outcome-card-subtitle{
  font-size: 15px;
  color: #64748b; /* slate-500 - readable gray */
  margin: 0 0 20px;
  line-height: 1.5;
}

.section-primary .outcome-card-subtitle{
  color: rgba(255, 255, 255, 0.7);
}

.outcome-checks{
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.outcome-checks li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.section-primary .outcome-checks li{
  color: rgba(255, 255, 255, 0.9);
}

.outcome-check-icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #10b981; /* emerald green */
}

.section-primary .outcome-check-icon{
  color: #6ee7b7;
}

.outcome-result{
  background: linear-gradient(135deg, rgba(77, 42, 110, 0.05) 0%, rgba(106, 63, 160, 0.08) 100%);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--primary);
}

.section-primary .outcome-result{
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.6);
}

.outcome-result-label{
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.section-primary .outcome-result-label{
  color: rgba(255, 255, 255, 0.7);
}

.outcome-result-text{
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.section-primary .outcome-result-text{
  color: var(--white);
}

/* Outcome grid responsive */
@media (max-width: 768px){
  .outcome-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .outcome-grid-title{
    font-size: 28px;
    margin-bottom: 32px;
  }
  .outcome-card{
    padding: 24px;
  }
}

/* -------------------------
   ABOUT US PAGE
-------------------------- */
.qz-about{
  padding-bottom: 0;
}

/* Statement Hero - clean, unified */
.qz-about-statement{
  padding: 100px 0 80px;
}
.qz-about-statement-inner{
  max-width: 780px;
  margin: 0 auto;
}
.qz-about-title{
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}
.qz-about-text{
  font-size: 20px;
  line-height: 1.85;
  color: var(--text);
}
.qz-about-text p{
  margin: 0 0 24px;
}
.qz-about-text p:last-child{
  margin-bottom: 0;
}
.qz-about-text strong{
  color: var(--primary);
  font-weight: 700;
}

/* Principles Grid - numbered blocks */
.qz-about-principles{
  padding: 80px 0;
}
.qz-principles-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.qz-principle{
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.qz-principle:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.qz-principle-marker{
  flex-shrink: 0;
}
.qz-principle-num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.qz-principle-content h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.qz-principle-content p{
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #64748b; /* slate-500 - readable gray */
}

/* Origin Story - accent block */
.qz-about-origin{
  padding: 80px 0;
}
.qz-origin-block{
  display: flex;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.qz-origin-accent{
  flex-shrink: 0;
  width: 6px;
  background: var(--grad-primary);
  border-radius: 3px;
}
.qz-origin-content{
  flex: 1;
}
.qz-origin-content p{
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px;
}
.qz-origin-content p:last-child{
  margin-bottom: 0;
}

/* About Page Responsive */
@media (max-width: 768px){
  .qz-about-statement{
    padding: 60px 0 50px;
  }
  .qz-about-text{
    font-size: 18px;
  }
  .qz-principles-grid{
    grid-template-columns: 1fr;
  }
  .qz-principle{
    padding: 24px;
  }
  .qz-origin-block{
    gap: 20px;
  }
  .qz-origin-content p{
    font-size: 16px;
  }
}

.callout{
  margin-top:22px;
  padding:16px 18px;
  border-radius: var(--radius);
  border:1px solid rgba(77,42,110,.25);
  background: rgba(241,238,246,.7);
  font-weight:650;
}

/* Split layout */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.split-invert{ grid-template-columns: .9fr 1.1fr; }

.media-img{
  border: 0 !important;
  box-shadow: none !important;
  border-radius: var(--radius) !important;
}


.on-primary{ color:var(--white); }
.muted-on-primary{ color: rgba(255,255,255,.82); }

/* Logos — clean strip (no boxes) */
.logo-grid{
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 4vw, 44px);
  flex-wrap: wrap;
}

.logo{
  /* remove the grey boxes */
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;

  /* make anchor/div behave the same */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* consistent sizing */
  height: 72px;           /* row height */
  min-width: 140px;       /* keeps spacing even-ish */
  text-decoration: none;

  /* “trusted logos” look */
  opacity: .72;
  filter: grayscale(100%);
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

.logo img{
  max-height: 66px; /* make logos bigger */
  width: auto;
  display: block;
}

.logo:hover{
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 720px){
  .logo{ height: 48px; min-width: 120px; }
  .logo img{ max-height: 38px; }
}



/* Posts */
.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:22px;
}
.post-card{
  border-radius: var(--radius);
  border:1px solid rgba(206,207,199,.85);
  overflow:hidden;
  background: var(--mist);
}
.post-link{ display:block; text-decoration:none; }
.post-thumb img{ display:block; width:100%; height:auto; }
.post-body{ padding:16px; }
.post-title{ margin:0 0 8px; }

/* Newsletter */
.newsletter{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.newsletter-form{
  flex: 0 0 min(520px, 100%);
  background: var(--white);
  border:1px solid rgba(206,207,199,.85);
  border-radius: var(--radius);
  padding:16px;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  align-items:start;
}
.contact-forms .form-card{
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.20);
  border-radius: var(--radius);
  padding:16px;
  margin-bottom:14px;
}
.checklist-on-primary li:before{
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
}
.checklist-on-primary li:after{
  border-color: #fff;
}

/* Footer */
.site-footer{
  background:#0f0a16;
  color: rgba(255,255,255,.85);
  padding:0;
  margin-top:0;
}

/* Footer Top Row - Logo + Navigation */
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:40px 0 32px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-top .footer-logo{
  flex-shrink:0;
}
.footer-top .footer-logo img{
  height:36px;
  width:auto;
  filter: brightness(0) invert(1); /* make logo white */
}
.footer-nav{
  flex:1;
  display:flex;
  justify-content:flex-end;
}
.footer-nav .menu{
  list-style:none;
  padding:0; margin:0;
  display:flex;
  gap:32px;
  flex-wrap:wrap;
}
.footer-nav .menu li a{
  color: rgba(255,255,255,.75);
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  transition: color .2s;
}
.footer-nav .menu li a:hover{ color:#fff; }

/* Footer Contact Row */
.footer-contact-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:48px;
  padding:32px 0;
  flex-wrap:wrap;
}
.footer-contact-item{
  display:flex;
  align-items:center;
  gap:12px;
  color: rgba(255,255,255,.85);
  font-size:15px;
}
.footer-contact-item a{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  transition: color .2s;
}
.footer-contact-item a:hover{ color:#fff; }
.footer-icon{
  width:20px;
  height:20px;
  flex-shrink:0;
  opacity:.75;
}
.footer-contact-label{
  font-weight:600;
  color:rgba(255,255,255,.5);
  margin-right:4px;
}

/* Footer Social Icons */
.footer-social{
  display:flex;
  gap:16px;
  align-items:center;
}
.footer-social-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.75);
  transition: background .2s, color .2s;
}
.footer-social-icon:hover{
  background:rgba(255,255,255,.15);
  color:#fff;
}
.footer-social-icon svg{
  width:20px;
  height:20px;
}

/* Footer Bottom Bar - Copyright + Legal */
.footer-bottom-bar{
  border-top:1px solid rgba(255,255,255,.1);
  font-size:14px;
  color:rgba(255,255,255,.5);
}
.footer-bottom-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:20px 0;
}
.footer-copyright{
  margin:0;
}
.footer-legal .menu{
  list-style:none;
  padding:0; margin:0;
  display:flex;
  gap:24px;
}
.footer-legal .menu li a{
  color:rgba(255,255,255,.5);
  text-decoration:none;
  font-size:14px;
  transition: color .2s;
}
.footer-legal .menu li a:hover{ color:#fff; }

/* Footer Responsive */
@media (max-width: 768px){
  .footer-top{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }
  .footer-nav{
    justify-content:flex-start;
    width:100%;
  }
  .footer-nav .menu{
    gap:16px 24px;
  }
  .footer-contact-row{
    flex-direction:column;
    gap:20px;
    align-items:flex-start;
  }
  .footer-bottom-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }
  .footer-legal .menu{
    flex-wrap:wrap;
    gap:12px 20px;
  }
}

.note{ margin-top:16px; color: rgba(26,21,34,.75); font-weight:650; }
.mt-16{ margin-top:16px; }

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 980px){
  .hero-grid, .split, .split-invert, .contact{
    grid-template-columns: 1fr;
  }
  .cards-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: 1fr; }
  .logo-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .posts-grid{ grid-template-columns: 1fr; }
  .newsletter{ flex-direction:column; }

  .nav-toggle{ display:block; }
}
/* Phones: show cards 1 per row */
@media (max-width: 640px){
  .cards-grid{
    grid-template-columns: 1fr !important;
  }
  /* Mobile nav panel */
  .site-nav{
    display:none;
    position:absolute;
    left:0; right:0;
    top:64px;
    background: rgba(255,255,255,.98);
    border-bottom:1px solid rgba(206,207,199,.8);
    padding:12px 0 14px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .site-nav.open{ display:flex; }

  .site-nav .menu{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:0 4vw;
  }

  .site-nav .menu > li > a{
    padding:10px 0;
  }

  /* Mobile: show submenus as nested lists */
  .site-nav .sub-menu{
    display:block;
    position:static;
    margin:6px 0 10px 14px;
    padding:0;
    border:0;
    box-shadow:none;
    background:transparent;
    min-width:0;
  }

  /* Mobile mega: no columns */
  .site-nav .menu > li.qezaro-mega > .sub-menu{
    columns:1;
    width:100%;
    padding:0;
    margin-top:6px;
    border:0;
    box-shadow:none;
    background:transparent;
  }

  .site-nav .menu > li.qezaro-mega .sub-menu a{
    background:transparent;
    border:0;
    padding:8px 0;
  }

  .header-cta{ padding: 0 4vw 8px; margin-left:0; }
}
/* =========================================================
   FIX: Mega menu is rendered as <div class="mega"> (Walker)
   Hide it by default and show on hover/focus.
   ========================================================= */

@media (min-width: 981px){

  /* make sure dropdown can overlay */
  .site-header,
  .header-inner,
  .site-nav { overflow: visible !important; }

  .site-nav .menu > li{ position: relative; }

  /* hide mega by default (divs are display:block by default!) */
  .site-nav .menu > li > .mega{
    display:none;
    position:absolute;
    top:100%;
    left: 50% !important;
	transform: translateX(-50%) !important;
    margin-top:12px;
    width: min(1120px, calc(100vw - 32px)) !important; /* 16px padding each side */
    max-width: 1120px !important;
    padding:22px;
    border-radius:20px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(206,207,199,.85);
    box-shadow:0 26px 70px rgba(26,21,34,.16);
    z-index:99999;
  }

  /* show mega on hover / keyboard focus */
  .site-nav .menu > li:hover > .mega,
  .site-nav .menu > li:focus-within > .mega{
    display:block;
  }

  /* hover bridge so it doesn't disappear moving mouse down */
  .site-nav .menu > li.menu-item-has-children::after{
    content:"";
    position:absolute;
    left:0;
    top:100%;
    width:100%;
    height:16px;
  }

  /* 3 columns */
  .site-nav .mega-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:22px;
    align-items:start;
  }

  /* headings */
  .site-nav .mega-col{
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .site-nav .mega-heading{
    font-weight:850;
    font-size:18px;
    color:rgba(26,21,34,.95);
    margin:0;
  }
  /* lists inside each section */
  .site-nav .mega-list{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    gap:14px;
  }

  /* links in mega */
  .site-nav .mega-list a,
  .site-nav a.mega-link{
    display: block !important;
    text-decoration: none !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-weight: 650 !important;
    color: rgba(26,21,34,.85) !important;
    background: rgba(241,238,246,.55) !important;
    border: 1px solid rgba(206,207,199,.65) !important;
  }

  .site-nav .mega-list a:hover,
  .site-nav a.mega-link:hover{
    background: #fff !important;
    color: var(--primary) !important;
    border-color: rgba(77,42,110,.25) !important;
  }
  .site-nav .mm-card{
    display:block;
    padding:18px;
    border-radius:16px;
    background:#fff;
    border:1px solid rgba(206,207,199,.85);
    text-decoration:none;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }
  .site-nav .mm-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(26,21,34,.10);
    border-color: rgba(77,42,110,.28);
  }

  .site-nav .mm-title{
    font-weight:850;
    margin:0 0 8px;
    line-height:1.2;
  }

  .site-nav .mm-desc{
    color:rgba(26,21,34,.68);
    font-size:14px;
    line-height:1.45;
  }

	  /* Nested items (depth 3) */
  .site-nav .mm-sub-link{
    display:block;
    padding:10px 12px;
    border-radius:12px;
    text-decoration:none;
    font-weight:650;
    color:rgba(26,21,34,.82);
    background: var(--mist);
    border:1px solid rgba(206,207,199,.75);
  }
  .site-nav .mm-sub-link:hover{
    background:#fff;
    color:var(--primary);
    border-color: rgba(77,42,110,.25);
  }

}



/* Mobile menu: make it scrollable and usable */
@media (max-width: 980px){
  .site-nav{
    display:none;
    position: fixed;
    left:0; right:0;
    top: var(--header-h, 64px);
    height: calc(100vh - var(--header-h, 64px));
    overflow-y:auto;
    background: rgba(255,255,255,.98);
    border-bottom:1px solid rgba(206,207,199,.8);
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    z-index: 99999;
  }
  .site-nav.open{ display:flex; }

  /* If you want mega sections visible only when the menu is open: */
  .site-nav.open .menu > li > .mega{
    display:block;
    position: static;
    transform: none;
    margin: 8px 0 14px 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav.open{
    position: fixed !important;
    inset: auto 0 0 0 !important;   /* remove top:0 */
    top: 64px !important;          /* header height */
	height: calc(100vh - 64px) !important;
	padding-top: 12px !important;  /* no need for huge padding now */
    left: 0; right: 0;
    overflow-y: auto;       /* allow scrolling */
    -webkit-overflow-scrolling: touch;
    z-index: 99999;  
  }
	
/* If logged in, account for WP admin bar */
  body.admin-bar .site-nav.open{
    padding-top: 116px;               /* header + admin bar */
   top: 96px !important;          /* 64 header + 32 admin bar */
    height: calc(100vh - 96px) !important;
  }
	
  /* 2) Remove any bullets/indentation inside mega/mobile lists */
  .site-nav .mega ul,
  .site-nav .mega li{
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
	  /* 3) Hide service descriptions on mobile */
  .site-nav .menu-desc,
  .site-nav .mm-desc{
    display: none !important;
  }
	  /* 4) Make section headings bold (Services, Practice Modernization, etc.) */
  .site-nav .mega-heading,
  .site-nav .mm-heading > a{
    font-weight: 850 !important;
  }
	  /* Optional: make headings feel more “section-like” */
  .site-nav .mega-heading{
    font-size: 15px !important;
    margin-top: 14px !important;
  }

  /* Give the list breathing room */
  .site-nav .menu{
    width: 100%;
    padding-bottom: 28px;
  }

  /* Make mobile menu items feel cleaner */
  .site-nav .menu > li > a{
    font-size: 18px;
    line-height: 1.25;
  }

  /* Submenus: add spacing so it’s readable */
  .site-nav .sub-menu{
    margin: 8px 0 14px 14px;
  }
	  /* Remove underline from ALL menu links (mobile) */
  .site-nav a{
    text-decoration: none !important;
  }

  /* Underline + emphasize SECTION names only */
  .site-nav .mega-heading,
  .site-nav .mm-heading > a{
    font-weight: 850 !important;
  }
	  /* The submenu container should not look like a card */
	.site-nav .menu > li > .sub-menu{
    position: static !important;
    display: block !important;
    margin: 8px 0 14px 14px !important;

    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Links inside the submenu: simple list look */
  .site-nav .menu > li > .sub-menu a{
    background: transparent !important;
    border: 0 !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
	  @media (max-width: 782px){
  body.admin-bar .site-nav.open{
    top: calc(var(--header-h) + var(--wpadminbar-h)) !important;
    height: calc(
      100vh - var(--header-h) - var(--wpadminbar-h)
    ) !important;
  }
}
/*patterns.php code below for Home page Problem*/
/* Section helpers */
.qz-section{ padding:72px 0; }
.qz-section-mist{ background: var(--mist); }
.qz-muted{ color: rgba(26,21,34,.70); }
.qz-bridge{ margin-top:22px; font-weight:650; }

/* Problem cards */
.qz-problem-grid{ gap:16px; margin-top:20px; }
.qz-problem-card{
  background:#fff;
  border:1px solid rgba(206,207,199,.85);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 1px 0 rgba(26,21,34,.04);
}

.qz-problem-icon img{
  width:22px; height:22px; object-fit:contain;
}

.qz-problem-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(77,42,110,.10);
  border:1px solid rgba(77,42,110,.18);
  margin:0 0 12px 0;
}

.qz-card-title{ margin:0 0 8px; font-size:18px; }
.qz-card-desc{ margin:0; color: rgba(26,21,34,.70); line-height:1.55; }

/* =========================================================
   QEZARO — GRAVITY FORMS (DARK / PURPLE SECTION)
   Attach to a form by adding GF CSS Class Name: qz-form-dark
   GF outputs wrapper class: .qz-form-dark_wrapper
   ========================================================= */

/* 1) Theme variables (this is the key to beating GF's framework styles) */
.section-primary .qz-form-dark_wrapper{
  /* Typography */
  --gf-local-font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Label colors (these map to what GF uses in the rule you saw) */
  --gf-ctrl-label-color-primary: rgba(255,255,255,.92);
  --gf-ctrl-label-color-secondary: rgba(255,255,255,.82);
  --gf-ctrl-label-color-tertiary: rgba(255,255,255,.70);

  /* Help/description text */
  --gf-description-color: rgba(255,255,255,.70);

  /* Inputs */
  --gf-ctrl-bg-color: #ffffff;
  --gf-ctrl-bg-color-hover: #ffffff;
  --gf-ctrl-border-color: rgba(26,21,34,.18);
  --gf-ctrl-border-color-hover: rgba(26,21,34,.28);
  --gf-ctrl-color: rgba(26,21,34,.92);
  --gf-ctrl-placeholder-color: rgba(26,21,34,.45);

  /* Radius + spacing */
  --gf-ctrl-radius: 14px;
  --gf-ctrl-padding-y: 12px;
  --gf-ctrl-padding-x: 14px;

  /* Focus ring */
  --gf-ctrl-border-color-focus: rgba(26,21,34,.38);
  --gf-ctrl-shadow-focus: 0 0 0 4px rgba(255,255,255,.18);

  /* Buttons (primary) */
  --gf-ctrl-btn-bg-color-primary: #ffffff;
  --gf-ctrl-btn-color-primary: #4d2a6e;
  --gf-ctrl-btn-border-color-primary: rgba(255,255,255,.35);

  /* Buttons hover/focus (prevents "turning blue") */
  --gf-ctrl-btn-bg-color-primary-hover: rgba(255,255,255,.92);
  --gf-ctrl-btn-color-primary-hover: #4d2a6e;
  --gf-ctrl-btn-border-color-primary-hover: rgba(255,255,255,.45);

  --gf-ctrl-btn-bg-color-primary-focus: rgba(255,255,255,.92);
  --gf-ctrl-btn-color-primary-focus: #4d2a6e;
  --gf-ctrl-btn-border-color-primary-focus: rgba(255,255,255,.55);

  /* Button sizing */
  --gf-ctrl-btn-radius: 14px;
  --gf-ctrl-btn-padding-y: 12px;
  --gf-ctrl-btn-padding-x: 16px;
}

/* 2) Make the whole form text white (safe baseline) */
.section-primary .qz-form-dark_wrapper,
.section-primary .qz-form-dark_wrapper *{
  color: rgba(255,255,255,.90);
}

/* 3) Labels + sublabels (THIS fixes "First" / "Last" looking wrong) */
.section-primary .qz-form-dark_wrapper .gfield_label,
.section-primary .qz-form-dark_wrapper .gform-field-label,
.section-primary .qz-form-dark_wrapper legend,
.section-primary .qz-form-dark_wrapper .gform-field-label--type-sub,
.section-primary .qz-form-dark_wrapper .ginput_complex label{
  color: rgba(255,255,255,.92) !important;
  font-weight: 700 !important;
}

/* Sublabels ("First", "Last", etc.) */
.section-primary .qz-form-dark_wrapper .gform-field-label--type-sub,
.section-primary .qz-form-dark_wrapper .ginput_complex label{
  font-weight: 600 !important;
  color: rgba(255,255,255,.72) !important;
}

/* 4) Field descriptions / counters */
.section-primary .qz-form-dark_wrapper .gfield_description,
.section-primary .qz-form-dark_wrapper .gform-field-description,
.section-primary .qz-form-dark_wrapper .ginput_counter{
  color: rgba(255,255,255,.70) !important;
}

/* 5) Required text */
.section-primary .qz-form-dark_wrapper .gfield_required,
.section-primary .qz-form-dark_wrapper .gfield_required_text,
.section-primary .qz-form-dark_wrapper .gfield_required_asterisk{
  color: rgba(255,255,255,.78) !important;
}

/* 6) Inputs/textarea/select styling */
.section-primary .qz-form-dark_wrapper input[type="text"],
.section-primary .qz-form-dark_wrapper input[type="email"],
.section-primary .qz-form-dark_wrapper input[type="tel"],
.section-primary .qz-form-dark_wrapper input[type="url"],
.section-primary .qz-form-dark_wrapper input[type="number"],
.section-primary .qz-form-dark_wrapper input[type="password"],
.section-primary .qz-form-dark_wrapper select,
.section-primary .qz-form-dark_wrapper textarea{
    background: #fff !important;
  color: rgba(26,21,34,.92) !important;
  border-color: rgba(26,21,34,.18) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}
.qz-form-dark_wrapper select{
  height: auto !important;
  min-height: 46px !important;     /* match your input height */
  padding: 12px 40px 12px 14px !important;
  line-height: 1.25 !important;
  background-position: right 14px center !important; /* arrow alignment (if any) */
}
.section-primary .qz-form-dark_wrapper select option,
.section-primary .qz-form-dark_wrapper select optgroup{
  background: #fff !important;
  color: rgba(26,21,34,.92) !important;
}
.section-primary .qz-form-dark_wrapper textarea{
  min-height: 180px;
}

.section-primary .qz-form-dark_wrapper ::placeholder{
  color: rgba(26,21,34,.45) !important;
}

/* Focus states */
.section-primary .qz-form-dark_wrapper input:focus,
.section-primary .qz-form-dark_wrapper select:focus,
.section-primary .qz-form-dark_wrapper textarea:focus{
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(26,21,34,.38) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18) !important;
  outline: none !important;
}

/* 7) Checkbox + radio */
.section-primary .qz-form-dark_wrapper .gfield_checkbox label,
.section-primary .qz-form-dark_wrapper .gfield_radio label{
  color: rgba(255,255,255,.88) !important;
  font-weight: 600 !important;
}

.section-primary .qz-form-dark_wrapper input[type="checkbox"],
.section-primary .qz-form-dark_wrapper input[type="radio"]{
  accent-color: #ffffff;
}

/* 8) Submit button (works even if theme tries to override) */
.section-primary .qz-form-dark_wrapper .gform_footer .gform_button,
.section-primary .qz-form-dark_wrapper .gform_footer input[type="submit"],
.section-primary .qz-form-dark_wrapper .gform_footer button{
  background: #ffffff !important;
  color: #4d2a6e !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.section-primary .qz-form-dark_wrapper .gform_footer .gform_button:hover,
.section-primary .qz-form-dark_wrapper .gform_footer input[type="submit"]:hover,
.section-primary .qz-form-dark_wrapper .gform_footer button:hover{
  background: rgba(255,255,255,.92) !important;
  color: #4d2a6e !important;
  border-color: rgba(255,255,255,.45) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

/* 9) Validation messages on dark background */
.section-primary .qz-form-dark_wrapper .validation_error,
.section-primary .qz-form-dark_wrapper .gfield_validation_message,
.section-primary .qz-form-dark_wrapper .gform_submission_error{
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

/* Qezaro – Compact Gravity Forms spacing (dark wrapper) */
.section-primary .qz-form-dark_wrapper .gform-body{
  --qz-gap: 12px;
}

/* Reduce field vertical spacing */
.section-primary .qz-form-dark_wrapper .gfield{
  margin-bottom: 12px !important;
}
.section-primary .qz-form-dark_wrapper .gform_fields{
  row-gap: 12px !important;
}

/* Tighten labels + descriptions */
.section-primary .qz-form-dark_wrapper .gfield_label,
.section-primary .qz-form-dark_wrapper .gform-field-label,
.section-primary .qz-form-dark_wrapper legend{
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
}
.section-primary .qz-form-dark_wrapper .gfield_description,
.section-primary .qz-form-dark_wrapper .gform-field-description{
  margin-top: 6px !important;
  line-height: 1.25 !important;
}

/* Inputs: slightly shorter height */
.section-primary .qz-form-dark_wrapper input[type="text"],
.section-primary .qz-form-dark_wrapper input[type="email"],
.section-primary .qz-form-dark_wrapper input[type="tel"],
.section-primary .qz-form-dark_wrapper input[type="url"],
.section-primary .qz-form-dark_wrapper input[type="number"],
.section-primary .qz-form-dark_wrapper input[type="password"],
.section-primary .qz-form-dark_wrapper select{
  padding: 10px 12px !important;
}

/* Textarea: reduce default height */
.section-primary .qz-form-dark_wrapper textarea{
  min-height: 120px !important;
  padding: 10px 12px !important;
}

/* Checkbox/radio lists: tighter */
.section-primary .qz-form-dark_wrapper .gfield_checkbox li,
.section-primary .qz-form-dark_wrapper .gfield_radio li{
  margin: 6px 0 !important;
}
.section-primary .qz-form-dark_wrapper .gfield_checkbox label,
.section-primary .qz-form-dark_wrapper .gfield_radio label{
  line-height: 1.25 !important;
}

/* Footer spacing */
.section-primary .qz-form-dark_wrapper .gform_footer{
  margin-top: 12px !important;
  padding-top: 0 !important;
}

/* Ensure submit hover doesn’t go blue */
.section-primary .qz-form-dark_wrapper .gform_footer .gform_button:hover,
.section-primary .qz-form-dark_wrapper .gform_footer input[type="submit"]:hover{
  background: rgba(255,255,255,.92) !important;
  color: #4d2a6e !important;
  border-color: rgba(255,255,255,.45) !important;
}

/* =========================================================
   Qezaro Newsletter Gravity Form (lean + compact)
   Target: shortcode css_class="qz-newsletter"
   ========================================================= */

.qz-newsletter.gform_wrapper{
  max-width: 520px;
}

/* Kill extra space */
.qz-newsletter .gform_body,
.qz-newsletter .gform_footer{
  margin: 0 !important;
  padding: 0 !important;
}

.qz-newsletter .gform_fields{
  row-gap: 10px !important;
}

.qz-newsletter .gfield{
  margin: 0 !important;
}

/* Hide labels/legends (placeholder-only look) */
.qz-newsletter .gfield_label,
.qz-newsletter legend{
  display: none !important;
}

/* Input: slimmer */
.qz-newsletter input[type="email"],
.qz-newsletter input[type="text"]{
  height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(206,207,199,.9) !important;
  background: #fff !important;
  color: var(--text) !important;
}

/* Checkbox row: compact */
.qz-newsletter .gfield_checkbox{
  margin-top: 6px !important;
}
.qz-newsletter .gfield_checkbox .gchoice{
  margin: 0 !important;
}
.qz-newsletter .gfield_checkbox label{
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: rgba(26,21,34,.75) !important;
}

/* Button: match Qezaro + remove GF blue hover */
.qz-newsletter .gform_button,
.qz-newsletter button[type="submit"],
.qz-newsletter input[type="submit"]{
  background: var(--primary) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 800 !important;
  height: 44px !important;
  box-shadow: none !important;
}

.qz-newsletter .gform_button:hover,
.qz-newsletter button[type="submit"]:hover,
.qz-newsletter input[type="submit"]:hover{
  background: #3f215c !important;
  color: #fff !important;
}

/* ================================
   NEWSLETTER FORM: INLINE LAYOUT
   ================================ */

@media (min-width: 720px) {

  /* 1. Make the FORM the layout container */
  .qz-newsletter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  /* 2. Remove Gravity Forms grid entirely */
  .qz-newsletter .gform_fields {
    display: contents !important;
  }

  /* 3. Email field takes full available width */
  .qz-newsletter .gfield--type-email {
    grid-column: 1 / 2;
    margin: 0 !important;
  }

  .qz-newsletter .gfield--type-email input {
    width: 100% !important;
  }

  /* 4. Button sits inline, same row */
  .qz-newsletter .gform_footer {
    grid-column: 2 / 3;
    margin: 0px 10px !important;
    padding: 0 !important;
    align-self: stretch;
  }

  .qz-newsletter .gform_button {
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
  }

  /* 5. Checkbox goes full width under */
  .qz-newsletter .gfield--type-checkbox,
  .qz-newsletter .gfield--type-consent {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
}

/* Mobile fallback: stacked */
@media (max-width: 719px) {
  .qz-newsletter {
    display: block !important;
  }
}

/* Desktop sticky header (force) */
/*@media (min-width: 981px){
  .site-header{
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
  }
}*/

/* When logged in (WP admin bar), avoid overlap */
body.admin-bar .site-header{
  top: 32px !important;
}
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px !important; }
}
@media (min-width: 981px){
  body, .site, #page, #content{
    overflow: visible !important;
    transform: none !important;
  }
}

/* =========================================================
   STICKY HEADER (desktop + mobile) + MOBILE MENU PANEL
   Paste at VERY BOTTOM of main.css
   ========================================================= */

/* 1) Sticky header everywhere */
/*.site-header{
  position: sticky !important;
  top: 0 !important;
  z-index: 100000 !important;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
}*/

/* Logged-in admin bar offset */
body.admin-bar .site-header{ top: 32px !important; }
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px !important; }
}

/* 2) If ANY parent breaks sticky, neutralize the usual culprits */
html, body{ overflow-x: hidden; }
body, #page, #content, .site{
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* 3) Mobile nav: fixed panel UNDER the sticky header, scrollable */
@media (max-width: 980px){

  /* Closed state remains your theme’s behavior */
  .site-nav{ z-index: 99999; }

  /* Open state: turn nav into a scrollable panel under the header */
  .site-nav.open{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;

    /* IMPORTANT: sits under header, not over it */
    top: 64px !important;
    height: calc(100vh - 64px) !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(206,207,199,.8);
  }

  /* Admin bar: match the header offset */
  body.admin-bar .site-nav.open{
    top: 96px !important; /* 64 header + 32 admin bar */
    height: calc(100vh - 96px) !important;
  }
  @media (max-width: 782px){
    body.admin-bar .site-nav.open{
      top: 110px !important; /* 64 + 46 */
      height: calc(100vh - 110px) !important;
    }
  }
}

/* =========================================================
   Schedule page layout: copy left, form right
   ========================================================= */

.qz-schedule-hero{
  padding: 84px 0;
  background: linear-gradient(180deg, rgba(241,238,246,.9), rgba(255,255,255,1));
}

.qz-schedule-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.qz-schedule-form{
  background: #fff;
  border: 1px solid rgba(206,207,199,.85);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 980px){
  .qz-schedule-grid{ grid-template-columns: 1fr; }
  .qz-schedule-hero{ padding: 64px 0; }
  .qz-schedule-form{ padding: 18px; }
}

/* =========================================================
   Gravity Forms (Schedule) — tighter, rounded, premium
   Targets only forms with css_class="qz-form-light"
   ========================================================= */

.qz-form-light_wrapper{
  margin: 0 !important;
}

.qz-form-light_wrapper .gform_heading{
  display: none !important;
}

/* Tighten spacing between fields */
.qz-form-light_wrapper .gform_body{
  margin-top: 0 !important;
}

.qz-form-light_wrapper .gform_fields{
  row-gap: 14px !important;   /* controls vertical spacing */
  column-gap: 14px !important;
}

/* Labels */
.qz-form-light_wrapper .gfield_label,
.qz-form-light_wrapper .gfield_required{
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #1c1824 !important;
}

/* Inputs */
.qz-form-light_wrapper input[type="text"],
.qz-form-light_wrapper input[type="email"],
.qz-form-light_wrapper input[type="tel"],
.qz-form-light_wrapper input[type="url"],
.qz-form-light_wrapper input[type="number"],
.qz-form-light_wrapper select,
.qz-form-light_wrapper textarea{
  border-radius: 14px !important;
  border: 1px solid rgba(206,207,199,.95) !important;
  background: #fff !important;
  color: #1c1824 !important;
  padding: 12px 14px !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
}

.qz-form-light_wrapper textarea{
  min-height: 170px;
  resize: vertical;
}

/* Focus */
.qz-form-light_wrapper input:focus,
.qz-form-light_wrapper select:focus,
.qz-form-light_wrapper textarea:focus{
  border-color: rgba(77,42,110,.40) !important;
  box-shadow: 0 0 0 4px rgba(77,42,110,.10) !important;
  outline: none !important;
}

/* Reduce Gravity Forms default spacing/padding */
.qz-form-light_wrapper .gfield{
  margin: 0 !important;
}

.qz-form-light_wrapper .ginput_container{
  margin-top: 6px !important;
}

/* Description/help text */
.qz-form-light_wrapper .gfield_description{
  margin-top: 6px !important;
  font-size: 12px !important;
  color: rgba(28,24,36,.65) !important;
}

/* Footer + submit */
.qz-form-light_wrapper .gform_footer{
  margin-top: 16px !important;
  padding: 0 !important;
}

.qz-form-light_wrapper .gform_footer input[type="submit"],
.qz-form-light_wrapper .gform_footer .gform_button,
.qz-form-light_wrapper .gform_footer button{
  width: auto !important;
  appearance: none;
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(77,42,110,.22) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.qz-form-light_wrapper .gform_footer input[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(77,42,110,.28) !important;
  filter: brightness(.98);
}

/* Make checkboxes/radios match the brand a bit */
.qz-form-light_wrapper input[type="checkbox"],
.qz-form-light_wrapper input[type="radio"]{
  accent-color: var(--primary);
}

/* Mobile: make sure fields span full width */
@media (max-width: 640px){
  .qz-form-light_wrapper .gform_fields{
    row-gap: 12px !important;
  }
}
/* Schedule form: dropdown/select text getting clipped */
.qz-form-light_wrapper select{
  height: auto !important;
  min-height: 46px !important;     /* match your input height */
  padding: 12px 40px 12px 14px !important;
  line-height: 1.25 !important;
  background-position: right 14px center !important; /* arrow alignment (if any) */
}

/* =========================================================
   Secondary CTA enhancements
   Applies to Hero + card CTAs
   ========================================================= */
.btn-sm{
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.card-cta{
  margin-top: 14px;
}
.btn.btn-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* Arrow */
.btn.btn-link::after{
  content: "→";
  display: inline-block;
  font-size: 1em;
  line-height: 1;
  transform: translateX(0);
  transition: transform .2s ease;
}

/* Hover interaction */
.btn.btn-link:hover::after{
  transform: translateX(4px);
}

/* Smaller variant inside cards */
.btn.btn-link.btn-sm{
  font-size: 14px;
}

/* Orbital / Theme Framework primary color (affects checkbox/radio check styling) */
.gform-theme--framework,
.gform_wrapper.gravity-theme,
.gform_wrapper {
  --gf-color-in-ctrl-primary: var(--primary) !important;
}

/* Primary sections: keep checklist marks visible */
.section-primary .checklist li:before{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

.section-primary .checklist li:after{
  border-left-color:#fff;
  border-bottom-color:#fff;
}

/* Primary sections: make step-card readable on gradient */
.section-primary .step-card{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.section-primary .step-card h3{
  color: #fff;
}

.section-primary .step-card .muted{
  color: rgba(255,255,255,.82);
}

/* Primary sections: badge visible */
.section-primary .badge{
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

.hero-grid-full{
  grid-template-columns: 1fr;
  max-width: 820px;
}

.qz-orbit-cta-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:40px;
  align-items:start;
}

@media (max-width: 900px){
  .qz-orbit-cta-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Membership CTA overrides — restore theme styles after
   Tailwind reset from membership.css
   ========================================================= */

.qz-orbit-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.qz-orbit-cta h2.on-primary {
  color: #fff;
}

.qz-orbit-cta .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.qz-orbit-cta .lead.muted-on-primary {
  color: rgba(255,255,255,.85);
}

.qz-orbit-cta .checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.qz-orbit-cta .checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.qz-orbit-cta .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: currentColor;
}

.qz-orbit-cta .checklist.muted-on-primary,
.qz-orbit-cta .checklist.muted-on-primary li {
  color: rgba(255,255,255,.85);
}
