/*
Theme Name: Infraestrutura Cassettari
Theme URI: https://seusite.com
Author: Daniel Cassettari
Author URI: https://seusite.com
Description: Tema proprietário desenvolvido para alta performance e conversão.
Version: 1.0.0
Text Domain: cassettari
*/

/* --- 0. FONTES E VARIÁVEIS --- */
@font-face {
    font-family: 'Belove Roxenia';
    src: local('Belove Roxenia');
    font-weight: normal;
}

@font-face {
    font-family: 'Bell MT';
    src: local('Bell MT');
    font-weight: normal;
}

:root {
    --bg-absolute: #000000;
    --bg-support: #111111;
    --text-pure: #FFFFFF;
    --text-muted: #888888;
    --accent-blue: #5451D9;
    --ui-line: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-absolute);
    color: var(--text-pure);
    font-family: 'Bell MT', serif;
    overflow-x: hidden;
}

/* --- MÓDULO 01: HERO SECTION --- */
.hero-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 100vh;
    position: relative;
}

.ui-border-bottom {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    right: 5vw;
    height: 1px;
    background-color: var(--ui-line);
}

.ui-border-left {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 5vw;
    width: 1px;
    background-color: var(--ui-line);
}

.crosshair {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid var(--accent-blue);
    opacity: 0.5;
}
.ch-top-right { top: 40px; right: 5vw; border-bottom: none; border-left: none; }
.ch-bottom-right { bottom: 40px; right: 5vw; border-top: none; border-left: none; }

.content-wrapper {
    grid-column: 2 / 8;
    align-self: center;
    padding-left: 2vw;
    z-index: 10;
}

.eyebrow {
    font-family: 'Bell MT', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--accent-blue);
}

h1 {
    font-family: 'Belove Roxenia', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    font-weight: normal;
    margin-bottom: 35px;
    color: var(--text-pure);
}

h1 i {
    color: var(--text-muted);
    font-style: italic;
}

p.subtitle {
    font-family: 'Bell MT', serif;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    max-width: 500px;
    margin-bottom: 50px;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    background-color: transparent;
    color: var(--text-pure);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 1px solid var(--accent-blue);
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    letter-spacing: 3px;
}

.visual-placeholder {
    grid-column: 8 / 13;
    position: relative;
    height: 100vh;
    border-left: 1px solid var(--ui-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

.visual-label {
    position: absolute;
    bottom: 60px;
    left: 20px;
    font-family: 'Bell MT', serif;
    font-size: 0.7rem;
    color: var(--accent-blue);
    opacity: 0.4;
    letter-spacing: 1px;
    z-index: 2;
}

/* --- MÓDULO 1.5: MANIFESTO --- */
.manifesto-section {
    background-color: #FFFFFF;
    color: #000000;
    padding: 150px 10vw;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    align-items: start;
}

.manifesto-label {
    font-family: 'Bell MT', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-blue);
    text-transform: uppercase;
    padding-top: 15px;
}

.manifesto-text {
    font-family: 'Belove Roxenia', serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    line-height: 1.1;
    font-weight: normal;
}

@media (max-width: 900px) {
    .manifesto-section { padding: 100px 5vw; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 30px; }
    .manifesto-label { padding-top: 0; }
}

/* --- MÓDULO 02: PILARES DE ATUAÇÃO --- */
.pillars-section {
    padding: 120px 10vw;
    background-color: var(--bg-absolute);
    position: relative;
    border-top: 1px solid var(--ui-line);
}

.section-header {
    margin-bottom: 70px;
    grid-column: 1 / -1;
}

.technical-label {
    font-family: 'Bell MT', serif;
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    opacity: 0.8;
}

.section-header h2 {
    font-family: 'Belove Roxenia', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--text-pure);
    font-weight: normal;
    line-height: 1;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background-color: var(--ui-line);
    border: 1px solid var(--ui-line);
}

.pillar-card {
    background-color: var(--bg-absolute);
    padding: 50px 40px;
    position: relative;
    transition: background-color 0.4s ease;
}

