input,
textarea,
select,
body {
    font-family: 'Ggb', sans-serif;
    overflow-x: hidden;
}

body {
    background-color: rgb(24 24 20);
    overflow-x: hidden !important;
}

:root {
    --brand-primary: #3a3b2c; /* decoupe brand dark green */
    --brand-on-primary: #ffffff;
}

.hv-center {
    position: relative;
    top: 50%;
    left:50%;
    transform:translate(-50%, -50%)
}

.dec-btn {
    position: relative;
    background-color: #ebecc0;
    border-radius: 50px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Ggb';
    color: #000;
    font-size: 14px;
    padding: 0px 19px;
    line-height: 38px;
}
/* Brand variant for primary actions */
.dec-btn.send-quote-btn {
    background-color: var(--brand-primary, #85875C);
    color: #0b0b0b;
}
.dec-btn.send-quote-btn:hover {
    filter: brightness(1.06);
}

@font-face {
	font-family: 'Gg';
	src: url('/cinedesign.ca/static/fonts/gg.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: 'Ggb';
	src: url('/cinedesign.ca/static/fonts/Ggb.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
}

#left-nav {
    position: fixed;
    width: 200px;
    top: 0px;
    left: 0px;
    bottom: 0px;
    transition: all 1s;
    z-index: 99;
}

#left-nav:hover {
    background-color: #1111112e;
}

#left-nav .app-logo {
    display: inline-block;
    height: 56px;
    margin: 18px auto 24px auto;
    width: 150px;
    position: relative;
    left: 16px;
}

#left-nav .app-logo img {
    max-height: 100%;
    width: auto;
}

#left-nav .menu-items a,
#left-nav .menu-items {
    text-decoration: none;
    font-size: 15px;
    position: relative;
    left: 20px;
    color: #fff;
    line-height: 22px;
    font-family: 'Gg';
}

#left-nav .menu-items a {
    left:unset
}

#left-nav .menu-items .menu-item {
    opacity: 0.4;
    transition: all 250ms;
    cursor: pointer;
    position: relative;
    padding: 0;
}

#left-nav .menu-items .menu-item.active,
#left-nav .menu-items .menu-item:hover {
    opacity: 1;
}

/* modernize nav links and active state */
#left-nav .menu-items .menu-item a {
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    display: block;
    text-decoration: none;
}
#left-nav .menu-items .menu-item:hover a,
#left-nav .menu-items .menu-item.active a {
    color: #ffffff;
}

/* Distinct green quote button in left menu */
#left-nav .menu-items .menu-item.quote { opacity: 1; }
#left-nav .menu-items .menu-item.quote a.quote-btn {
    display: inline-block;
    background-color: #3a3b2c; /* brand dark */
    color: var(--brand-on-primary, #ffffff);
    border-radius: 8px; /* rectangular corners */
    padding: 8px 14px;
    margin: 8px 0 12px 0;
    text-decoration: none;
}
#left-nav .menu-items .menu-item.quote a.quote-btn:hover { filter: brightness(1.06); animation-play-state: paused; }

