/* ==========================================================
   COLMEIA — Apiário Chácara Santa Maria, Borebi/SP

   Identidade: bloco chapado de mel + marrom de cera velha,
   favo hexagonal como grade e o mel escorrendo da faixa de
   abertura. O hexágono não é enfeite: é a forma que a abelha
   constrói e a que a gente usa pra emoldurar foto, marcador
   e alvéolo de conteúdo.
   ========================================================== */

:root {
  --papel:       #fff8ea;
  --creme:       #fdecca;
  --favo:        #f7cb56;
  --mel:         #f2b02a;
  --mel-forte:   #c8880f;
  --casca:       #3b2110;
  --casca-fraca: #d6bda3;
  --tinta:       #2a1a0c;
  --tinta-fraca: #7a6550;
  --mata:        #14392c;
  --coral:       #e4572e;
  --claro:       #fff7e8;
  --claro-fraco: #bccdc2;

  --col: clamp(1.25rem, 5vw, 4.5rem);
  --largura: 72rem;
  --raio: 14px;
  --raio-p: 8px;

  /* favo em marca-d'água: dois hexágonos que fecham a grade ao repetir */
  --favo-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='34.641' viewBox='0 0 60 34.641'%3E%3Cg fill='none' stroke='%233b2110' stroke-opacity='.10' stroke-width='1'%3E%3Cpolygon points='0,17.32 10,0 30,0 40,17.32 30,34.64 10,34.64'/%3E%3Cpolygon points='30,0 40,-17.32 60,-17.32 70,0 60,17.32 40,17.32'/%3E%3Cpolygon points='30,34.64 40,17.32 60,17.32 70,34.64 60,51.96 40,51.96'/%3E%3C/g%3E%3C/svg%3E");
  --favo-escuro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='34.641' viewBox='0 0 60 34.641'%3E%3Cg fill='none' stroke='%23fff7e8' stroke-opacity='.12' stroke-width='1'%3E%3Cpolygon points='0,17.32 10,0 30,0 40,17.32 30,34.64 10,34.64'/%3E%3Cpolygon points='30,0 40,-17.32 60,-17.32 70,0 60,17.32 40,17.32'/%3E%3Cpolygon points='30,34.64 40,17.32 60,17.32 70,34.64 60,51.96 40,51.96'/%3E%3C/g%3E%3C/svg%3E");

  /* mel escorrendo: só usado uma vez, no pé da abertura */
  --escorrido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='76' viewBox='0 0 800 76'%3E%3Cg fill='%23f2b02a'%3E%3Crect width='800' height='21'/%3E%3Cpath d='M31,20 C31,29 32.35,38 40,38 C47.65,38 49,29 49,20 Z'/%3E%3Cpath d='M82,20 C82,42 84.1,64 96,64 C107.9,64 110,42 110,20 Z'/%3E%3Cpath d='M293,20 C293,26 294.05,32 300,32 C305.95,32 307,26 307,20 Z'/%3E%3Cpath d='M341,20 C341,33 342.65,46 352,46 C361.35,46 363,33 363,20 Z'/%3E%3Cpath d='M374,20 C374,24.5 374.9,29 380,29 C385.1,29 386,24.5 386,20 Z'/%3E%3Cpath d='M594,20 C594,46 596.4,72 610,72 C623.6,72 626,46 626,20 Z'/%3E%3Cpath d='M682,20 C682,28 683.2,36 690,36 C696.8,36 698,28 698,20 Z'/%3E%3C/g%3E%3C/svg%3E");

  --hexagono: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  /* alvéolo: retângulo com dois cantos cortados, como a parede de cera */
  --alveolo: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.15rem);
  line-height: 1.62;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: var(--mel); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--mel-forte); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Figtree", Arial, sans-serif;
  font-weight: 800; line-height: 1.02; letter-spacing: -.025em;
  margin: 0; text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

/* ---------- estrutura ---------- */

.faixa { padding-inline: var(--col); }
.limite { max-width: var(--largura); margin-inline: auto; }

