/* Configurações gerais */

/* Cores dos temas */
:root {
    color-scheme: dark;

    --cor-fundo: #0b1524;
    --cor-superficie: #111f33;
    --cor-texto: #f5f5f5;
    --cor-texto-secundario: #c4cbd4;
    --cor-destaque: #b89b5e;
    --cor-destaque-hover: #d2b675;
    --cor-borda: #26364a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Cabeçalho */

header {
    background-color: var(--cor-superficie);
    border-bottom: 1px solid var(--cor-destaque);
    padding: 10px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: bold;
    color: #D4AF37;
    line-height: 1;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: Georgia, serif;
    font-size: 10px;
    font-weight: bold;
    color: #D4AF37;
    letter-spacing: 0.5px;
    margin-top: 5px;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 14px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-destaque);
}

/* Seção principal */

.hero {
    min-height: 80vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 80px 8%;

    
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.90) 100%
      ),
      url("images/escritorio.jpeg");


    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image {
    flex: 1;
    max-width: 480px;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-content {
    max-width: 600px;
    width: 100%;
    color: #ffffff;
    text-align: left;
    margin-left: auto;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-top .hero-subtitle {
    margin-bottom: 0;
    flex: 1;
}

.hero-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    max-width: 560px;
    color: var(--cor-texto-secundario);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-button {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: #0b0b0b;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: var(--cor-destaque-hover);
}

/* Seção sobre o escritório */

.about {
    padding: 110px 8%;
    background-color: var(--cor-superficie);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.about-image {
    width: 100%;
    border: 1px solid var(--cor-destaque);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-content {
    max-width: 100%;
    text-align: left;
}

.about-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.about h2 {
    max-width: 750px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.25;
    margin-bottom: 30px;
}

.about-description {
    max-width: 760px;
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Seção de serviços */

.services {
    padding: 110px 8%;
    background-color: var(--cor-fundo);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.services-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.services-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.services-header > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    background-color: var(--cor-superficie);
    border: 1px solid var(--cor-borda);
    transition: border-color 0.3s ease,
                transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--cor-destaque);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.8;
}

/* Conteúdo expansível dos serviços */

.service-details {
    margin-top: 20px;
}

.service-details[hidden] {
    display: none;
}

.service-details p {
    margin-bottom: 14px;
}

.service-details ul {
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--cor-texto-secundario);
}

.service-details li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Botão Saiba mais */

.service-toggle {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 0;
    background: transparent;
    border: none;
    color: var(--cor-destaque);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-toggle:hover {
    color: var(--cor-destaque-hover);
}

.service-toggle:focus-visible {
    outline: 2px solid var(--cor-destaque);
    outline-offset: 4px;
}

/* Seção da equipe */

.team {
    padding: 110px 8%;
    background-color: var(--cor-superficie);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.team-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.team-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.team-header > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.8;
}

.team-card:hover {
    border-color: var(--cor-destaque);
    transform: translateY(-5px);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.team-card {
    display: grid;
    grid-template-columns: 40% 60%;
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    overflow: hidden;
    transition: border-color 0.3s ease,
                transform 0.3s ease;
}

.team-card:hover {
    border-color: var(--cor-destaque);
    transform: translateY(-5px);
}

.team-photo {
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-info {
    padding: 28px 36px;
}

/* Áreas de atuação da equipa */

.team-specialties {
    margin-top: 32px;
    padding-top: 0;
}

.team-specialties h4 {
    color: var(--cor-destaque);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.team-specialties-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-specialties-list li {
    color: var(--cor-texto-secundario);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 16px;
    border-left: 2px solid var(--cor-destaque);
}

.team-info h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.team-role {
    color: var(--cor-destaque);
    font-size: 13px;
    margin-bottom: 16px;
}

.team-info > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.8;
}

/* Seção de contato */
.contact {
    padding: 110px 8%;
    background-color: var(--cor-fundo);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.contact-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.contact-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.contact-header > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.8;
}

/* Informações e formulário lado a lado */
.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: start;
}

.contact-details h3 {
    font-size: 22px;
    margin-bottom: 28px;
}

.contact-details p {
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-details strong {
    display: inline-block;
    color: var(--cor-destaque);
    margin-bottom: 6px;
}

/* Formulário */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 22px;
    background-color: var(--cor-superficie);
    border: 1px solid var(--cor-borda);
    color: var(--cor-texto);
    font: inherit;
    border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--cor-destaque);
    border-color: var(--cor-destaque);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    padding: 15px 26px;
    background-color: var(--cor-destaque);
    color: #0b0b0b;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--cor-destaque-hover);
}

/* Rodapé */

.footer {
    padding: 60px 8% 24px;
    background-color: var(--cor-superficie);
    border-top: 1px solid var(--cor-destaque);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logotipo do rodapé */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 65px;
    height: auto;
    display: block;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo-title {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--cor-destaque);
    letter-spacing: 2px;
}

.footer-logo-subtitle {
    font-family: Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--cor-destaque);
    letter-spacing: 1px;
}

/* Descrição institucional */

.footer-description {
    max-width: 480px;
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Parte inferior do rodapé */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--cor-borda);
}

.footer-bottom p {
    color: var(--cor-texto-secundario);
    font-size: 12px;
    line-height: 1.6;
}

.footer-credit span {
    color: var(--cor-destaque);
    font-weight: 600;
}

/* ==============================
   OS NOSSOS DIFERENCIAIS
================================= */

.differentials {
    padding: 100px 8%;
    background-color: var(--cor-fundo);
}

.differentials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.differentials-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.differentials-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.differentials-header h2 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 20px;
}

.differentials-header > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.8;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.differential-card {
    padding: 20px 0 24px;
    border-top: 1px solid var(--cor-borda);
    transition: border-color 0.3s ease;
}

.differential-card:hover {
    border-color: var(--cor-destaque);
}

.differential-card h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.differential-card p {
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.8;
}


/* ==============================
   MISSÃO, VISÃO E VALORES
================================= */

.institutional {
    padding: 100px 8%;
    background-color: var(--cor-superficie);
}

.institutional-container {
    max-width: 1400px;
    margin: 0 auto;
}

.institutional-header {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
}

.institutional-subtitle {
    color: var(--cor-destaque);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.institutional-header h2 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 20px;
}

.institutional-header > p:last-child {
    color: var(--cor-texto-secundario);
    font-size: 16px;
    line-height: 1.8;
}

/* Missão e Visão */

.institutional-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
    margin-bottom: 65px;
}

