* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: clip;
}

.page-template-home {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(112, 163, 10, .38), transparent 32rem),
    radial-gradient(circle at 96% 14%, rgba(112, 163, 10, .18), transparent 34rem),
    linear-gradient(180deg, #020302 0%, #071006 48%, #030503 100%);
  min-height: 100vh;
}

.page-template-home:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(rgba(112, 163, 10, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 163, 10, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.page-template-home:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, .72) 80%);
}

a { color: inherit; text-decoration: none; }
@media (min-width: 1200px) {
  .container, .container-xl, .container-xxl { max-width: 1260px !important; }
}
.green { color: var(--pixo); }

main {
  padding-top: 8.6rem;
}

.nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 18px;
  z-index: 1000;
  pointer-events: none;
  transition: top 0.35s ease;
}

.navbar {
  pointer-events: auto;
  border: 1px solid rgba(112, 163, 10, .38);
  background: rgba(3, 5, 3, .76);
  backdrop-filter: blur(24px);
  border-radius: 999px;
  padding: .55rem .65rem;
  box-shadow: 0 18px 72px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-left: .68rem;
}

.navbar-brand img { max-height: 39px; width: auto; }
.logo-fallback {
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  letter-spacing: -.05em;
  font-size: 1.55rem;
}
.logo-fallback span { color: var(--pixo); }

.top-consultation-bar {
  position: absolute;
  top: 0;
  right: 2rem;
  background: var(--pixo);
  color: #071006;
  padding: 0.35rem 1.25rem 0.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(155, 221, 34, 0.15);
  pointer-events: auto;
}

.top-consultation-bar p { margin: 0; }

.top-consultation-bar a {
  color: #071006;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-consultation-bar a:hover {
  opacity: 0.6;
}

.top-consultation-bar span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

@media (min-width: 992px) {
  .nav-wrap { top: 54px; }
  .top-consultation-bar { top: 0; }
  html.ccm-toolbar-visible .nav-wrap { top: calc(54px + 48px); }
  
  /* Scrolled states */
  body.scrolled .nav-wrap { top: 18px; }
  html.ccm-toolbar-visible body.scrolled .nav-wrap { top: calc(18px + 48px); }
  
  main { padding-top: 12.5rem; }
}

.micro-label {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--pixo);
  background: rgba(112, 163, 10, .08);
  border: 1px solid rgba(112, 163, 10, .22);
  border-radius: 999px;
  padding: .52rem .82rem;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.page-template-home .micro-label {
  color: #efffdb;
  background: rgba(112, 163, 10, .13);
  border-color: rgba(112, 163, 10, .48);
}

.micro-label:before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: var(--pixo);
  box-shadow: 0 0 18px rgba(155, 221, 34, .95);
}

.btn-pixo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  color: #071006;
  background: linear-gradient(135deg, var(--pixo), var(--pixo));
  font-weight: 950;
  box-shadow: 0 22px 58px rgba(112, 163, 10, .42);
  transition: .25s ease;
}

.btn-pixo:hover {
  transform: translateY(-3px);
  color: #071006;
  box-shadow: 0 28px 75px rgba(112, 163, 10, .55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(112, 163, 10, .34);
  font-weight: 900;
  transition: .25s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  transform: translateY(-3px);
  background: rgba(112, 163, 10, .07);
}

.page-template-home .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.page-template-home .btn-ghost:hover {
  color: #fff;
  background: rgba(112, 163, 10, .14);
}

.btn-pixo::after,
.btn-ghost::after {
  content: "\00BB";
  margin-left: 0.4em;
  font-size: 1.15em;
  line-height: 0.8;
}

.section-pad { padding: 7.5rem 0; }
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* Concrete CMS Toolbar fix */
html.ccm-toolbar-visible .nav-wrap {
  top: calc(18px + 48px);
}

/* Fix for Edit Mode: Lower z-index so Concrete CMS overlays are clickable */
.ccm-edit-mode .nav-wrap {
  top: 140px !important;
  z-index: 90;
}

/* Fix for Edit Mode: Push content down so empty areas aren't hidden under the fixed header */
.ccm-edit-mode main {
  padding-top: 200px;
}

/* Fix for Edit Mode: Ensure toolbar is always clickable when side panels are open */
div#ccm-toolbar {
  z-index: 99999 !important;
}

.ccm-edit-mode body {
  overflow-x: visible !important;
}

.ccm-page {
    overflow-x: clip;
}

/* Edit Mode Custom Block Placeholders */
.pixo-edit-placeholder {
  padding: 2rem;
  background: #111;
  border: 2px dashed #70a30a;
  border-radius: 20px;
  text-align: center;
  margin: 2rem 0;
}

