/* Estilos gerais */
:root {
    --primary-color: #D22226; /* Vermelho do logo */
    --secondary-color: #AA1C20; /* Vermelho mais escuro */
    --accent-color: #2A2A2A; /* Cinza escuro quase preto */
    --dark-graphite: #222222; /* Cinza grafite escuro para o cabeçalho */
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --text-color: #414141;
    
    /* Medidas em vh/vw */
    --header-height: 8vh;
    --section-padding: 8vh 0;
    --card-padding: 1.5vw;
    --element-spacing: 1vh;
    --border-radius: 0.6vw;
}

body, html {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.section-title {
    position: relative;
    margin-bottom: 2.5vh;
    font-size: 2.5vw;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -1.5vh;
    left: 0;
    width: 5vw;
    height: 0.3vh;
    background-color: var(--accent-color);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-padding {
    padding: 6vh 0;
}

/* Header */
header {
    background-color: var(--dark-graphite);
    box-shadow: 0 0.2vh 1vw rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

header.scrolled {
    padding: 0.5vh 0;
    box-shadow: 0 0.5vh 2vw rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2vw;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5vh 1vw !important;
    margin: 0 0.2vw;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 0;
    margin-top: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Hero section */
.hero-section {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + 2vh);
}

.hero-title {
    font-size: 3.5vw;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2vh;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.2vw;
    margin-bottom: 2.5vh;
    line-height: 1.6;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

/* Carrossel específico */
.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transition-delay: 0.2s;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
    transition-delay: 0s;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    opacity: 1;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5vh 1.5vw rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3vh;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-1vh);
    box-shadow: 0 1.5vh 3vw rgba(0, 0, 0, 0.12);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.practice-area-card {
    text-align: center;
    padding: 2vh 1.5vw;
}

.practice-area-icon {
    font-size: 4vw;
    color: var(--primary-color);
    margin-bottom: 1.5vh;
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8vh 2vw;
    font-weight: 500;
    border-radius: 0.3vw;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-0.3vh);
    box-shadow: 0 0.5vh 1.5vw rgba(210, 34, 38, 0.3);
}

.btn-outline-light {
    color: white;
    border-color: white;
    padding: 0.8vh 2vw;
    font-weight: 500;
    border-radius: 0.3vw;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-0.3vh);
    box-shadow: 0 0.5vh 1.5vw rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8vh 2vw;
    font-weight: 500;
    border-radius: 0.3vw;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-0.3vh);
    box-shadow: 0 0.5vh 1.5vw rgba(210, 34, 38, 0.2);
}

/* Áreas de atuação */
.areas-section {
    background-color: var(--light-gray);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22vw, 1fr));
    gap: 1.5vh 1.5vw;
    max-width: 100%;
}

.area-item {
    background: white;
    padding: 1.5vh 1.5vw;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 0.2vw solid var(--primary-color);
    font-size: 0.9vw;
}

.area-item:hover {
    box-shadow: 0 1vh 2.5vw rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5vh);
}

.area-item h4 {
    color: #000000;
    margin-bottom: 0.8vh;
    font-weight: 600;
    font-size: 1.2vw;
}

/* Team section */
.team-member {
    margin-bottom: 3vh;
    text-align: center;
    border-radius: var(--border-radius);
    padding-bottom: 1vh;
    background-color: white;
}

.team-img {
    width: 13vw;
    height: 13vw;
    object-fit: cover;
    border-radius: 50%;
    margin: 2vh auto 1.5vh;
    box-shadow: 0 0.5vh 1.5vw rgba(0, 0, 0, 0.1);
    border: 0.3vw solid var(--primary-color);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 0.5vh;
    font-size: 1.3vw;
}

.team-member p {
    font-style: italic;
    margin-bottom: 1vh;
    font-size: 1vw;
}

/* Contato */
.contact-section {
    background-color: var(--light-gray);
}

.contact-info {
    margin-bottom: 3vh;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 2vw;
    margin-right: 1vw;
}

.contact-form .form-control {
    border-radius: 0.4vw;
    border: 0.1vh solid #ddd;
    padding: 1.2vh 1vw;
    margin-bottom: 2vh;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 6vh 0 3vh;
    position: relative;
    overflow: hidden;
}

/* Efeito de luz no canto esquerdo do footer */
footer::before {
    content: '';
    position: absolute;
    top: -5vh;
    left: -5vw;
    width: 30vw;
    height: 30vh;
    border-radius: 50%;
    background: radial-gradient(
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 35%, 
        rgba(255, 255, 255, 0) 70%
    );
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer h3 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Página de advogado */
.advogado-profile-img {
    border: 3px solid var(--primary-color);
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-section {
        align-items: flex-start;
        padding-top: 20vh;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .area-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-section {
        padding-top: 15vh;
    }
    
    .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding-top: 12vh;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Animações */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação para o texto do carrossel */
.carousel-item.active .fade-in {
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 