/*
Theme Name: CF TRANSPORTES E LOGÍSTICA LTDA
Theme URI: http://cftranslog.test
Author: Lucas F. Lima
Author URI: https://github.com/Quantum-Theorem
Description: Tema criado para a CF Transportes e Logística
Version: 1.0
*/

:root {
    --primary: #FF7B1E;
    --foreground: #0A4068;
}

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

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    background: whitesmoke;
    font-family: 'Roboto', sans-serif;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-block-separator {
    margin-bottom: 1rem;
}

/* ===============================
   UTILITÁRIOS ESTILO TAILWIND
================================= */

/* Cores de fundo */
.bg-dark {
    background-color: #111111;
}

.bg-light {
    background-color: #f5f5f5;
}

.bg-primary {
    background-color: #2563eb;
}

/* azul */
.bg-secondary {
    background-color: #6b7280;
}

/* cinza */

/* Cores do texto */
.text-white {
    color: #ffffff;
}

.text-dark {
    color: #111111;
}

.text-primary {
    color: #2563eb;
}

.text-secondary {
    color: #6b7280;
}

.text-muted {
    color: #aaa;
    /* cinza claro sobre fundo escuro */
    font-size: 0.875rem;
    /* opcional: menor que o texto normal */
}

/* Espaçamento */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-4 {
    margin: 1rem;
}

.m-6 {
    margin: 1.5rem;
}

/* Layout flex */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-4 {
    gap: 1rem;
}

/* Tamanhos */
.w-full {
    width: 100%;
}

.w-1\/2 {
    width: 50%;
}

.w-1\/3 {
    width: 33.3333%;
}

.w-2\/3 {
    width: 66.6667%;
}

.w-1\/4 {
    width: 25%;
}

.w-3\/4 {
    width: 75%;
}

.h-full {
    height: 100%;
}

.max-w-screen {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tipografia */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-3xl {
    font-size: 1.875rem;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1px;
}

.mb-2 {
    margin-bottom: 4px;
}

.mb-3 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 24px;
}

/* Bordas */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Sombras */
.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.object-cover {
    object-fit: cover;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.z-10 {
    z-index: 10;
}

.opacity-60 {
    opacity: 0.6;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--foreground);
    font-weight: bold;
    transition: opacity 320ms linear;
}

.btn-primary:hover {
    opacity: .75;
}

.btn-secondary {
    background-color: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.card {
    background-color: #fff;
    border-radius: 0.5rem;
    /* cantos arredondados */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* sombra */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 16rem;
    /* 64 = 16rem */
    object-fit: cover;
}

.card h3 {
    color: #111;
}

.card p {
    color: #555;
    line-height: 1.5;
}

/* MAIN */
.main {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* HEADER */
.header {
    padding: 1rem;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.header_menu a {
    font-weight: 600;
    transition: opacity 0.2s;
}

.header_menu a:hover {
    /* color: var(--foreground); */
    opacity: .75;
}

.logo img {
    height: 48px;
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    text-align: center;
}

.agency {
    min-height: 80vh;
    /* background: gainsboro; */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ABOUT */
.about {
    min-height: 80vh;
    background: gainsboro;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about div p {
    margin: 1rem 0;
    max-width: 80%;
    text-align: center;
}

.blog {
    min-height: 80vh;
    background: gainsboro;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact {
    background-color: #111;
    color: #fff;
    min-height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact .text-muted {
    color: #aaa;
}

.contact .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--foreground);
    transition: opacity 0.3s;
}

.contact .btn:hover {
    opacity: 0.8;
}

.contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact ul li {
    margin-bottom: 0.5rem;
}

.contact .email {
    color: lightskyblue;
    font-weight: bold;
}

.overlay {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ocupa 100% da altura da viewport */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.overlay.contact {
    height: 80vh;
}

/* Vídeo de fundo */
.overlay video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(25%);
    /* escurece o vídeo */
}

/* Texto por cima do vídeo */
.overlay .text {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 720px;
}

.overlay h1 {
    font-size: 62px;
}
.overlay p {
    font-size: 20px;
    color: #aaa;
}
.overlay .btn.btn-primary {
    background-color: var(--primary);
    color: var(--foreground);
    padding: 0.5rem 1rem; /* menos espaçamento interno */
    border-radius: 0.25rem; /* cantos menores */
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    transition: all 320ms linear;
}
.overlay .btn.btn-primary:hover {
    opacity: .75;
}

.avatar {
    width: 320px;
    height: 320px;
    overflow: hidden;
}

.news-article {
    max-width: 840px;
    margin: 3rem auto;
    /* font-family: 'Merriweather', serif; */
    color: #222;
    line-height: 1.8;
    padding: 0 1.5rem;
}

.news-thumb img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-header {
    margin-bottom: 2rem;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-meta {
    font-size: 0.875rem;
    color: #888;
}

.news-meta span {
    margin-right: 1rem;
}

.news-author {
    font-style: italic;
}

.news-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Imagens internas do post */
.news-content img {
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Listas */
.news-content ul,
.news-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

/* Tabelas */
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.news-content table th,
.news-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.news-content table th {
    background-color: #f5f5f5;
    text-align: left;
}

/* Citações */
.news-content blockquote {
    border-left: 4px solid #FF7B1E;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 1.5rem 0;
}

/* Rodapé do post */
.news-footer {
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.news-navigation a {
    color: #FF7B1E;
    text-decoration: none;
}

.news-navigation a:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVO
================================= */
@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }

    .news-content p {
        font-size: 1rem;
    }

    .news-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .agency, .about, .blog {
        padding: 2rem 0;
    }

    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
    }
}

@media (max-width: 640px) {
    .overlay h1 {
        font-size: 40px;
    }

    .overlay p {
        font-size: 16px;
    }

    .overlay .text {
        max-width: 100%;
    }

    .avatar {
        width: 280px;
        height: 280px;
    }

    .agency, .about, .blog {
        padding: 2rem 0;
    }

    .about div p {
        margin: 1rem 0;
        max-width: 100%;
        text-align: center;
    }

    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
    }
}
