@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/Playfair-VariableFont_opsz,wdth,wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
}

:root {
    --creme: #f6f2eb;
    --branco: #ffffff;
    --texto: #252525;
    --verde: #465b50;
    --verde-escuro: #293b33;
    --terracota: #b96f52;
    --bege: #ded3c5;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--texto);
    background: var(--creme);
    line-height: 1.6;
}


/* HEADER */

.header {
    min-height: 90px;
    padding: 20px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(246, 242, 235, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo .nome {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    letter-spacing: 1px;
}

.logo .solucoes {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--terracota);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--texto);
    font-size: 14px;
    transition: .3s;
}

nav a:hover {
    color: var(--terracota);
}


/* HERO */

.hero {
    min-height: 720px;
    padding: 100px 8%;
    display: flex;
    align-items: center;
}

.hero-conteudo {
    width: 100%;
}

.pre-titulo,
.titulo-seccao > p,
.sobre-titulo > p {
    color: var(--terracota);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 950px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 500;
    line-height: .98;
}

.hero h1 span {
    color: var(--verde);
}

.hero-texto {
    max-width: 610px;
    margin-top: 30px;
    font-size: 18px;
    color: #555;
}

.hero-botoes {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* BOTÕES */

.botao {
    display: inline-block;
    padding: 15px 26px;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.botao.principal {
    background: var(--verde-escuro);
    color: white;
}

.botao.principal:hover {
    background: var(--terracota);
}

.botao.secundario {
    color: var(--texto);
    border: 1px solid #aaa;
}

.botao.secundario:hover {
    border-color: var(--terracota);
    color: var(--terracota);
}


/* IMAGEM HERO */

.hero-imagem {
    width: 100%;
    margin-top: 45px;
}

.hero-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-nota {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.hero-nota p {
    margin: 0;
}

.hero-nota strong {
    display: block;
    color: var(--verde-escuro);
}


/* SERVIÇOS */

.servicos {
    background: var(--branco);
    padding: 100px 8%;
}

.titulo-seccao h2,
.sobre h2,
.contactos h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
}

.servicos-grid {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cartao {
    min-height: 340px;
    padding: 35px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    transition: .3s;
}

.cartao:hover {
    transform: translateY(-8px);
    border-color: var(--terracota);
}

.numero {
    color: var(--terracota);
    font-size: 13px;
}

.cartao h3 {
    margin: 45px 0 20px;
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 500;
}

.cartao p {
    color: #666;
}

.cartao a {
    margin-top: auto;
    color: var(--verde);
    text-decoration: none;
    font-weight: 600;
}


/* RESOLVE POR MIM */

.resolve {
    padding: 90px 8%;
    background: var(--verde-escuro);
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.resolve h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(50px, 6vw, 80px);
    font-weight: 500;
    margin-bottom: 25px;
}

.resolve > div {
    max-width: 720px;
}

.resolve p:not(.pre-titulo) {
    color: #d9dfdc;
    margin-top: 10px;
    font-size: 17px;
}

.botao.claro {
    background: var(--creme);
    color: var(--verde-escuro);
    white-space: nowrap;
}

.botao.claro:hover {
    background: var(--terracota);
    color: white;
}


/* SOBRE */

.sobre {
    padding: 110px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.sobre-texto {
    font-size: 18px;
    color: #555;
}

.sobre-texto p {
    margin-bottom: 22px;
}

.sobre-texto .frase {
    margin-top: 40px;
    color: var(--terracota);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}


/* CONTACTOS */

.contactos {
    text-align: center;
    padding: 110px 8%;
    background: var(--bege);
}

.contactos > p:not(.pre-titulo) {
    margin: 25px auto 35px;
    font-size: 18px;
}


/* FOOTER */

footer {
    padding: 45px 8%;
    background: #1f2924;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer div {
    display: flex;
    flex-direction: column;
}

footer strong {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

footer span {
    color: var(--terracota);
    letter-spacing: 4px;
    font-size: 9px;
}

footer p {
    color: #aaa;
    font-size: 12px;
}


/* TELEMÓVEL */

@media (max-width: 850px) {

    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 6%;
    }

    nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 65px 6%;
        display: block;
    }

    .hero h1 {
        font-size: clamp(46px, 13vw, 68px);
    }

    .hero-texto {
        font-size: 16px;
    }

    .hero-imagem {
        margin-top: 35px;
    }

    .servicos {
        padding: 75px 6%;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .resolve {
        padding: 75px 6%;
        flex-direction: column;
        align-items: flex-start;
    }

    .sobre {
        padding: 75px 6%;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contactos {
        padding: 75px 6%;
    }

    footer {
        padding: 40px 6%;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}


/* ECRÃS GRANDES */

@media (min-width: 1400px) {

    .header {
        padding-left: max(7%, calc((100% - 1500px) / 2));
        padding-right: max(7%, calc((100% - 1500px) / 2));
    }

    .hero,
    .servicos,
    .resolve,
    .sobre,
    .contactos,
    footer {
        padding-left: max(8%, calc((100% - 1500px) / 2));
        padding-right: max(8%, calc((100% - 1500px) / 2));
    }
}


/* =========================================
   PÁGINAS DE SERVIÇO
========================================= */

.pagina-servico {
    padding: 120px 8% 110px;
    background: var(--creme);
}

.pagina-servico h1 {
    max-width: 1000px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(58px, 6vw, 90px);
    font-weight: 500;
    line-height: 1.02;
}

.servico-intro {
    max-width: 720px;
    margin-top: 35px;
    font-size: 20px;
    line-height: 1.7;
    color: #555;
}


/* DETALHES DO SERVIÇO */

.servico-detalhes {
    padding: 110px 8%;
    background: var(--branco);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.servico-titulo h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 500;
    line-height: 1.1;
}

.servico-conteudo {
    max-width: 700px;
    font-size: 18px;
    color: #555;
}

.servico-conteudo p {
    margin-bottom: 30px;
}

.servico-conteudo ul {
    list-style: none;
    margin: 35px 0;
    padding: 0;
}

.servico-conteudo li {
    position: relative;
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid #e2ddd6;
}

.servico-conteudo li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--terracota);
}


/* PÁGINAS DE SERVIÇO — TELEMÓVEL */

@media (max-width: 850px) {

    .pagina-servico {
        padding: 75px 6%;
    }

    .pagina-servico h1 {
        font-size: clamp(46px, 12vw, 68px);
    }

    .servico-intro {
        font-size: 17px;
    }

    .servico-detalhes {
        padding: 75px 6%;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .servico-conteudo {
        font-size: 16px;
    }
}


/* PÁGINAS DE SERVIÇO — ECRÃS GRANDES */

@media (min-width: 1400px) {

    .pagina-servico,
    .servico-detalhes {
        padding-left: max(8%, calc((100% - 1500px) / 2));
        padding-right: max(8%, calc((100% - 1500px) / 2));
    }
}


/* =========================================
   FORMULÁRIO DE CONTACTO
========================================= */

.contactos-formulario {
    text-align: left;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 90px;
    row-gap: 20px;
    align-items: start;
}

.contactos-intro {
    max-width: 520px;
    grid-column: 1;
    grid-row: 1 / span 3;
}

.contactos-intro > p:not(.pre-titulo) {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}


/* MENSAGEM DE ENVIO */

#mensagem-formulario {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 700px;
}

#mensagem-formulario:empty {
    display: none;
}

.mensagem-sucesso,
.mensagem-erro {
    padding: 18px 22px;
    margin-bottom: 5px;
    font-family: 'DM Sans', sans-serif;
}

.mensagem-sucesso {
    background: #edf2ee;
    border-left: 4px solid var(--verde);
    color: var(--verde-escuro);
}

.mensagem-erro {
    background: #f8ece8;
    border-left: 4px solid var(--terracota);
    color: #6b3428;
}

.mensagem-sucesso strong,
.mensagem-erro strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.mensagem-sucesso span,
.mensagem-erro span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}


/* FORMULÁRIO */

.formulario-contacto {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 700px;
}

.campo {
    margin-bottom: 25px;
}

.campo label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--verde-escuro);
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #bfb6aa;
    border-radius: 0;
    background: rgba(255, 255, 255, .55);
    color: var(--texto);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    outline: none;
    transition: .3s;
}