/* Subtle attention animation for the quote button */
@keyframes dec-quote-soft-pulse {
    0%, 100% { background-color: #3a3b2c; }
    50% { background-color: #47483a; } /* ~10-12% lighter than #3a3b2c */
}

#left-nav .menu-items .menu-item.quote a.quote-btn { animation: dec-quote-soft-pulse 7s ease-in-out infinite; will-change: background-color; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #left-nav .menu-items .menu-item.quote a.quote-btn { animation: none; }
}

/* Manager property panel */
.mgr-prop {
position: fixed;
    right: -23px;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #12120e;
    border: 1px solid #2a2a2a;
    border-left: 1px solid #2a2a2a;
    border-radius: 0;
    padding: 12px 30px 12px 12px;
    overflow: auto;
    z-index: 120001;
}
.mgr-prop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mgr-prop-title { color: #fff; font-weight: 700; font-size: 16px; }
.mgr-prop .mgr-prop-welcome { width: 100%; height: auto; display: block; border-radius: 8px; margin-bottom: 8px; }
/* utility to hide elements in property panel */
.mgr-prop .hidden { display: none !important; }
/* add section block */
.mgr-prop .mgr-add-sec { margin-top: 10px; }
/* ghost input for first page name */
.mgr-input-ghost { background: transparent !important; border: 0 !important; outline: none !important; border-bottom: 1px dashed #2a2a2a !important; border-radius: 0 !important; }
/* hero preview box */
.mgr-prop .mgr-hero-prev { 
    width: 95%;
    height: 272px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: center / cover no-repeat;
    margin-bottom: 8px;
    margin: 2.5%;
    background-size: 150%;
    background-position: bottom
 }
/* tabs styling */
.mgr-prop .mgr-tabs { display: block; }
.mgr-prop .mgr-tabs-head { display: flex; gap: 6px; margin-bottom: 8px; }
.mgr-prop .mgr-tab-btn { background: #232323; color: #ddd; border: 1px solid #383838; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.mgr-prop .mgr-tab-btn.active { background: #3a3b2c; color: #fff; border-color: #3a3b2c; }
.mgr-prop .mgr-sec-actions { display:flex; justify-content:flex-end; margin-bottom:8px; }
.mgr-prop .mgr-mini-btn.danger { background:#4a1f1f; border-color:#6a2f2f; color:#ffb3b3; }
.mgr-prop .mgr-tab-pane { display: none; }
.mgr-prop .mgr-tab-pane.active { display: block; }
/* image row with preview */
.mgr-prop .mgr-img-row { align-items: center; gap: 8px; }
.mgr-prop .mgr-img-preview { width: 120px; height: 90px; border: 1px solid #2a2a2a; border-radius: 6px; background: center/cover no-repeat; flex: 0 0 120px; }
.mgr-prop .mgr-img-row.dragging { opacity: .6; }
.mgr-prop .mgr-img-row.drop-target { outline: 2px dashed #3a3b2c; }
/* drop zone */
.mgr-prop .mgr-drop { border: 1px dashed #3a3b2c;
    border-radius: 8px;
    padding: 10px;
    color: #555745;
    text-align: center;
    margin-bottom: 8px;
    width: 86%;
    margin: 10px auto 0px auto;
    background-image: url(/decoupe.ca/static/imgs/managr/placeholder.png);
    min-height: 93px;
    background-repeat: no-repeat;
    background-size: 42%;
    background-position: center bottom;
 }
.mgr-prop .mgr-drop.over { border-color: #7fd47f; color: #7fd47f; }
/* drag/drop directly on hero preview + media tray + overlay pick button */
.mgr-prop .mgr-hero-prev { position: relative; overflow: hidden; }
.mgr-prop .mgr-hero-prev.over { outline: 2px dashed var(--mgr-cta, #9fa37e); outline-offset: -6px; }
.mgr-prop .mgr-hero-pick { position: absolute; right: 8px; bottom: 8px; z-index: 2; }
.mgr-prop .mgr-media-tray { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.mgr-prop .mgr-media-tray .mgr-media-thumb { width: 56px; height: 42px; border: 1px solid #2a2a2a; border-radius: 6px; background: center/cover no-repeat; cursor: pointer; opacity: .85; }
.mgr-prop .mgr-media-tray .mgr-media-thumb:hover { opacity: 1; border-color: var(--mgr-cta, #9fa37e); }
.mgr-prop-body label {font-family: 'Ggb'; color: #656752; font-size: 12px; display: block; margin: 8px 10px 4px 0px; }
.mgr-prop-body .mgr-input, .mgr-prop-body .mgr-text { width: 94%; background: #21221B; border: 1px solid #333; padding: 6px; border-radius: 6px; }
.mgr-prop-body .mgr-row { display: flex; align-items: center; gap: 6px; padding:0px 0px 4px 0px; border-bottom: 1px solid #21221b;}
.mgr-prop-body .mgr-row:first-child {
    padding-top: 7px;
}
.mgr-prop-body .mgr-row:last-child {
    border-bottom: none;
    padding-bottom: 0px;
    margin-bottom: -3px;
}
.mgr-prop-body .mgr-list { display: grid; gap: 6px; }
/* pages list rows */
.mgr-pages .mgr-page-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0px;
 }
 .mgr-pages .mgr-page-row:last-child {
    border-bottom: none
 }
.mgr-pages .mgr-page-title { color:#9FA37E; font-weight:600; transition: opacity 120ms ease; }
.mgr-pages .mgr-toggle { display:flex; gap:6px; }
/* State styles for visible/hidden */
.mgr-pages .mgr-page-row.is-hidden .mgr-page-title { opacity: .5; text-decoration: line-through; }
.mgr-pages .mgr-page-row.is-visible .mgr-page-title { opacity: 1; text-decoration: none; }
.mgr-prop-body .mgr-mini-btn { background: #232323; color: #ddd; border: 1px solid #383838; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.mgr-prop-body .mgr-mini-btn.active { background:#3a3b2c; color:#ebecbe; border-color:#3a3b2c; }
/* Structured manager views */
:root { --mgr-bar: #3a3b2f; --mgr-cta: #9fa37e; --mgr-chip-bg: #737855; --mgr-chip-text: #153022; }
.mgr-view { border: 1px solid #2a2a2a; border-radius: 12px; background: #121210; overflow: hidden; }
.mgr-view:first-child {
    margin-top:10px
}
/* Card grid for page selection */
#mgr-select-cards { margin: 10px 0 16px 0; }
.mgr-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mgr-cardtile { border-radius: 16px; overflow: hidden; background: #1a1a19; border: 1px solid #2a2a2a; position: relative; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mgr-cardtile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); border-color: #3a3b2c; }
.mgr-cardimg { aspect-ratio: 16/9; background-size: cover; background-position: center; filter: saturate(.9) contrast(.95) brightness(.86); transition: filter .18s ease, transform .18s ease; }
.mgr-cardtile:hover .mgr-cardimg { filter: saturate(1.05) contrast(1.04) brightness(.96); transform: scale(1.02); }
.mgr-cardfoot { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #3a3b2c; color: #ebecbe; }
.mgr-cardlabel { font-family: 'Ggb'; }
.mgr-cardedit { background: #d5d6ae; color: #3a3b2c; border-radius: 999px; padding: 4px 10px; border: 0; cursor: pointer; font-size: 12px; }
.mgr-cardedit:hover { filter: brightness(1.06); }
.mgr-view-head { background: var(--mgr-bar, #3a3b2f); color: #888d6b; padding: 5px 10px; font-weight: 700; letter-spacing: .01em; }
.mgr-view-body { padding: 0px 0px 10px 0px }
.mgr-view-foot { padding: 0px; border-top: 1px solid #2a2a2a; display:flex; justify-content: center;gap: 8px; min-height: 30px;}
.mgr-view-title { font-size: 14px; }
/* mgr-view variants and collapse */
.mgr-view.mgr-view--nohead .mgr-view-head { display: none; }
.mgr-view.mgr-view--headed .mgr-view-head { display: flex; align-items: center; justify-content: space-between; }
/* collapsed view hides body and foot */
.mgr-view[aria-expanded="false"] .mgr-view-body,
.mgr-view[aria-expanded="false"] .mgr-view-foot { display: none; }
/* subtle separator between consecutive mgr-views */
.mgr-view + .mgr-view { margin-top: 10px; border-top: 1px solid #2a2a2a; }
/* collapse affordance */
.mgr-view-head .mgr-collapse { background: transparent; border: 0; color: #ebecbe; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.mgr-view-head .mgr-collapse:hover { background: rgba(255,255,255,0.06); }
/* standardized footer: single line and brand color */
.mgr-view-foot { white-space: nowrap; flex-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; background: #9fa37e7a; color: #0b0b0b; align-items: center; }
.mgr-view-foot .mgr-row { margin-top: 0 !important; }
.mgr-view-foot .mgr-hint { overflow: hidden; text-overflow: ellipsis; }
.mgr-view-foot a, .mgr-view-foot button { color: #0b0b0b; }

.mgr-view-foot .mgp-new-page-title-foot {

}
.mgr-state-welcome {}
.mgr-state-welcome .mgr-prop-welcome {
    padding: 68px 0px 20px 0px;
    max-width: 85%;
    text-align: center;
    margin: 0 auto;
}

.mgr-state-welcome .mgr-hint {
    text-align: center;
    font-size: 25px;
    letter-spacing: -.01em;
    line-height: 26px;
    margin-bottom: 66px;
}

/* Ghost input inside footer looks like plain text */
.page-managr .mgr-view-foot .mgr-input-ghost { 
  background: transparent !important; border: 0 !important; outline: 0 !important;
  padding: 0 !important; margin: 0 !important; border-radius: 0 !important;
  color: #0b0b0b !important; caret-color: #0b0b0b !important; height: 20px; line-height: 20px;
  min-width: 120px; width: auto; flex: 0 1 auto; appearance: none; -webkit-appearance: none;
}
.mgr-view-foot ::placeholder { color: rgba(0,0,0,0.6); }
/* Ghost select inside footer behaves like text */
.page-managr .mgr-view-foot select.mgr-input-ghost { 
  background: transparent !important; border: 0 !important; outline: 0 !important;
  padding: 0 !important; margin: 0 !important; border-radius: 0 !important;
  color: #0b0b0b !important; height: 20px; line-height: 20px; min-width: 140px;
  appearance: none; -webkit-appearance: none;
}
/* micro-utilities (replace inline styles) */
.mgr-gap-8 { gap: 8px; }
.mgr-justify-end { justify-content: flex-end; }
.mgr-nowrap { white-space: nowrap; }
/* When applied on flex rows, also prevent wrapping */
.mgr-nowrap.mgr-row { flex-wrap: nowrap; }
.mgr-label { color: #adae90; font-size: 12px; display:block; margin: 0 0 4px 0; }
.mgr-form-row { margin: 8px 0; padding:0px 10px }
.mgr-pill { background: var(--mgr-cta, #9fa37e); color: #0b0b0b; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.mgr-pill:hover { filter: brightness(1.06); }
.mgr-table { margin-top: 10px; border: 1px solid #2a2a2a; border-radius: 10px; overflow: hidden; }
.mgr-table-head { background: #1b1b18; color: #ddd; padding: 8px 10px; font-weight: 600; }
.mgr-table-body { display: grid; gap: 6px; padding: 8px; }
.mgr-hint { color: #9aa07f; font-size: 12px; opacity: .9; }
.mgr-save-status { margin-top: 8px; color: #bbb; font-size: 12px; }
.mgr-save-status[data-state="ok"] { color: #7fd47f; }
.mgr-save-status[data-state="err"] { color: #ff8a8a; }
/* Top head styling */
.mgr-prop-head { background: var(--mgr-bar, #3a3b2f); padding: 8px 10px; border-radius: 10px; padding: 5px 12px; margin: -12px -12px 0px -12px; border-radius: 0px;}
.mgr-prop-title { color: #ebecbe; }
.mgr-prop .mgr-prop-save { background: var(--mgr-cta, #9fa37e); color: #0b0b0b; border: 0; }

.mgr-form-row .cus-select {
    width: 100%;
    background-color: #21221b;
    border-radius: 7px;
}

.mgr-form-row .cus-select:after {
    top: 50%;
    transform: translateY(-50%);
    border-color: red;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #4f5040;
}

/* Push main content left to make room for the panel on Manager page */
.content-right.page.page-managr {
    position: absolute;
    left: 200px;  /* align with left nav width */
    right: 300px; /* reserve space for panel */
    top: 0;
    transform: none; /* cancel global centering */
    width: auto;     /* allow left/right to control width */
    padding-right: 0;
}

/* Hide legacy hover/edit overlays to avoid UI conflicts on Manager */
.page-managr .mgr-hero-change,
.page-managr .mgr-edit-dock,
.page-managr .mgr-hero-panel { display: none !important; }


/* Ensure Manager app does not overflow under the panel */
.page-managr #managr-app { max-width: 100%; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
    #left-nav .menu-items .menu-item.quote a.quote-btn { animation: none; }
}

.quote-block-add-images.has-files .image-add { 
    display: none; 
}

.quote-block-add-images.has-files .preview-holder { 
    opacity: 0; 
    pointer-events: none; 
}

.content-right {
    position: absolute;
    left: 200px;
    right: 50px;
    top: 0px;
    transform: translateX(-50%);
    left:50%;
    width: 100%;
}

.content-right.page {
    top: 200px;
    transform:translateX(-50%);
}

.content-right.soumi {
    right: 451px;
    left: 100px;
    width: unset;
    max-width: unset;
    transform: unset;
}

.content-right h1 {
    color: #fff;
    font-size: 6vw;
    max-width: 50%;
    text-align: left;
    line-height: 70px;
    margin: 0 auto;
}

.content-right.page h1 {
    font-size: 164px;
}

.content-right.page h2 {
    width: 100%;
    margin: 0 auto;
    color: white;
    margin: 49px auto 17px auto;
    font-size: 37px;
}

.content-right p {
    color: #FFF;
    opacity: 0.6;
    font-family: 'Gg';
    font-weight: normal;
    width: 50%;
    margin: 7px auto;
    text-align: center;
    font-size: 15px;
    line-height: 21px;
}

.content-right.page p {
    margin-top:30px
}

.content-right .first-block {
    height: 95vh;
    position: relative;
}

.content-right .block-center {
    top:50%;
    position: relative;
    transform:translateY(-50%)
}

.content-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    height: 100vh;
    min-height: 100dvh;
    z-index: -1;
    background: center / cover no-repeat;
}
.content-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.62));
    pointer-events: none;
}

.page-managr .content-bg {
    position: fixed;
}

.content-right.page .content-bg {
    top: -200px;
    height: calc(100vh + 200px);
    min-height: calc(100dvh + 200px);
}

.images-block {
    position: relative;
    top: auto;
    left: 0px;
    right: 0px;
    width: 80%;
    margin: 40px auto 0 auto;
    z-index: 1;
}

.images-block .image-block {
    min-height: 400px;
    border-radius: 16px;
    background-size: cover;
    background-position: center center;
    /* placeholder color while images load */
    background-color: var(--brand-primary, #85875C);
    position: relative;
}

.images-block .image-block.green {
    background-color: var(--brand-primary, #85875C);
}

.images-block .image-block.blue {
    background-color: var(--brand-primary, #85875C);
}

.images-block .image-block.col60 {
    width: 61%;
}

.images-block .image-block.col35 {
    width: 37%;
}

.images-block .image-block.sep {
    width: 2%;
}

.images-block.page {
    position: relative;
    top: 8vh;
}

.soumission {
    border: 2px solid #252525;
    border-radius: 20px;
    height: 59px;
    width: 50%;
    margin: 0 auto;
    background-color: #2323236e;
    color: #ccc;
    line-height: 57px;
    padding: 0px 20px;
    max-width: 500px;
}

.table {
    color: #fff;
    width: 70%;
    border: 1px solid #4d4d4d;
    border-radius: 10px;
    margin: 0 auto;
    opacity: 0.7;
    margin-top: 15px
}

.table .col {

}

.table .table-line {
    border-bottom:1px solid #4d4d4d;
    padding: 13px 16px;
    font-family: 'Gg';
    font-size: 13px;
}

.table .table-line:last-child {
    border-bottom: none;
}

.service-type {
    text-align: left;
    width: 73%;
    margin: 0 auto;
    border: 1px solid #474747;
    border-radius: 10px;
    padding: 0px 0px 26px 0px;
}

.service-type.full {

}

.service-type .service-type-image {
    background-size: 100%;
    background-position: center center;
    width: 95%;
    height: 656px;
    border-radius: 8px;
    margin: 50px auto 0 auto
}

.service-type h3 {
    color: #fff;
    font-family: 'Ggb';
    width: 95%;
    margin: 24px auto 12px auto;
}

.service-type p {
    width: 95%;
    text-align: left;
    margin-top: 0px  !important
}

.service-type .dec-btn {
    position: relative;
    left:2.5%
}

.over-page-actions {
    width: 450px;
    background: #161615;
    position: fixed;
    top: unset;
    right: 15px;
    bottom: 15px;
    border-radius: 25px;
    z-index: 110020;
    opacity: 0;
    transition: all 250ms;
    padding: 19px;
}

.over-page-actions .actions-pad {
    padding: 18px 22px;
}

.over-page-actions h3 {
    color: #efefef;
    font-size: 30px;
    margin: 0px 0px 0px 0px;
    letter-spacing: -.03em;
}

.over-page-actions p {
    color: #FFF;
    opacity: 0.5;
    font-family: 'Gg';
    font-weight: normal;
    margin-bottom:20px;
    margin-top: 0px;
}

.over-page-actions .input-row {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* reduce visual clutter on last item of the group */
.content-right.soumi #new-quote .tab-step-2 .input-row:last-child { border-bottom: 0; }

.over-page-actions .input-row label {
    font-weight: normal;
    font-family: 'Gg';
    color: #adae90;
    margin: 2px 0px 5px 0px;
    position: relative;
    display: inline-block;
    font-size: 13px;
}
/* Step actions */
.over-page-actions .actions { margin-top: 8px; }
.soumission-btn {
    display: inline-block;
    background: #adae90;
    color: #0b0b0b;
    border-radius: 28px;
    padding: 6px 14px;
    font-size: 13px;
    margin-right: 8px;
    cursor: pointer;
}
.soumission-btn:hover { filter: brightness(1.06); }

.over-page-actions .input-row textarea,
.over-page-actions .input-row input,
.over-page-actions .section .input-show,
.over-page-actions .section textarea {
    background-color: #121210;
    padding: 10px;
    border-radius: 8px;
    width: 93%;
    outline: none;
    margin-bottom: 15px;
    border: 1px solid #222;
    color: #adae90; /* brand olive text */
    caret-color: #adae90;
    font-family: 'Gg','Ggb', sans-serif;
}
.over-page-actions .input-row textarea::placeholder,
.over-page-actions .input-row input::placeholder,
.over-page-actions .section .input-show::placeholder,
.over-page-actions .section textarea::placeholder {
    color: #adae90;
    opacity: 0.75;
}

.over-page-actions .input-row textarea {
    resize: none;
    height: 65px;
}

.quote-block-add-images {
    position: absolute;
    top: 30px;
    left: calc(200px + 20px);
    right: 30px;
    bottom: 30px;
    border-radius: 15px;
}

.quote-block-add-images .image-add {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    text-align: center;
}

.quote-block-add-images .image-add:before {

}

.quote-block-add-images .image-add img {
    max-width: 200px;
}

.quote-block-add-images .image-add p {
    max-width: 30%;
    color: #adae90;
}

#drop-zone {
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    min-height: 48vh;
    max-height: 620px;
}

#drop-zone.dragover {
    border-color: #333;
    background-color: #020202;
}

#drop-zone img {
    opacity: .75;
    transition: all 250ms;
}

#drop-zone.dragover img {
    opacity: 0;
}

#drop-zone input {
    display:none
}

#preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-item {
    width: 100px;
    text-align: center;
    font-size: 0.85rem;
}

.preview-item img {
    max-width: 100%;
    border-radius: 4px;
}

#drop-zone {
    position: absolute;
    bottom: 0px;
    top: 33px;
    left: 0px;
    right: 0px;
    border: 1px solid #474747;
    border-radius: 11px;
    border-top-left-radius: 0px;
    overflow: hidden; /* contain bg overlay rounding */
}
#drop-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/decoupe.ca/static/imgs/quote/quote2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3; /* dim background only */
    pointer-events: none;
}
/* When there are no files (no tabs needed), make the drop zone fully rounded */
.quote-block-add-images:not(.has-files) #drop-zone {
    border-top-left-radius: 0px;
}

.tabs-menu {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 33px;
    color: #797979;
    font-size: 13px;
    line-height: 29px;
    padding: 0px 0px;
    z-index: 5; /* ensure tabs stay above overlay */
}

.tabs-menu .tab-menu {
    padding: 2px 16px; /* more top/bottom while keeping left/right */
    background-color: #373737;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    margin-left: 8px;
}
.tabs-menu .tab-menu:first-child {
    margin-left: 0;
}
.tabs-menu .tab-menu.active {
    background-color: #3a3b2c;
    color: var(--brand-on-primary, #ffffff);
}
  
@media only screen and (max-width : 640px) {
    body {
        overflow: initial;
        position: relative;
        overflow-x: hidden !important;
    }

    .content-right {
        max-width: 1350px;
        top:20px;
    }

    .content-bg {
        top:20px;
    }

    .content-right p {
        width: 90%;
        text-align: center;

        font-size: clamp(17px, 2.8vw, 18px) !important;
        line-height: 1.2 !important;
    }

    .soumission {
        width: 81%;
        font-size: 13px;
        line-height: 15px;
        padding: 18px 20px 0px 20px;
    }

    .content-right h1 {
        font-size: clamp(32px, 13vw, 56px) !important;
        line-height: .9 !important;
        text-align: center;
        margin: 8px auto 0;
        max-width: 91% !important;
    }

    .home-hero-center {
        text-align: left !important;
    }

    /* Home hero title: ensure readable size on phones */
    .home-hero-title { font-size: clamp(32px, 8.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
    .home-hero-cta { width: 90%; justify-content: center; text-align: center; margin-left:30px}
    .home-hero-cta .dec-btn { line-height: 36px; border-radius: 22px; }

    /* Keep left menu visible on mobile for navigation (no full-height dark overlay) */
    #left-nav { background: transparent; z-index: 120010; width: 160px; pointer-events: auto; }
    #left-nav .app-logo { left: 10px; height: 44px; margin: 8px auto 6px; }
    #left-nav .menu-items {
        display: block;
        border-radius: 10px;
        padding: 8px 8px;
        margin: 8px;
    }
    #left-nav .menu-items a, #left-nav .menu-items { font-size: 16px; line-height: 24px; }

    /* Show mobile page menu container in top header */
    #mobile-page-menu.topnav-mobile { display: block; position: fixed; bottom: 12px; right: 12px; z-index: 120010; margin-left: 0; }
    /* Style for the compact selector chip (bigger and touchable) */
    #mobile-page-select { background: #21221b; border: 1px solid #2a2a2a; border-radius: 16px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
    #mobile-page-select input { color: #ebecbe; font-size: 14px; width: auto; min-width: 140px; }

    .image-block {
        width: 90% !important;
        left: 5%;
        position: relative;
    }

    .images-block {
        top: auto;
        margin-top: 24px;
    }

    .image-block.sep {
        display: none;
    }

    .dec-btn {
        font-size: 12px;
        white-space: nowrap;
        line-height: 34px;
        padding: 0 14px;
    }
    /* Prevent circular blob look on mobile CTA */
    .dec-btn.send-quote-btn { border-radius: 22px; }
}

@media only screen and (min-width : 641px) {

    body {
        overflow: initial;
        position: relative;
        overflow-x: hidden !important;
    }

    .content-right {
        max-width: 1350px;
        
    }

    .soumission {
        width: 81%;
        font-size: 13px;
        line-height: 15px;
        padding: 18px 20px 0px 20px;
    }

    .dec-btn {
        font-size: 12px;
        
    }
}

@media only screen and (min-width : 1000px){
    
    .content-right {
        width:1200px
    }

    .images-block {
        width: 67%;
    }

    .soumission {
        padding: 0px 20px;
        line-height: 57px;
    }
}

@media only screen and (min-width : 1600px){
    
    .images-block {
        width: 94%;
    }
}

input,
textarea,
select,
body {
    font-family: 'Ggb', sans-serif;
    overflow-x: hidden;
}

body {
    background-color: rgb(24 24 20);
    overflow-x: hidden !important;
}

/* Mobile page menu default hidden (shown in media query) */
#mobile-page-menu.topnav-mobile { display: none; }
/* Mobile: use the real left-nav, hide the selector pill */
@media (max-width: 640px){
  #mobile-page-menu.topnav-mobile { display: none !important; }
}
/* Mobile drawer (single source of truth) */
@media (max-width: 640px){
  /* Toggle button */
  #nav-toggle { position: fixed; top: 10px; right: 10px; width: 42px; height: 42px; z-index: 130020; background: #21221b; color: #ebecbe; border: 1px solid #2a2a2a; border-radius: 12px; }
  #nav-toggle:after { content: '≡'; display: block; text-align: center; font-size: 20px; line-height: 40px; }
  /* Drawer: closed by default */
  #left-nav { position: fixed; left: 0; top: 0; bottom: 0; width: 82vw; max-width: 360px; transform: translateX(-100%); transition: transform .28s ease; background: rgba(0,0,0,0.92); backdrop-filter: blur(4px); z-index: 130018; padding-top: 8px; visibility: hidden; pointer-events: none; }
  /* Drawer open (direct class to avoid cascade issues) */
  #left-nav.open { transform: translateX(0) !important; visibility: visible !important; pointer-events: auto !important; }
  /* Never hide items on mobile */
  #left-nav .menu-items { display: block !important; padding: 8px 14px; margin: 0; }
  #left-nav .menu-items .menu-item a { font-size: 16px; line-height: 26px; }
  /* Overlay */
  #nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 130016; display: none; left:200px}
  /* Hide the pill on phones */
  #mobile-page-menu.topnav-mobile { display: none !important; }
}
/* Overlay options from mobile topnav select: dark theme and full width */
#current-options.cus-select.topnav-sel {
    width: 92vw;
    left: 4vw !important;
    right: 4vw !important;
    top: 52px !important;
    transform: none !important;
    background: #121210;
    color: #ebecbe;
    border: 1px solid #2a2a2a;
    z-index: 120006;
}
/* Ensure generic cus-select dropdown overlays property panel */
#current-options.cus-select {
    position: fixed;
    z-index: 120010;
    background: #121210;
    color: #ebecbe;
    border: 1px solid #2a2a2a;
}
.option-prevent {
    position: fixed;
    inset: 0;
    z-index: 120008;
    background-color: #000000d4;
    backdrop-filter: blur(4px);
}
#current-options.cus-select.topnav-sel .option { color: #ebecbe; border-bottom: 1px solid #2a2a2a; }
#current-options.cus-select.topnav-sel .option:hover { background-color: rgba(255,255,255,0.06); }

:root {
    --brand-primary: #3a3b2c; /* decoupe brand dark green */
    --brand-on-primary: #ffffff;
}

.hv-center {
    position: relative;
    top: 50%;
    left:50%;
    transform:translate(-50%, -50%)
}

.dec-btn {
    position: relative;
    background-color: #ebecc0;
    border-radius: 50px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Ggb';
    color: #000;
    font-size: 14px;
    padding: 0px 19px;
    line-height: 38px;
}

@font-face {
	font-family: 'Gg';
	src: url('/cinedesign.ca/static/fonts/gg.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: 'Ggb';
	src: url('/cinedesign.ca/static/fonts/Ggb.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
}

#left-nav {
    position: fixed;
    width: 200px;
    top: 0px;
    left: 0px;
    bottom: 0px;
    transition: all 1s;
    z-index: 99;
}


#left-nav .app-logo {
    display: inline-block;
    height: 56px;
    margin: 18px auto 24px auto;
    width: 150px;
    position: relative;
    left: 16px;
}

#left-nav .app-logo img {
    max-height: 100%;
    width: auto;
}

#left-nav .menu-items a,
#left-nav .menu-items {
    text-decoration: none;
    font-size: 15px;
    position: relative;
    left: 20px;
    color: #fff;
    line-height: 22px;
    font-family: 'Gg';
}

#left-nav .menu-items a {
    left:unset
}

#left-nav .menu-items .menu-item {
    opacity: 0.4;
    transition: all 250ms;
    cursor: pointer;
    position: relative;
    padding: 0;
}

#left-nav .menu-items .menu-item.active,
#left-nav .menu-items .menu-item:hover {
    opacity: 1;
}

/* modernize nav links and active state */
#left-nav .menu-items .menu-item a {
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    display: block;
    text-decoration: none;
}
#left-nav .menu-items .menu-item:hover a,
#left-nav .menu-items .menu-item.active a {
    color: #ffffff;
}
#left-nav .menu-items .menu-item.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background-color: var(--brand-primary, #85875C);
    border-radius: 3px;
}

.content-right {
    position: absolute;
    left: 200px;
    right: 50px;
    top: 0px;
    transform: translateX(-50%);
    left:50%;
    width: 100%;
}

.content-right.page {
    top: 200px;
    transform:translateX(-50%);
}

.content-right.soumi {
    right: 20px;
    left: 100px;
    width: unset;
    max-width: unset;
    transform: unset;
}

.content-right h1 {
    color: #FFF;
    font-size: 6vw;
    max-width: 50%;
    text-align: left;
    line-height: 70px;
    margin: 0 auto;
}

.content-right.page h1 {
    font-size: 14vw;
    letter-spacing: -.6vw;
}

.content-right.page h2 {
    width: 100%;
    margin: 0 auto;
    color: white;
    margin: 49px auto 17px auto;
    font-size: 21px;
}

.content-right p {
    color: #ebecc0;
    opacity: 0.8;
    font-family: 'Ggb';
    font-weight: normal;
    margin: 17px auto;
    text-align: left;
    /* Global readable clamp for all paragraphs */
    font-size: clamp(14px, 2.8vw, 18px);
    line-height: 1.45;
}

.content-right.page p {
    margin-top:70px
}

.content-right .first-block {
    height: 95vh;
    position: relative;
}

.content-right .block-center {
    top:50%;
    position: relative;
    transform:translateY(-50%)
}

.content-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    height: 100vh;
    min-height: 100dvh;
    z-index: -1;
    background: center / cover no-repeat;
}
.content-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.62));
    pointer-events: none;
}

.content-right.page .content-bg {
    top: -200px;
    height: calc(100vh + 200px);
    min-height: calc(100dvh + 200px);
}

.images-block {
    position: relative;
    top: auto;
    left: 0px;
    right: 0px;
    width: 80%;
    margin: 40px auto 0 auto;
    z-index: 1;
}

.home .images-block {
    transform: translateY(-12vh);
}

.image-block.col100 {
    margin-bottom:2vh;
}

.images-block .image-block {
    min-height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center center;
    /* placeholder color while images load */
    background-color: var(--brand-primary, #85875C);
}

.images-block .image-block.green {
    background-color: var(--brand-primary, #85875C);
}

.images-block .image-block.blue {
    background-color: var(--brand-primary, #85875C);
}

.images-block .image-block.col60 {
    width: 61%;
}

.images-block .image-block.col35 {
    width: 37%;
}

.images-block .image-block.sep {
    width: 2%;
    background-color: transparent;
}

.images-block.page {
    position: relative;
    top: 8vh;
}

.soumission {
    border: 2px solid #252525;
    border-radius: 20px;
    height: 59px;
    width: 50%;
    margin: 0 auto;
    background-color: #2323236e;
    color: #ccc;
    line-height: 57px;
    padding: 0px 20px;
    max-width: 500px;
}

.table {
    color: #fff;
    width: 70%;
    border: 1px solid #272727;
    border-radius: 10px;
    margin: 0 auto;
    opacity: 0.7;
    margin-top: 15px
}

.table .col {

}

.table .table-line {
    border-bottom:1px solid #272727;
    padding: 13px 16px;
    font-family: 'Gg';
    font-size: 13px;
}

.table .table-line:last-child {
    border-bottom: none;
}

.service-type {
    text-align: left;
    width: 73%;
    margin: 0 auto;
    border: 1px solid #474747;
    border-radius: 10px;
    padding: 0px 0px 26px 0px;
}

.service-type.full {

}

.service-type .service-type-image {
    background-size: 100%;
    background-position: center center;
    width: 95%;
    height: 656px;
    border-radius: 8px;
    margin: 50px auto 0 auto
}

.service-type h3 {
    color: #fff;
    font-family: 'Ggb';
    width: 95%;
    margin: 24px auto 12px auto;
}

.service-type p {
    width: 95%;
    text-align: left;
    margin-top: 0px  !important
}

.service-type .dec-btn {
    position: relative;
    left:2.5%
}


.over-page-actions:hover {
    opacity: 1;
}

.section .section-content {
    background-color: #0c0c0c;
    border: 1px solid rgb(0 0 0 / 8%);
}

.over-page-actions .actions-pad {
    padding: 40px;
}

.over-page-actions .section .section-content {
    margin-bottom: 0px;

}

.over-page-actions h3 {
    color: #efefef;
    font-size: 22px;
    margin: 0px 0px 0px 0px;
}

.over-page-actions p {
    color: #FFF;
    opacity: 0.5;
    font-family: 'Gg';
    font-weight: normal;
    margin-bottom:20px
}

.over-page-actions .input-row:first-child {
    
}

.over-page-actions .input-row {
    margin-bottom:16px
}

.over-page-actions .input-row label {
    font-weight: normal;
    font-family: 'Gg';
    color: #adae90;
    margin: 2px 0px 5px 0px;
    position: relative;
    display: inline-block;
    font-size: 13px;
}

.over-page-actions .input-row textarea,
.over-page-actions .input-row input {
    background-color: #111;
    padding: 10px;
    border-radius: 8px;
    width: 93%;
    outline: none;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.over-page-actions .input-row textarea {
    resize: none;
    height: 65px;
}

.quote-block-add-images {
    position: absolute;
    top: 30px;
    left: calc(200px + 20px);
    right: 30px;
    bottom: 30px;
    border-radius: 15px;
}

.quote-block-add-images .image-add {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 1; /* below tab header */
    pointer-events: none; /* do not block clicks on tab header */
}
/* re-enable interactions on the actual drop zone */
.quote-block-add-images .image-add .drop-zone {
    pointer-events: auto;
}

.preview-content {
    position: relative;
    top: 34px;
    border-top-right-radius: 15px;
    overflow: hidden;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

/* Ensure the viewer canvas fills the area and allow loader overlay */
.quote-block-add-images .file-view {
    position: relative;
    width: 100%;
    height: 100%;
    background: #141414;
}
.quote-block-add-images .file-view canvas,
.quote-block-add-images .file-view img,
.quote-block-add-images .file-view object {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}
/* Ensure large raster images and embedded objects fit within the viewer */
.quote-block-add-images .file-view img,
.quote-block-add-images .file-view object {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Loading overlay and spinner */
.fv-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    z-index: 10;
}
.fv-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fvspin 0.8s linear infinite;
}
.fv-load-text {
    color: #ddd;
    font-size: 12px;
    font-family: 'Gg';
}
@keyframes fvspin {
    to { transform: rotate(360deg); }
}

/* Utility */
.hidden { display: none !important; }
.tabs-steps .tab-step { display: none; }
.tabs-steps .tab-step:not(.hidden) { display: block; }

/* CNC page layout (scoped) */
.page-cnc .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/cnc.png');
    opacity: 0.75;
}
/* Laser page layout (scoped) */
.page-laser .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/laser/IMG_3242_forge_green_3a3b2c.jpg');
}
/* 3D Print page layout (scoped) */
.page-3dprint .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/3dprint/IMG_9846_forge_green_3a3b2c.jpg');
}
/* Waterjet page layout (scoped) */
.page-waterjet .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/waterjet/IMG_1950_forge_green_3a3b2c.jpg');
}
/* Electronic page layout (scoped) */
.page-electronic .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/electronique/IMG_1920_forge_green_3a3b2c.jpg');
}
/* Prototypage page layout (scoped) */
.page-prototypage .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/prototypage/IMG_9352_forge_green_3a3b2c.jpg');
}
/* Special page layout (scoped) */
.page-special .content-bg {
    background-image: url('/decoupe.ca/static/imgs/cnc/2025/special/IMG_1818_forge_green_3a3b2c.jpg');
}

/* Service pages: large, responsive H1 with balanced multi-line wrapping */
.content-right.page.page-cnc.page-laser .cnc-intro-center h1,
.content-right.page.page-cnc.page-3dprint .cnc-intro-center h1,
.content-right.page.page-cnc.page-waterjet .cnc-intro-center h1,
.content-right.page.page-cnc.page-electronic .cnc-intro-center h1,
.content-right.page.page-cnc.page-prototypage .cnc-intro-center h1,
.content-right.page.page-cnc.page-special .cnc-intro-center h1 {
  font-size: clamp(64px, 10.5vw, 140px) !important; /* bigger but responsive */
  letter-spacing: -0.025em !important;
  line-height: 1.04 !important;
  width: auto !important;
  max-inline-size: 22ch; /* encourage 1–3 balanced lines */
  text-wrap: balance;
  hyphens: auto;
  margin-left: auto; margin-right: auto;
  text-align: center;
}
@media (max-width: 700px){
  .content-right.page.page-cnc.page-laser .cnc-intro-center h1,
  .content-right.page.page-cnc.page-3dprint .cnc-intro-center h1,
  .content-right.page.page-cnc.page-waterjet .cnc-intro-center h1,
  .content-right.page.page-cnc.page-electronic .cnc-intro-center h1,
  .content-right.page.page-cnc.page-prototypage .cnc-intro-center h1,
  .content-right.page.page-cnc.page-special .cnc-intro-center h1 {
    font-size: clamp(36px, 12vw, 64px) !important;
    max-inline-size: 92vw;
  }
}
/* Apply same responsive H1 sizing to CNC root page */
.content-right.page.page-cnc .cnc-intro-center h1 {
  font-size: clamp(64px, 10.5vw, 140px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.04 !important;
  width: auto !important;
  max-inline-size: 22ch;
  text-wrap: balance;
  hyphens: auto;
  margin-left: auto; margin-right: auto;
  text-align: center;
  margin-bottom:-7vh;
}
@media (max-width: 700px){
  .content-right.page.page-cnc .cnc-intro-center h1 {
    font-size: clamp(36px, 12vw, 64px) !important;
    max-inline-size: 92vw;
  }
}

/* Fix sticky on service pages: ensure container has no transform so sticky works */
.content-right.page.page-cnc { transform: none !important; left: 200px; right: 50px; overflow: visible !important; }
.content-right.page.page-waterjet { transform: none !important; left: 200px; right: 50px; overflow: visible !important; }
.content-right.page.page-waterjet { transform: none !important; left: 200px; right: 50px; }

/* Respect reduced motion users: stop neon jitter entirely if set */
@media (prefers-reduced-motion: reduce) {
  .content-right.page.page-cnc.page-laser .cnc-intro-center h1 .neon-layer,
  .content-right.page.page-cnc.page-3dprint .cnc-intro-center h1 .neon-layer,
  .content-right.page.page-cnc.page-waterjet .cnc-intro-center h1 .neon-layer,
  .content-right.page.page-cnc.page-electronic .cnc-intro-center h1 .neon-layer,
  .content-right.page.page-cnc.page-prototypage .cnc-intro-center h1 .neon-layer,
  .content-right.page.page-cnc.page-special .cnc-intro-center h1 .neon-layer { transform: none !important; }
}
/* Hide legacy blocks on 3D print when using pinned layout */
.content-right.page.page-3dprint > h1,
.content-right.page.page-3dprint > p,
.content-right.page.page-3dprint > .soumission,
.content-right.page.page-3dprint > h2,
.content-right.page.page-3dprint > .table,
.content-right.page.page-3dprint > .service-type,
.content-right.page.page-3dprint > .images-block { display: none !important; }
.page-cnc h3.cap-title { 
    color: #ffffff;
    margin-top: 18px;
    margin-bottom: 6px;
    margin-left: auto;
    margin-right: auto;
    font-size: 80px;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}
.page-cnc .table-sub { color: #cfcfcf; }
.page-cnc .table { margin: 18px auto 48px auto; }

/* SEO block aligned with main column, text left */
.page-cnc .seo-hero { 
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 30px;
  margin-bottom: 30px;
  background: #2a2a2a;
  border: none;
  border-radius: 0;
  padding: 80px 0;
}
.page-cnc h2.seo-title { width: 100%; max-width: 960px; margin: 0 auto 12px auto; color: #fff; text-align: center; padding: 0 20px; box-sizing: border-box; }
.page-cnc .seo-text { float: none; max-width: 960px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.page-cnc .seo-text p { width: 100%; margin: 8px 0 14px 0; text-align: left; }
.page-cnc .seo-hero .dec-btn { display: inline-block; margin-top: 10px; }

/* Capability blocks: image + card with heavy radius */
.page-cnc .cap-grid { width: 70%; margin: 18px auto 48px auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) {
    .page-cnc .cap-grid { grid-template-columns: 1fr; }
}
.page-cnc .cap-media { border-radius: 22px; background-size: cover; background-position: center; min-height: 280px; box-shadow: 0 12px 30px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.page-cnc .cap-media:after { content:' '; position:absolute; inset:0; background: linear-gradient(to bottom right, rgba(255,255,255,0.04), rgba(0,0,0,0.12)); mix-blend-mode: overlay; }
.page-cnc .cap-card { border-radius: 22px;  background: rgba(20,20,20,.55); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,.35); padding: 16px 16px 4px 16px; }
.page-cnc .cap-card .table-sub { width: auto; margin: 0 0 6px 0; color: #ddd; }
.page-cnc .cap-card .table { width: auto; margin: 0; }
.page-cnc .cap-card .table-line { padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-cnc .cap-card .table-line:last-child { border-bottom: 0; }

/* Round corners for existing image blocks and service images (scoped for this page only) */
.page-cnc .images-block.page .image-block { border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.page-cnc .service-type .service-type-image { border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Journey grid */
.page-cnc .journey-title { width: 70%; margin: 22px auto 6px auto; color: #fff; }
.page-cnc .journey-sub { color: #cfcfcf; width: 70%; margin: 0 auto 18px auto; }
.page-cnc .journey { width: 70%; margin: 12px auto 80px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1100px) { .page-cnc .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .page-cnc .journey { grid-template-columns: 1fr; } }
.page-cnc .journey-card { border-radius: 22px; border: 1px solid #2a2a2a; background: rgba(20,20,20,.55); box-shadow: 0 8px 24px rgba(0,0,0,.35); overflow: hidden; }
.page-cnc .journey-media { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.page-cnc .journey-body { padding: 14px 16px 18px; }
.page-cnc .journey-meta { font-size: .9rem; color: #bbb; margin-bottom: 8px; }

/* Asymmetric capability blocks (stacked, offset, rotated) */
.page-cnc .cap-asym { width: 72%; margin: 56px auto 72px; position: relative; min-height: 380px; }
.page-cnc .cap-asym::before {
    content: ""; position: absolute; inset: -12px -8px auto auto; height: 110px; width: 36%;
    background: radial-gradient(120px 60px at 70% 30%, rgba(255,255,255,.05), transparent 60%);
    filter: blur(8px); pointer-events: none;
}
.page-cnc .cap-asym .cap-media {
    position: relative; width: var(--media-w, 86%); height: clamp(280px, 42vw, 420px);
    border-radius: 28px; background-size: cover; background-position: center;
    box-shadow: 0 14px 34px rgba(0,0,0,.38);
    transform: translateX(var(--media-x, 0)) translateY(var(--media-y, 0)) rotate(var(--media-rot, 0deg));
    overflow: hidden;
}
.page-cnc .cap-asym .cap-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom right, rgba(255,255,255,.03), rgba(0,0,0,.12));
    mix-blend-mode: overlay;
}
.page-cnc .cap-asym .cap-float {
    position: absolute; top: var(--float-top, 52%); left: var(--float-left, auto); right: var(--float-right, auto);
    transform: translateY(-50%) translateX(var(--float-tx, 0));
    width: clamp(280px, 40%, 520px); border-radius: 24px;
    border: 1px solid #2a2a2a; background: rgba(20,20,20,.6); backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0,0,0,.36); padding: 14px 16px 6px;
}
.page-cnc .cap-asym .cap-float .cap-title { margin: 0 0 4px 0; color: #fff; width: auto; }
.page-cnc .cap-asym .cap-float .table-sub { margin: 0 0 8px 0; color: #ddd; width: auto; }
.page-cnc .cap-asym .cap-float .table { margin: 0; width: auto; }
.page-cnc .cap-asym .cap-float .table-line { padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.page-cnc .cap-asym .cap-float .table-line:last-child { border-bottom: 0; }

/* Per-section asymmetric variations using CSS variables */
.page-cnc .cap-1 { --media-w: 88%; --media-x: -6%; --media-rot: -1.1deg; --float-right: 6%; --float-top: 58%; }
.page-cnc .cap-2 { --media-w: 94%; --media-x: 4%;  --media-rot: 0.7deg;  --float-left: 8%;  --float-top: 44%; }
.page-cnc .cap-3 { --media-w: 72%; --media-x: 16%; --media-rot: -0.6deg; --float-right: 10%; --float-top: 36%; }

/* Journey rail (offset timeline) */
.page-cnc .journey-rail { width: 72%; margin: 24px auto 100px; position: relative;
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.page-cnc .journey-rail::before {
    content: ""; position: absolute; left: 34%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(#4a4a4a, transparent 65%);
}
.page-cnc .jr-card { grid-column: 2 / 8; }
.page-cnc .jr-card:nth-child(2) { grid-column: 5 / 12; margin-top: 24px; }
.page-cnc .jr-card:nth-child(3) { grid-column: 3 / 10; margin-top: 46px; }

@media (max-width: 980px) {
    .page-cnc .cap-asym { width: 86%; }
    .page-cnc .cap-asym .cap-float { position: relative; top: auto; left: auto; right: auto; transform: none; width: 100%; margin-top: 14px; }
    .page-cnc .journey-rail { width: 86%; grid-template-columns: 1fr; }
    .page-cnc .journey-rail::before { display: none; }
    .page-cnc .jr-card, .page-cnc .jr-card:nth-child(2), .page-cnc .jr-card:nth-child(3) { grid-column: 1 / -1; margin-top: 0; }
}

/* Small per-section CTA button */
.page-cnc .cap-cta { margin-top: 10px; }
.page-cnc .cap-cta .dec-btn { font-size: 12px; line-height: 28px; padding: 0 14px; border-radius: 22px; }
@media (max-width: 700px) { .page-cnc .cap-cta .dec-btn { font-size: 11px; line-height: 26px; padding: 0 12px; } }
/* Inline CTA inside table */
.page-cnc .table .cap-cta-btn { display:inline-block; font-size:11px; line-height:24px; padding:0 10px; border-radius:18px; margin-left:10px; vertical-align:middle; }
@media (max-width: 700px) { .page-cnc .table .cap-cta-btn { font-size:10px; line-height:22px; padding:0 8px; } }

/* Stacked capability layout: large image followed by compact table */
/* Cap-hero simple fader: overlay img fades in, then background swaps */
.page-cnc .cap-hero { position: relative; }
.page-cnc .cap-hero .cap-fader { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; z-index: 1; }
.page-cnc .cap-hero .cap-fader img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
/* Minimal image-count dots */
.page-cnc .cap-hero .cap-dots { position: absolute; left: 0; right: 0; bottom: 14px; transform: none; display: flex; justify-content: center; gap: 6px; z-index: 6; pointer-events: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.page-cnc .cap-hero .cap-dots .cap-dot { width: 40px; height: 7px; border-radius: 999px; background: rgb(99 96 68); border: 0; box-shadow: none; outline: 0; transform: none; -webkit-transform: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; image-rendering: auto; cursor: pointer; }
.page-cnc .cap-hero .cap-dots .cap-dot.active { background: rgb(147 143 104); border: 0; }
.page-cnc .cap-stack { width: 72%; margin: 40px auto 72px; }
.page-cnc .cap-stack .cap-hero { border-radius: 24px; background-size: cover; background-position: center; aspect-ratio: 16/9; min-height: 320px; box-shadow: 0 14px 34px rgba(0,0,0,.38); }
.page-cnc .cap-stack .cap-card { 
    border-radius: 24px;
    background: rgba(20, 20, 20, .55);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .36);
    padding: 28px 21px;
    padding-top: 52px;
    margin-top: -32px;
    z-index: -1;
    position: relative;
}
.page-cnc .cap-stack .cap-card .table-sub { 
    margin: 4px 0 14px 0;
    color: #ddd;
    font-size: 19px;
}
.page-cnc .cap-stack .cap-card .table { margin: 0; }
.page-cnc .cap-stack .cap-card .table-line { padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.page-cnc .cap-stack .cap-card .table-line:last-child { border-bottom: 0; }
@media (max-width: 980px) { .page-cnc .cap-stack { width: 86%; } .page-cnc .cap-stack .cap-card { width: 100%; } }

/* Full-page pinned panels (scroll + pin + parallax) for CNC */
.cnc-snap { scroll-snap-type: y proximity; scroll-behavior: smooth; }
/* Make the CNC page canvas truly full-viewport width */
.content-right.page.page-cnc { position: static !important; top: auto !important; left: 0 !important; right: 0 !important; width: 100vw !important; max-width: 100vw !important; transform: none !important; }
/* Each section spans ~2 viewports so elements can pin while content changes */
/* CNC sticky hardening: avoid overflow/transform/flex issues */
.main.cnc-root, .main.cnc-root .wrapper, .content-right.page.page-cnc, .page-cnc .cnc-panels { overflow: visible !important; }
.main.cnc-root .wrapper { display: block; align-items: initial; min-height: auto; }
.page-cnc .cnc-panels .pin { position: -webkit-sticky; position: sticky; top: 0; }
/* Start panels at 90vh so ~10vh of the first section peeks */
/* Give more room to the bottom info band by shrinking hero default a bit */
.page-cnc .cnc-panels .cap-stack { --hero-h: 66vh !important; }
.page-cnc .cnc-panels .cap-stack { position: relative; width: 100vw; margin: 0; height: var(--section-h, 180vh); scroll-snap-align: start; }
/* Hero pins to the top, slight parallax applied via JS */
.page-cnc .cnc-panels .pin-wrap { height: auto; min-height: var(--section-h, 180vh); }
.page-cnc .cnc-panels .pin { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; width: 100vw; }
.page-cnc .cnc-panels .cap-hero { height: 100%; width: 100%; background-size: cover; background-position: center; border-radius: 0 !important; position: relative; z-index: auto; touch-action: pan-y; -ms-touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.page-cnc .cnc-panels .cap-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.32) 70%); pointer-events: none; }
/* Title overlays the hero */
.page-cnc .cnc-panels .cap-title { position: absolute; top: 8vh; left: 6vw; right: 6vw; margin: 0; color: #fff; z-index: 3; text-align: left; width: calc(100vw - 12vw); }
/* Bottom info band overlays the hero (transparent gradient) */
.page-cnc .cnc-panels .cap-card {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  padding: 4vh 6vw 6vh;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  /* More transparency so image shows through clearly */
background: linear-gradient(180deg, rgba(10,10,10,0.00) 0%, rgba(10,10,10,0.08) 36%, rgba(0,0,0,0.22) 100%) !important;
  backdrop-filter: blur(2px);
  box-shadow: none !important;
  overflow: visible;
  z-index: 2;
}

/* Keep CNC text clear of the sticky left menu on wide screens */
@media (min-width: 900px){
  .page-cnc { --left-nav-w: 200px; }
  .page-cnc .cnc-split.split-invert .left .simple-pad { padding-left: calc(20px + var(--left-nav-w)); }
  .page-cnc { --left-nav-w: 200px; }
  .page-cnc .cnc-panels .cap-title {
    left: calc(6vw + var(--left-nav-w));
    width: calc(100vw - 12vw - var(--left-nav-w));
  }
  .page-cnc .cnc-panels .cap-card {
    margin-left: var(--left-nav-w);
    width: calc(100vw - var(--left-nav-w));
    padding-left: 6vw; /* keep standard inner padding on left */
    box-sizing: border-box;
  }
}

/* Ensure table content never overflows the right edge */
.page-cnc .cnc-panels .cap-card,
.page-cnc .cnc-panels .table { box-sizing: border-box; }
.page-cnc .cnc-panels .table { max-width: 100%; overflow: visible; }
.page-cnc .cnc-panels .table .table-line {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.1fr;
  gap: 12px;
  align-items: start;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.page-cnc .cnc-panels .table .table-line > .col { width: auto; }
.page-cnc .cnc-panels .table .table-line .right { text-align: right; }
@media (max-width: 700px) {
  .page-cnc .cnc-panels .table .table-line { grid-template-columns: 1fr; }
  .page-cnc .cnc-panels .table .table-line .right { text-align: left; }
}
.page-cnc .cnc-panels .table { width: 100%; margin: 0; }
/* Remove any rounded corners/box styling inherited from global table on CNC page */
.page-cnc .cnc-panels .table { border: none !important; border-radius: 0 !important; background: transparent !important; }
.page-cnc .cnc-panels .table .table-line { border-radius: 0 !important; }
/* Brighten row separators within the inner table */
.page-cnc .cnc-panels .cap-card .cap-inner .table .table-line { border-bottom: 1px solid rgba(255,255,255,0.28) !important; }
.page-cnc .cnc-panels .cap-card .cap-inner .table .table-line:last-child { border-bottom: 0 !important; }

@media (max-width: 980px) {
  .page-cnc .cnc-panels .cap-title { margin: 10vh auto 6px; width: 92vw; }
  .page-cnc .cnc-panels .cap-card { margin-bottom: 8vh; width: 92vw; }
}

/* Hide legacy small boxed sections on CNC page to keep full-screen panels only */
.page-cnc .service-type,
.page-cnc .images-block.page,
.page-cnc .journey-rail,
.page-cnc .journey-title,
.page-cnc .journey-sub { display: none !important; }

/* Centered inner column for bottom info band (text + tables) */
.page-cnc .cnc-panels .cap-card .cap-inner { max-width: 600px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; width: 100%; }
/* CNC intro hero section (90vh) with absolute centered inner */
.page-cnc .cnc-intro-hero { position: relative; min-height: 90vh; }
.page-cnc .cnc-intro-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 960px; padding: 0 20px; box-sizing: border-box; text-align: center; }
.page-cnc .cnc-intro-center h1,
.page-cnc .cnc-intro-center p,
.page-cnc .cnc-intro-center .soumission { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-cnc .cnc-intro-center h1 { width: auto !important; }
.page-cnc .cnc-panels .cap-card .cap-desc { color: #ddd; margin: 0 0 8px; font-family: 'Gg'; font-size: 14px; line-height: 1.45; }
/* Keep tables constrained to inner column */
.page-cnc .cnc-panels .cap-card .cap-inner .table { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; border: 1px solid rgba(255,255,255,0.28) !important; border-radius: 10px !important; background: rgba(0,0,0,0.10) !important; }
/* Smooth hash jumps against sticky header */
.page-cnc .cnc-panels .cap-stack { scroll-margin-top: 72px; }

/* Generic fallback for sticky service layouts using CNC markup on any page */

.content-right.page .cnc-panels .cap-stack { position: relative; width: 100vw; height: var(--section-h, 180vh); scroll-snap-align: start; }
.content-right.page .cnc-panels .pin-wrap { height: auto; min-height: var(--section-h, 180vh); }
.content-right.page .cnc-panels .pin { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; width: 100vw; }
.content-right.page .cnc-split { position: relative; overflow: visible; }
.content-right.page .cnc-split .right { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; }
.content-right.page .cnc-split.split-invert .left { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; }
/* Page-local index in left nav (only appears on CNC since we inject it there) */
#left-nav .menu-items .menu-item.cnc-sub a { font-size: 13px; opacity: 0.6; display: block; margin: 2px 0 0 10px; text-decoration: none; color: #fff; transition: opacity 0.2s; text-transform: capitalize; }
#left-nav .menu-items .menu-item.cnc-sub a.active { opacity: 1; }

/* Split-layout test section (simple mode 50/50) */
.page-cnc .cnc-split { display: grid; grid-template-columns: 50vw 50vw; width: 100vw; gap: 0; min-height: 100vh; scroll-snap-align: start; }
.page-cnc .cnc-split .left.spane { overflow: visible; height: auto; }
.page-cnc .cnc-split .left .pane { height: 100vh; margin: 0; padding: 0; border: 0; }
/* Image gallery panes (use background images; tint overlay removed) */
.page-cnc .cnc-split .left .pane.img-pane { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; }
.page-cnc .cnc-split .left .pane.img-pane .pane-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; z-index: 0; }
/* Ensure right-side panes behave the same as left panes */
.page-cnc .cnc-split .pane.img-pane { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; }
.page-cnc .cnc-split .pane.img-pane .pane-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; z-index: 0; }
.page-cnc .cnc-split .left .pane.img-pane::before { content: none; position:absolute; inset:0; background: transparent; opacity: 0; pointer-events:none; z-index: 1; }
/* Bright, solid fallback colors (kept for dev) */
.page-cnc .cnc-split .left .pane.pink { background: transparent !important; }
.page-cnc .cnc-split .left .pane.blue { background: transparent !important; }
.page-cnc .cnc-split .left .pane.green { background: transparent !important; }
.page-cnc .cnc-split .left .pane.purple { background: transparent !important; }
.page-cnc .cnc-split .left .pane .pane-debug-label { display: none !important; }

/* Between-slide elevation cue */
.page-cnc .cnc-split .left .pane,
.page-cnc .cnc-split.split-invert .right .pane { position: relative; }
.page-cnc .cnc-split .left .pane + .pane::before,
.page-cnc .cnc-split.split-invert .right .pane + .pane::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0));
  pointer-events: none; z-index: 2;
}
/* Video fill support */
.page-cnc .cnc-split .pane-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; z-index: 0; }

/* Subtle color spin for active pane */
@keyframes paneHue { 0%{ filter: hue-rotate(0deg) saturate(1.08);} 50%{ filter: hue-rotate(8deg) saturate(1.12);} 100%{ filter: hue-rotate(0deg) saturate(1.08);} }
.page-cnc .cnc-split .left .pane.img-pane.color-spin { animation: paneHue 6s ease-in-out infinite; }
/* Right pane: sticky, brand dark, 50% width */
.page-cnc .cnc-split .right { position: sticky; top: 0; height: 100vh; background: #3a3b2c; display:flex; align-items:center; justify-content:center; }
.page-cnc .cnc-split .right.spane { display: block; }
.page-cnc .cnc-split .right .pane { display: block; width: 100%; }
.page-cnc .cnc-split.split-simple .right .simple-pad { color:#fff; text-align:center; padding: 0 20px; max-width: 600px; margin: 0 auto; box-sizing: border-box; display:flex; flex-direction:column; align-items:center; }
.page-cnc .cnc-split.split-simple .right .simple-pad .simple-title { font-size: clamp(48px, 8vw, 120px); margin: 0 0 10px; text-transform: capitalize; letter-spacing: -0.02em; text-align: center; display: inline-block; }
.page-cnc .cnc-split.split-simple .right .simple-pad .simple-desc { opacity: .9; margin: 0; text-align: center; display: inline-block; }
.page-cnc .cnc-split.split-simple .right .simple-pad .dec-btn { margin-top: 12px;    background-color: #d5d6ae;
    color: #3a3b2c;
}
/* CNC page dark brand buttons */
.page-cnc .dec-btn { background-color: #3a3b2c; color: #ebecbe; }
.page-cnc .dec-btn:hover { filter: brightness(1.06); }
/* Hide hero/band in simple test */
.page-cnc .cnc-split.split-simple .right .hero,
.page-cnc .cnc-split.split-simple .right .band { display: none !important; }

/* Overlay variant: hero behind full-width gallery, sticky content overlays on the side */
.content-right.page .cnc-split.split-overlay {
  display: grid; grid-template-columns: 1fr; width: 100vw; min-height: 100vh; scroll-snap-align: start;
}
/* Layer both children in the same grid cell */
.content-right.page .cnc-split.split-overlay > .left,
.content-right.page .cnc-split.split-overlay > .right { grid-column: 1 / -1; grid-row: 1 / -1; }
/* Z-order: gallery behind, sticky content above */
.content-right.page .cnc-split.split-overlay > .left { z-index: 0; }
.content-right.page .cnc-split.split-overlay > .right,
.content-right.page .cnc-split.split-overlay.split-invert > .left { z-index: 2; width: 50vw; }
/* Sticky overlay placement: right by default, left when inverted */
.content-right.page .cnc-split.split-overlay > .right { justify-self: end; align-self: start; }
.content-right.page .cnc-split.split-overlay.split-invert > .left { justify-self: start; align-self: start; }
/* Sticky behavior for the overlay column */
.content-right.page .cnc-split.split-overlay .right,
.content-right.page .cnc-split.split-overlay.split-invert .left { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; background: transparent !important; display: flex; align-items: center; justify-content: center; overflow: visible; }
/* Full-viewport scroll gallery on the non-sticky side uses page scroll; no inner scroll container */
.content-right.page .cnc-split.split-overlay .left.spane,
.content-right.page .cnc-split.split-overlay.split-invert .right.spane { overflow: visible; }
/* No background image on sticky overlay; use only simple-pad color */
.content-right.page .cnc-split.split-overlay .right .hero,
.content-right.page .cnc-split.split-overlay.split-invert .left .hero { display: none !important; }
/* Bottom band stays if desired */
.content-right.page .cnc-split.split-overlay .right .band,
.content-right.page .cnc-split.split-overlay.split-invert .left .band { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(10,10,10,0.28); backdrop-filter: blur(4px); color: #efefef; z-index: 1; }
/* Overlay content pad */
.content-right.page .cnc-split.split-overlay .right .simple-pad,
.content-right.page .cnc-split.split-overlay.split-invert .left .simple-pad { 
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 50% 0;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    backdrop-filter: blur(4px);
 }
.content-right.page .cnc-split.split-overlay .right .simple-pad .simple-title,
.content-right.page .cnc-split.split-overlay.split-invert .left .simple-pad .simple-title { font-size: clamp(48px, 8vw, 120px); margin: -11px 0 10px; text-transform: capitalize; letter-spacing: -0.02em; text-align: center; display: inline-block; }
.content-right.page .cnc-split.split-overlay .right .simple-pad .simple-desc,
.content-right.page .cnc-split.split-overlay.split-invert .left .simple-pad .simple-desc { opacity: .9; margin: 0; text-align: center; display: inline-block; }

/* Inverted split: left sticky brand pad, right scroll gallery */
.page-cnc .cnc-split.split-invert { grid-template-columns: 50vw 50vw; }
.page-cnc .cnc-split.split-invert .left { position: sticky; top: 0; height: 100vh; background: #3a3b2c; display:flex; align-items:center; justify-content:center; }
.page-cnc .cnc-split.split-invert .left .simple-pad { color:#fff; text-align:center; padding: 0 20px; max-width: 600px; margin: 0 auto; box-sizing: border-box; display:flex; flex-direction:column; align-items:center; }
.page-cnc .cnc-split.split-invert .left .simple-title { font-size: clamp(48px, 8vw, 120px); margin: 0 0 10px; text-transform: capitalize; letter-spacing: -0.02em; text-align: center; display: inline-block; }
.page-cnc .cnc-split.split-invert .left .simple-desc { opacity: .9; margin: 0; text-align: center; display: inline-block; }
.page-cnc .cnc-split.split-invert .right { position: static; height: auto; background: transparent; display: block; }
.page-cnc .cnc-split.split-invert .right.spane { overflow: visible; }
.page-cnc .cnc-split.split-invert .right .pane { height: 100vh; width: 100%; }
.page-cnc .cnc-split .left.spane { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page-cnc .cnc-split .left .pane { min-height: 80vh; padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-cnc .cnc-split .right { position: sticky; top: 0; height: 100vh; }
.page-cnc .cnc-split .right .hero { height: 70%; background-size: cover; background-position: center; }
.page-cnc .cnc-split .right .band { height: 30%; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(10,10,10,0.28); backdrop-filter: blur(4px); color: #efefef; }
@media (max-width: 900px) {
  .page-cnc .cnc-split { grid-template-columns: 1fr; }
  .page-cnc .cnc-split .right { position: relative; height: auto; }
  .page-cnc .cnc-split .right .hero { height: 52vh; }
  .page-cnc .cnc-split .right .band { height: auto; }
}

/* Center titles and bands in the viewport (do not reserve space for left nav) */
.page-cnc .cnc-panels .cap-title {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: auto !important;
  max-width: 600px;
  text-align: center !important;
}
.page-cnc .cnc-panels .cap-card {
  margin-left: 0 !important;
  width: 100vw !important;
  padding: 4vh 0 6vh !important; /* remove side padding to perfectly center inner */
  display: flex;
  justify-content: center;
}

/* Top intro section: limit to 600px and center */
.page-cnc .content-right.page h1,
.page-cnc .content-right.page h2,
.page-cnc .content-right.page p { max-width: 640px !important; width: auto; margin-left: auto; margin-right: auto; }
/* Neon layered title (no blur, no layout shift) */
.page-cnc .cnc-intro-center h1 { position: relative; }
.page-cnc .cnc-intro-center h1 .neon-wrap { position: relative; display: inline-block; }
.page-cnc .cnc-intro-center h1 .neon-base { position: relative; z-index: 1; }
.page-cnc .cnc-intro-center h1 .neon-layer { display: none !important; }
/* Brand gradient text effect for service page H1 (no extra markup needed) */
.content-right.page.page-cnc .cnc-intro-center h1 { color: #FFF; }
/* Title animation: drop‑shadow flash (CSS, no JS) */
@keyframes dec-title-shadow-flash {
  0%   { text-shadow: 1px 1px 0 #ff4aa2, 2px 2px 0 #ff4aa2, -1px -1px 0 #33ddff; }
  25%  { text-shadow: -2px 1px 0 #ffd166, -3px 2px 0 #ffd166, 1px -1px 0 #baff29; }
  50%  { text-shadow: 2px -1px 0 #33ddff, 3px -2px 0 #33ddff, -2px 2px 0 #ff4aa2; }
  75%  { text-shadow: -1px -2px 0 #baff29, -2px -3px 0 #baff29, 2px 1px 0 #ffd166; }
  100% { text-shadow: 1px 1px 0 #ff4aa2, 2px 2px 0 #ff4aa2, -1px -1px 0 #33ddff; }
}
.page-cnc .cnc-intro-center h1.title-anim-drop-shadow-flash,
.content-right.page h1.title-anim-drop-shadow-flash {
  animation: dec-title-shadow-flash 0.32s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .page-cnc .cnc-intro-center h1.title-anim-drop-shadow-flash,
  .content-right.page h1.title-anim-drop-shadow-flash,
  .page-cnc .cnc-panels .cap-title.title-anim-drop-shadow-flash,
  .page-cnc .cnc-split .simple-title.title-anim-drop-shadow-flash { animation: none; }
}
/* Also animate section titles */
.page-cnc .cnc-panels .cap-title.title-anim-drop-shadow-flash,
.page-cnc .cnc-split .simple-title.title-anim-drop-shadow-flash { animation: dec-title-shadow-flash 0.32s steps(1, end) infinite; }
/* SVG title animation */
@keyframes dec-svg-title-shadow-flash {
  0%   { filter: drop-shadow(1px 1px 0 #ff4aa2) drop-shadow(2px 2px 0 #ff4aa2) drop-shadow(-1px -1px 0 #33ddff); }
  25%  { filter: drop-shadow(-2px 1px 0 #ffd166) drop-shadow(-3px 2px 0 #ffd166) drop-shadow(1px -1px 0 #baff29); }
  50%  { filter: drop-shadow(2px -1px 0 #33ddff) drop-shadow(3px -2px 0 #33ddff) drop-shadow(-2px 2px 0 #ff4aa2); }
  75%  { filter: drop-shadow(-1px -2px 0 #baff29) drop-shadow(-2px -3px 0 #baff29) drop-shadow(2px 1px 0 #ffd166); }
  100% { filter: drop-shadow(1px 1px 0 #ff4aa2) drop-shadow(2px 2px 0 #ff4aa2) drop-shadow(-1px -1px 0 #33ddff); }
}
img.title-svg.title-anim-svg-title { animation: dec-svg-title-shadow-flash 0.32s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { img.title-svg.title-anim-svg-title { animation: none; } }
/* Force top-level intro limits with higher specificity */
.content-right.page.page-cnc > h1,
.content-right.page.page-cnc > p { max-width: 640px !important; width: auto !important; margin-left: auto !important; margin-right: auto !important; }
.page-cnc .soumission { text-align:left;font-size:1vw; width: 50%; max-width: 600px; background-color: #24251996; }

/* (Legacy preview toggles disabled by default; keep for future) */
.page-cnc #cnc-cards.cards { display: block; width: 100%; margin: 0; }
.page-cnc #cnc-cards .cap-stack { width: auto; margin: 0; }
.page-cnc #cnc-cards .cap-card { width: auto; margin: 12px 0 0; }
.page-cnc #cnc-cards .cap-hero { aspect-ratio: 16/9; min-height: 240px; }

/* A) Grid */
.page-cnc #cnc-cards.cards.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }

/* B) Masonry */
.page-cnc #cnc-cards.cards.masonry { column-count: 2; column-gap: 18px; }
@media (min-width: 1200px) { .page-cnc #cnc-cards.cards.masonry { column-count: 3; } }
.page-cnc #cnc-cards.cards.masonry .cap-stack { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 18px; }

/* C) Rail */
.page-cnc #cnc-cards.cards.rail { display: flex; gap: 16px; padding: 8px 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; width: 100%; margin: 24px 0 40px; }
.page-cnc #cnc-cards.cards.rail .cap-stack { flex: 0 0 360px; scroll-snap-align: start; }

/* Home hero rotator (moved from inline style) */
.first-block { position: relative; min-height: 100vh; min-height: 100dvh; }
.first-block .hero-rotator { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #0b0b0b; color: #fff; overflow: clip; z-index: 0; }
/* Home hero content centered */
.home-hero { position: relative; min-height: 100vh; }
.home-hero-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 1200px; text-align: center; padding: 0 24px; box-sizing: border-box; z-index: 2; }
.home-hero-title { font-family: 'Huge','Ggb', sans-serif; font-weight: 700; margin: 0; color: #EBECBC; font-size: clamp(42px, 7.5vw, 112px); letter-spacing: -0.02em; text-align: left; line-height: 1.04; }
#typed-target { display: inline-block; min-width: 9ch; white-space: nowrap; }
.home-hero-sub { max-width: 820px; margin: 10px auto 16px; color: #f4f5f0; opacity: 0.85; font-family: 'Gg', sans-serif; line-height: 1.45; font-size: clamp(14px, 2.8vw, 18px); }
/* Ensure home subtitle beats global .content-right p font sizing */
.content-right .home-hero-sub { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.35; max-width: 92%; color: #EBECBC; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.home-hero-cta {     
    display: inline-flex;
    gap: 10px;
    align-items: left;
    justify-content: left;
    margin-top: 8px;
    width: 50%;
    text-align: left; }
/* Home: content-right should be in flow to push footer */
.content-right:not(.page) { position: relative !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
/* Home: image stack positioning from your note */
.content-right:not(.page) > .images-block {
  position: relative !important;
  left: 50% !important;
  width: 80% !important;
  z-index: 1 !important;
  transform: translate(-50%, -18%) !important;
  display: inline-block !important;
  margin-bottom: -5% !important;
  top: auto !important;
  right: auto !important;
}
/* Ensure home image stack participates in flow so footer follows */
.first-block .hero-rotator > figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
@keyframes dec-hero-xfade { 0%, 30% { opacity: 1; } 35%, 100% { opacity: 0; } }
.first-block .hero-rotator > figure:nth-of-type(1) { animation: dec-hero-xfade 24s infinite; animation-delay: 0s; opacity: 1; }
.first-block .hero-rotator > figure:nth-of-type(2) { animation: dec-hero-xfade 24s infinite; animation-delay: 8s; }
.first-block .hero-rotator > figure:nth-of-type(3) { animation: dec-hero-xfade 24s infinite; animation-delay: 16s; }
@media (prefers-reduced-motion: reduce) {
  .first-block .hero-rotator > figure { animation: none !important; }
  .first-block .hero-rotator > figure:nth-of-type(1) { opacity: 1; }
}
/* Simple overlay label for home tiles */
.images-block .image-block .tile-title { 
    position: absolute;
    left: 29px;
    bottom: 22px;
    color: #ebecbe;
    font-family: 'Ggb';
    font-size: 2.1vw;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}
.first-block .hero-rotator > figure:nth-of-type(1) { animation-delay: 0s; }
/* Hover effects for home tiles */
.images-block .image-block { transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease; will-change: transform; }
.images-block .image-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.00) 40%, rgba(0,0,0,0.28) 100%); opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.images-block .image-block:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 36px rgba(0,0,0,0.38); }
.images-block .image-block:hover::after { opacity: 1; }
.images-block .image-block .tile-title { transition: transform 220ms ease, opacity 220ms ease; }
.images-block .image-block:hover .tile-title { transform: translateY(-2px); opacity: 1; }
/* Dark footer styling for nfooter.html */
.page-foot { background: rgb(24 24 20); color: #ddd; margin-top: 40px; min-height: 60vh; display: flex; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); position: relative; z-index: 0; }
.page-foot .page-foot-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 40px 20px; max-width: 1200px; margin: auto; align-items: center; }
.page-foot .col { display: block; }
.page-foot .col.col50 { display: block; }
.page-foot .footer-logo img { max-width: 260px; height: auto; box-shadow: none !important; filter: none !important; background: transparent !important; }
.page-foot .dec-btn.send-quote-btn { background: var(--brand-primary); color: #ebecc0;; display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
@media (max-width: 640px) {
  .page-foot .page-foot-pad { grid-template-columns: 1fr; text-align: center; }
  .page-foot .col.col50 { text-align: center; }
}
/* Managr (admin editor) */
.page-managr .content-bg { opacity: 1; }
.page-managr { --pad: 16px; position: relative; z-index: 10; font-size: 13px; }
/* Constrain center content on large windows */
.page-managr #managr-app { max-width: 900px; margin: 0 auto; }
/* Top nav for manager */
.is-managr .mgr-topnav {    
    position: fixed;
    top: 0;
    left: 200px;
    right: 326px;
    height: 27px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: #3a3b2fd6;
    color: #ebecbe;
    border-bottom: 1px solid #2a2a2a;
    z-index: 120002;
 }
.is-managr .mgr-topnav .mgr-back { 
    background: #ebecbe;
    color: #3a3b2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 8px;
    cursor: pointer;
    font-family: 'Ggb';
    font-size: 10px;
    opacity: 0.5;
}
.is-managr .mgr-topnav .mobile-only { display: none; margin-left: auto; }
.is-managr #left-nav .menu-items { display: none !important; }
/* Hide legacy templates header if still present */
.page-managr #managr-templates-title, .page-managr [aria-labelledby="managr-templates-title"] { display: none !important; }
/* Hide Content heading */
.page-managr #managr-content-title { display: none !important; }
/* Hide Pages heading */
.page-managr #managr-pages-title { display: none !important; }
/* Card grid and placeholders */
.page-managr .mgr-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 14px; }
/* Desktop heading clamps to avoid oversized text */
.content-right.page h1 { font-size: clamp(36px, 8vw, 96px); }
.content-right.page h2 { font-size: clamp(18px, 3.6vw, 28px); }
.page-managr .mgr-h2 { font-size: clamp(16px, 2vw, 22px); }
/* Constrain generic images-block */
.images-block { max-width: 1200px; margin-left: auto; margin-right: auto; }
.page-managr .mgr-cardtile { cursor: pointer; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; background: rgba(20,20,20,.4); }
.page-managr .mgr-cardtile:hover { border-color: rgba(255,255,255,0.16); }
.page-managr .mgr-cardimg { background: center/cover no-repeat; min-height: 140px; }
.page-managr .mgr-cardimg.placeholder { background-image: url('/decoupe.ca/static/imgs/managr/placeholder.png'); background-size: cover; background-position: center; filter: grayscale(.1) contrast(1.05); }
/* Header with back when a page is selected */
.page-managr .mgr-header { display:flex; align-items:center; justify-content: space-between; margin: 8px 0 12px; position: sticky; top: 8px; z-index: 12002; padding: 4px 0; }
.page-managr .mgr-header .mgr-back { background: #3a3b2c; color: #ebecbe; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.page-managr .mgr-header .mgr-current { color:#ddd; opacity:.85; font-weight:600; }
.page-managr .mgr-header .mgr-last { color:#9fa37e; opacity:.75; font-size: 12px; margin-left: auto; padding-left: 10px; }
/* Selection highlighting */
.page-managr .mgr-card.selected { outline: 2px solid var(--brand-primary, #85875C); outline-offset: 2px; }
.page-managr .mgr-img-row.selected, .page-managr .mgr-row.mgr-sec-row.selected { background: rgba(133,135,92,0.15); border-radius: 10px; }
/* Hero framing */
.page-managr .mgr-hero { border: 1px solid #454545; background: #181818; }
.page-managr .managr-intro { display: none; }
.page-managr #managr-denied { 
        max-width: 720px;
    margin: 32px auto;
    padding: 18px;
    color: #ddd;
    background: rgb(51 52 41);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    position: absolute;
    z-index: 999999999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 40%);
    transition: opacity 180ms ease;
}
/* Loading state for denied box */
.page-managr #managr-denied.loading > * { display: none !important; }
.page-managr #managr-denied.loading::before { content: attr(data-loading); display: block; color: #ebecbe; text-align: center; }
/* Full-page dark blocker while loading */
.page-managr #managr-blocker { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 120000; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.page-managr #managr-blocker.open { opacity: 1; pointer-events: auto; }
/* Generic fade helper */
.page-managr .fade { opacity: 0; transition: opacity 220ms ease; }
.page-managr .fade.show { opacity: 1; }

.page-managr #managr-app {     
    padding: 18px 52px 18px 10px;
    position: relative;
    z-index: 11;
    top: 23px;
}
.page-managr .mgr-layout { display: block; max-width: 1600px; margin: 0 auto; position: relative; z-index: 11; }
/* Default: hide main editor until a page is selected */
.page-managr #mgr-main-editor { display: none; }
.page-managr .mgr-left-title { font-weight: 700; color: #fff; margin: 4px 0 10px; letter-spacing: .02em; opacity: .9; }
.page-managr .mgr-pages { list-style: none; margin: 0; padding: 0; }
.page-managr .mgr-page { margin: 6px 0; }
.page-managr .mgr-page a { color: #ddd; text-decoration: none; opacity: .7; display: block; padding: 6px 8px; border-radius: 8px; }
.page-managr .mgr-page.active a, .page-managr .mgr-page a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.page-managr .mgr-add-page { margin-top: 10px; background: #3a3b2c; color: #ebecbe; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.page-managr .mgr-main { min-height: 70vh; position: relative; z-index: 12; width: 100%; }
.page-managr .mgr-topbar { display: none; }
.page-managr .mgr-save-status { font-family: 'Gg'; font-size: 12px; color: #d7d9b8; opacity: .85; min-width: 80px; text-align: left; }
.page-managr .mgr-save-status[data-state="ok"] { color: #bde39a; }
.page-managr .mgr-save-status[data-state="err"] { color: #ff8c8c; }
.page-managr .mgr-lang { color: #ddd; text-decoration: none; opacity: .75; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); }
.page-managr .mgr-lang:hover { opacity: 1; }
.page-managr .mgr-save { padding: 6px 14px; }
.page-managr .mgr-h2 { color: #fff; margin: 10px 0; font-size: 18px; letter-spacing: .01em; }
.page-managr .mgr-hero { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.38); }
.page-managr .mgr-hero-preview { height: clamp(360px, 52vh, 560px); background: center / cover no-repeat; }
.page-managr .mgr-hero-preview .mgr-hero-overlay { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; z-index: 1; }
.page-managr .mgr-hero-preview .mgr-hero-title { font-family: 'Ggb'; font-size: clamp(20px, 4vw, 42px); margin: 0 0 4px; }
.page-managr .mgr-hero-preview .mgr-hero-sub { font-family: 'Gg'; font-size: clamp(12px, 2vw, 18px); opacity: .9; }
.page-managr .mgr-hero-change { position: absolute; left: 20px; bottom: 18px; background: rgba(20,20,20,.55); border: 1px solid #2a2a2a; color: #eee; border-radius: 12px; padding: 6px 10px; cursor: pointer; z-index: 2; }
.page-managr .mgr-hero-panel { position: absolute; right: 18px; bottom: 18px; width: min(520px, 70%); background: rgb(24 26 18 / 90%); color: #ebecc0; border-radius: 16px; padding: 14px; box-shadow: none; border: 1px solid rgba(255,255,255,0.08); }
/* Section preview media tray */
.page-managr .mgr-sec-media-row { display:flex; align-items:center; gap:6px; padding: 6px 10px; }
.page-managr .mgr-sec-media-tray { display:flex; gap:6px; flex-wrap:wrap; }
.page-managr .mgr-sec-media-tray .mgr-media-thumb { width: 56px; height: 42px; border: 1px solid #2a2a2a; border-radius: 6px; background: center/cover no-repeat; cursor: pointer; opacity: .85; }
.page-managr .mgr-sec-media-tray .mgr-media-thumb:hover { opacity: 1; border-color: var(--mgr-cta, #9fa37e); }
/* Section table preview */
.page-managr .mgr-sec-tableprev { display:none; margin: 6px 10px 10px; padding: 8px 10px; border: 1px solid #2a2a2a; border-radius: 10px; background: rgba(20,20,20,.45); color: #ddd; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; }
.page-managr .mgr-sec-tableprev .mgr-sec-tk { opacity: .8; }
.page-managr .mgr-sec-tableprev .mgr-sec-tv { text-align: right; color: #ebecbe; }
/* Default hide the sticky editor panel unless hovered or toggled */
.page-managr .mgr-hero .mgr-hero-panel { opacity: 0; pointer-events: none; transform: translateY(6px) scale(0.98); transition: opacity .18s ease, transform .18s ease; }
.page-managr .mgr-hero:hover .mgr-hero-panel,
.page-managr .mgr-card.edit-open .mgr-hero-panel,
.page-managr .mgr-hero.edit-open .mgr-hero-panel,
.page-managr .mgr-hero .mgr-edit-dock:hover ~ .mgr-hero-panel,
.page-managr .mgr-hero .mgr-hero-panel:focus-within { opacity: 1; pointer-events: auto; transform: none; }
/* Hide dock when panel is visible */
.page-managr .mgr-hero:hover .mgr-edit-dock,
.page-managr .mgr-card.edit-open .mgr-edit-dock,
.page-managr .mgr-hero.edit-open .mgr-edit-dock { opacity: 0; pointer-events: none; transform: translateY(6px) scale(0.98); }
/* Dark input theme inside the panel */
.page-managr .mgr-hero-panel .mgr-input,
.page-managr .mgr-hero-panel .mgr-text,
.page-managr .mgr-hero-panel .mgr-select { background: #0d0f0a; color: #ebecc0; border: 1px solid rgba(255,255,255,0.14); }
.page-managr .mgr-hero-panel .mgr-input::placeholder,
.page-managr .mgr-hero-panel .mgr-text::placeholder { color: #d7d9b8; opacity: .75; }
/* Tabs in dark theme */
.page-managr .mgr-hero-panel .mgr-tab-btn { background: transparent; border: 1px solid rgba(255,255,255,0.14); color: #ebecc0; }
.page-managr .mgr-hero-panel .mgr-tab-btn.active { background: #3a3b2c; color: #ebecbe; border-color: #3a3b2c; }
/* Edit dock button */
.page-managr .mgr-edit-dock { position: absolute; right: 18px; bottom: 18px; background: rgb(24 26 18 / 90%); color: #ebecc0; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 6px 12px; cursor: pointer; z-index: 3; }
.page-managr .mgr-edit-dock:hover { filter: brightness(1.06); }
.page-managr .mgr-panel-title { font-weight: 700; margin-bottom: 8px; }
.page-managr .mgr-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.8); border: 0; border-radius: 999px; padding: 6px 10px; margin: 2px 0 8px; font-family: 'Gg','Ggb',sans-serif; font-size: 13px; }
.page-managr .mgr-text { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.8); border: 0; border-radius: 10px; min-height: 80px; padding: 8px 10px; font-family: 'Gg','Ggb',sans-serif; font-size: 13px; }
.page-managr .mgr-row { display: flex; justify-content: flex-end; gap: 6px; }
.page-managr .mgr-add-title { color: #fff; margin: 16px 0 6px; font-weight: 700; }
.page-managr .mgr-sections { margin: 6px 0 12px; }
.page-managr .mgr-sections-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.page-managr .mgr-sec-item { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; background: rgba(20,20,20,.45); border: 1px solid #2a2a2a; border-radius: 12px; padding: 8px; cursor: pointer; }
.page-managr .mgr-sec-thumb { width: 88px; height: 66px; background: center / cover no-repeat; border-radius: 8px; }
.page-managr .mgr-sec-meta { display: flex; flex-direction: column; gap: 1px; }
.page-managr .mgr-sec-title { color: #fff; font-weight: 600; }
.page-managr .mgr-sec-type { color: #c7c7c7; font-size: 12px; opacity: .8; }
.page-managr .mgr-add { display: flex; gap: 10px; background: rgba(20,20,20,.45); border: 1px solid #2a2a2a; border-radius: 14px; padding: 10px; align-items: center; }
.page-managr .mgr-select { background: rgba(255,255,255,0.8); border: 0; border-radius: 999px; padding: 8px 10px; }
.page-managr .mgr-add .dec-btn { white-space: nowrap; }
/* Sticky editor card */
.page-managr .mgr-card { margin-top: 12px; background: transparent; color:#0b0b0b; border-radius: 16px; padding: 0; box-shadow: none; position: relative; z-index: 120000; }
.page-managr .mgr-field { margin: 10px 0; }
.page-managr .mgr-field label { display:block; color:#1b1b1b; opacity:.85; margin-bottom:6px; font-weight:600; }
.page-managr .mgr-trow { display:grid; grid-template-columns: 1fr 1fr 34px; gap:8px; align-items:center; margin-bottom:8px; }
.page-managr .mgr-del { background:#1b1b1b; color:#fff; border:0; border-radius:8px; width:34px; height:34px; cursor:pointer; }
.page-managr .mgr-imgs { display:flex; flex-wrap:wrap; gap:10px; }
.page-managr .mgr-img { width: 140px; height: 92px; border-radius: 12px; background: center/cover no-repeat; position: relative; cursor: grab; border: 1px solid rgba(0,0,0,0.2); }
.page-managr .mgr-img-del { position:absolute; right:6px; top:6px; width:22px; height:22px; border-radius:999px; background:#111; color:#fff; text-align:center; line-height:22px; font-weight:700; cursor:pointer; opacity:.85; }
/* Compact footer ghost field */
.page-managr .mgr-view .mgr-view-foot .mgr-row { justify-content: space-between; }
.page-managr .mgr-input-ghost { background: rgba(255,255,255,0.12) !important; color:#ebecc0; border-radius: 999px; padding: 4px 10px !important; height: 28px; font-size: 12px; }
.page-managr .mgr-view .mgr-view-foot .mgr-pill { background:#3a3b2c; color:#ebecbe; border-radius:999px; padding:4px 10px; height: 28px; font-size:12px; }
/* Tabs inside sticky editor */
.page-managr .mgr-tabs-head { display:flex; gap:8px; margin: 6px 0 10px; }
.page-managr .mgr-tab-btn { background: transparent; border: 1px solid rgba(0,0,0,0.25); color:#0b0b0b; border-radius: 999px; padding: 4px 10px; cursor: pointer; font-weight: 600; font-size: 12px; }
.page-managr .mgr-tab-btn.active { background:#3a3b2c; color:#ebecbe; border-color:#3a3b2c; }
.page-managr .mgr-tabs-body { background: transparent; }
.page-managr .mgr-tab-pane { display:none; }
.page-managr .mgr-tab-pane.active { display:block; }

/* Fix stacking for global popups/hover modals so they sit above footer */
#product-holder-hover { position: fixed; inset: 0; z-index: 110010; pointer-events: auto; }
#product-holder-hover .buffer, #product-holder-hover .buffer-pdf { position: relative; z-index: 110011; }
.page-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 110009; }
#popup-blocker { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 110000; }
.cinedesisgn-popup { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -36%); background: #101010; color: #eaeaea; border: 1px solid #2a2a2a; border-radius: 12px; padding: 14px; z-index: 110001; width: min(720px, 92vw); box-shadow: 0 18px 48px rgba(0,0,0,0.55); }
.cinedesisgn-popup .popup-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cinedesisgn-popup .cine-btn { background: #3a3b2c; color: #ebecbe; border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* Right panel compact sizing */
#mgr-prop { font-size: 12px; line-height: 1.24; }
#mgr-prop .mgr-prop-title, #mgr-prop .mgr-view-title { font-size: 13px; }
#mgr-prop .mgr-row { gap: 6px; }
#mgr-prop .mgr-input,
#mgr-prop .mgr-text,
#mgr-prop .mgr-select,
#mgr-prop input,
#mgr-prop textarea,
#mgr-prop select { 
    color: #9FA37E;
    font-size: 12px; 
    padding: 7px 9px; 
    border: 0 !important; 
    border-bottom: 0 !important; 
    box-shadow: none !important; 
    outline: none !important; 
    -webkit-appearance: none; 
    appearance: none; }
#mgr-prop .mgr-text { min-height: 72px; }
#mgr-prop .mgr-tab-btn { padding: 3px 8px; font-size: 11.5px; border-radius: 999px; }
#mgr-prop button,
#mgr-prop .mgr-mini-btn,
#mgr-prop .mgr-pill { 
    padding: 4px 8px; 
    height: 24px; 
    font-size: 11px; 
    border-radius: 999px !important; 
    border: 1px solid rgba(255,255,255,0.12); 
    background-color: #9fa37e6e;
    color: #9FA37E;
    line-height: 1; 
    font-family: 'Ggb';
    cursor: pointer;
}

#mgr-prop button.active, #mgr-prop .mgr-mini-btn.active, #mgr-prop .mgr-pill.active {
    background-color: #9FA37E;
    color: #12120e
}

#mgr-prop .mgr-input-ghost { background: transparent !important; height: 24px; font-size: 11.5px; padding-right: 45px; }
/* Responsive adjustments for Managr fixed left column */
@media (max-width: 640px) {
  .page-managr .mgr-left { position: static; top: auto; left: auto; width: auto; height: auto; overflow: visible; z-index: auto; }
  .page-managr .mgr-layout { display: block; max-width: 100%; }
  .page-managr .mgr-main { width: 100%; }
  /* iPhone friendly layout */
  .is-managr .mgr-topnav { left: 0; right: 0; height: 40px; }
  .is-managr .mgr-topnav .mobile-only { display: inline-block; }
  .is-managr .mgr-topnav .mgr-current { display: none; }
  .content-right.page.page-managr { left: 0; right: 0; top: 40px; }
  .page-managr #managr-app { max-width: 100%; margin: 0 auto; padding: 12px; }
  /* Compact hero preview on small screens */
  .page-managr .mgr-hero-preview { height: clamp(220px, 40vh, 360px); }
  /* Mobile typography clamps */
  .content-right.page h1 { font-size: clamp(24px, 8vw, 40px); }
  .content-right.page h2 { font-size: clamp(16px, 4.8vw, 22px); }
}

/* Hide any accidental duplicate footer blocks */
.footer .page-foot ~ .page-foot { display: none !important; }
.first-block .hero-rotator > figure:nth-of-type(2) { animation-delay: 12s; }
.first-block .hero-rotator > figure:nth-of-type(3) { animation-delay: 24s; }
.first-block .hero-rotator img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transform-origin: center center; filter: saturate(1.05) contrast(1.05); animation: zoom 36s infinite; will-change: opacity, transform; display: block; }
.first-block .hero-rotator::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 40%, rgba(0,0,0,.72)); pointer-events: none; }
.first-block .block-center { position: relative; z-index: 2; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
@keyframes xfade { 0%{opacity:0} 3%{opacity:1} 30%{opacity:1} 33%{opacity:0} 100%{opacity:0} }
@keyframes zoom { 0%{transform:scale(1.04)} 100%{transform:scale(1)} }

/* Floating dock to open the quote panel */
.quote-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #adae90;
    color: #0b0b0b;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: 'Ggb', sans-serif;
    font-size: 15px;
    cursor: pointer;
    z-index: 110019;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 180ms ease, opacity 180ms ease;
}
.over-page-actions.open { opacity: 1; z-index: 110021; pointer-events: auto; }
.over-page-actions.open ~ .quote-dock { opacity: 0; pointer-events: none; transform: translateY(6px); }

/* Custom select-style option chips for quote fields */
.big-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.big-list .itm {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    background: #161616;
    color: #adae90;
    cursor: pointer;
    user-select: none;
    transition: background-color 120ms, color 120ms, border-color 120ms;
}
.big-list .itm:hover {
    background: #1f1f1f;
}
.big-list .itm.active {
    background: var(--brand-primary, #85875C);
    border-color: var(--brand-primary, #85875C);
    color: #adae90;
}
/* Ensure pills smaller within the panel context */
.over-page-actions .big-list .itm { padding: 3px 10px; font-size: 12px; }
.big-list .itm.active:hover {
    filter: brightness(1.06);
}

.quote-block-add-images .image-add:before {

}


  
@media only screen and (max-width : 640px) {
    body {
        overflow: initial;
        position: relative;
        overflow-x: hidden !important;
    }

    .content-right {
        max-width: 1350px;
        top:20px;
    }

    .content-bg {
        top:20px;
    }

    .content-right p {
        width: 90%;
    }

    .soumission {
        width: 81%;
        font-size: 13px;
        line-height: 15px;
        padding: 18px 20px 0px 20px;
    }

    .content-right h1 {
        font-size: 29px;
        line-height: 33px;
    }

    #left-nav .menu-items {
        display: none;
    }

    .image-block {
        width: 90% !important;
        left: 5%;
        position: relative;
        
    }

    .images-block {
        top: 1vh;
    }

    .images-block .image-block.col {
        margin-bottom:2vh
    }

    .image-block.sep {
        display: none;
    }

    .dec-btn {
        font-size: 12px;
        
    }
}

@media only screen and (min-width : 641px) {

    body {
        overflow: initial;
        position: relative;
        overflow-x: hidden !important;
    }

    .content-right {
        max-width: 1350px;
        
    }

    .soumission {
        width: 81%;
        font-size: 13px;
        line-height: 15px;
        padding: 18px 20px 0px 20px;
    }

    .dec-btn {
        font-size: 12px;
        
    }
}

@media only screen and (min-width : 1000px){

    .content-right {
        width:1200px
    }

    .images-block {
        width: 67%;
    }

    .soumission {
        padding: 0px 20px;
        line-height: 57px;
    }
}

@media only screen and (min-width : 1600px){
    
    .images-block {
        width: 94%;
    }
}

/* Soumission: cap preview/file-view height with scrolling (non-destructive, scoped) */
.content-right.soumi .quote-block-add-images .preview-content {
    max-height: min(60vh, 620px);
    overflow: auto;
}
.content-right.soumi .quote-block-add-images .file-view {
    height: min(60vh, 620px);
    max-height: min(60vh, 620px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
    .content-right.soumi .quote-block-add-images .preview-content,
    .content-right.soumi .quote-block-add-images .file-view {
        max-height: min(48vh, 420px);
    }
}

/* Soumission: clarify dock hover/open states */
.quote-dock:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.quote-dock:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.42); opacity: 1; }
.quote-dock:active { transform: translateY(0); }
/* Enhance open panel without affecting base hover behavior */
.over-page-actions.open { transform: translateY(0); box-shadow: 0 16px 40px rgba(0,0,0,0.44); }
.over-page-actions.open::after { content: ""; position: absolute; right: 28px; bottom: 100%; border: 8px solid transparent; border-bottom-color: #3a3b34; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }

/* All files consolidated tab layout */
.content-right.soumi .all-files-layout { display: flex; gap: 10px; align-items: stretch; }
.content-right.soumi .all-files-list { flex: 0 0 280px; max-height: min(60vh, 620px); overflow: auto; border: 1px solid #2a2a2a; border-radius: 8px; padding: 8px; }
.content-right.soumi #all-files-view { flex: 1 1 auto; max-height: min(60vh, 620px); }
.content-right.soumi .af-group { margin-bottom: 10px; }
.content-right.soumi .af-title { color: #bbb; font-size: 12px; margin: 6px 4px; }
.content-right.soumi .af-files { list-style: none; margin: 0; padding: 0; }
.content-right.soumi .af-files li { margin: 0; padding: 0; }
.content-right.soumi .af-files a { display: block; color: #ddd; text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.content-right.soumi .af-files a:hover { background: rgba(255,255,255,0.06); }
/* Make loading tab look disabled if present */
.content-right.soumi .tabs-menu .tab-menu[for="rehydrate"] { opacity: .7; cursor: default; }
/* =========================
   Soumission panel fixes
   ========================= */
/* Step container + loader (dark theme) */
.over-page-actions #new-quote .tabs-steps { position: relative; }
.over-page-actions #new-quote .tabs-steps .step-loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.over-page-actions #new-quote .tabs-steps .step-loader .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--brand-on-primary, #ffffff);
  border-radius: 50%;
  animation: dec-step-spin 0.8s linear infinite;
}
.over-page-actions #new-quote .tabs-steps .step-loader .load-text {
  font-size: 14px;
  color: #ddd;
  font-weight: 500;
}
@keyframes dec-step-spin { to { transform: rotate(360deg); } }
/* Layout + theme for over-page-actions panel (non-destructive, appended) */
.over-page-actions.open {
  opacity: 1;               /* ensure visible when open */
  pointer-events: auto;     /* re-enable interactions */
  z-index: 50;              /* on top of main content */
}


/* Inner padding and scroll area */
.over-page-actions .actions-pad {
  padding: 24px;            /* compact, consistent padding */
  overflow: auto;           /* allow the content to scroll when long */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Inputs respect container width and theme */
.over-page-actions .input-row textarea,
.over-page-actions .input-row input,
.over-page-actions .section .input-show,
.over-page-actions .section textarea {
  width: 100%;
  box-sizing: border-box;
}
/* Sticky actions inside the panel so buttons never overflow the viewport */
.over-page-actions #new-quote .actions {
  position: static; /* allow panel to shrink to content */
  padding-top: 8px;
  background: transparent;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Theme the nav buttons to match brand */
.over-page-actions #new-quote #quote-back {
  background: var(--brand-primary, #85875C) !important;
  color: #0b0b0b;
}
.over-page-actions #new-quote #quote-next {
  background: #adae90 !important;
  color: #0b0b0b;
}

/* =========================
   Soumission file tabs theming
   ========================= */
/* Scope to soumission layout only to avoid impacting other pages */
/* Ensure drop zone leaves room for tabs header consistently */
.content-right.soumi #drop-zone { top: 33px; }

.over-page-actions .actions-pad {
  padding: 18px 22px; /* increase breathing room */
  overflow: auto;           /* scroll inside panel */
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;           /* let content define height up to panel cap */
}
.over-page-actions .input-row textarea,
.over-page-actions .input-row input,
.over-page-actions .section .input-show,
.over-page-actions .section textarea {
  padding: 12px 14px; /* more comfortable inputs */
}
/* Ensure sticky actions don't push content and stay inside the panel */
.over-page-actions #new-quote .actions {
  margin-bottom: 0;
}
/* Reduce step container min-height within the panel so the box can shrink */
.over-page-actions #new-quote .tabs-steps { min-height: auto; }
.over-page-actions #new-quote .tabs-steps.is-loading { min-height: 120px !important; }
@media (max-width: 640px) { .over-page-actions #new-quote .tabs-steps.is-loading { min-height: 100px !important; } }

/* Dynamic step header and indicator */
.over-page-actions #new-quote .step-header { margin: 6px 0 10px; }
.over-page-actions #new-quote .step-title { font-family: 'Ggb', sans-serif; font-size: 2vw; color: #adae90; letter-spacing: -0.01em; }
.over-page-actions #new-quote .step-subtitle { font-family: 'Gg', sans-serif; font-size: 13px; color: #adae9091; margin-top: 2px; }
.over-page-actions #new-quote .step-indicator { list-style: none; display: flex; gap: 10px; margin: 8px 0 4px; padding: 0; }
.over-page-actions #new-quote .step-indicator li { 
  width: 18px; height: 18px; border-radius: 999px; background: #1a1a1a; border: 1px solid #3a3a3a; 
  display: flex; align-items: center; justify-content: center;
}
.over-page-actions #new-quote .step-indicator li::after { content: attr(data-step); font-family: 'Gg'; font-size: 11px; color: #aaaaaa; }
.over-page-actions #new-quote .step-indicator li.active { background: var(--brand-primary, #85875C); border-color: var(--brand-primary, #85875C); }
.over-page-actions #new-quote .step-indicator li.active::after { color: #0b0b0b; font-weight: 600; }
/* Compact first-step fields */
.over-page-actions #new-quote .tab-step-1 .input-row { margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.over-page-actions #new-quote .tab-step-1 .input-row label { font-size: 12px; margin: 0 0 3px 0; }
.over-page-actions #new-quote .tab-step-1 .section .input-show, 
.over-page-actions #new-quote .tab-step-1 .section input[type="text"],
.over-page-actions #new-quote .tab-step-1 .section input[type="email"] { padding: 8px 10px; }
/* Success/status box in panel */
.over-page-actions .quote-status { background: rgba(20,20,20,0.7); border: 1px solid #2a2a2a; color: #adae90; padding: 12px 16px; border-radius: 12px; margin: 8px 0; font-family: 'Gg'; font-size: 14px; }
/* Success panel visibility rules */
.over-page-actions #new-quote.success-visible .step-header,
/* Hide only the primary action bar (next/back) */
.over-page-actions #new-quote.success-visible > .actions { display: none !important; }
/* Hide only tab-step items, not the container, so the success panel inside can be shown */
.over-page-actions #new-quote.success-visible .tabs-steps .tab-step { display: none !important; }
.over-page-actions #new-quote.success-visible #quote-success { display: block !important; }
/* Success message text color */
.over-page-actions #quote-status-final { color: #adae90; }
/* Ensure labels keep brand color across duplicated blocks */
.over-page-actions .input-row label { color: #adae90 !important; }
/* Resumer table lines text */
.over-page-actions .line { color: #adae90; }
/* Input base + focus: brand highlight, remove white outlines */
.over-page-actions .input-row input,
.over-page-actions .input-row textarea,
.over-page-actions .section .input-show,
.over-page-actions .section textarea {
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Remove autofill halo (Chromium) */
.over-page-actions input:-webkit-autofill,
.over-page-actions textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #121210 inset !important;
  -webkit-text-fill-color: #ececec !important;
  caret-color: #ececec !important;
}
.over-page-actions .input-row input:focus,
.over-page-actions .input-row input:focus-visible,
.over-page-actions .input-row textarea:focus,
.over-page-actions .input-row textarea:focus-visible,
.over-page-actions .section .input-show:focus,
.over-page-actions .section .input-show:focus-visible,
.over-page-actions .section textarea:focus,
.over-page-actions .section textarea:focus-visible {
  outline: none !important;
  border-color: var(--brand-primary, #85875C) !important;
box-shadow: 0 0 0 2px rgba(133,135,92,0.20) !important;
}
/* Override ID-based legacy style for message field */
.over-page-actions #new-quote #form-msg-user,
#new-quote #form-msg-user {
  border: 1px solid #2a2a2a !important;
  background-color: #121210 !important;
  color: #adae90 !important;
  caret-color: #adae90 !important;
}
/* Never allow a light outline on focus */
#form-msg-user:focus, #form-msg-user:focus-visible {
  outline: none !important;
  border-color: var(--brand-primary, #85875C) !important;
  box-shadow: 0 0 0 2px rgba(133,135,92,0.20) !important;
}
