/* Reset Básico e Cores */
:root {
    --preto: #000000;
    --preto-hero: #00000063;
    --dourado: #ad9507;
    --dourado-claro: #ad9507; /* Um dourado ligeiramente mais claro para hover */
    --branco: #FFFFFF;
    --cinza-claro: #f8f8f8; /* Um cinza mais claro para fundos */
    --cinza-escuro: #333333;
    --text-color: #444444; /* Cor de texto mais suave */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--branco);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--preto);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
}

h2.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--dourado);
    border-radius: 2px;
}

.gold-text {
    color: var(--dourado);
}

.light-text {
    color: var(--cinza-claro);
}

/* Header */
header {
    background-color: var(--preto);
    color: var(--branco);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.589);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo para a imagem da logo no header */
.header-logo-img {
    max-width: 250px; /* Largura máxima para desktop. Ajuste conforme necessário */
    height: auto; /* Mantém a proporção */
    display: block; /* Remove espaços extras indesejados */
    /* Remova padding-left se não for necessário */
}

/* Link da logo, para que a imagem seja clicável */
.header-logo-link {
    display: flex; /* Para centralizar a imagem dentro do link, se necessário */
    align-items: center;
    height: 100%; /* Para alinhar bem com o header */
}

/* Navegação */
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--dourado);
    transition: width 0.3s ease;
    border-radius: 1.5px;
}

.main-nav ul li a:hover {
    color: var(--dourado-claro);
    transform: translateY(-2px);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Botão do Hambúrguer (desktop oculto) */
.hamburger-menu {
    display: none; /* Oculto por padrão em telas maiores */
    background: none;
    border: none;
    color: var(--branco);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Garante que fique acima da navegação */
}


/* Hero Section */
.hero {
    background-image: url(img/rsj-logomarca-fundo-preto2-fosco.png);
    min-height: 45rem;
    display: flex;
    align-items: center;
    color: var(--branco);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.hero .hero-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-text-content {
    flex: 1 1 55%;
    text-align: center;
    padding-right: 20px;
}

.hero-text-content h1 {
    color: var(--branco);
    font-size: 3.8rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-text-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-align: center;
}


/* Botões */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-gold {
    background-color: var(--dourado);
    color: var(--preto);
    border-color: var(--dourado);
    box-shadow: 0 4px 10px rgba(198, 173, 143, 0.4);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--dourado-claro);
    border-color: var(--dourado-claro);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(198, 173, 143, 0.6);
}

.btn-dark {
    background-color: var(--preto);
    color: var(--branco);
    border-color: var(--preto);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
    background-color: var(--dourado);
    color: var(--preto);
    border-color: var(--dourado);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(198, 173, 143, 0.6);
}


/* Seções Genéricas */
.section-padding {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--preto);
    color: var(--cinza-claro);
}

.bg-light {
    background-color: var(--cinza-claro);
}

.bg-dark h2.section-title, .bg-dark p {
    color: var(--cinza-claro);
}

.bg-dark h2.section-title::after {
    background-color: var(--dourado);
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--branco);
    padding: 35px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.25);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dourado);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--preto);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Diferenciais */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.diferencial-item {
    text-align: center;
    padding: 30px;
    background-color: var(--preto);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--cinza-claro);
}

.diferencial-item:hover {
    transform: translateY(-10px);
    background-color: var(--cinza-escuro);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.diferencial-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--dourado);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.diferencial-item h3 {
    font-size: 1.6rem;
    color: var(--branco);
    margin-bottom: 10px;
}

.diferencial-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Sobre Nós */
#sobre .text-center {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Contato */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 320px;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}
.contact-info strong {
    color: var(--preto);
}

.contact-info .fas, .contact-info .fab {
    font-size: 1.5rem;
    color: var(--dourado);
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--preto);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--dourado);
    transform: translateY(-5px) scale(1.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--branco);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--dourado-claro);
    box-shadow: 0 0 0 3px rgba(198, 173, 143, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--preto);
    color: var(--cinza-claro);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 50px;
    font-size: 0.95rem;
}

footer p {
    margin-bottom: 0.7rem;
}

.text-red {
    color: #e74c3c;
}

/* Animações */
.animate-on-load {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para animações */
.delay-1 { animation-delay: 0.4s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.8s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 1.2s; transition-delay: 0.6s; }
.delay-4 { animation-delay: 1.6s; transition-delay: 0.8s; }
.delay-5 { animation-delay: 2.0s; transition-delay: 1.0s; }


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsividade (Ajustes principais aqui) */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2.section-title { font-size: 2.4rem; }

    .hero .hero-inner-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .hero-text-content h1 { font-size: 3.2rem; }
    .hero-text-content p { font-size: 1.15rem; }
}

@media (max-width: 768px) { /* Tablets e celulares maiores */
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    /* Logo no Header para celular */
    .header-logo-img {
        max-width: 180px; /* Ajuste o tamanho da logo para tablets, talvez precise ser menor ainda dependendo da imagem */
        height: auto;
    }

    /* Oculta a navegação padrão e mostra o hambúrguer */
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--preto);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.589);
        padding: 20px 0;
        text-align: center;
        transition: transform 0.3s ease-out;
        transform: translateY(-100%);
    }

    .main-nav.active .nav-list {
        display: flex;
        transform: translateY(0);
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-nav ul li a {
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .hamburger-menu {
        display: block;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }
    .hero-text-content h1 { font-size: 2.8rem; }
    .hero-text-content p { font-size: 1rem; }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-info, .contact-form {
        min-width: unset;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) { /* Celulares menores */
    .header-logo-img {
        max-width: 140px; /* Ajusta o tamanho da logo para celular */
        height: auto;
    }
    h1 { font-size: 2rem; }
    h2.section-title { font-size: 1.8rem; }

    .hero-text-content h1 { font-size: 2.2rem; }
    .hero-text-content p { font-size: 0.9rem; }

    .service-card h3, .diferencial-item h3 {
        font-size: 1.4rem;
    }

    .service-icon, .diferencial-icon {
        font-size: 2.8rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
    .social-icons a {
        font-size: 1.5rem;
    }
}