/* Kōfuku — estilos do tema
   Paleta do manual: grafite 40% · papel-osso 25% · cinza-pedra 20% · vinho 10% · âmbar 5% */

:root {
	--grafite: #312C31;
	--papel: #E6E4D7;
	--cinza: #938C86;
	--vinho: #861D36;
	--ambar: #FF983E;
	--linha-escura: rgba(147, 140, 134, 0.35);
	--linha-clara: rgba(49, 44, 49, 0.18);
	--fonte: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--raio: 20px;
	--max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--fonte);
	font-size: 17px;
	line-height: 1.55;
	color: var(--papel);
	background: var(--grafite);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ambar); }
a:hover { color: var(--papel); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	z-index: 1000; background: var(--papel); color: var(--grafite); padding: 12px 18px; border-radius: 999px;
}

/* Tipografia utilitária */
.rotulo { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.rotulo--ambar { color: var(--ambar); }
.rotulo--vinho { color: var(--vinho); }
.titulo-secao { font-size: clamp(34px, 4vw, 52px); font-weight: 900; line-height: 1.05; }
.titulo-medio { font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1.1; }
.texto-grande { font-size: 18px; line-height: 1.6; max-width: 60ch; }

/* Botões */
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--ambar { background: var(--ambar); color: var(--grafite); }
.btn--ambar:hover { color: var(--grafite); }
.btn--papel { background: var(--papel); color: var(--grafite); }
.btn--papel:hover { color: var(--grafite); }
.btn--papel-vinho { background: var(--papel); color: var(--vinho); align-self: flex-start; }
.btn--papel-vinho:hover { color: var(--vinho); }
.btn--vinho { background: var(--vinho); color: var(--papel); }
.btn--vinho:hover { color: var(--papel); }
.btn--grafite { background: var(--grafite); color: var(--papel); }
.btn--grafite:hover { color: var(--papel); }
.btn--contorno-claro { border-color: var(--papel); color: var(--papel); }
.btn--contorno-claro:hover { color: var(--papel); }
.btn--contorno-escuro { border-color: var(--grafite); color: var(--grafite); }
.btn--contorno-escuro:hover { color: var(--grafite); }

/* Faixa do topo */
.faixa {
	background: var(--vinho); color: var(--papel); padding: 10px 24px; text-align: center;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; font-size: 15px;
}
.faixa__rotulo { color: var(--ambar); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.faixa a { color: var(--papel); font-weight: 700; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: var(--grafite); border-bottom: 1px solid var(--linha-escura); }
.admin-bar .topo { top: 32px; }
@media (max-width: 782px) { .admin-bar .topo { top: 0; } }
.topo__barra {
	max-width: var(--max); margin: 0 auto; padding: 14px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.topo__logo img { height: 52px; width: auto; }
.topo__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; font-weight: 600; }
.topo__nav .btn + .btn { margin-left: -16px; }
.topo__nav > a:not(.btn) { color: var(--papel); text-decoration: none; padding: 10px 0; }
.topo__nav > a:not(.btn):hover, .topo__nav > a[aria-current="page"] { color: var(--ambar); }
.topo__menu-btn {
	display: none; width: 48px; height: 48px; padding: 0; border-radius: 999px;
	background: none; border: 2px solid var(--papel); color: var(--papel); cursor: pointer;
	align-items: center; justify-content: center;
}
.topo__menu-btn .icone-fechar { display: none; }
.topo__menu-btn[aria-expanded="true"] .icone-abrir { display: none; }
.topo__menu-btn[aria-expanded="true"] .icone-fechar { display: block; }
.menu-mobile { display: flex; flex-direction: column; padding: 8px 20px 28px; border-top: 1px solid var(--linha-escura); }
.menu-mobile[hidden] { display: none; }
.menu-mobile > a:not(.btn) {
	color: var(--papel); text-decoration: none; font-size: 22px; font-weight: 800;
	padding: 14px 0; border-bottom: 1px solid var(--linha-escura);
}
.menu-mobile .btn { margin-top: 20px; }

/* Abertura */
.hero { display: flex; flex-wrap: wrap; background: var(--grafite); }
.hero__texto {
	flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px;
	padding: clamp(48px, 7vw, 112px) clamp(24px, 5vw, 80px);
}
.hero__titulo { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; font-weight: 900; letter-spacing: -0.02em; }
.hero__sub { font-size: 20px; line-height: 1.55; max-width: 34ch; }
.hero__foto { flex: 1 1 520px; min-width: 0; min-height: 560px; position: relative; }
.hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Barra de informações */
.info { background: var(--papel); color: var(--grafite); border-bottom: 1px solid var(--linha-clara); }
.info a:not(.btn) { color: var(--vinho); }
.info__grid { max-width: var(--max); margin: 0 auto; padding: 8px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info__cel { display: flex; align-items: center; gap: 18px; padding: 28px 32px; min-width: 0; }
.info__cel + .info__cel { border-left: 1px solid var(--linha-clara); }
.info__cel > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info__cel .btn { align-self: flex-start; margin-top: 6px; }
.info__icone {
	flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--vinho); color: var(--papel);
	display: flex; align-items: center; justify-content: center;
}
.info__destaque { font-size: 20px; font-weight: 800; line-height: 1.25; }

/* Seções */
.secao__inner { max-width: var(--max); margin: 0 auto; padding: 96px 32px; display: flex; flex-direction: column; gap: 40px; }
.secao__inner--estreito { max-width: 1080px; gap: 32px; }
.secao__inner > div:first-child:not([class]) { display: flex; flex-direction: column; gap: 10px; }
.secao__topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.secao__intro { font-size: 18px; max-width: 46ch; line-height: 1.5; }
.secao--grafite { background: var(--grafite); color: var(--papel); }
.secao--papel { background: var(--papel); color: var(--grafite); }
.secao--papel a:not(.btn) { color: var(--vinho); }
.secao--vinho { background: var(--vinho); color: var(--papel); }
.secao--ambar { background: var(--ambar); color: var(--grafite); }
.secao--padrao { background: var(--papel) url('../img/padrao.jpg') center / cover; color: var(--papel); }

/* Galeria */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.galeria__item { margin: 0; }
.galeria__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--raio); }

