/* 1) Importar League Spartan do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap');

/* 2) Declarar TT Chocolates (self-hosted – ajuste os caminhos conforme seu servidor) */
@font-face {
  font-family: 'TT Chocolates';
  src: url('/fonts/TTChocolates-Regular.woff2') format('woff2'),
       url('/fonts/TTChocolates-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'TT Chocolates';
  src: url('/fonts/TTChocolates-Bold.woff2') format('woff2'),
       url('/fonts/TTChocolates-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #f8f1e4, #c5b299);
    color: #2b1e0f;
}

/* Texto corrido */
body,
p {
    font-family: 'TT Chocolates', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #eee;
    /* ou #eee para melhor contraste */
}

:root {
    /* Tons principais */
    --gold-light: #F8E4B8;
    /* tom creme-dourado */
    --gold-mid: #C79F74;
    /* Antique Brass */
    --gold-dark: #8B4513;
    /* SaddleBrown */
    --brown-dark: #3E2A14;
    /* para textos secundários */
    --beige: #F8F1E4;
    /* fundo geral */
    --cta-green: #25D366;
    /* verde WhatsApp */
    --cta-gold: #BF854D;
    /* botão orçamento */
    --overlay-rgb: 66, 57, 45;
    /* mesmo castanho do overlay */
}


/* Se quiseres ênfase no body */
p strong,
p b {
    font-weight: 700;
}

/* Títulos principais */
h1 {
    font-family: 'League Spartan', serif;
    font-weight: 600;
    /* ajusta conforme layout */
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1;
    /* menos espaço entre as linhas */
    letter-spacing: 1.8px;
    color: #e7d3c1;
    margin-bottom: 0.1rem;
    text-align: center;
    text-transform: uppercase;
    text-justify: inter-word;
}

.hero-emphasis {
    /* cor de destaque — use sua cor de “call to action” */
    color: #fafafa;
    /* peso um pouco maior para chamar atenção */
    font-weight: 600;
    /* opcional: itálico ou outro estilo */
    font-style: italic;
    /* 6) Animação suave ao passar o mouse */
    transition: background-color 0.3s, color 0.3s;
}

/* Subtítulos / H2 */
h2 {
    font-family: League+Spartan, sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
    color: #3E2A14;
}



:root {
    --overlay-rgb: 66, 57, 45;
    --ov-top: .85;
    --ov-mid: .4;
    --ov-bottom: .1;
    --beige: #F8F1E4;
    --gold-mid: #B8860B;
}

/* 1) HERO Container */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* 2) Vídeo */
.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* 3) Gradient Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(var(--overlay-rgb), var(--ov-top)) 0%,
            rgba(var(--overlay-rgb), var(--ov-mid)) 50%,
            rgba(var(--overlay-rgb), var(--ov-bottom)) 80%,
            rgba(var(--overlay-rgb), 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero {
    position: relative;
    /* contexto pro conteúdo absoluto */
    height: 60vh;
    /* ou a altura que quiser */
}

.hero__content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* preserve seu padding/text-align */
    z-index: 2;
}


/* 4) Conteúdo */
/* Contexto posicional no header */
.hero__content header {
    position: relative;
    padding-top: 240px;
    /* empurra o texto pra baixo do logo */
    text-align: center;
}

/* Faz a imagem ficar absoluta e atrás do texto */
.hero__content .hero-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    /* ou height:350px; height:auto; */
    height: auto;
    z-index: 3;
    /* abaixo do texto */
}

/* Texto permanece acima */
.hero__content .hero__subtitle,
.hero__content .hero__lead {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
    /* ajuste fino do espaçamento texto-logo */
}


.hero__content .hero__lead {
    font: clamp(.8rem, 1.2vw, 1rem) 'tt-chocolates', sans-serif;
    color: #eee;
    margin-bottom: 0.9rem;
    text-justify: inter-word;
    text-align: center;
}

.button-group a {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.btn-orcamento {
    background-color: #B8860B;
}

.btn-orcamento:hover {
    background-color: #4f879f;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

.experience-note {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 5px;
}



/* ===== Mobile Hero ===== */
@media (max-width: 768px) {
    .hero {
        /* Faz o hero ocupar 60%–70% da viewport no mobile */
        height: 85vh;
        overflow: hidden;
    }

    .hero::before {
        /* Overlay um pouco mais forte no topo para legibilidade extra */
        background: linear-gradient(to bottom,
                rgba(66, 57, 45, 0.9) 0%,
                rgba(66, 57, 45, 0.4) 60%,
                rgba(66, 57, 45, 0.0) 100%);
    }

    .hero__video {
        /* Continua a cobrir tudo */
        min-height: 100%;
        min-width: 100%;
    }

    .hero__content {
        padding: 20px 10px;
    }

    .h1 {
        font-family: 'League Spartan', sans-serif;
        color: #f0e4d8;
        font-weight: 500;

        /* 1) Tipografia fluida para nunca ficar gigante nem minúsculo */
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;

        /* 2) Limita a largura do texto em “character units” para evitar quebras estranhas */
        max-width: 55ch;
        margin: 0 auto;
        /* centraliza no container */
        padding: 0 0.4rem;
        /* respiro lateral */
        box-sizing: border-box;
    }

    .hero__subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.01em;
        max-width: 100%;
    }

    .hero__lead {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .button-group a {
        /* Botões full-width até um max */
        width: 100%;
        max-width: 300px;
        padding: 14px 0;
    }
}

@media (max-width: 480px) {
    .h1 {
        /* permite ocupar praticamente toda a largura do viewport */
        max-width: none;
        width: 100%;
        padding: 0 1rem;

        /* só pra garantir que as quebras sejam nos espaços, não no meio de palavras */
        word-break: normal;
        hyphens: auto;

        /* um pouco menor para caber em linhas maiores */
        font-size: clamp(1.6rem, 6vw, 2rem);
        line-height: 1.25;
    }
}

/* 1) container com grid e padding igual às outras seções */
.services,
.about,
.blog-list,
.contact {
  display: grid;
  row-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 2) H2 com barrinha dourada à esquerda */
.services  > h2,
.about     > h2,
.blog-list > h2,
.contact   > h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #3A2C1B;
}
.services  > h2::before,
.about     > h2::before,
.blog-list > h2::before,
.contact   > h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 60%;
  background: #B8860B;
  border-radius: 3px;
}

