/* Definições Globais e Variáveis */
:root {
    --color-primary: #FFF159; 
    --color-secondary: #0928C0; 
    --color-text-dark: #0D0C38;
    --color-text-body: #1A1A1A;
    --color-panel-bg: rgba(217, 217, 217, 0.9); /* Aumentei opacidade para melhor leitura */
    --color-panel-header: #D9D9D9; 

    --font-title: 'Anton', sans-serif;
    --font-heading: 'Bakbak One', cursive;
    --font-body: 'Inter', sans-serif;

    --header-height: 162px;
    --footer-height: 93px;
    --max-content-width: 1440px;
}

/* ------------------ Base (Desktop / Padrão) ------------------ */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-body);
}

body {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

body::before {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-image: url('SITE CT IMAGENS/Images  Site CT/Quem Somos Pagina 6.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: -1;
}

.container {
    position: relative;
    min-height: 100vh;
}

/* --- Header Padrão --- */
.header {
    width: 100%;
    height: var(--header-height);
    background: var(--color-primary);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.header__content-area {
    max-width: var(--max-content-width);
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header__logo-and-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Espaçamento de até 2 cm */
}

.header__logo {
    width: 132px;
    height: 101px;
}

.header__title {
    font-family: var(--font-title);
    font-size: 96px;
    color: var(--color-text-dark);
    letter-spacing: 2.88px;
    margin: 0;
    text-align: center;
}

.header__nav-top {
    position: absolute;
    top: 128px;
    left: 50%;
    transform: translateX(-50%);
}

.header__nav-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px; 
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-secondary);
    text-decoration: none;
    letter-spacing: 0.72px;
    white-space: nowrap;
}

/* --- Main Padrão --- */
.conteudo-principal {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    z-index: 1;
}


.background-decorativo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('SITE CT IMAGENS/Images  Site CT/Canais Pagina 2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}

.content-wrapper {
    max-width: var(--max-content-width);
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 130px; 
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.highlight-panel {
    max-width: 1079px; /* Mantemos max-width para desktop */
    width: 75%; /* Mais flexível que 1079px fixo */
    background: var(--color-panel-bg);
    padding: 0;
    box-sizing: border-box;
    min-height: 538px;
}

.panel__header-box {
    width: 100%;
    height: 112px;
    background: var(--color-panel-header);
    margin-bottom: 25px;
}

.highlight-panel__content {
    padding: 0 30px 30px 30px;
}

.highlight-panel__content p {
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
}

/* --- Footer Padrão --- */
.footer {
    width: 100%;
    height: var(--footer-height);
    background: var(--color-primary);
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.footer__nav a {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-secondary);
    text-decoration: none;
    letter-spacing: 0.72px;
    margin: 0 30px;
}



/* ========================================================= */
/* ------------------ RESPONSIVIDADE (TABLET) ------------------ */
/* ========================================================= */
@media (max-width: 1200px) {
    /* Ajustes para telas grandes de tablet e laptops menores */
    .header__logo {
        width: 100px;
        height: 76px;
    }

    .header__title {
        font-size: 72px; /* Reduz o tamanho do título */
    }

    .header__nav-top {
        top: 100px; /* Sobe um pouco a navegação */
    }

    .nav__link {
        font-size: 20px;
    }

    .highlight-panel {
        width: 85%; /* Painel ocupa mais largura */
    }

    .highlight-panel__content p {
        font-size: 20px; /* Reduz o tamanho do texto */
    }

    /* Imagem de fundo responsiva para tablet */
    .background-decorativo {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}


/* ========================================================= */
/* ------------------ RESPONSIVIDADE (CELULAR) ------------------ */
/* ========================================================= */
@media (max-width: 768px) {
    
    /* 1. VARIÁVEIS DE ALTURA E PADDING */
    :root {
        --header-height: 100px; /* Reduz a altura do header */
        --footer-height: 70px;  /* Reduz a altura do footer */
    }

    /* 2. BODY E CONTAINER */
    body {
        /* Ajusta o padding do body com as novas alturas */
        padding-top: var(--header-height);
        padding-bottom: var(--footer-height);
    }

    /* 3. CABEÇALHO (HEADER) */
    .header {
        height: var(--header-height);
    }
    
    .header__logo {
        position: static; /* Remove posicionamento absoluto */
        width: 80px;
        height: 60px;
        margin-right: 10px;
    }

    .header__content-area {
        display: flex;
        flex-direction: column; /* Empilha logo, título e nav */
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .header__title {
        position: static;
        transform: none; /* Remove a transformação de centralização */
        font-size: 32px; /* Título bem menor no celular */
        width: auto;
    }

    .header__nav-top {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 5px;
    }
    
    .header__nav-top ul {
        flex-wrap: wrap; /* Quebra a linha se a tela for muito estreita */
        gap: 10px 15px; /* Espaçamento menor entre os links */
        justify-content: center;
    }

    .nav__link {
        font-size: 16px;
    }

    /* 4. CONTEÚDO PRINCIPAL (MAIN) */
    .content-wrapper {
        margin-top: 30px; /* Reduz a margem superior */
    }

    .highlight-panel {
        width: 90%; /* Painel ocupa quase toda a largura */
        min-height: auto; /* Deixa a altura ser definida pelo conteúdo */
    }

    .panel__header-box {
        height: 80px; /* Altura do cabeçalho do painel reduzida */
        margin-bottom: 15px;
    }

    .highlight-panel__content {
        padding: 0 15px 15px 15px; /* Reduz o padding interno */
    }

    .highlight-panel__content p {
        font-size: 16px; /* Texto menor para leitura em celular */
        letter-spacing: normal;
        margin-bottom: 10px;
    }
    
    .highlight-panel__content .emoji {
        font-size: 24px;
    }


    /* 5. RODAPÉ (FOOTER) */
    .footer {
        height: var(--footer-height);
    }

    .footer__nav {
        display: flex;
        flex-direction: column; /* Empilha os links verticalmente */
        text-align: center;
    }

    .footer__nav a {
        font-size: 14px;
        margin: 5px 0; /* Espaçamento vertical */
    }

    /* Imagem de fundo responsiva para celular */
    .background-decorativo {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}
