:root {
    --color-primary: #1C365B;
    --color-secondary: #A8A8A8;
}/* --- DNA INJECTED --- */

/* 
   Q-Empresarial Template CSS
   Visual identity: Agência Quadri brand (Worldbuilding Methodology)
   Typography: Poppins (300, 500, 700)
   Colors: Vermelho Yin (#FF0033) & Azul Yang (#0033FF)
*/

/* --- Brand Colors --- */
:root {
    --q-red: #FF0033;
    --q-blue: #0033FF;
}

/* --- Brand Typography --- */
@font-face {
    font-family: 'Poppins';
    src: url('../../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 300;
    /* Regular used for Light */
}

@font-face {
    font-family: 'Poppins';
    src: url('../../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* --- Brand-specific Light Mode --- */
body.light-mode .layout-padrao-cromatico .color-info-item p,
body.light-mode .layout-padrao-cromatico .f-text {
    color: rgba(17, 17, 17, 0.85);
}

body.light-mode .layout-padrao-cromatico .color-info-item h3,
body.light-mode .slide-h3 h3,
body.light-mode .glass-card h2 {
    color: #111111;
}

body.light-mode .layout-index a {
    color: rgba(17, 17, 17, 0.8);
}

body.light-mode .layout-padrao-cromatico .f-item span,
body.light-mode .layout-strategy-intro .slug {
    color: rgba(17, 17, 17, 0.5);
}

body.light-mode .badge-secondary-arch {
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.1);
    color: rgba(17, 17, 17, 0.8);
}

body.light-mode .term-box {
    background: rgba(17, 17, 17, 0.03);
    color: #111111;
}

body.light-mode .term-box.positive {
    background: rgba(0, 204, 106, 0.15);
    border-color: #00cc6a;
}

body.light-mode .term-box.negative {
    background: rgba(230, 57, 70, 0.15);
    border-color: #e63946;
}

body.light-mode th {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--q-blue);
}

body.light-mode td {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #111111;
}

body.light-mode tr:hover td {
    background: rgba(0, 0, 0, 0.05);
}

/* --- Heading Hierarchy --- */
.slide-inner h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.slide-h2 h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--q-blue);
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* Educational Slides Differentiation */
.glass-card h2 {
    font-weight: 300;
    color: var(--q-ice);
}

.slide-h3 h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--q-ice);
    letter-spacing: -1px;
    text-transform: uppercase;
}

p {
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 254, 0.8);
}

/* --- Brand Spheres --- */
.sphere-1 {
    width: 50vw;
    height: 50vw;
    top: -10%;
    right: -10%;
    opacity: 0.25;
    background: radial-gradient(circle, var(--q-blue) 0%, transparent 70%);
    animation: pulseYang 15s infinite alternate;
}

.sphere-2 {
    width: 35vw;
    height: 35vw;
    bottom: -5%;
    left: 5%;
    opacity: 0.15;
    background: radial-gradient(circle, var(--q-red) 0%, transparent 70%);
    animation: orbitYin 25s infinite linear;
}

@keyframes pulseYang {
    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

@keyframes orbitYin {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10vw, -10vh); }
    66% { transform: translate(-5vw, -20vh); }
}

/* --- Progress Bar (brand gradient) --- */
#progress-bar {
    background: linear-gradient(90deg, var(--q-blue), var(--q-red));
}

/* --- Button Hovers (brand color) --- */
.index-btn:hover,
.fullscreen-btn:hover,
.theme-toggle-btn:hover,
.download-btn:hover {
    background: var(--q-blue);
    border-color: var(--q-blue);
    transform: scale(1.1);
}

.btn-q:hover {
    background: var(--q-blue);
    border-color: var(--q-blue);
    transform: scale(1.1);
}

/* --- Layout: Index --- */
.layout-index ul {
    column-count: 2;
    column-gap: 4rem;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    font-size: 0.9em;
}

.layout-index a {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.layout-index a:hover {
    color: var(--q-red);
    transform: translateX(8px);
}

/* --- Layout: Cores (Overlapping Circles) --- */
.layout-cores .slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 8% !important;
}

.layout-cores .colors-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    grid-template-rows: auto 1fr;
    gap: 2rem 4rem;
    align-items: center;
}