.pixo-edit-placeholder h3 {
  color: #9bdd22;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.pixo-edit-placeholder p {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 0;
}

.pixo-edit-preview-area {
  margin-top: 1.5rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  color: #fff;
}

/* 
 * Footer Styles
 * Extracted from pixo-portfolio-page.html 
 */
.footer {
    background: var(--footer, #020302);
    color: #dce7d6;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    font-family: 'Orbitron', Inter, sans-serif;
    text-transform: uppercase;
}

.footer p, .footer a {
    color: #9eac98;
    line-height: 1.75;
}

.footer-grid a {
    display: block;
    margin: 0.35rem 0;
    transition: color 0.2s;
}

.footer-bottom a {
    display: inline-block;
    margin: 0 0.15rem;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--pixo, #9bdd22);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    color: #7f8d79;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .nav-wrap { top: 0; }
    .navbar { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
    .navbar-collapse { max-height: 80vh; overflow-y: auto; padding-top: 1rem; padding-bottom: 1rem; }
}

@media (max-width: 1050px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Split Visual Graphics */
.split-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-circle {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pixo);
  filter: blur(110px);
  opacity: .12;
  left: 15%;
}
.art-layer {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 40px;
  transform: rotate(-8deg);
}
.art-layer.outline {
  border: 1px solid rgba(112, 163, 10, .25);
  left: 5%;
  top: 10%;
}
.art-layer.filled {
  background: radial-gradient(circle at 100% 0%, rgba(155, 221, 34, .12), transparent 60%),
              linear-gradient(180deg, rgba(112, 163, 10, .05), transparent);
  border: 1px solid rgba(112, 163, 10, .15);
  right: 5%;
  bottom: 5%;
}
.ui-float {
  position: relative;
  z-index: 2;
  width: 90%;
  border-radius: 18px;
  box-shadow: 0 34px 85px rgba(0, 0, 0, .14);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: .65s ease;
}
.split-visual:hover .ui-float {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .08);
}
.page-template-home .art-circle {
  opacity: .08;
}
.page-template-home .art-layer.outline {
  border-color: rgba(155, 221, 34, .15);
}
.page-template-home .art-layer.filled {
  background: radial-gradient(circle at 100% 0%, rgba(155, 221, 34, .08), transparent 60%),
              linear-gradient(180deg, rgba(112, 163, 10, .02), transparent);
  border-color: rgba(112, 163, 10, .1);
}

/* Abstract UI Visual (for layout left columns) */
.visual {
  width: 100%;
  min-height: 420px;
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid rgba(112,163,10,.28);
  background: radial-gradient(circle at 80% 18%, rgba(155,221,34,.22), transparent 26%),
              linear-gradient(135deg, rgba(112,163,10,.18), transparent 43%), #fff;
  box-shadow: 0 34px 90px rgba(7,16,6,.1);
  position: relative;
  padding: 1.1rem;
}
.visual:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pixo), var(--pixo), var(--yellow));
  transform: skewY(-6deg);
  box-shadow: 0 0 25px rgba(112,163,10,.5);
}
.visual-inner {
  height: 100%;
  min-height: 390px;
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(112,163,10,.18);
  padding: 1.5rem;
}
.line {
  height: 13px;
  border-radius: 99px;
  background: rgba(112,163,10,.16);
  margin-bottom: .75rem;
}
.w80 { width: 80%; }
.w60 { width: 60%; }
.w45 { width: 45%; }
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 2rem;
}
.visual-grid div {
  height: 110px;
  border-radius: 18px;
  background: rgba(112,163,10,.08);
  border: 1px solid rgba(112,163,10,.12);
}

/* Center layout columns that contain a visual block */
.row > [class*="col-"]:has(.visual) {
  display: grid;
  align-content: center;
}

@media (min-width: 992px) {
  .visual {
    width: 90%;
  }
}

/* Make header elements flow naturally in Edit Mode to prevent overlapping edit regions */
.ccm-edit-mode .top-consultation-wrapper,
.ccm-edit-mode .top-consultation-bar,
.ccm-edit-mode .nav-wrap {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 1 !important; /* Reset high z-index to avoid hiding CMS menus */
}

/* Align consultation bar to right in normal flow */
.ccm-edit-mode .top-consultation-wrapper .container-xl {
  display: flex;
  justify-content: flex-end;
}

.ccm-edit-mode .top-consultation-bar {
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.ccm-edit-mode .nav-wrap {
  margin-bottom: 2rem;
}

.ccm-edit-mode main {
  padding-top: 0 !important;
}
