/* Homepage. Tokens, type scale, header, footer, buttons and .par come from base.css; the project gallery dialog from projeto.css. */

:root {
  --t-sec: clamp(2.5rem, 5.4vw, 4.8rem);    /* section headings on this page */
  --t-frase: clamp(1.9rem, 3.6vw, 3.3rem);  /* the large statements (testimonials, principles) */
  --fosco: rgba(20, 15, 12, .5);           /* cover dim on hover */
}

.sec-titulo { font-size: var(--t-sec); }
.mais { margin: clamp(40px, 5vw, 64px) 0 0; font-family: var(--q); font-size: 18px; font-weight: 600; }
.mais a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1.5px; }

/* 1. Hero ------------------------------------------------------------------ */
.heroi { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #3a3029; overflow: hidden; isolation: isolate; }
@media (min-height: 0) { .heroi { min-height: max(560px, 100svh); } }
.heroi-imagem { position: absolute; inset: 0; z-index: -1; }
.heroi-imagem .par { position: absolute; inset: 0; }
.heroi-imagem .par img { object-position: 38% 62%; }
/* The day render is framed about 2% tighter and 1% to the left of the night one: nudge it so the
   room stays in the same place when the lights change. Measured on the 1600px renders. */
.heroi-imagem .dia img { transform: translateX(1%) scale(1.02); }
/* Portrait screens show the same kitchen, framed on one of the paper lamps. */
@media (orientation: portrait) { .heroi-imagem .par img { object-position: 38% 50%; } }
/* Legibility: a soft dark wash at the top for the header, a deeper one at the bottom for the words. */
.heroi-imagem::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 13, 10, .32) 0, rgba(18, 13, 10, 0) 140px),
    linear-gradient(to top, rgba(18, 13, 10, .7) 0%, rgba(18, 13, 10, .46) 32%, rgba(18, 13, 10, .1) 60%, rgba(18, 13, 10, 0) 74%),
    linear-gradient(to right, rgba(18, 13, 10, .22), rgba(18, 13, 10, 0) 60%); }
@media (orientation: portrait) {
  .heroi-imagem::after { background:
    linear-gradient(to bottom, rgba(18, 13, 10, .45) 0, rgba(18, 13, 10, 0) 130px),
    linear-gradient(to top, rgba(18, 13, 10, .8) 0%, rgba(18, 13, 10, .55) 38%, rgba(18, 13, 10, .1) 66%, rgba(18, 13, 10, 0) 78%); }
}
.heroi-texto { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(36px, 7vh, 80px); animation: heroi-surge .5s var(--ease) .1s both; }
/* The words appear once per visit (noite.js marks later pages of the same session). */
.sem-intro .heroi-texto { animation: none; }
/* The motto leads; the introduction is one quieter line above it, and "carisma" sits on a block of oxblood.
   The h1 itself takes the small size, so the line box of the intro is not stretched by the large type. */
