/*
Theme Name: PersonH Law Firm
Theme URI: https://exemplo.com/personh
Author: PersonH
Author URI: https://exemplo.com
Description: Tema WordPress profissional totalmente personalizável. Controle completo via Customizer: habilite/desabilite seções e conteúdos, toggles para organização, Gutenberg completo, formulário funcional. Flexibilidade máxima para criar o site perfeito!
Version: 1.4.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personh
Tags: business, law, professional, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready, block-styles, wide-blocks, editor-style
*/

/* Geral */
:root {
    --main-color: #d92123;
    --primary-text-color: #fff;
    --secondary-text-color: #191919;
    --secondary-color: #868686;
    --tertiary-color: #eff3f4;
    --secondary-bg-color: #5c1011;
	--contact-bg-color: #273844;
}

* {
    font-family: "Lato", sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
}

input[type="submit"],
button {
    cursor: pointer;
}

i {
    background-color: var(--main-color);
    color: var(--primary-text-color);
    font-size: 2.5rem;
    padding: 2rem;
}

/* Cabeçalho e banner */
#header {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    color: var(--primary-text-color);
/*     margin-bottom: 2rem; */
    position: relative;
}

#inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#brand {
    background-color: var(--main-color);
    padding: 1rem;
    margin: 0;
}



#navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4rem;
}

#navbar li {
    margin: 0;
}

#navbar a {
    color: var(--primary-text-color);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s;
}

#navbar a:hover {
    opacity: 0.8;
}



.banner.active {
    opacity: 1;
}

.content-banner {
    max-width: 50%;
    padding: 4rem;
    opacity: 0;
    position: absolute;
    transition: 0.6s;
}

.content-banner h2 {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.content-banner p {
    font-size: 1.5rem;
}

.square {
    display: block;
    width: 150px;
    height: 150px;
    background-color: var(--main-color);
    position: absolute;
    z-index: 1;
    left: 20px;
    top: 40px;
}

.dots {
    display: flex;
    gap: 2rem;
    position: absolute;
    bottom: 3rem;
    left: 3rem;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    cursor: pointer;
}

.dot.active {
    background-color: var(--main-color);
}

/* Seções de texto e imagem */
.text-image-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.text-container {
    flex: 2 1 0;
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.section-subtitle {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--main-color);
}

.section-title {
    color: var(--secondary-text-color);
    font-size: 2rem;
    line-height: 1.4;
}

.btn {
    padding: 1.2rem 1.8rem;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: bold;
    background-color: var(--main-color);
    color: var(--primary-text-color);
    align-self: end;
    display: inline-block;
    transition: opacity 0.3s;
    border: none;
}

.btn:hover {
    opacity: 0.9;
}

.image-container {
    flex: 1 1 300px;
    position: relative;
}

.image-container i {
    position: absolute;
}

/* Áreas de atuação */
#expertise-areas {
    padding: 0 2rem;
}

#other-services {
    width: 100%;
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.service {
    position: relative;
    flex: 1;
}

.service i {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1rem;
    font-size: 1.5rem;
}

.service-info {
    background-color: var(--tertiary-color);
    padding: 2rem 1.4rem;
    min-height: 250px;
    margin-top: -3rem;
    z-index: 2;
    position: relative;
}

.service h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service p {
    line-height: 1.6;
}

/* Forms */

.compliance-form {
    max-width: 600px;
    margin: auto;
	padding: 3rem;
}

.compliance-form h1,  .compliance-form p{
	margin-bottom: 2rem;
}

.compliance-form input,
.compliance-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.compliance-form button {
    background: #F28C28;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.compliance-form button:hover {
    background: #D97706;
}

.success-message {
    background: #d4edda;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Sobre nós */
#about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

#about-text {
    background-size: cover;
    background-position: center;
    color: var(--primary-text-color);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 3rem;
}

#about-text .section-subtitle,
#about-text .section-title {
    color: var(--primary-text-color);
}

#about-text i {
    background-color: transparent;
}

.about-description {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-description h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.about-description p {
    line-height: 1.6;
}

#about-data {
    flex: 1 1 0;
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
}

#about-data .data {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: -1px;
    margin-left: -1px;
}

#about-data .data:first-child {
    border-bottom: 1px solid var(--secondary-text-color);
    border-right: 1px solid var(--secondary-text-color);
}

