/*
Theme Name: Ilhabela.Charter
Theme URI: https://ilhabela.charter.tur.br
Description: Tema do site da Ilhabela.Charter — charter náutico em Ilhabela e São Sebastião. Tema filho do Twenty Twenty-Five. O sistema de design vive no theme.json e em assets/marca.css.
Author: Na Tomada Produções
Author URI: https://natomada.com.br
Template: twentytwentyfive
Version: 1.7.119
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ilhabela-charter
*/

/* Cor, tipografia e espaçamento ficam no theme.json.
   A camada visual da marca fica em assets/marca.css.
   Aqui só o que não cabe em nenhum dos dois. */

/* Chip de contexto: acompanha a largura do texto, não a da coluna. */
.chip-contexto{ width:fit-content; max-width:100%; }

/* Legenda de tabela com respiro. */
.wp-block-table figcaption{ margin-top:.6rem; opacity:.75; }

/* ---------------------------------------------------------------
   Botão flutuante de WhatsApp.
   Pílula que se abre no hover: o ícone sempre visível, o convite
   aparecendo quando a pessoa se aproxima.
   --------------------------------------------------------------- */
.ic-zap{
	position: fixed;
	right: clamp(1rem, 2.2vw, 1.75rem);
	bottom: clamp(1rem, 2.2vw, 1.75rem);
	z-index: 9990;

	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 60px;
	padding: 0 4px;
	border-radius: 999px;

	background: #25D366;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(37, 211, 102, .32), 0 2px 8px rgba(0, 0, 0, .28);

	transition: gap .28s cubic-bezier(.22,.9,.3,1),
		padding .28s cubic-bezier(.22,.9,.3,1),
		box-shadow .25s ease, transform .25s ease, background .25s ease;
	animation: ic-zap-entra .5s .8s both cubic-bezier(.22,.9,.3,1);
}

.ic-zap::before{
	content: "";
	position: absolute;
	inset: 4px;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: #25D366;
	opacity: .55;
	z-index: -1;
	animation: ic-zap-halo 2.6s ease-out infinite;
}

.ic-zap__icone{
	flex: 0 0 52px;
	width: 52px; height: 52px;
	display: grid; place-items: center;
}
.ic-zap svg{ width: 30px; height: 30px; display: block; flex: none; }

.ic-zap__rotulo{
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: .9rem;
	font-weight: 600;
	opacity: 0;
	transition: max-width .3s cubic-bezier(.22,.9,.3,1), opacity .22s ease;
}

.ic-zap:hover,
.ic-zap:focus-visible{
	padding-right: 22px;
	background: #1EBE5A;
	box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 3px 10px rgba(0, 0, 0, .3);
	transform: translateY(-2px);
}
.ic-zap:hover .ic-zap__rotulo,
.ic-zap:focus-visible .ic-zap__rotulo{ max-width: 14rem; opacity: 1; }
.ic-zap:hover::before,
.ic-zap:focus-visible::before{ animation: none; opacity: 0; }
.ic-zap:focus-visible{ outline: 3px solid #FFCD35; outline-offset: 3px; }

@keyframes ic-zap-halo{
	0%   { transform: scale(1);    opacity: .5; }
	70%  { transform: scale(1.45); opacity: 0; }
	100% { transform: scale(1.45); opacity: 0; }
}
@keyframes ic-zap-entra{
	from { opacity: 0; transform: translateY(14px) scale(.9); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 600px){
	.ic-zap{ height: 56px; }
	.ic-zap__icone{ flex-basis: 48px; width: 48px; height: 48px; }
	.ic-zap svg{ width: 27px; height: 27px; }
	.ic-zap::before{ width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce){
	.ic-zap, .ic-zap__rotulo{ transition: none; animation: none; }
	.ic-zap::before{ animation: none; opacity: 0; }
}
@media print{ .ic-zap{ display: none; } }