.pillar-card:hover {
    background-color: #060606;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover::before {
    width: 100%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.pillar-id {
    font-family: 'Bell MT', serif;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.pillar-card:hover .pillar-id {
    color: var(--accent-blue);
}

.pillar-card h3 {
    font-family: 'Belove Roxenia', serif;
    font-size: 2rem;
    color: var(--text-pure);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: normal;
}

.pillar-card p {
    font-family: 'Bell MT', serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- MÓDULO 02.5: A DIREÇÃO --- */
.director-section {
    padding: 120px 10vw;
    background-color: var(--bg-absolute);
    border-top: 1px solid var(--ui-line);
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.director-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    border: 1px solid var(--ui-line);
    overflow: hidden;
}

.director-image .placeholder-img {
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.director-image:hover .placeholder-img {
    filter: grayscale(0%) contrast(1);
}

.director-content h2 {
    font-family: 'Belove Roxenia', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-pure);
    margin-bottom: 30px;
    font-weight: normal;
    line-height: 1;
}

.director-content p {
    font-family: 'Bell MT', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .director-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- MÓDULO 03: ARQUIVO E INTELIGÊNCIA --- */
.archive-section {
    padding: 120px 10vw;
    background-color: var(--bg-absolute);
    border-top: 1px solid var(--ui-line);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.archive-item {
    display: flex;
    flex-direction: column;
}

.item-link {
    text-decoration: none;
    display: block;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid var(--ui-line);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: grayscale(100%) contrast(1.2) brightness(0.6);
}

.item-link:hover .placeholder-img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1) brightness(1);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Bell MT', serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.item-category {
    color: var(--accent-blue);
}

.item-date {
    color: var(--text-muted);
}

.item-title {
    font-family: 'Belove Roxenia', serif;
    font-size: 1.8rem;
    color: var(--text-pure);
    line-height: 1.2;
    font-weight: normal;
    transition: color 0.3s ease;
}

.item-link:hover .item-title {
    color: var(--text-muted);
}

/* --- MÓDULO 04: FOOTER / SISTEMA --- */
.system-footer {
    background-color: var(--bg-absolute);
    border-top: 1px solid var(--ui-line);
    padding: 80px 10vw 40px;
    color: var(--text-pure);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.brand-name {
    font-family: 'Belove Roxenia', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.brand-sys {
    font-family: 'Bell MT', serif;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-label {
    display: block;
    font-family: 'Bell MT', serif;
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-nav a, .footer-social a {
    display: block;
    font-family: 'Bell MT', serif;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav a:hover, .footer-social a:hover {
    color: var(--text-pure);
    padding-left: 5px;
}

.footer-cta {
    color: var(--accent-blue) !important;
    margin-top: 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ui-line);
    padding-top: 30px;
    font-family: 'Bell MT', serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sys-status {
    color: var(--accent-blue);
    letter-spacing: 1px;
}

/* --- MÓDULO 04: FORMULÁRIO DE DIAGNÓSTICO --- */
.custom-form .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.custom-form label {
    font-family: 'Bell MT', serif;
    font-size: 1rem; /* Aumentado ligeiramente para compensar a troca de fonte */
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--ui-line);
    color: var(--text-pure);
    font-family: 'Bell MT', serif;
    font-size: 1.2rem;
    padding: 10px 0;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-blue);
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
    color: #444;
}

.custom-form select option {
    background-color: var(--bg-absolute);
    color: var(--text-pure);
}

@media (max-width: 900px) {
    .diagnostic-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    .diagnostic-form-wrapper {
        padding: 30px !important;
    }
}

/* --- MÓDULO 05: BLOG & ARQUIVO --- */
.archive-section {
    padding: 150px 5vw 100px;
    background-color: var(--bg-absolute);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.archive-item {
    border-bottom: 1px solid var(--ui-line);
    padding-bottom: 30px;
    transition: transform 0.3s ease;
}

.item-link {
    text-decoration: none;
    display: block;
}

.archive-item .image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--ui-line);
}

.archive-item .placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.item-link:hover .placeholder-img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.item-meta {
    display: flex;
    gap: 15px;
    font-family: 'Bell MT', serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.item-category {
    color: var(--text-pure);
    font-weight: bold;
}

.item-title {
    font-family: 'Belove Roxenia', serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-pure);
    font-weight: normal;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- MÓDULO 06: RODAPÉ RESPONSIVO --- */
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Força tudo a empilhar numa única coluna */
        gap: 40px;
    }
}

/* --- RESPONSIVIDADE GLOBAL --- */
@media (max-width: 900px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        padding-top: 100px;
    }
    .visual-placeholder {
        display: none;
    }
    .content-wrapper {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .pillars-section, .archive-section, .system-footer {
        padding: 80px 5vw;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}