#about-data .data:nth-child(2) {
    border-bottom: 1px solid var(--secondary-text-color);
    border-left: 1px solid var(--secondary-text-color);
}

#about-data .data:nth-child(3) {
    border-top: 1px solid var(--secondary-text-color);
    border-right: 1px solid var(--secondary-text-color);
}

#about-data .data:last-child {
    border-top: 1px solid var(--secondary-text-color);
    border-left: 1px solid var(--secondary-text-color);
}

#about-data .data i {
    background-color: transparent;
    color: var(--main-color);
    font-size: 4rem;
    padding: 0;
}

.data .number {
    font-size: 4rem;
    font-weight: 900;
}

.data .text {
    text-transform: uppercase;
}

/* Depoimentos */
#testimonials {
    display: flex;
    align-items: center;
    padding: 2rem;
}

#testimonial-information {
    padding: 3rem;
}

.author {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.author .author-name {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.author .author-job {
    color: var(--secondary-text-color);
}

.author img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Colaboradores */
#team {
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem;
}

#team h2 {
    font-size: 3rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}

#team h2 span {
    color: var(--main-color);
}

#team .square {
    background-color: var(--tertiary-color);
    width: 100px;
    height: 100px;
    left: 50%;
    margin-left: -50px;
    top: -25px;
}

.employees {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
}

.employee {
    flex: 1 1 200px;
    max-width: 300px;
}

.employee img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.employee-name {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.employee-role {
    color: var(--secondary-text-color);
}

/* Contato */
#contact {
    background-color: var(--contact-bg-color);
    gap: 0;
    padding-bottom: 5rem;
}

#contact-information {
    position: relative;
    text-align: left;
    padding: 3rem;
    flex: 1 1 0;
}

#contact-information .section-subtitle {
    color: var(--primary-text-color);
}

#contact-information i {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-text-color);
    color: var(--main-color);
}

#contact-information form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-information .form-control {
    display: flex;
    gap: 1rem;
}

#contact-information input,
#contact-information textarea {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
}

#contact-information textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-information .btn {
    align-self: start;
    border: 2px solid var(--primary-text-color);
    font-size: 1.2rem;
    transition: 0.4s;
    background-color: var(--main-color);
}

#contact-information .btn:hover {
    background-color: var(--primary-text-color);
    color: var(--main-color);
}

/* Rodapé */
#footer {
    color: var(--primary-text-color);
    background-color: var(--secondary-bg-color);
    display: flex;
    justify-content: space-around;
    padding: 3rem 3rem 1rem;
    flex-wrap: wrap;
    gap: 2rem;
	
}

#footer i {
    font-size: 1rem;
    padding: 0.3rem;
}

#footer a {
    color: var(--primary-text-color);
    transition: opacity 0.3s;
}

#footer a:hover {
    opacity: 0.7;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

.contact-info,
.links-container {
    flex: 1 1 200px;
    max-width: 300px;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand h2 {
    background-color: var(--main-color);
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info p i {
    background-color: transparent;
    padding: 0;
    color: var(--main-color);
    margin-right: 0.5rem;
}

.social-networks p {
    margin-bottom: 1rem;
}

.networks {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

#footer .networks i {
    padding: 1rem;
}

.links-container h4 {
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.links-container nav {
    display: flex;
    flex-direction: column;
}

.links-container nav a {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
}

.phone-number {
    display: flex;
    border: 1px solid var(--main-color);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.phone-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Menu Mobile */
#menu,
#close-menu {
    font-size: 2rem;
    padding: 1rem;
    display: none;
    cursor: pointer;
}

#close-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
}

/* #mobile-navbar {
    position: fixed;
    top: 0;
    left: 100%;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem;
    transition: 0.4s;
    z-index: 5;
}

#mobile-navbar.menu-active {
    left: 0;
}

#mobile-navbar a {
    color: var(--primary-text-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--main-color);
} */

#mobile-navbar{
    position: fixed;
    top: 0;
    left: 100%;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem;
    transition: 0.4s;
    z-index: 5;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#mobile-navbar ul {
    position: fixed;
    top: 0;
    left: 100%;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem;
    transition: 0.4s;
    z-index: 5;
    list-style: none;
    margin: 0;
    width: 100%;
}

#mobile-navbar li {
    width: 100%;
}

#mobile-navbar a {
    display: block;
    color: var(--primary-text-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--main-color);
    text-decoration: none;
}

#mobile-navbar.menu-active{
    left: 0;
}