/* The hero title is set in Playfair Display, the serif of the studio's Instagram, with "carisma" in italic on the brush stroke. */
.heroi h1 { max-width: 15ch; font-family: "Playfair Display", Didot, "Bodoni 72", Georgia, serif; font-weight: 400; font-synthesis: none; color: #F8F2E9; font-size: clamp(2.9rem, 6.4vw, 5.9rem); line-height: 1.02; letter-spacing: -.012em; font-kerning: normal; text-shadow: 0 1px 2px rgba(18, 13, 10, .28), 0 2px 28px rgba(18, 13, 10, .32); }
.heroi h1 em { font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -.005em; line-height: 0; }
/* A brush stroke behind "carisma", shorter than the line so it never touches the line above. */
.heroi .h-marca { padding: 0 .16em 0 .1em; margin: 0 -.12em 0 -.02em; text-shadow: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'><filter id='p' x='-5%' y='-20%' width='110%' height='140%'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.35' numOctaves='3' seed='7'/><feDisplacementMap in='SourceGraphic' scale='12'/></filter><g filter='url(%23p)'><path fill='%237C1E13' d='M14 26C60 16 120 20 180 16C240 12 300 18 360 14C376 13 388 16 392 22L388 30L394 38L389 50L395 60L388 72L392 84C350 90 300 84 250 89C190 93 130 86 80 90C50 92 28 89 10 84L16 76L6 66L14 56L5 46L13 36L8 30Z'/><path fill='%23A23A2C' fill-opacity='.35' d='M24 34C100 30 190 34 280 30C330 28 370 30 384 32L384 36C320 35 250 38 170 37C100 38 50 37 24 39Z'/><path fill='%235A1610' fill-opacity='.4' d='M18 66C90 64 170 68 250 64C310 62 356 65 386 63L386 68C330 70 270 69 200 71C120 72 60 70 18 71Z'/><path fill='%235A1610' fill-opacity='.3' d='M30 50C110 48 200 51 290 48C330 47 360 48 380 49L380 52C320 53 250 52 170 54C110 54 60 53 30 54Z'/></g></svg>") center 64% / 100% 74% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.heroi-acoes { margin: clamp(24px, 3.4vw, 40px) 0 0; }
/* base.css: `.site-head nav a { padding: 10px 0 }` outranks `.btn` padding, so the header button loses its sides. Restored here. */
.site-head nav a.btn { padding: 0 22px; }
.btn--branco { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--branco:hover { background: var(--oxblood); color: #fff; } }
@keyframes heroi-surge { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .heroi-texto { animation: none; }
}

/* 2. Projetos -------------------------------------------------------------- */
.projetos { padding: clamp(72px, 9vw, 128px) 0 0; }
.projetos-cabeca { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.projetos-cabeca h1, .projetos-cabeca h2 { font-size: var(--t-sec); }
.projetos-cabeca p { margin: 0; max-width: 30ch; color: var(--soft); }
.capas { list-style: none; margin: 0; padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left)); display: grid; gap: 4px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .capas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1900px) { .capas { grid-template-columns: repeat(4, 1fr); } }

.capa { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plaster); color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .capa:hover { color: #fff; } }
.capa:focus-visible { outline-offset: -6px; outline-color: #fff; box-shadow: inset 0 0 0 6px var(--oxblood); border-radius: 0; }
.capa > picture, .capa > .par { position: absolute; inset: 0; }
.capa > picture img, .capa .par img { width: 100%; height: 100%; object-fit: cover; }
.capa--recorte img { object-position: 50% 0; }
.capa::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .2s ease-out; }
.capa-titulo { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 4px; font-family: var(--q); text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.capa-lugar { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.capa-tipo { font-size: 15px; font-weight: 500; opacity: .92; }

/* Touch (and anything that cannot hover): title always visible, bottom left, over a soft gradient. */
.capa::after { background: linear-gradient(to top, rgba(18, 13, 10, .62), rgba(18, 13, 10, 0) 52%); }
.capa-titulo { left: 18px; right: 18px; bottom: 16px; }

/* Hover devices: the cover dims a little and the title fades in, centred. */
@media (hover: hover) and (pointer: fine) {
  .capa::after { background: var(--fosco); opacity: 0; }
  .capa-titulo { inset: 0; align-items: center; justify-content: center; text-align: center; padding: 24px; opacity: 0; transition: opacity .2s ease-out; }
  .capa:hover::after, .capa:focus-visible::after, .capa.ao-passar::after { opacity: 1; }
  .capa:hover .capa-titulo, .capa:focus-visible .capa-titulo, .capa.ao-passar .capa-titulo { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .capa-titulo, .capa::after { transition: none; }
}

/* 3. O que dizem de nós ---------------------------------------------------- */
/* Homepage: only the phrase each client's review turns on, set large; the full reviews live on their own page. */
.dizem-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.dizem-cabeca .mais { margin: 0; }
.dizem .mural { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .dizem .mural { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .dizem .mural { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.critica { box-shadow: var(--elevacao); margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 2.6vw, 36px); background: #fff; border-radius: 6px; }
.critica blockquote { margin: 0; font-family: var(--a); font-size: clamp(1.3rem, 1.05rem + .7vw, 1.65rem); line-height: 1.35; letter-spacing: -.005em; text-wrap: pretty; }
.critica blockquote p { margin: 0; }
/* The marker: the same pale dusty rose as on the reviews page (ink on it: 13:1). */
.critica mark { color: inherit; background: linear-gradient(100deg, rgba(240, 211, 199, .2) 0, #F0D3C7 .35em, #F0D3C7 calc(100% - .35em), rgba(240, 211, 199, .2) 100%) 0 58% / 100% 82% no-repeat; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.critica figcaption { display: flex; flex-direction: column; gap: 1px; font-family: var(--q); font-size: 16px; line-height: 1.35; }
.critica figcaption strong { font-weight: 700; }
.critica figcaption span { font-size: 15px; color: var(--soft); }

/* 4. Sobre ----------------------------------------------------------------- */
.sobre-grelha { display: grid; gap: clamp(36px, 5vw, 88px); align-items: start; }
@media (min-width: 900px) { .sobre-retrato { position: sticky; top: 24px; } }
@media (min-width: 900px) { .sobre-grelha { grid-template-columns: 5fr 6fr; } }
.sobre-retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.sobre-texto .sec-titulo { margin-bottom: clamp(28px, 3vw, 40px); max-width: 14ch; }
.sobre-texto p { max-width: 36em; }
.assinatura { font-family: "Mrs Saint Delafield", cursive; font-size: clamp(3.6rem, 6vw, 5rem); line-height: 1; margin: 28px 0 0; color: var(--ink); }

/* 7. Perguntas ------------------------------------------------------------- */
/* Como trabalhamos: the question on the left; on the right the ten questions, quiet, with the button among them.
   The whole block is one link to the top of the page. */
.perguntas-grelha { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .perguntas-grelha { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.perguntas-grelha .sec-titulo { max-width: 12ch; position: relative; z-index: 2; }
/* Stacked (under 900px): the cloud is centred on its button, so the heading shares that centre axis. */
@media (max-width: 899px) { .perguntas-grelha .sec-titulo { max-width: 14ch; margin-inline: auto; text-align: center; text-wrap: balance; } }
.duvidas { position: relative; display: grid; place-items: center; text-decoration: none; color: inherit; }
.duvidas-fundo { display: grid; gap: 12px; }
/* Rows of one, two, two, two, two and one question: a rounded cloud around the button. */
.duvidas-linha { display: flex; justify-content: center; gap: 12px; }
/* Small screens: keep the cloud's shape. Rows stay on one line, centred, and run off both edges of the screen. */
@media (max-width: 899px) {
  .duvidas { margin-inline: calc(-1 * max(var(--pad), env(safe-area-inset-left))); overflow: hidden; padding-block: 4px; }
  .duvidas { grid-template-columns: minmax(0, 1fr); }
  .duvidas-fundo { gap: 10px; width: 100%; min-width: 0; justify-items: stretch; }
  /* Each row is wider than the screen and centres its questions, so they spill evenly off both sides. */
  .duvidas-linha { flex-wrap: nowrap; gap: 10px; margin-inline: -240px; justify-content: center; }
  .duvidas .q { font-size: 15px; padding: 10px 14px; }
}
.duvidas .q { font-family: var(--q); font-weight: 600; font-size: clamp(.95rem, 1.45vw, 1.4rem); letter-spacing: -.01em; line-height: 1.2; padding: 12px 18px; white-space: nowrap; background: rgba(231, 228, 222, .7); color: rgba(27, 23, 20, .4); border-radius: 4px; }
/* The button sits over the questions, in the middle of them. */
.duvidas-botao { position: absolute; z-index: 1; min-height: 56px; padding: 0 30px; font-size: 18px; box-shadow: 0 0 0 10px var(--paper); }
@media (hover: hover) and (pointer: fine) { .duvidas:hover .duvidas-botao { background: var(--wine); color: #fff; } .duvidas:hover .q { color: rgba(27, 23, 20, .55); } }
.duvidas:focus-visible { outline: none; }
.duvidas:focus-visible .duvidas-botao { outline: 3px solid var(--ink); outline-offset: 4px; }
.banda.negocios { border-top: 1px solid var(--rule); }

/* Também para negócios: one picture, a short heading, one sentence, one link. */
.negocios-grelha { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .negocios-grelha { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.negocios-imagem { margin: 0; }
.negocios-imagem img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; }
.negocios-imagem figcaption { margin-top: 12px; font-family: var(--q); font-size: 16px; color: var(--soft); }
.negocios-texto .sec-titulo { margin-bottom: clamp(18px, 2vw, 28px); }
.negocios-texto p { max-width: 30em; }
.negocios-texto .btn { margin-top: 8px; }

/* 8. Fecho ------------------------------------------------------------------ */
.fecho { text-align: center; padding-block: clamp(110px, 14vw, 200px); }
.fecho h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: none; margin: 0 auto; text-wrap: balance; }
.fecho-acao, .fecho .fecho-acao { margin: clamp(36px, 4.4vw, 56px) 0 0; }

/* Header over the hero: on desktop the button is outlined so "Fale-me do seu projeto" leads;
   on phones it is hidden, the hero already carries the same call. */
.site-head--sobre .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
@media (hover: hover) and (pointer: fine) { .site-head--sobre .btn:hover { background: #fff; color: var(--ink); } }