.layout-cores .colors-title {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.layout-cores .swatches-display {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-cores .swatch {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.layout-cores .swatch:hover {
    transform: scale(1.05);
}

.layout-cores .swatch-primary {
    width: 280px;
    height: 280px;
    background: var(--color-primary, var(--q-blue));
    position: absolute;
    top: 0;
    left: 10%;
    z-index: 1;
}

.layout-cores .swatch-secondary {
    width: 200px;
    height: 200px;
    background: var(--color-secondary, var(--q-red));
    position: absolute;
    bottom: 10%;
    right: 15%;
    z-index: 2;
    border: 10px solid var(--q-bg, #0a0a0a);
}

.layout-cores .color-info-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.layout-cores .color-info-item h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.layout-cores .color-info-item p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    max-width: 90%;
}

.layout-cores .functional-area {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dotted rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.layout-cores .functional-swatches {
    display: flex;
    gap: 2rem;
    flex: 0 0 auto;
}

.layout-cores .f-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.layout-cores .f-item span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.layout-cores .f-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.layout-cores .f-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    max-width: 500px;
    font-style: italic;
}

/* --- Layout: Strategy Intro --- */
.layout-strategy-intro .slide-inner {
    display: flex;
    flex-direction: column;
}

.layout-strategy-intro .slug {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    order: 1;
}

.layout-strategy-intro .client-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--q-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    order: 2;
}

.layout-strategy-intro h1 {
    order: 3;
}

/* --- Lists & Tables --- */
ul:not(.index-list) {
    list-style: none;
    padding: 0;
}

li {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--q-red);
    border-radius: 50%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 1.5rem;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--q-blue);
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Palette Title --- */
.colors-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--q-blue);
    text-transform: uppercase;
    margin-bottom: 5vh;
    letter-spacing: -1px;
}

/* --- Logo --- */
@keyframes logoAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.logo-main {
    width: 320px;
    filter: drop-shadow(0 0 40px rgba(0, 51, 255, 0.4));
    animation: logoAppear 1.5s ease forwards;
}

.logo-light {
    display: none !important;
}

.light-mode .logo-dark {
    display: none !important;
}

.light-mode .logo-light {
    display: inline-block !important;
}

/* --- Layout: Archetype (Layout Premium Aprovado) --- */
.layout-arquetipo .slide-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 2vh 5vw !important;
}

.archetype-container {
    display: flex;
    gap: 4.5rem;
    align-items: center;
    width: 100%;
}

.archetype-image {
    flex: 0 0 38%;
    position: relative;
}

.archetype-image img {
    width: 100%;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.archetype-content {
    flex: 1;
}

.badge-priority {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.badge-primary-arch {
    background: var(--color-primary, #007bff);
    color: white;
}

.badge-secondary-arch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.archetype-terms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.term-box {
    padding: 2.5rem;
    border-radius: 2.5rem;
    position: relative;
    overflow: hidden;
}

.term-box.positive {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.15);
}

.term-box.negative {
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid rgba(255, 51, 102, 0.15);
}

.term-box h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.term-box.positive h4 { color: #00ff88; }
.term-box.negative h4 { color: #ff3366; }

.term-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.term-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--q-ice);
}

/* --- Layout: Cores Técnico --- */
.layout-cores-tecnico .slide-inner {
    padding: 2vh 8% !important;
}

.technical-container {
    width: 100%;
}

.technical-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--q-blue);
    text-transform: uppercase;
    margin-bottom: 4vh;
    letter-spacing: -1px;
}

.technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
}

.technical-col {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.tech-swatch {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.tech-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--q-ice);
}

.tech-hex {
    font-size: 1rem;
    color: var(--q-ui-text);
    font-family: monospace;
    margin-bottom: 2vh;
}

.tech-specs {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1.2vh 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.tech-spec-row .label {
    color: var(--q-ui-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-spec-row .value {
    font-weight: 600;
    color: var(--q-ice);
}

/* --- Light Mode: Special Slides --- */
body.light-mode .archetype-name,
body.light-mode .tech-name,
body.light-mode .tech-spec-row .value {
    color: #111;
}

body.light-mode .archetype-description,
body.light-mode .term-tag,
body.light-mode .tech-hex,
body.light-mode .color-info-item h3,
body.light-mode .colors-title {
    color: #111;
}

body.light-mode .color-info-item p,
body.light-mode .f-text,
body.light-mode .f-item span {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .swatch-secondary {
    border-color: #fff;
}

body.light-mode .functional-area {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .f-circle {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .tech-spec-row {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .badge-priority {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .tech-spec-row .label {
    color: rgba(0,0,0,0.6);
}

body.light-mode .archetype-image-wrapper {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

body.light-mode .term-box.positive {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 179, 96, 0.2);
}

body.light-mode .term-box.negative {
    background: rgba(255, 51, 102, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

body.light-mode .term-tag {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}