/* 3) Grid de cards do Blog */

/* Cada bloco vira duas colunas iguais */
.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Subtítulos / H2 */
h2 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    margin: 0 0 1rem;
    color: #3E2A14;
    text-align: center;
}


/* Alterna imagem/texto */
.service--normal {
    grid-template-areas: "img info";
}

.service--reverse {
    grid-template-areas: "info img";
}

/* Imagem ocupa a área “img” */
.service__img {
    grid-area: img;
}

.service__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto ocupa a área “info” */
.service__info {
    grid-area: info;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Separador vertical */
.service__info::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    /* no .service--normal, fica à esquerda; no --reverse, à direita */
    left: 0rem;
    width: 10px;
    background-color: #B8860B;
}

.service--reverse .service__info::before {
    left: auto;
    right: 0;
}

/* Titulação */
.service__info.service__info h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    letter-spacing: .2em;
    color: #3a2c1b;
}

/* Parágrafo */
.service__info p {
    margin: 0;
    line-height: 1.4;
    color: #5a4a3a;
}

/* 1) Força a proporção desktop+mobile (ajuste 3/1 para o ratio real que você quiser) */
.service {
    aspect-ratio: 3 / 1;
}

/* Para que o card de contato cresça conforme o conteúdo */
.contact .service {
    aspect-ratio: auto;
}


/* Limita a largura do formulário e o centraliza dentro do service__info */
.contact__form {
    max-width: 400px;
    /* ou 350px, 500px… o que fizer sentido */
    width: 100%;
    /* para que fique 100% até esse máximo */
    margin: 0 auto;
    /* centraliza horizontalmente */
}


.contact__form .form-group {
    margin-bottom: 1rem;
}

.contact__form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: #3a2c1b;
}

.contact__form input,
.contact__form textarea {
    width: 80%;
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: .375rem;
    font-family: inherit;
}

.btn-orcamento {
    margin-top: 1rem;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    background-color: #B8860B;
}

.contact__alt {
    max-width: 380px;
    width: 100%;
    margin: 1rem 0 0;
    text-align: left;
}

.contact .service__info {
    align-items: flex-start;
    /* alinha itens pelo início do container */
    padding-left: 8rem;
    /* opcional, para criar margem interna */
}

/* ——— regras genéricas de h2 ——— */
h2 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  /* … resto … */
}


/* ——— 1) Container das seções ——— */
.services,
.about,
.blog-list,
.contact {
  display: grid;
  row-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ——— 2) Títulos de seção com barrinha ——— */
.services  > h2,
.about     > h2,
.blog-list > h2,
.contact   > h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #3A2C1B;
}
.services  > h2::before,
.about     > h2::before,
.blog-list > h2::before,
.contact   > h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 60%;
  background: #B8860B;
  border-radius: 3px;
}

/* ——— 3) Grid de cards do Blog ——— */
.blog-list .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ——— 4) Cards individuais do Blog ——— */
.blog-list .post-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-list .post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-list .post-card h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.25rem;
  color: #3a2c1b;
  margin: 1rem;
}
.blog-list .post-card .post-excerpt,
.blog-list .post-card time {
  margin: 0 1rem 1rem;
  color: #5a4a3a;
}
.blog-list .btn-load-more {
  display: inline-block;
  margin: 2rem auto 0;
  padding: .75rem 1.5rem;
  background: #3E2A14;
  color: #fff;
  border-radius: .75rem;
  text-decoration: none;
}



/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    .services {
        padding: 1.5rem 1rem;
        row-gap: 1.5rem;
    }

    .service {
        /* vira uma coluna só */
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "info";
        aspect-ratio: auto;
        /* altura natural */
    }

    .service__img {
        /* fixa uma altura razoável para a imagem */
        height: 350px;
    }

    .service__img img {
        height: 100%;
        /* ocupa a altura definida */
    }

    .service__info {
        padding: 5rem;
    }

    .service__info::before {
        /* de vertical para horizontal */
        width: calc(100% - 3rem);
        height: 2px;
        left: 1.5rem;
        top: 0;
        bottom: auto;
        background-color: #B8860B;
    }

    /* Override do H2 para ficar alinhado ao H3 */
    .services>h2,
    .about>h2,
    .contact>h2 {
        display: block;
        /* sai do inline-block centrado */
        text-align: left;
        /* alinha o texto à esquerda */
        margin: 0 0 1rem;
        /* margem em cima e embaixo */
        margin-left: 5rem;
        /* mesma margem esquerda do conteúdo do card */
    }

}

/* ======== Footer ======== */

footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 30px;
    color: #888;
}