/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(to bottom, #000000, #404040, #e3b576);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 1rem 0;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo-img {
    position: absolute;
    left: 20px;
    top: 135%;
    transform: translateY(-50%);
    height: 160px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 2rem;
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

nav ul li a:hover {
    color: #e3b576;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #e3b576;
    transition: width 0.3s, left 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
    left: 0;
}

/* Hero */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/bgJustica.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'EB Garamond', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background-color: #e3b576;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b8952a;
}

/* Seções */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #e3b576;
    font-family: 'EB Garamond', serif;
}

/* Sobre */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sobre-item {
    background: linear-gradient(to bottom, #404040, #000000);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.sobre-item i {
    font-size: 2.5rem;
    color: #e3b576;
    margin-bottom: 1rem;
    display: block;
}

.sobre-item h3 {
    margin-bottom: 1rem;
    color: #e3b576;
}

/* Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servico {
    background: linear-gradient(to bottom, #000000, #404040);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.servico i {
    font-size: 2.5rem;
    color: #e3b576;
    margin-bottom: 1rem;
    display: block;
}

.servico h3 {
    margin-bottom: 1rem;
    color: #e3b576;
}

/* Contato */
#contato {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/backgroundContato.jpg') center/cover;
    padding: 6rem 0; /* aumentado para destacar a seção */
    position: relative;
    z-index: 1;
    color: #fff; /* texto branco para contraste */
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

#contact-form {
    display: grid;
    gap: 0.5rem;
    background: linear-gradient(to bottom, rgba(64, 64, 64, 0.95), rgba(0, 0, 0, 0.95));
    padding: 4rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 2px solid #e3b576;
    width: 100%;
    max-width: 600px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 0.8rem;
    border: 2px solid #e3b576;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

#contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

#contact-form button {
    background-color: #e3b576;
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #b8952a;
}

.contato-info {
    text-align: center;
    background: linear-gradient(to bottom, #404040, #000000);
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contato-info p {
    margin-bottom: 0.5rem;
}

/* Form Status */
.form-status {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: #000000;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo-img {
    height: 160px;
    width: auto;
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-social {
    text-align: right;
}

.footer-social p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.social-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.5rem;
}

.social-link:hover {
    color: #e3b576;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.whatsapp-link:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
}

.back-to-top-link {
    display: inline-block;
    background-color: #e3b576;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top-link:hover {
    background-color: #b8952a;
    transform: scale(1.1);
}

/* ==== Formulário de Contato (FormSubmit) ==== */
#contact-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  #contact-form input:focus,
  #contact-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
    outline: none;
  }
  
  #contact-form button {
    cursor: pointer;
  }
  
  .form-status {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    transition: opacity 0.3s;
    opacity: 0;
    margin-bottom: 1rem;
  }
  
  .form-status.success {
    color: #27ae60;
    opacity: 1;
  }
  
  .form-status.error {
    color: #e74c3c;
    opacity: 1;
  }
  

.data-protection-card {
    background: linear-gradient(to bottom, rgba(64, 64, 64, 0.9), rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    border: 1px solid #e3b576;
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.data-protection-card i {
    color: #e3b576;
    margin-right: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        background-color: #000;
        position: static;
        padding: 1rem 0;
    }

    nav {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .logo-img {
        position: static;
        height: 60px;
        margin-bottom: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: center;
        padding-left: 0;
        max-width: 90%;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .sobre-grid,
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sobre-item,
    .servico {
        padding: 1.5rem;
    }

    .contact-wrapper {
        padding: 0 1rem;
    }

    #contact-form {
        padding: 2rem;
        max-width: 100%;
    }

    .data-protection-card {
        padding: 1rem;
        font-size: 0.8rem;
        margin: 1rem auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .footer-logo-img {
        height: 120px;
    }

    .footer-text {
        margin: 1rem 0;
    }

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

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-link {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }

    .back-to-top {
        bottom: 75px;
        right: 15px;
    }

    .back-to-top-link {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .sobre-item,
    .servico {
        padding: 1rem;
    }

    #contact-form {
        padding: 1.5rem;
    }

    .data-protection-card {
        padding: 0.8rem;
        font-size: 0.75rem;
    }

    .footer-logo-img {
        height: 100px;
    }

    .whatsapp-link {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1rem;
    }

    .back-to-top-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}