/* Eventos */
.eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.evento { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.evento__foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.evento__corpo { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.evento__titulo { font-size: 28px; font-weight: 900; line-height: 1.15; }
.evento__corpo > p:not(.rotulo) { font-size: 17px; line-height: 1.55; }
.evento__btn { margin-top: auto; align-self: flex-start; }
.evento--grafite { background: var(--grafite); color: var(--papel); }
.evento--grafite .evento__quando { color: var(--ambar); }
.evento--grafite .evento__btn { background: var(--ambar); color: var(--grafite); }
.evento--vinho { background: var(--vinho); color: var(--papel); }
.evento--vinho .evento__btn { background: var(--papel); color: var(--vinho); }
.evento--claro { border: 2px solid var(--grafite); color: var(--grafite); }
.evento--claro .evento__quando { color: var(--vinho); }
.evento--claro .evento__btn { border-color: var(--grafite); color: var(--grafite); }

/* Cardápio */
.legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.legenda li { display: inline-flex; align-items: center; gap: 8px; }
.selo {
	display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 1.3;
	padding: 3px 8px; border-radius: 999px; border: 1.5px solid; text-decoration: none; cursor: help;
}
.selo--vg { background: var(--papel); color: var(--grafite); border-color: var(--papel); }
.selo--lac { color: var(--papel); border-color: var(--papel); }
.selo--cru { color: var(--ambar); border-color: var(--ambar); }
.selo--ole { background: var(--ambar); color: var(--grafite); border-color: var(--ambar); }
.abas { display: flex; flex-wrap: wrap; gap: 10px; }
.aba {
	font-family: inherit; font-size: 16px; font-weight: 800; min-height: 44px; padding: 10px 20px;
	border-radius: 999px; cursor: pointer; background: transparent; color: var(--papel); border: 2px solid rgba(230, 228, 215, .5);
}
.aba[aria-selected="true"] { background: var(--papel); color: var(--grafite); border-color: var(--papel); }
.painel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 48px; }
.painel[hidden] { display: none; }
.item { padding: 22px 0; border-bottom: 1px solid rgba(147, 140, 134, .4); display: flex; flex-direction: column; gap: 6px; }
.item__nome { font-size: 21px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.item__nome > span { margin-right: 4px; }
.item__desc { font-size: 16px; line-height: 1.5; }
.aviso { font-size: 15px; line-height: 1.5; max-width: 70ch; }
.info__btn { margin-top: 12px; }
.delivery { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 8px; padding: 24px 28px; border: 1px solid rgba(230, 228, 215, .25); border-radius: 12px; }
.delivery__titulo { font-size: 20px; font-weight: 800; margin: 0; }
.delivery__texto { margin: 4px 0 0; color: rgba(230, 228, 215, .75); }

/* História (home) */
.historia { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.historia__panpan { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.historia__panpan img { width: min(100%, 360px); }
.historia__texto { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.foto-legenda { margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.foto-legenda img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raio); }
.foto-legenda figcaption { font-size: 15px; }

/* Ohayō (home) */
.ohayo-bloco { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.ohayo-bloco__texto { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ohayo-bloco__logo { flex: 1 1 260px; min-width: 0; display: flex; justify-content: center; }
.ohayo-bloco__logo img { width: min(100%, 280px); }

/* Eventos privados e FAQ */
.privados { flex-direction: row; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.privados__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.privados__foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raio); margin-top: 12px; }
.faq { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.faq .titulo-medio { margin-bottom: 12px; }
.faq__item { border-bottom: 1px solid var(--grafite); }
.faq__item summary {
	list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; min-height: 44px;
	font-size: 19px; font-weight: 800;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--vinho); }
.faq__item[open] summary::after { content: '–'; }
.faq__resposta { padding: 0 0 22px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.faq__resposta p + p { margin-top: 10px; }

/* Loja / cadastro */
.loja-card {
	align-self: center; width: 100%; max-width: 760px; background: var(--grafite); color: var(--papel);
	border-radius: 28px; padding: clamp(32px, 5vw, 64px); text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.form-inscricao { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 520px; justify-content: center; }
.form-inscricao input[type="email"] {
	flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 14px 20px; border-radius: 999px;
	border: 2px solid currentColor; background: transparent; color: inherit; font-family: inherit; font-size: 16px;
}
.form-inscricao input::placeholder { color: inherit; opacity: .7; }
.kfk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 800; }
.form-nota { font-size: 13px; opacity: .85; }

/* Rodapé */
.rodape { background: var(--grafite); color: var(--papel); border-top: 1px solid var(--linha-escura); }
.rodape__inner { max-width: var(--max); margin: 0 auto; padding: 72px 32px 40px; display: flex; flex-direction: column; gap: 48px; }
.rodape__cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.rodape__logo { width: 170px; align-self: flex-start; }
.rodape__col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.rodape__col .rotulo { margin-bottom: 4px; }
.rodape__col a { color: var(--papel); text-decoration: none; }
.rodape__col a:hover { color: var(--ambar); }
.rodape__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--linha-escura); padding-top: 24px; }
.rodape__base a { color: var(--papel); }

/* Páginas com editor de blocos (Nossa história, Ohayō) */
.pagina { background: var(--papel); color: var(--grafite); }
.pagina__cabecalho { max-width: 760px; margin: 0 auto; padding: 80px 32px 0; }
.entry-content { font-size: 19px; line-height: 1.7; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > :first-child:not(.alignfull) { margin-top: 80px; }
.entry-content > :last-child:not(.alignfull) { margin-bottom: 80px; }
.entry-content p, .entry-content figure { margin-top: 0; margin-bottom: 22px; }
.entry-content h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 18px; }
.entry-content h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 22px; }
.entry-content a:not(.wp-block-button__link) { color: inherit; }
.entry-content img { border-radius: var(--raio); }
.entry-content figcaption { font-size: 15px; line-height: 1.5; margin-top: 10px; text-align: left; color: inherit; }
.entry-content .wp-block-group.alignfull { padding: clamp(56px, 8vw, 104px) 32px; }
.entry-content .wp-block-group.alignfull > *,
.entry-content .wp-block-group.alignfull > .wp-block-group__inner-container > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-group.alignfull > .wp-block-group__inner-container { max-width: none; }
.entry-content .wp-block-group.alignfull > .alignwide,
.entry-content .wp-block-group.alignfull > .wp-block-columns { max-width: var(--max); }
.entry-content .wp-block-group.alignfull > :last-child { margin-bottom: 0; }
.entry-content .wp-block-columns { gap: 48px; align-items: center; margin-bottom: 0; }
.entry-content .wp-block-buttons { gap: 12px; margin-top: 8px; }
.entry-content .wp-block-button__link { border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 17px; text-decoration: none; }
.entry-content .is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.entry-content .kfk-rotulo { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.entry-content .kfk-kanji { font-size: clamp(96px, 12vw, 150px); font-weight: 900; line-height: 1; margin-bottom: 8px; }
.entry-content .wp-block-image.kfk-sem-raio img { border-radius: 0; }
.has-papel-background-color { background-color: var(--papel); }
.has-grafite-background-color { background-color: var(--grafite); }
.has-vinho-background-color { background-color: var(--vinho); }
.has-ambar-background-color { background-color: var(--ambar); }
.has-cinza-background-color { background-color: var(--cinza); }
.has-papel-color { color: var(--papel); }
.has-grafite-color { color: var(--grafite); }
.has-vinho-color { color: var(--vinho); }
.has-ambar-color { color: var(--ambar); }

.entry-content .wp-block-columns { display: flex; flex-wrap: nowrap; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) {
	.entry-content .wp-block-columns { flex-direction: column; align-items: stretch; gap: 28px; }
	.entry-content .wp-block-column { flex-basis: 100% !important; }
}

/* Posts e listas */
.post-resumo + .post-resumo { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--linha-clara); }

/* Celular */
@media (max-width: 860px) {
	.topo__barra { padding: 10px 20px; }
	.topo__logo img { height: 42px; }
	.topo__nav { display: none; }
	.topo__menu-btn { display: inline-flex; }
	.hero__foto { min-height: 300px; }
	.secao__inner { padding: 64px 20px; }
	.info__grid { grid-template-columns: 1fr; padding: 0; }
	.info__cel { padding: 22px 20px; }
	.info__cel + .info__cel { border-left: 0; border-top: 1px solid var(--linha-clara); }
	.entry-content > * { padding-left: 20px; padding-right: 20px; }
	.entry-content .wp-block-group.alignfull { padding-left: 20px; padding-right: 20px; }
	.rodape__inner { padding: 56px 20px 32px; }
}
@media (min-width: 861px) {
	.menu-mobile { display: none !important; }
}

.cadastro-embutido { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cadastro-embutido .form-inscricao input[type="email"] { color: inherit; }

/* Telas médias: menu mais compacto para caber Delivery e Reservar */
@media (min-width: 861px) and (max-width: 1060px) {
	.topo__nav { gap: 4px 18px; font-size: 15px; }
	.topo__nav .btn--sm { padding: 10px 16px; }
	.topo__nav .btn + .btn { margin-left: -8px; }
}