#mobile-navbar.menu-active ul {
    left: 0;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   TOGGLES / ACCORDIONS
   ======================================== */

/* Estilo geral dos toggles */
.toggle-content {
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.toggle-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
}

.toggle-btn:hover i {
    color: var(--secondary-bg-color);
}

.toggle-btn:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Animação suave do ícone */
.toggle-btn i {
    transition: transform 0.3s ease, color 0.2s ease;
    display: inline-block;
}

/* Estilos para serviços com toggle */
.service .service-info h4 {
    user-select: none;
    transition: color 0.2s ease;
}

.service .service-info h4:hover {
    color: var(--main-color);
}

.service .toggle-content {
    margin-top: 0;
}

.service .service-info h4 .toggle-btn[aria-expanded="true"] ~ .toggle-content {
    margin-top: 1rem;
}

/* Estilos para equipe com toggle */
.team-member h4 {
    user-select: none;
    transition: color 0.2s ease;
}

.team-member h4:hover {
    color: var(--main-color);
}

.team-member .toggle-content {
    margin-top: 0;
}

/* Estilos para diferenciais com toggle */
.differential h4 {
    user-select: none;
    transition: color 0.2s ease;
}

.differential h4:hover {
    color: var(--main-color);
}

.differential .toggle-content {
    margin-top: 0;
}

/* Botões globais de toggle */
.global-toggles {
    animation: fadeIn 0.5s ease;
}

.global-toggle-btn i {
    font-size: 1rem;
}

.global-toggle-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

/* Indicador visual quando item está expandido */
.toggle-btn[aria-expanded="true"] {
    color: var(--secondary-bg-color) !important;
}

/* Adicionar borda sutil quando expandido */
.service:has(.toggle-btn[aria-expanded="true"]),
.team-member:has(.toggle-btn[aria-expanded="true"]),
.differential:has(.toggle-btn[aria-expanded="true"]) {
    border-left: 3px solid var(--main-color);
    padding-left: 1rem;
    transition: all 0.3s ease;
}

/* Melhorias de acessibilidade */
.toggle-btn:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Animação ao expandir */
@keyframes expandContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-content[style*="max-height"][style*="opacity: 1"] {
    animation: expandContent 0.3s ease;
}

/* Responsivo */
@media (max-width: 768px) {
    /* Geral */
    i {
        padding: 1.5rem;
        font-size: 2rem;
    }

    /* Navbar */
    #navbar {
        display: none;
    }

    #menu,
    #close-menu {
        display: block;
    }

    /* Banner */
    .content-banner {
        max-width: 100%;
        padding: 4rem 2rem;
    }

    .content-banner h2 {
        font-size: 2.5rem;
    }

    .content-banner p {
        font-size: 1.2rem;
    }

    /* Áreas de atuação */
    .btn {
        align-self: initial;
    }

    .image-container {
        flex: 1 1 100%;
    }

    #other-services {
        flex-direction: column;
    }

    /* Sobre nós */
    #about {
        gap: 0;
    }

    #about-text,
    #about-data {
        flex: 1 1 100%;
    }

    .about-description {
        gap: 1rem;
    }

    .about-description i {
        padding: 0;
        min-width: 40px;
        font-size: 2rem;
    }

    #about-data .data {
        width: 100%;
        border: none !important;
        border-bottom: 1px solid var(--secondary-text-color) !important;
    }

    #about-data .data:last-child {
        border-bottom: none !important;
    }

    /* Depoimentos */
    .text-container {
        text-align: center;
        padding: 2rem;
    }

    .author {
        justify-content: center;
    }

    /* Colaboradores */
    #team h2 {
        font-size: 2rem;
    }

    .employees {
        flex-direction: column;
        align-items: center;
    }

    .employee {
        max-width: 250px;
    }

    /* Contato */
    #contact {
        padding-bottom: 0;
    }

    #contact-information {
        padding: 7rem 1rem 3rem;
    }

    #contact-information .form-control {
        flex-direction: column;
    }

    #contact-information .btn {
        align-self: auto;
    }

    /* Rodapé */
    #footer {
        flex-direction: column;
    }

    #footer i {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

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

    .networks {
        margin-bottom: 2rem;
        justify-content: center;
    }

    .contact-info,
    .links-container {
        max-width: 100%;
        width: 100%;
    }

    .links-container h4 {
        margin-bottom: 1.5rem;
    }
}