.secao { padding-block: clamp(3rem, 7vw, 5.5rem); }
.secao--creme { background: var(--creme) var(--favo-claro); }
.secao--mata { background: var(--mata) var(--favo-escuro); color: var(--claro); }
.secao--mata .apoio, .secao--mata .nota, .secao--mata .cartao p,
.secao--mata .papeis dd, .secao--mata .passos p, .secao--mata .legenda p { color: var(--claro-fraco); }
.secao--mata .papeis > div, .secao--mata .passos li { border-top-color: rgba(255,247,232,.2); }
.secao--mata figcaption { color: var(--claro-fraco); }
.secao--mata a { color: var(--claro); text-decoration-color: var(--mel); }
.secao--mata a:hover { color: var(--mel); }

.titulo-secao { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.15rem); margin-bottom: .55em; max-width: 18ch; }
.apoio { color: var(--tinta-fraca); font-size: 1.0625rem; }
.nota { font-size: .9375rem; color: var(--tinta-fraca); max-width: 58ch; }

.bloco { max-width: 44rem; }
/* quando .bloco divide o elemento com .limite, quem limita a largura são os filhos —
   senão o container estreito ficaria centralizado e desalinhado das outras seções */
.limite.bloco { max-width: var(--largura); }
.limite.bloco > * { max-width: 44rem; }

/* ---------- botões ---------- */

.botao {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--mel); color: var(--tinta); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--casca); line-height: 1.3;
}
.botao:hover { background: var(--casca); border-color: var(--casca); color: var(--mel); }
.botao--vazado { background: transparent; color: inherit; border-color: currentColor; }
.botao--vazado:hover { background: var(--mel); border-color: var(--mel); color: var(--tinta); }
.secao--mata .botao, .chamada .botao { border-color: var(--mel); }
.secao--mata .botao:hover, .chamada .botao:hover { background: var(--claro); border-color: var(--claro); color: var(--tinta); }