.institutional-block {
    padding: 35px;
    border-left: 2px solid var(--cor-destaque);
    background-color: var(--cor-fundo);
}

.institutional-block h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.institutional-block p {
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.9;
}

/* Valores */

.institutional-values {
    padding-top: 45px;
    border-top: 1px solid var(--cor-borda);
}

.institutional-values h3 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 35px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 30px;
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--cor-borda);
    color: var(--cor-texto-secundario);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Encerramento Institucional */

.closing {
    padding: 110px 8%;
    background-color: #0b1524;
    border-top: 1px solid var(--cor-destaque);
    text-align: center;
}

.closing-container {
    max-width: 900px;
    margin: 0 auto;
}

.closing-subtitle {
    color: var(--cor-destaque);
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.closing h2 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

.closing-description {
    max-width: 700px;
    margin: 0 auto;
    color: #c3c8d0;
    font-size: 17px;
    line-height: 1.9;
}

.closing-divider {
    width: 60px;
    height: 2px;
    background-color: var(--cor-destaque);
    margin: 40px auto;
}

.closing-signature {
    color: var(--cor-destaque);
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
}

/* Adaptação para celulares */
@media (max-width: 768px) {
    .services-grid {
    grid-template-columns: 1fr;
}

/* Equipa - Mobile */

.team-grid {
    grid-template-columns: 1fr;
}

.team-card {
    grid-template-columns: 1fr;
}

.team-photo {
    width: 100%;
    height: 380px;
    min-height: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-info {
    padding: 28px 24px;
    min-width: 0;
}

.team-info h3 {
    font-size: 24px;
    line-height: 1.3;
}

.team-role {
    font-size: 13px;
    line-height: 1.6;
}

.team-specialties {
    margin-top: 28px;
}

.team-specialties-list {
    grid-template-columns: 1fr;
    gap: 18px;
}

.team-specialties-list li {
    font-size: 14px;
    line-height: 1.6;
}
    
header {
    padding: 14px 5% 0;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Logotipo na primeira linha */

header .logo {
    order: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

header .logo img {
    width: 45px;
    height: auto;
}

header .logo-title {
    font-size: 24px;
}

header .logo-subtitle {
    font-size: 8px;
    letter-spacing: 0.5px;
}

/* Navegação na segunda linha */

header nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--cor-borda);
}

header nav a {
    font-size: 13px;
    white-space: nowrap;
}

/* Sobre Nós - Mobile */

.about-container {
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-content {
    width: 100%;
    min-width: 0;
}

.about-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}
   
.hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 6%;
    gap: 30px;
    min-height: 75vh;
}

    .hero-image {
        width: 100%;
        max-width: 100%;
    }

    .hero-image img {
        height: 350px;
    }
  
.hero-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-top {
    display: contents;
}

.hero-subtitle {
    order: 1;
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.hero h1 {
    order: 2;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    order: 3;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-button {
    order: 4;
    align-self: flex-start;
    margin: 0;
}
    
.contact {
    padding: 60px 6%;
}

.contact-content {
    grid-template-columns: 1fr;
    gap: 35px;
}
}

/* Equipa - Tablets */

@media (min-width: 600px) and (max-width: 768px) {

    .team-card {
        grid-template-columns: 40% 60%;
    }

    .team-photo {
        height: 100%;
        min-height: 500px;
    }

    .team-photo img {
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .team-info {
        padding: 28px 24px;
    }

    .team-specialties-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Diferenciais e Institucional - Mobile */

@media (max-width: 768px) {

    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .differential-card {
        min-width: 0;
    }

    .institutional-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .institutional-block {
        min-width: 0;
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Ajuste para telas intermediárias */
@media (min-width: 769px) and (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 35px;
        padding: 60px 6%;
    }

    .hero-image {
        width: 100%;
        max-width: 600px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 520px;
    }

    .hero-content {
        width: 100%;
        max-width: 750px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    isolation: isolate;
    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 2;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: whatsapp-wave 2.4s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

.whatsapp-float::after {
    animation-delay: 1.2s;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
}

@keyframes whatsapp-wave {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before,
    .whatsapp-float::after {
        animation: none;
    }

    .whatsapp-float {
        transition: none;
    }
}

/* Mensagem de status do formulário */
.form-status {
    margin-top: 12px;
    color: var(--cor-destaque);
    font-size: 14px;
    line-height: 1.5;
}