.campo textarea {
    resize: vertical;
    min-height: 150px;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--terracota);
    background: var(--branco);
}

.botao-enviar {
    border: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}


/* CONTACTO DIRETO */

.contacto-direto {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    max-width: 700px;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, .15);
}

.contacto-direto p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.contacto-direto a {
    color: var(--verde-escuro);
    font-weight: 600;
    text-decoration: none;
}

.contacto-direto a:hover {
    color: var(--terracota);
}


/* FORMULÁRIO — TELEMÓVEL */

@media (max-width: 850px) {

    .contactos-formulario {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contactos-intro,
    #mensagem-formulario,
    .formulario-contacto,
    .contacto-direto {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
    }

    .contacto-direto {
        margin-top: 0;
    }
}
/* =========================================
   PORTFÓLIO
========================================= */

.portfolio {
    padding: 110px 8%;
    background: var(--branco);
}

.portfolio-titulo {
    max-width: 750px;
}

.portfolio-titulo h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 500;
    line-height: 1.1;
}

.portfolio-titulo > p:last-child {
    margin-top: 25px;
    max-width: 650px;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
}

.portfolio-grid {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-card {
    min-height: 380px;
    padding: 45px;
    border: 1px solid #ddd;
    background: var(--creme);
    display: flex;
    transition: .3s;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--terracota);
}

