/* Root window */
.avse[hidden] { display: none !important; }
.avse {
  position: fixed;
  inset: 0;
  z-index: 2147485600;
}

/* Scrim */
.avse__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

/* Window */
.avse__window {
  position: absolute;
  inset: 4vh 4vw;
  min-height: 72vh;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--text, #eaf1ff);
  overflow: hidden;
}

/* Header */
.avse__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.avse__title { display:flex; flex-direction:column; }
.avse__hint { color: var(--muted, #cfe1ffcc); font-size: .85rem; }
.avse__actions { display:flex; align-items:center; gap:10px; }

.avse-btn {
  font: 700 .9rem/1 var(--font-sans, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  color: var(--text, #eaf1ff);
  cursor: pointer;
  backdrop-filter: blur(8px) saturate(130%);
}
.avse-btn--ghost { background: transparent; }
.avse-btn--primary {
  border: 1px solid rgba(112,168,255,.45);
  box-shadow: 0 8px 18px rgba(112,168,255,.2);
}
.avse-icon {
  display:inline-grid; place-items:center;
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}

/* Body layout */
.avse__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden; /* window chrome fixed */
  min-height: 0;
}

/* Sidebar */
.avse__nav {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 10px;
  overflow: auto;
}
.avse-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: .6rem .7rem;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: var(--text, #eaf1ff);
  cursor: pointer;
}
.avse-tab.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border-color: rgba(112,168,255,.35);
}

/* Content + preview area */
.avse__content {
  display: grid;
  grid-template-columns: 1fr 48%;
  gap: 12px;
  padding: 12px;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 1100px){
  .avse__content { grid-template-columns: 1fr; }
}

/* Form (scrolls) */
.avse-form {
  overflow: auto; /* <- window contents scroll */
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.avse-pane { display: none; }
.avse-pane.is-active { display: block; }
.avse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.avse-grid label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.avse-grid input[type="color"],
.avse-grid input[type="number"],
.avse-grid input[type="range"],
.avse-grid select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: color-mix(in oklab, var(--bg-2, #0f1216) 86%, transparent);
  color: var(--text, #eaf1ff);
  padding: .55rem .6rem;
}

/* Preview (scrolls) */
.avse-preview {
  overflow: auto; /* <- window contents scroll */
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.avse-preview__head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 8px;
}
.avse-preview__legend { display:flex; gap:8px; }
.chip {
  display:inline-flex; align-items:center; gap:.5ch;
  padding:.25rem .5rem; border-radius:999px; font-weight:800; font-size:.8rem;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
}
.chip--base { opacity:.85; }
.chip--live { border-color: rgba(112,168,255,.35); }

.avse-preview__grid {
  display:grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 900px){
  .avse-preview__grid { grid-template-columns: 1fr; }
}
.avse-preview__cell { display:grid; gap:6px; }
.avse-preview__label { font-weight:800; color: var(--muted, #cfe1ffcc); }
.avse-preview__stage {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: color-mix(in oklab, var(--bg-2, #0f1216) 88%, transparent);
  padding: 12px;
}

/* Demo controls in preview */
.avse-demo { display:grid; gap:10px; }
.avse-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.avse-kicker {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem 1rem; border-radius:999px; font-weight:800;
  background:
    linear-gradient(90deg, var(--kicker-from,#2a2f3a), var(--kicker-to,#6b2cff)) padding-box;
  color:#fff;
  border: var(--kicker-border,1.5px) solid rgba(255,255,255,.5);
  backdrop-filter: blur(var(--kicker-blur,14px)) saturate(var(--kicker-sat,150%));
}

.avse-button {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border-radius:999px; padding: .8rem 1.1rem; font-weight: var(--btn-weight,700);
  font-size: var(--btn-size,.95rem); color:#fff; text-decoration:none;
  background:
    linear-gradient(90deg, var(--btn-from,#232323), var(--btn-to,#6495ed)) padding-box;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px var(--btn-glow,14px) rgba(0,0,0,.18);
  backdrop-filter: blur(var(--btn-blur,10px)) saturate(var(--btn-sat,125%));
}

.avse-pill {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border-radius:999px; font-weight: var(--pill-weight,700);
  font-size: var(--pill-size,.85rem); color: var(--text,#eaf1ff);
  background: linear-gradient(180deg, var(--pill-from,#262a31), var(--pill-to,#12151a));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 4px var(--pill-glow,8px) rgba(0,0,0,.18);
  backdrop-filter: blur(var(--pill-blur,8px)) saturate(var(--pill-sat,130%));
}

.avse-panel {
  border-radius: var(--panel-radius,16px);
  padding: 16px; color: var(--text,#eaf1ff);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--panel-from,#2a3038), var(--panel-to,#0b0f14));
  box-shadow: 0 10px var(--panel-glow,40px) rgba(0,0,0,.22);
  backdrop-filter: blur(var(--panel-blur,14px)) saturate(var(--panel-sat,140%));
}

.avse-card {
  border-radius: var(--card-radius,14px);
  padding: 14px; color: var(--text,#eaf1ff);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, var(--card-from,#0f1216), var(--card-to,#353535));
  box-shadow: 0 8px var(--card-glow,22px) rgba(0,0,0,.20);
  backdrop-filter: blur(var(--card-blur,10px)) saturate(var(--card-sat,130%));
}

/* Tiny helper */
.avse-muted { color: var(--muted, #cfe1ffcc); font-size:.9rem; }

/* Make the editor text and the close "X" white */
#av-site-editor { color: #fff; }

#av-site-editor [data-avse-close] {
  color: #fff !important;              /* text or the × glyph */
  border-color: rgba(255,255,255,.25);  /* if you have a border */
}

/* If the close is an SVG icon, force it to follow currentColor */
#av-site-editor [data-avse-close] svg,
#av-site-editor [data-avse-close] svg * {
  stroke: currentColor !important;
  fill: none;
}

/* Hover/focus so it doesn’t disappear on interaction */
#av-site-editor [data-avse-close]:hover,
#av-site-editor [data-avse-close]:focus-visible {
  color: #fff !important;
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 2px;
}

/* --- Site Editor: color preview chips --- */
#av-site-editor .avse-color-wrap {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
#av-site-editor .avse-color-chip {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  flex: 0 0 auto;
}
#av-site-editor .avse-color-chip.is-gradient {
  background-size: 100% 100%;
}
#av-site-editor .avse-color-label {
  font-size: 12px; opacity: .8;
}

/* Page and wrappers must be transparent so the fixed hero shows through */
html,
body,
main,
#main {
  background: transparent !important;
}

/* Only sections directly under main */
main > section,
#main > section {
  background: transparent !important;
}

/* The common wrapper you use */
section > .container {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Some blocks also paint backgrounds. Nuke those while you're over the hero, keep borders off */
#services .container,
#gallery .container,
#pricing .container,
#contact .container {
  background: transparent !important;
}

/* Fixed hero background */
.hero.locked { position: relative; z-index: 0; }
.hero.locked::before {
  content:"";
  position: fixed;
  inset: 0;
  background: inherit;       /* reuse the hero's background */
  background-size: cover;
  background-position: center;
  z-index: -1;               /* behind content; fine because body is transparent now */
  pointer-events: none;
}
.site, main, footer { position: relative; z-index: 1; }

/* ===== Section header: one badge containing icon + text ===== */
:root{
  --sec-h2-size: clamp(1.85rem, 2.2vw + 1.1rem, 2.8rem);
  --sec-ico-size: 1.35em;          /* relative to heading size */
  --sec-outline: 1px;              /* icon outline thickness */
  --sec-badge-radius: .6em;
  --sec-badge-pad-y: .18em;
  --sec-badge-pad-x: .6em;
  --sec-badge-gap: .55em;          /* space between icon and text inside badge */
  --sec-badge-shadow: 0 8px 18px rgba(0,0,0,.28);
}

/* Layout and base size for headings */
main > section h2,
#main  > section h2{
  margin: 0 0 .25em;
  font-size: var(--sec-h2-size);
  line-height: 1.15;
  font-weight: 900;
  color: var(--sec-color, #9cb3ff);
}

/* The single badge chip */
main > section h2 .sec-badge,
#main  > section h2 .sec-badge{
  display: inline-flex;
  align-items: center;
  gap: var(--sec-badge-gap);
  padding: var(--sec-badge-pad-y) var(--sec-badge-pad-x);
  border-radius: var(--sec-badge-radius);
  color: #fff; /* readable text inside chip */
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--sec-color, #9cb3ff) 82%, #ffffff 0%) 0%,
      color-mix(in oklab, var(--sec-color, #9cb3ff) 70%, #000000 10%) 100%);
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: var(--sec-badge-shadow);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
          backdrop-filter: blur(6px) saturate(120%);
}

/* SVG icon inside the badge: larger, color + thin black outline */
main > section h2 .sec-badge .sec-ico,
#main  > section h2 .sec-badge .sec-ico{
  width: var(--sec-ico-size);
  height: var(--sec-ico-size);
  color: fff;  /* icon inherits section color */
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  overflow: visible;
  paint-order: stroke fill;
  filter:
    drop-shadow(var(--sec-outline) 0 0 #000)
    drop-shadow(calc(-1 * var(--sec-outline)) 0 0 #000)
    drop-shadow(0 var(--sec-outline) 0 #000)
    drop-shadow(0 calc(-1 * var(--sec-outline)) 0 #000);
}



/* Use section-specific hues you picked */
#services { --sec-color: #01276d; }
#pricing  { --sec-color: #D79316; }
#gallery  { --sec-color: #0879fa; }
#about    { --sec-color: #6B3AB4; }
#contact  { --sec-color: #098209; }

/* Small screens: tighten slightly */
@media (max-width: 420px){
  :root{
    --sec-h2-size: clamp(1.6rem, 4.6vw + .9rem, 2.2rem);
    --sec-ico-size: 1.2em;
    --sec-badge-pad-x: .5em;
    --sec-badge-gap: .45em;
  }
}

/* ===== Section header: one badge with white icon, no glow ===== */
:root{
  --sec-h2-size: clamp(1.85rem, 2.2vw + 1.1rem, 2.8rem);
  --sec-ico-size: 1.35em;
  --sec-outline: 1px;              /* icon outline thickness */
  --sec-badge-radius: .6em;
  --sec-badge-pad-y: .18em;
  --sec-badge-pad-x: .6em;
  --sec-badge-gap: .55em;
  --sec-badge-shadow: 0 8px 18px rgba(0,0,0,.28);
}

/* Heading sizing/color base */
main > section h2,
#main  > section h2{
  margin: 0 0 .25em;
  font-size: var(--sec-h2-size);
  line-height: 1.15;
  font-weight: 900;
  color: var(--sec-color, #9cb3ff); /* not used for icon now; keeps semantics if text leaks out of badge */
}

/* Single badge chip (icon + text together) */
main > section h2 .sec-badge,
#main  > section h2 .sec-badge{
  display: inline-flex;
  align-items: center;
  gap: var(--sec-badge-gap);
  padding: var(--sec-badge-pad-y) var(--sec-badge-pad-x);
  border-radius: var(--sec-badge-radius);
  color: #fff; /* text inside badge is white */
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--sec-color, #9cb3ff) 82%, #ffffff 0%) 0%,
      color-mix(in oklab, var(--sec-color, #9cb3ff) 70%, #000000 10%) 100%);
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: var(--sec-badge-shadow);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
          backdrop-filter: blur(6px) saturate(120%);
  text-shadow: none;               /* no glow on text */
}

/* Icon inside the badge: WHITE with thin black outline, no glow */
main > section h2 .sec-badge .sec-ico,
#main  > section h2 .sec-badge .sec-ico{
  width: var(--sec-ico-size);
  height: var(--sec-ico-size);
  color: #fff;                     /* icon is white */
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  overflow: visible;
  paint-order: stroke fill;
  /* crisp black outline (fake double-stroke), not a glow */
  filter:
    drop-shadow(var(--sec-outline) 0 0 #000)
    drop-shadow(calc(-1 * var(--sec-outline)) 0 0 #000)
    drop-shadow(0 var(--sec-outline) 0 #000)
    drop-shadow(0 calc(-1 * var(--sec-outline)) 0 #000);
}

/* Your section hues */
#services { --sec-color: #01276d; }
#pricing  { --sec-color: #D79316; }
#gallery  { --sec-color: #0879fa; }
#about    { --sec-color: #6B3AB4; }
#contact  { --sec-color: #098209; }

/* Small screens */
@media (max-width: 420px){
  :root{
    --sec-h2-size: clamp(1.6rem, 4.6vw + .9rem, 2.2rem);
    --sec-ico-size: 1.2em;
    --sec-badge-pad-x: .5em;
    --sec-badge-gap: .45em;
  }
}
