/* =========================================================================
 * [tamborim_social] – Comunidade Tamborim
 * ====================================================================== */
.tbs {
	--gold: #f1ca00;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 96px 0 100px;
	background:
		radial-gradient(800px 360px at 50% 0%, rgba(241, 202, 0, .14), transparent 70%),
		linear-gradient(180deg, #fffdf3 0%, #ffffff 60%);
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	clear: both;
}
.tbs *, .tbs *::before, .tbs *::after { box-sizing: border-box; }
.tbs a { text-decoration: none !important; }
.tbs ul, .tbs li { list-style: none !important; margin: 0 !important; padding: 0 !important; }

/* Notas musicais subindo ao fundo */
.tbs__notes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tbs__notes i {
	position: absolute;
	bottom: -40px;
	font-style: normal;
	font-size: 34px;
	color: rgba(184, 154, 0, .22);
	animation: tbs-note 16s linear infinite;
}
.tbs__notes i:nth-child(1) { left: 6%; animation-delay: 0s; }
.tbs__notes i:nth-child(2) { left: 18%; font-size: 24px; animation-delay: -5s; animation-duration: 19s; }
.tbs__notes i:nth-child(3) { left: 38%; font-size: 28px; animation-delay: -10s; }
.tbs__notes i:nth-child(4) { left: 62%; font-size: 40px; animation-delay: -3s; animation-duration: 21s; }
.tbs__notes i:nth-child(5) { left: 80%; font-size: 26px; animation-delay: -8s; }
.tbs__notes i:nth-child(6) { left: 93%; font-size: 32px; animation-delay: -13s; animation-duration: 18s; }
@keyframes tbs-note {
	0% { transform: translate(0, 0) rotate(0); opacity: 0; }
	10% { opacity: 1; }
	50% { transform: translate(24px, -320px) rotate(14deg); }
	90% { opacity: 1; }
	100% { transform: translate(-10px, -640px) rotate(-8deg); opacity: 0; }
}

.tbs__inner { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.tbs__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.tbs__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 99px;
	background: #111;
	color: var(--gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.tbs__title {
	margin: 16px 0 12px !important;
	font-size: 44px !important;
	line-height: 1.08 !important;
	font-weight: 800 !important;
	letter-spacing: -.02em;
	color: #111 !important;
}
.tbs__sub { margin: 0 !important; font-size: 17px; line-height: 1.6; color: #5c5c5c; }

/* Cards */
.tbs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tbs-card {
	--c1: #333;
	--c2: #111;
	--glow: rgba(0, 0, 0, .25);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 290px;
	padding: 26px;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	background-size: 200% 200%;
	color: #fff !important;
	box-shadow: 0 18px 40px -22px var(--glow);
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}
.tbs-card::before {
	/* círculos decorativos */
	content: "";
	position: absolute;
	top: -70px;
	right: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	box-shadow: 0 0 0 34px rgba(255, 255, 255, .06);
	transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.tbs-card::after {
	/* reflexo que atravessa o card */
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: skewX(-18deg);
	transition: left .7s;
}
.tbs-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 50px -20px var(--glow); }
.tbs-card:hover::before { transform: scale(1.25); }
.tbs-card:hover::after { left: 130%; }
.tbs-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.tbs-card--ig { --c1: #f58529; --c2: #8134af; --glow: rgba(221, 42, 123, .55); background-image: linear-gradient(135deg, #feda75, #f58529 22%, #dd2a7b 50%, #8134af 78%, #515bd4); animation: tbs-flow 8s ease-in-out infinite alternate; }
.tbs-card--wa { --c1: #2fe374; --c2: #0e8c6f; --glow: rgba(37, 211, 102, .55); color: #04301a !important; }
.tbs-card--fb { --c1: #3b8dff; --c2: #0b4fc4; --glow: rgba(24, 119, 242, .5); }
.tbs-card--gg { --c1: #232323; --c2: #0d0d0d; --glow: rgba(241, 202, 0, .45); }
@keyframes tbs-flow {
	from { background-position: 0% 0%; }
	to { background-position: 100% 100%; }
}

.tbs-card > span { position: relative; z-index: 1; }
.tbs-card__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .2);
	backdrop-filter: blur(4px);
	animation: tbs-bob 4s ease-in-out infinite;
}
.tbs__grid li:nth-child(2) .tbs-card__icon { animation-delay: -1s; }
.tbs__grid li:nth-child(3) .tbs-card__icon { animation-delay: -2s; }
.tbs__grid li:nth-child(4) .tbs-card__icon { animation-delay: -3s; }
.tbs-card--wa .tbs-card__icon { background: rgba(255, 255, 255, .35); color: #04301a; }
.tbs-card--gg .tbs-card__icon { background: rgba(241, 202, 0, .14); color: var(--gold); }
@keyframes tbs-bob {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-6px) rotate(-5deg); }
}

.tbs-card__kicker { font-size: 13px; font-weight: 800; letter-spacing: .04em; opacity: .85; }
.tbs-card__title { margin-top: 8px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.tbs-card__cta {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 16px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .95);
	color: #111;
	font-size: 14.5px;
	font-weight: 800;
	transition: background .25s, color .25s;
}
.tbs-card--gg .tbs-card__cta { background: var(--gold); }
.tbs-card__cta svg { transition: transform .3s; }
.tbs-card:hover .tbs-card__cta svg { transform: translate(3px, -3px); }

/* Estrelas animadas no card do Google */
.tbs-card--gg .tbs-card__kicker::after {
	content: " ★★★★★";
	color: var(--gold);
	letter-spacing: 2px;
	background: linear-gradient(90deg, var(--gold) 0 40%, #fff6c2 50%, var(--gold) 60%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: tbs-stars 3s linear infinite;
}
@keyframes tbs-stars {
	from { background-position: 100% 0; }
	to { background-position: -50% 0; }
}

/* Responsivo */
@media (max-width: 1024px) {
	.tbs { padding: 72px 0 80px; }
	.tbs__title { font-size: 36px !important; }
	.tbs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tbs-card { min-height: 250px; }
}
@media (max-width: 560px) {
	.tbs { padding: 56px 0 60px; }
	.tbs__inner { padding: 0 16px; }
	.tbs__head { margin-bottom: 30px; }
	.tbs__title { font-size: 29px !important; }
	.tbs__sub { font-size: 15.5px; }
	.tbs__grid { grid-template-columns: 1fr; gap: 12px; }
	.tbs-card { min-height: 0; padding: 20px; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
	.tbs-card__icon { grid-row: span 3; width: 52px; height: 52px; margin: 0; border-radius: 15px; }
	.tbs-card__icon svg { width: 26px; height: 26px; }
	.tbs-card__title { font-size: 18px; margin-top: 2px; }
	.tbs-card__cta { justify-self: start; margin-top: 14px; padding: 8px 14px; font-size: 14px; }
	.tbs-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tbs *, .tbs *::before, .tbs *::after { animation: none !important; transition: none !important; }
	.tbs__notes { display: none; }
}