.acoes { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- cabeçalho ---------- */

.topo {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,248,234,.94); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--casca);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between; padding-block: .7rem;
}
.marca { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.marca-selo { width: 2.3rem; height: 2.55rem; flex: none; }
.marca-nome {
  font-family: "Bricolage Grotesque", "Figtree", Arial, sans-serif;
  font-weight: 800; font-size: 1.4rem; line-height: 1.02; letter-spacing: -.03em;
}
.marca-nome span {
  display: block; font-family: "Figtree", sans-serif; font-weight: 500; letter-spacing: 0;
  font-size: .75rem; color: var(--tinta-fraca); margin-top: .25rem;
}
.navegacao { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 1.15rem; margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.menu a { text-decoration: none; color: var(--tinta-fraca); font-weight: 500; }
.menu a:hover { color: var(--mel-forte); }
.menu a[aria-current="page"] { color: var(--tinta); box-shadow: inset 0 -3px var(--mel); }

.menu-compacto { display: none; position: relative; }
.menu-compacto summary {
  list-style: none; cursor: pointer; font-size: 1rem; font-weight: 600;
  padding: .55rem 1rem; border: 2px solid var(--casca); border-radius: 999px;
}
.menu-compacto summary::-webkit-details-marker { display: none; }
.menu-compacto[open] summary { background: var(--mel); }
.menu-compacto ul {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 30;
  margin: 0; padding: .5rem; list-style: none; min-width: 14rem;
  background: var(--papel); border: 2px solid var(--casca); border-radius: var(--raio-p);
  box-shadow: 6px 6px 0 rgba(59,33,16,.15);
}
.menu-compacto li a { display: block; padding: .55rem .7rem; text-decoration: none; border-radius: 6px; }
.menu-compacto li a:hover { background: var(--favo); }

@media (max-width: 64rem) { .menu { display: none; } .menu-compacto { display: block; } }
@media (max-width: 34rem) {
  .topo { flex-wrap: nowrap; gap: .4rem; padding-inline: 1rem; }
  .marca { gap: .45rem; }
  .marca-selo { width: 1.75rem; height: 1.95rem; }
  .marca-nome { font-size: 1.05rem; }
  .marca-nome span { display: none; }
  .navegacao { gap: .4rem; }
  .topo .botao { padding: .5rem .75rem; font-size: .8125rem; white-space: nowrap; }
  .menu-compacto summary { padding: .45rem .7rem; font-size: .8125rem; }
}

/* ---------- abertura: bloco de mel que escorre ---------- */

.abertura {
  position: relative;
  background: var(--mel) var(--favo-claro);
  color: var(--tinta);
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(1.75rem, 4vw, 2.75rem);
}
/* o mel pinga da faixa pra dentro da seção seguinte */
.abertura:not(.abertura--interna)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 76px; z-index: 2;
  background: var(--escorrido) repeat-x top left; pointer-events: none;
}
.abertura h1 { font-size: clamp(2.5rem, 1rem + 6.4vw, 5.25rem); max-width: 14ch; }
.abertura .linha-fina { margin-top: 1.2rem; max-width: 42ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: #5c4020; }
.abertura .acoes { margin-top: 1.9rem; }

/* na home a foto do favo vira alvéolo: hexágono ao lado do título */
.abertura .limite:has(.prancha) {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  /* a quarta linha absorve a sobra de altura do hexágono; sem ela o espaço
     seria dividido entre título, texto e botões, e o bloco desmontava */
  grid-template-rows: max-content max-content max-content 1fr;
  column-gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.abertura .limite:has(.prancha) > h1,
.abertura .limite:has(.prancha) > .linha-fina,
.abertura .limite:has(.prancha) > .acoes { grid-column: 1; }
.abertura .limite:has(.prancha) > .linha-fina { margin-top: 1.4rem; }
.prancha { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; margin: 0; width: min(100%, 23.5rem); }
.prancha img {
  width: 100%; aspect-ratio: 1 / 1.14; object-fit: cover;
  clip-path: var(--hexagono);
}
.prancha figcaption {
  display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; justify-content: space-between;
  margin-top: .9rem; font-size: .9375rem; color: #5c4020;
}

.abertura--interna { background: var(--creme) var(--favo-claro); border-bottom: 2px solid var(--casca); }
.abertura--interna .linha-fina { color: var(--tinta-fraca); }

@media (max-width: 56rem) {
  .abertura .limite:has(.prancha) { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.4rem; }
  .abertura .limite:has(.prancha) > .linha-fina { margin-top: 0; }
  .abertura .acoes { margin-top: .35rem; }
  .prancha { grid-column: 1; grid-row: auto; width: 100%; justify-self: stretch; }
  .prancha img { aspect-ratio: 1 / .8; }
}

@media (prefers-reduced-motion: no-preference) {
  .abertura .limite > * { animation: sobe 700ms cubic-bezier(.2,.7,.3,1) both; }
  .abertura .linha-fina { animation-delay: 110ms; }
  .abertura .acoes { animation-delay: 190ms; }
  .abertura .prancha { animation-delay: 260ms; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* a primeira seção depois da abertura da home cede espaço pros pingos */
.abertura:not(.abertura--interna) + .secao { padding-top: clamp(4.5rem, 8vw, 6.5rem); }

/* ---------- foto + texto ---------- */

.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.dupla--invertida { direction: rtl; }
.dupla--invertida > * { direction: ltr; }
.dupla figure { margin: 0; }
.dupla img { width: 100%; max-height: 30rem; object-fit: cover; border-radius: var(--raio); border: 2px solid var(--casca); }
.dupla figcaption, .galeria figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--tinta-fraca); }
@media (max-width: 56rem) { .dupla { grid-template-columns: 1fr; } .dupla img { max-height: 20rem; } }

.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; height: 15rem; object-fit: cover; border-radius: var(--raio); border: 2px solid var(--casca); }

img.inteira { object-fit: contain !important; background: var(--creme); }

/* ---------- alvéolos (cartões da decantação) ---------- */

.cartoes { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cartao {
  background: var(--favo); color: var(--tinta);
  clip-path: var(--alveolo); border-radius: 0;
  padding: 1.5rem 1.6rem;
}
.cartao h3 { font-size: 1.2rem; margin-bottom: .35em; }
.cartao p { font-size: 1rem; color: #5c4020; margin: 0; }
.secao--mata .cartao { background: rgba(255,247,232,.08); color: var(--claro); }

/* ---------- listas de conteúdo ---------- */

.papeis { margin: 0; }
.papeis > div { padding-block: 1.5rem; border-top: 1px solid rgba(59,33,16,.22); }
.papeis > div:first-child { border-top: 0; padding-top: 0; }
.papeis dt {
  font-family: "Bricolage Grotesque", "Figtree", Arial, sans-serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .25rem;
}
.papeis dd { margin: 0; color: var(--tinta-fraca); max-width: 62ch; }

.passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1.1rem; padding-block: 1.35rem; border-top: 1px solid rgba(59,33,16,.22); }
.passos li:first-child { border-top: 0; padding-top: 0; }
.passos li::before {
  content: counter(passo); grid-row: span 2;
  width: 2.3rem; height: 2.55rem; clip-path: var(--hexagono);
  background: var(--mel); color: var(--tinta); font-weight: 700;
  font-size: 1.05rem; line-height: 2.55rem; text-align: center;
}
.passos h3 { font-size: 1.15rem; margin-bottom: .2em; }
.passos p { color: var(--tinta-fraca); }

.destaque {
  margin: 2.25rem 0 0; padding: 1.5rem 1.7rem;
  background: var(--casca); color: var(--claro); clip-path: var(--alveolo);
  font-family: "Bricolage Grotesque", "Figtree", Arial, sans-serif;
  font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.22; max-width: 34ch;
}

/* ---------- caixilho anotado ---------- */

.mapa { position: relative; }
.mapa img { width: 100%; border-radius: var(--raio); border: 2px solid var(--casca); }
.marcador {
  position: absolute; width: 1.9rem; height: 2.1rem; margin: -1.05rem 0 0 -.95rem;
  clip-path: var(--hexagono); background: var(--coral); color: var(--claro);
  font-size: .9375rem; font-weight: 700; line-height: 2.1rem; text-align: center;
  filter: drop-shadow(0 0 2px rgba(255,247,232,.9));
}
.legenda { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legenda li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .85rem; align-items: start; }
.legenda b {
  width: 1.9rem; height: 2.1rem; clip-path: var(--hexagono);
  background: var(--coral); color: var(--claro);
  font-size: .9375rem; line-height: 2.1rem; text-align: center;
}
.legenda h3 { font-size: 1.1rem; margin-bottom: .1em; }
.legenda p { font-size: 1rem; color: var(--tinta-fraca); }
@media (max-width: 52rem) { .legenda { grid-template-columns: 1fr; } }

/* ---------- produtos, com etiqueta de feira ---------- */

.produtos { margin: 0; padding: 0; list-style: none; }
.produtos li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.5rem;
  align-items: center; padding-block: 1.2rem; border-top: 1px solid rgba(59,33,16,.22);
}
.produtos li:last-child { border-bottom: 1px solid rgba(59,33,16,.22); }
.produtos h3 { font-size: 1.25rem; }
.produtos p { font-size: 1rem; color: var(--tinta-fraca); margin: 0; grid-column: 1; }
.produtos .preco {
  grid-row: span 2; align-self: center;
  font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.8rem; font-weight: 700;
  background: var(--favo); border: 2px solid var(--casca); border-radius: 4px;
  padding: .1rem .85rem .2rem; white-space: nowrap; transform: rotate(-2deg);
}
@media (max-width: 40rem) { .produtos li { grid-template-columns: 1fr auto; } .produtos .preco { font-size: 1.5rem; } }

/* ---------- chamada e atalhos ---------- */

.chamada { background: var(--casca) var(--favo-escuro); color: var(--claro); padding-block: clamp(3rem, 6vw, 4.5rem); }
.chamada .limite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.chamada h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.7rem); }
.chamada p { color: var(--casca-fraca); margin-top: .7rem; }
@media (max-width: 52rem) { .chamada .limite { grid-template-columns: 1fr; } }

.atalhos { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.atalhos a {
  background: var(--creme); color: var(--tinta); padding: 1.6rem 1.7rem;
  clip-path: var(--alveolo); text-decoration: none; display: block;
}
.atalhos a:hover { background: var(--favo); color: var(--tinta); }
.atalhos h3 { font-size: 1.3rem; margin-bottom: .3em; }
.atalhos p { font-size: 1rem; color: var(--tinta-fraca); margin: 0; }

/* ---------- contato e rodapé ---------- */

.contato { display: grid; gap: 1.75rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.contato h3 { font-family: "Figtree", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .35em; }
.contato p { font-size: 1rem; }

.rodape { background: var(--casca); color: var(--casca-fraca); border-top: 2px solid var(--mel); padding-block: 2.25rem 2.75rem; font-size: .9375rem; }
.rodape .limite { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; justify-content: space-between; }
.rodape a { color: var(--claro); }