.portfolio-conteudo {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-tipo {
    color: var(--terracota);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.portfolio-card h3 {
    margin: 45px 0 20px;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 500;
    color: var(--verde-escuro);
}

.portfolio-card p:not(.portfolio-tipo) {
    max-width: 520px;
    color: #666;
    line-height: 1.7;
}

.portfolio-link {
    margin-top: auto;
    padding-top: 35px;
    color: var(--verde);
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.portfolio-link:hover {
    color: var(--terracota);
}


/* PORTFÓLIO — TELEMÓVEL */

@media (max-width: 850px) {

    .portfolio {
        padding: 75px 6%;
    }

    .portfolio-titulo > p:last-child {
        font-size: 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .portfolio-card {
        min-height: 330px;
        padding: 32px;
    }

    .portfolio-card h3 {
        margin-top: 35px;
        font-size: 30px;
    }
}


/* PORTFÓLIO — ECRÃS GRANDES */

@media (min-width: 1400px) {

    .portfolio {
        padding-left: max(8%, calc((100% - 1500px) / 2));
        padding-right: max(8%, calc((100% - 1500px) / 2));
    }
    
 /* =========================================
   BOTÃO WHATSAPP
========================================= */

.whatsapp-flutuante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 18px;
    background: #25D366;
    color: white;

    border-radius: 50px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
    transition: transform .25s, box-shadow .25s;
}

.whatsapp-flutuante:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: white;
}

.whatsapp-icone {
    font-size: 19px;
    line-height: 1;
}

/* =========================================
   WHATSAPP — TELEMÓVEL
========================================= */

@media (max-width: 600px) {

    .whatsapp-flutuante {
        position: fixed !important;
        right: 16px !important;
        bottom: 20px !important;
        z-index: 99999 !important;

        width: 52px;
        height: 52px;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #25D366 !important;
        color: #ffffff !important;

        border-radius: 50% !important;
        text-decoration: none !important;

        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .whatsapp-texto {
        display: none !important;
    }

    .whatsapp-icone {
        display: block;
        font-size: 23px;
        line-height: 1;
    }
}
@media screen and (max-width: 600px) {

    body a.whatsapp-flutuante {
        position: fixed !important;
        right: 18px !important;
        bottom: 18px !important;
        left: auto !important;
        top: auto !important;

        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background-color: #25D366 !important;
        color: #ffffff !important;

        border: none !important;
        border-radius: 50% !important;

        text-decoration: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,.3) !important;

        z-index: 999999 !important;
    }

    body a.whatsapp-flutuante .whatsapp-texto {
        display: none !important;
    }

    body a.whatsapp-flutuante .whatsapp-icone {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        font-size: 23px !important;
        line-height: 1 !important;
    }
}
/* =========================================
   CORREÇÃO FINAL WHATSAPP MOBILE
========================================= */

body a.whatsapp-flutuante {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    top: auto !important;

    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: none !important;
    text-decoration: none !important;

    z-index: 999999 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
}

body a.whatsapp-flutuante .whatsapp-texto {
    display: none !important;
}

body a.whatsapp-flutuante .whatsapp-icone {
    display: block !important;
    font-size: 25px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}